cvs commit: projects/csup proto.c

2006-10-13 Thread Maxime Henrion
mux 2006-10-14 00:55:12 UTC FreeBSD projects repository Modified files: csup proto.c Log: The "Connected to..." message was changed some time ago to print the numerical address instead of the name written in the supfile, so that it became possible to see w

cvs commit: projects/csup proto.c

2006-03-17 Thread Maxime Henrion
mux 2006-03-17 20:19:43 UTC FreeBSD projects repository Modified files: csup proto.c Log: Call pthread_sigmask() before creating any thread, otherwise the killer thread calling sigwait() won't get the signals under Linux and maybe other libpthread implemen

cvs commit: projects/csup proto.c

2006-03-13 Thread Maxime Henrion
mux 2006-03-13 23:06:22 UTC FreeBSD projects repository Modified files: csup proto.c Log: - Properly handle getlogin() returning NULL, the same way as CVSup. While I'm here, also handle unprobable and harmless gethostname() errors. - Also add a bit o

cvs commit: projects/csup proto.c

2006-03-13 Thread Maxime Henrion
mux 2006-03-13 22:49:54 UTC FreeBSD projects repository Modified files: csup proto.c Log: Add a missing error check in proto_negproto(). Revision ChangesPath 1.89 +2 -2 projects/csup/proto.c ___

cvs commit: projects/csup proto.c

2006-02-28 Thread Maxime Henrion
mux 2006-03-01 05:24:15 UTC FreeBSD projects repository Modified files: csup proto.c Log: In proto_get_int(), since strtol() returns a long, check that the returned value is no bigger than INT_MAX and no lesser than INT_MIN or return an error and set errno

cvs commit: projects/csup proto.c

2006-02-26 Thread Maxime Henrion
mux 2006-02-26 20:39:39 UTC FreeBSD projects repository Modified files: csup proto.c Log: Fix typo in comment. Revision ChangesPath 1.80 +2 -2 projects/csup/proto.c ___ cvs-all@freebsd.org maili

cvs commit: projects/csup proto.c proto.h status.c

2006-02-26 Thread Maxime Henrion
mux 2006-02-26 20:34:43 UTC FreeBSD projects repository Modified files: csup proto.c proto.h status.c Log: - Add a "base" parameter to proto_get_int(). - Use proto_get_int() in a few places where we were still doing it by hand. Revision ChangesPath

cvs commit: projects/csup proto.c

2006-02-25 Thread Maxime Henrion
mux 2006-02-25 22:30:35 UTC FreeBSD projects repository Modified files: csup proto.c Log: Cosmetics, no functional change. Revision ChangesPath 1.77 +20 -21projects/csup/proto.c ___ cvs-all@freeb

cvs commit: projects/csup proto.c

2006-02-22 Thread Maxime Henrion
mux 2006-02-23 01:20:53 UTC FreeBSD projects repository Modified files: csup proto.c Log: Bah, unbreak the case where the server rejected us at connection time so that we properly retry as before. While I'm here, make all the proto_*() functions return a

cvs commit: projects/csup proto.c

2006-02-17 Thread Maxime Henrion
mux 2006-02-17 23:47:46 UTC FreeBSD projects repository Modified files: csup proto.c Log: Assert that we're never printing a NULL string in proto_printf(). It would have saved me some troubles if I had put this earlier! Also, remove useless headers while

cvs commit: projects/csup proto.c

2006-02-17 Thread Maxime Henrion
mux 2006-02-17 23:29:17 UTC FreeBSD projects repository Modified files: csup proto.c Log: Make sure we disallow 0-length fields in proto_get_ascii() or all sorts of bad things will happen. Also remove a useless check. Revision ChangesPath 1.71

cvs commit: projects/csup proto.c

2006-02-15 Thread Maxime Henrion
mux 2006-02-16 00:51:22 UTC FreeBSD projects repository Modified files: csup proto.c Log: After the select() call waiting for the asynchronous connection to finish has returned, we need to retrieve SO_ERROR with getsockopt() to ensure that the connection w

cvs commit: projects/csup proto.c

2006-02-14 Thread Maxime Henrion
mux 2006-02-14 22:03:43 UTC FreeBSD projects repository Modified files: csup proto.c Log: Be a bit pedantic and cast the value returned by getnameinfo() to void, to make it clear I'm not interested in it at all. Since I am using this function with NI_NUME

cvs commit: projects/csup proto.c

2006-02-14 Thread Maxime Henrion
mux 2006-02-14 21:58:05 UTC FreeBSD projects repository Modified files: csup proto.c Log: Stop using inet_ntop() for printing the intenet address. I was using it completely wrong since it doesn't accept a struct sockaddr *, but expects a struct in_addr *.

cvs commit: projects/csup proto.c

2006-02-04 Thread Maxime Henrion
mux 2006-02-04 17:47:39 UTC FreeBSD projects repository Modified files: csup proto.c Log: Minor code shuffing, no functional changes. Revision ChangesPath 1.62 +11 -16projects/csup/proto.c ___ cv

cvs commit: projects/csup proto.c

2006-02-03 Thread Maxime Henrion
mux 2006-02-03 18:09:39 UTC FreeBSD projects repository Modified files: csup proto.c Log: Bah, fix a bad bug in proto_get_ascii() where we would simply crash if we can't find a new token. Revision ChangesPath 1.61 +3 -1 projects/csup/pr

cvs commit: projects/csup proto.c

2006-02-02 Thread Maxime Henrion
mux 2006-02-02 19:29:30 UTC FreeBSD projects repository Modified files: csup proto.c Log: Revert most of my previous changes, I'm actually going to handle this another way. When looping through all the available addresses returned by getaddrinfo(), if eit

cvs commit: projects/csup proto.c

2006-02-02 Thread Maxime Henrion
mux 2006-02-02 19:02:42 UTC FreeBSD projects repository Modified files: csup proto.c Log: Slightly rework proto_connect() so that: - We don't print an error if the socket() call fails with EPROTONOTSUPP. Since we use getaddrinfo() in csup, we may get sev

cvs commit: projects/csup proto.c

2006-02-02 Thread Maxime Henrion
mux 2006-02-02 18:29:38 UTC FreeBSD projects repository Modified files: csup proto.c Log: - Factor the code to escape and send a string in proto_escape(). - Both proto_unescape() and proto_escape() functions weren't handling the '\r' character, this is n

cvs commit: projects/csup proto.c

2006-02-01 Thread Maxime Henrion
mux 2006-02-02 00:05:04 UTC FreeBSD projects repository Modified files: csup proto.c Log: I don't know what I was on when I originally wrote proto_printf(), but it must have been some good stuff :-). Make this function much simpler by using stream_printf(

cvs commit: projects/csup proto.c

2006-02-01 Thread Maxime Henrion
mux 2006-02-01 21:03:35 UTC FreeBSD projects repository Modified files: csup proto.c Log: - Implement the %x and %o formats in proto_printf(). - Use proto_printf() in all places where we talk to the server. Revision ChangesPath 1.54 +25 -18

cvs commit: projects/csup proto.c

2006-01-25 Thread Maxime Henrion
mux 2006-01-26 04:10:45 UTC FreeBSD projects repository Modified files: csup proto.c Log: Don't pass a read function to stream_fdopen() here since we're only going to write to the stream. Revision ChangesPath 1.51 +1 -1 projects/csup/pr