This commit was manufactured by cvs2svn to create tag
[heimdal.git] / lib / roken / ChangeLog
blob8075a844b3fca5500c5eaf28450fa12b0cda560f
1 2001-07-03  Assar Westerlund  <assar@sics.se>
3         * Makefile.am (libroken_la_LDFLAGS:) set version to 13:0:4
5 2001-06-21  Assar Westerlund  <assar@sics.se>
7         * simple_exec.c (pipe_execv): remove unused variable
9 2001-06-20  Johan Danielsson  <joda@pdc.kth.se>
11         * getdtablesize.c: fix typo in obviously never used sysctl case
13         * simple_exec.c: rename check_status to wait_for_process, and
14         export it; function pipe_execv similar to popen, but with more
15         control over input and output
17         * roken-common.h: prototypes for wait_for_process and pipe_execv
19 2001-06-17  Assar Westerlund  <assar@sics.se>
21         * roken-common.h: move emalloc et al to roken.h.in
22         * Makefile.am: make emalloc,ecalloc,erealloc,estrdup conditional
23         * emalloc.c, erealloc.c, estrup.c: use errx, since errno might not
24         be set reliably
25         * ecalloc.c: add for symmetry
27 2001-06-09  Johan Danielsson  <joda@pdc.kth.se>
29         * resolve.c: dns_srv_order to order srv records
31 2001-06-08  Johan Danielsson  <joda@pdc.kth.se>
33         * getarg.c: Grog tries to figure out if to use mdoc.old instead of
34         mdoc by looking at some macros that were only present in the old
35         version, and by looking at the number of .Oo's present. In
36         mdoc.old .Oo was a toggle, but in mdoc it's closed by .Oc, so if
37         the number of .Oo's is bigger than the number of .Oc's, it figures
38         it must be mdoc.old. This doesn't however account for called Oc's,
39         and thus grog thinks that valid pages are mdoc.old when they
40         infact are mdoc. So let's make sure that Oc's are not called by
41         other macros.
43 2001-05-29  Assar Westerlund  <assar@sics.se>
45         * base64-test.c (main): initialize numerr
47 2001-05-28  Johan Danielsson  <joda@pdc.kth.se>
49         * base64.c: clean up the decode mess somewhat
51         * base64-test.c: base64 tests
53 2001-05-18  Johan Danielsson  <joda@pdc.kth.se>
55         * roken.h.in: just use standard C types with bswap*
57         * bswap.c: just use standard C types
59 2001-05-17  Assar Westerlund  <assar@sics.se>
61         * roken.h.in: include all the headers that AC_GROK_TYPES tries for
62         finding u_int17_t et al
64         * Makefile.am: bump version to 12:0:3
65         * roken.h.in: re-add set_progname and get_progname for backwards
66         compatability
67         * warnerr.c: re-add set_progname and get_progname for backwards
68         compatability
70 2001-05-12  Assar Westerlund  <assar@sics.se>
72         * glob.c: add limits.h, from <shadow@dementia.org>
74 2001-05-11  Johan Danielsson  <joda@pdc.kth.se>
76         * Makefile.am: bswap.c
77         
78         * bswap.c: bswap{16,32}
79         
80 2001-05-08  Assar Westerlund  <assar@sics.se>
82         * freeaddrinfo.c (freeaddrinfo): also free every `struct
83         addrinfo'.  from <tmartin@mirapoint.com>
85 2001-04-25  Assar Westerlund  <assar@sics.se>
87         * getarg.h (free_getarg_strings): add prototype
88         * getarg.c (free_getarg_strings): add function
90 2001-04-21  Johan Danielsson  <joda@pdc.kth.se>
92         * getarg.c: pack short flag options togther, to shorten the usage
93         string
95 2001-04-17  Johan Danielsson  <joda@pdc.kth.se>
97         * getifaddrs.c (getifaddrs2): close socket when done
99 2001-03-26  Johan Danielsson  <joda@pdc.kth.se>
101         * roken.awk: END has to be last with Sun's awk
103 2001-03-26  Assar Westerlund  <assar@sics.se>
105         * parse_units.c (parse_something): do not check the return value
106         from strtod, it might return != 0.0 when the string has no digits.
107         just testing if it consumed any characters is enough and more
108         resilient
109         * glob.c: add GLOB_LIMIT (from NetBSD)
111 2001-02-20  Assar Westerlund  <assar@sics.se>
113         * warnerr.c (warnerr): do not use __progname
114         * roken.h.in (setprogname, getprogname): add prototypes
115         * warnerr.c (setprogname, getprogname): rename to. change all
116         callers
117         
118 2001-02-12  Assar Westerlund  <assar@sics.se>
120         * getnameinfo_verified.c (getnameinfo_verified): do the first
121         getnameinfo with NI_NUMERICSERV to avoid the error that bind 8.2.3
122         reports on not finding the service
123         (ENI_NOSERVNAME).  reported by Ake Sandgren <ake@cs.umu.se>
125 2001-02-09  Assar Westerlund  <assar@sics.se>
127         * getnameinfo.c (doit): call inet_ntop with correct af, noted by
128         Ake Sandgren <ake@cs.umu.se>
130 2001-02-08  Assar Westerlund  <assar@sics.se>
132         * getnameinfo_verified.c (getnameinfo_verified): always capture
133         the service from getnameinfo so it can be sent back to getaddrinfo
134         and set socktype to avoid getaddrinfo not returning any addresses
136 2001-01-30  Assar Westerlund  <assar@sics.se>
138         * Makefile.am (libroken_la_LDFLAGS): bump version to 11:1:2
139         * print_version.c (print_version): add 2001
141 2001-01-29  Assar Westerlund  <assar@sics.se>
143         * getifaddrs.c (getifaddrs2): copy the entire sockaddr
145         * roken-common.h (_PATH_BSHELL): add
147 2001-01-27  Assar Westerlund  <assar@sics.se>
149         * roken.h.in: move __attribute__ to roken-common.h
151         * esetenv.c (esetenv): cast to handle a setenv that takes a `char
152         * which is the case on Unicos
154 2000-12-29  Assar Westerlund  <assar@sics.se>
156         * Makefile.am (EXTRA_libroken_la_SOURCES): ifaddrs.h ->
157         ifaddrs.hin
159 2000-12-25  Assar Westerlund  <assar@sics.se>
161         * getarg.c (print_arg): add a case for arg_strings
163 2000-12-15  Johan Danielsson  <joda@pdc.kth.se>
165         * snprintf.c (append_string): handle NULL strings by printing
166         `(null)'
168 2000-12-12  Johan Danielsson  <joda@pdc.kth.se>
170         * roken-common.h: add c++ externs
172         * roken.h.in: fix last commit differently
174 2000-12-11  Assar Westerlund  <assar@sics.se>
176         * err.hin (warnerr): remove, it's not part of the err.h interface
177         * roken-common.h (warnerr): moved here from err.hin
178         * Makefile.am (libroken_la_LDFLAGS): set version to 11:0:2
179         * vis.c: s/u_int32_t/unsigned/ for systems that do not define
180         u_int32_t
182 2000-12-10  Johan Danielsson  <joda@pdc.kth.se>
184         * Makefile.am: rename some headers to avoid conflict with possible
185         system headers
187 2000-12-06  Johan Danielsson  <joda@pdc.kth.se>
189         * vis.c: make sure _DIAGASSERT is defined
191         * unvis.c: make sure _DIAGASSERT is defined
193         * Makefile.am: unvis.c, and vis.h
195         * vis.h: vis.h from NetBSD
197         * unvis.c: unvis from NetBSD
199         * roken.h.in: cleanup previous
201         * roken-common.h: make `extern "C"' into a macro, this make emacs
202         much happier
204         * vis.c: strvis implementation from NetBSD
206         * roken.h.in: add prototypes for strvis*
208 2000-12-05  Johan Danielsson  <joda@pdc.kth.se>
210         * ifaddrs.h: fix freeifaddrs prototype, and add ifa_broadaddr
211         macro
213         * getifaddrs.c: free some memory
215 2000-12-04  Johan Danielsson  <joda@pdc.kth.se>
217         * ifaddrs.h: getifaddrs implementation using SIOCGIFCONFIG etc
219         * getifaddrs.c: getifaddrs implementation using SIOCGIFCONFIG etc
221 2000-10-08  Assar Westerlund  <assar@sics.se>
223         * mini_inetd.c (mini_inetd): check that fds are not too large to
224         select on
226 2000-09-24  Assar Westerlund  <assar@sics.se>
228         *  esetenv.c: new file/function
230 2000-08-16  Assar Westerlund  <assar@sics.se>
232         * Makefile.am: bump version to 10:0:1
234 2000-08-10  Assar Westerlund  <assar@sics.se>
236         * mini_inetd.c (accept_it): type-correctness on parameters to
237         accept
239 2000-08-07  Johan Danielsson  <joda@pdc.kth.se>
241         * roken.h.in: add proto compat for getsockname
243 2000-08-04  Johan Danielsson  <joda@pdc.kth.se>
245         * write_pid.c: conditionalise pidfile
247         * write_pid.c: add pidfile function
249 2000-07-25  Johan Danielsson  <joda@pdc.kth.se>
251         * Makefile.am: bump version to 9:0:0
253         * warnerr.c: add get_progname
255 2000-07-24  Assar Westerlund  <assar@sics.se>
257         * getaddrinfo.c (add_hostent): if there's no fqdn in `he' try
258         reverse resolving to see if there's a fuller name there.  don't
259         use just-freed memory
261 2000-07-22  Assar Westerlund  <assar@sics.se>
263         * xdbm.h: do not define ndbm functions in terms of dbm functions
264         if we're using db
266 2000-07-20  Assar Westerlund  <assar@sics.se>
268         * rtbl.c (rtbl_format): avoid printing an empty row at the end
270 2000-07-19  Johan Danielsson  <joda@pdc.kth.se>
272         * Makefile.am: make this compatible with `make dist'
274         * Makefile.am: revert version number for now
276 2000-07-18  Johan Danielsson  <joda@pdc.kth.se>
278         * configure.in: AM_PROG_LIBTOOL -> AC_PROG_LIBTOOL
280 2000-07-17  Johan Danielsson  <joda@pdc.kth.se>
282         * Makefile.am: set ACLOCAL_AMFLAGS
284 2000-07-15  Johan Danielsson  <joda@pdc.kth.se>
286         * getaddrinfo_hostspec.c: add new function that takes socktype
287         hint as parameter
289 2000-07-09  Assar Westerlund  <assar@sics.se>
291         * rtbl.c (rtbl_add_column): initialize `col' completely
293         * configure.in: bring headers and functions more in-line with
294         what's actually being used
296 2000-07-08  Johan Danielsson  <joda@pdc.kth.se>
298         * roken.h.in: declare ether_addr and sockaddr_dl for AIX
300         * rtbl.{c,h}: simple table functions
302 2000-07-08  Assar Westerlund  <assar@sics.se>
304         * configure.in (AM_INIT_AUTOMAKE): bump version to 10
305         * configure.in (AC_BROKEN): add strsep_copy
306         * Makefile.am (ACLOCAL): fetch files from cf
308 2000-07-01  Assar Westerlund  <assar@sics.se>
310         * roken-common.h (pid_file_*): fix protos
312 2000-06-28  Assar Westerlund  <assar@sics.se>
314         * getnameinfo_verified.c (getnameinfo_verified): free memory
315         returned from getaddrinfo
317 2000-06-27  Assar Westerlund  <assar@sics.se>
319         * resolve.c: export string_to_type and type_to_string
320         * resolve.c: add key,sig,cert update test-program
321         * resolve.h: add key,sig,cert
323 2000-06-21  Assar Westerlund  <assar@sics.se>
325         * resolve.h: add T_SIG, T_KEY
326         * resolve.c: add SIG and KEY
327         * Makefile.am (libroken_la_SOURCES): add environment.c and
328         write_pid.c
330         * write_pid.c: new file for writing a pid file.
332         * environment.c: new file with functionality for reading
333         /etc/environment.  From Ake Sandgren <ake@cs.umu.se>
335 2000-06-12  Johan Danielsson  <joda@pdc.kth.se>
337         * strsep_copy.c: strsep, but with const stringp so returns string
338         in separate buffer
340 2000-05-23  Assar Westerlund  <assar@sics.se>
342         * vsyslog.c (vsyslog): calculate length of new format string
343         correctly
345 2000-05-22  Johan Danielsson  <joda@pdc.kth.se>
347         * getusershell.c: implment the AIX version use
348         /etc/security/login.cfg
350 2000-05-21  Assar Westerlund  <assar@sics.se>
352         * vsyslog.c (vsyslog): actually handle `%m'
354 2000-05-15  Assar Westerlund  <assar@sics.se>
356         * Makefile.am (libroken_la_LDFLAGS): set version to 8:1:3
358         * roken-common.h: moved __attribute__ to roken.h.in
360 2000-04-14  Assar Westerlund  <assar@sics.se>
362         * getaddrinfo_hostspec.c (roken_getaddrinfo_hostspec): copy the
363         correct length from `hostspec'.  based on a patch from Love
364         <lha@s3.kth.se>
366 2000-04-09  Assar Westerlund  <assar@sics.se>
368         * xdbm.h: only include one of db.h and the dbm-series
370 2000-04-05  Assar Westerlund  <assar@sics.se>
372         * resolve.c (_resolve_debug): explicitly set to zero.  this moves
373         the variable from bss to data and the dynamic linker on MacOS
374         X/Darwin seems unhappy with stuff in the bss segment.
376 2000-04-03  Assar Westerlund  <assar@sics.se>
378         * Makefile.am: set version to 8:0:3
380 2000-03-11  Assar Westerlund  <assar@sics.se>
382         * roken.h.in (_SS_PAD1SIZE): try to write an inpenetrable
383         expression that also works on Crays
385 2000-03-09  Assar Westerlund  <assar@sics.se>
387         * getarg.c (arg_match_short): backup optind when there's a missing
388         argument so that the error can point at the flag and not the
389         non-existant argument
391 2000-03-03  Assar Westerlund  <assar@sics.se>
393         * Makefile.in (SOURCES): add timeval.c
394         * Makefile.am (libroken_la_SOURCES): add timeval.c
395         * timeval.c: new file
397 2000-02-19  Assar Westerlund  <assar@sics.se>
399         * Makefile.am: set version to 7:1:2
400         
401 2000-02-16  Assar Westerlund  <assar@sics.se>
403         * snprintf.c (PARSE_INT_FORMAT): note that shorts are actually
404         transmitted as ints
405         (according to the integer protomotion rules) in variable arguments
406         lists.  Therefore, we should not call va_arg with short but rather
407         with int.  See <http://www.debian.org/Bugs/db/57/57919.html> for
408         original bug report
410 2000-02-13  Assar Westerlund  <assar@sics.se>
412         * Makefile.am: bump version to 7:0:2
414         * getarg.c (mandoc_template): also fix no- prefix in .Sh OPTIONS
415         * getarg.c (mandoc_template): better man-stuff for negative
416         options
418 2000-02-07  Assar Westerlund  <assar@sics.se>
420         * Makefile.am: set version to 6:0:1
422 2000-02-06  Assar Westerlund  <assar@sics.se>
424         * xdbm.h: hopefully catch a few more declarations by including
425         <ndbm.h> even if <db.h> was found
427 2000-01-26  Assar Westerlund  <assar@sics.se>
429         * mini_inetd.c (mini_inetd): separate number of allocated sockets
430         and number of actual ones
431         * mini_inetd.c (mini_inetd): count sockets properly.  and fail if
432         we cannot bind any
433         * mini_inetd.c (mini_inetd): make failing to create a socket
434         non-fatal
436 2000-01-09  Assar Westerlund  <assar@sics.se>
438         * Makefile.am(libroken_la_SOURCES): add strcollect.c
439         * Makefile.in: add strcollect.[co]
440         * simple_exec.c: use vstrcollect
441         * roken-common.h (_PATH_DEV): add
442         (strcollect, vstrcollect): add prototypes
443         * strcollect.c: new file.  functions for collapsing an `va_list'
444         into an `char **'
446 2000-01-06  Assar Westerlund  <assar@sics.se>
448         * Makefile.am: bump version to 5:0:0
450 1999-12-30  Assar Westerlund  <assar@sics.se>
452         * Makefile.am (strpftime_test_SOURCES): correct source file name
454         * roken.h.in (sockaddr_storage): change padding so that we have
455         one char[] of pad and then an unsigned long[] (for alignment and
456         padding).  this works much better in practice.
458 1999-12-22  Assar Westerlund  <assar@sics.se>
460         * roken.h.in (sockaddr_storage): drop leading underscore on
461         `public' fields.  this was the consensus on the ipng mailing list
463 1999-12-21  Assar Westerlund  <assar@sics.se>
465         * Makefile.am (strpftime-test): define sources to avoid having
466         '.o'
467         * Makefile.am (print_version.h): use $(EXEEXT)
468         * Makefile.am (roken.h): add $(EXEEXT) to make this work on cygwin
469         et al
471 1999-12-20  Assar Westerlund  <assar@sics.se>
473         * Makefile.am (libroken_la_LDFLAGS): bump version to 4:3:0
475         * getaddrinfo.c (get_nodes): use getipnodebyname instead of
476         gethostbyname(2)
478 1999-12-16  Assar Westerlund  <assar@sics.se>
480         * Makefile.am (libroken_la_LDFLAGS): bump version to 4:2:0
482         * roken.h.in (struct sockaddr_storage): redefine with the example
483         code from rfc2553
485         * getaddrinfo.c (get_null): set loopback with correct endianess
486         for v4.  dunno about v6.
488 1999-12-13  Assar Westerlund  <assar@sics.se>
490         * roken.h.in: add prototypes for str[pf]time
492         * signal.c: macosx = rhapsody ~= nextstep also can't handle
493         various definitions of the same symbol.
495 1999-12-12  Assar Westerlund  <assar@sics.se>
497         * Makefile.am: bump version to 4:1:0
499 1999-12-06  Assar Westerlund  <assar@sics.se>
501         * Makefile.am: bump version to 4:0:0
503 1999-12-05  Assar Westerlund  <assar@sics.se>
505         * Makefile.in: replace inaddr2str with getnameinfo_verified
507         * roken-common.h (INADDR_LOOPBACK): add fallback definition
509         * roken-common.h: move getnameinfo_verified to roken.h.in
510         * roken.h.in (inaddr2str): remove
511         * Makefile.am (libroken_la_SOURCES); removed inaddr2str
512         * roken-common.h (getnameinfo_verified): add prototype
513         * getnameinfo_verified.c: new file
515 1999-12-04  Assar Westerlund  <assar@sics.se>
517         * roken-common.h: add constants for getaddrinfo, getnameinfo
518         * roken.h.in (socklen_t): make independent of sockaddr_storage
519         (AI_*, NI_*, EAI_*): move to roken-common.h
521 1999-12-03  Assar Westerlund  <assar@sics.se>
523         * mini_inetd.c (mini_inted): rewrite to use `getaddrinfo'
524         * getaddrinfo.c (const_v*): no sizeof(sizeof())
525         * getaddrinfo.c (add_hostent): search for the canonical name among
526         all aliases
527         (getaddrinfo): handle AI_NUMERICHOST correctly
528         * Makefile.am (EXTRA_libroken_la_SOURCES): add freeaddinfo,
529         getaddrinfo, getnameinfo, gai_strerror
530         (getaddrinfo_test): add
531         * Makefile.in (SOURCES): add freeaddinfo, getaddrinfo,
532         getnameinfo, gai_strerror
533         (getaddrinfo_test): add
534         * roken.h.in: arpa/inet.h: include
535         (socklen_t): add
536         (struct addrinfo): add
537         (EAI_*): add
538         (NI_*): add
539         (AI_*): add
540         (getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror): add
541         * getnameinfo.c: new file
542         * getaddrinfo-test.c: new file
543         * gai_strerror.c: new file
544         * getaddrinfo.c: new file
545         * freeaddrinfo.c: new file
547 1999-11-25  Assar Westerlund  <assar@sics.se>
549         * getopt.c (getopt): return -1 instead of EOF.  From
550         <art@stacken.kth.se>
552 1999-11-13  Assar Westerlund  <assar@sics.se>
554         * strftime.c (strftime): handle `%z' and `%Z' in a tm_gmtoff-less
555         world
557         * getcap.c: make sure to use db only if we have both the library
558         and the header file
559         
560 1999-11-12  Assar Westerlund  <assar@sics.se>
562         * getarg.h: add arg_counter
563         * getarg.c: add a new type of argument: `arg_counter' re-organize
564         the code somewhat
565         
566         * Makefile.am: add strptime and strpftime-test
567         
568         * snprintf.c (xyzprintf): try to do the right thing with an % at
569         the end of the format string
570         
571         * strptime.c (strptime): implement '%U', '%V', '%W'
572         * strftime.c (strftime): implement '%U', '%V', '%W', '%z'
573         
574         * strftime.c (strftime): correct %E and %O handling.  do something
575         reasonable with "...%"
577         * strftime.c: replace the BSD implementation by one of our own
578         coding
580         * strptime.c : new file
581         * strpftime-test.c: new file
583 1999-11-07  Assar Westerlund  <assar@sics.se>
585         * parse_bytes-test.c: new file
587         * Makefile.am: add parse_bytes-test
589         * parse_units.c (parse_something): try to handle the case of no
590         value specified a little bit better
592 1999-11-04  Assar Westerlund  <assar@sics.se>
594         * Makefile.am: bump version to 3:2:0
596 1999-10-30  Assar Westerlund  <assar@sics.se>
598         * snprintf.c (PARSE_INT_FORMAT): add redundant casts to work
599         around a gcc-bug that manifests itself on Linux-PPC.  From Tom
600         Rini <trini@kernel.crashing.org>
602 1999-10-28  Assar Westerlund  <assar@sics.se>
604         * Makefile.am: bump version to 3:1:0
606         * roken.h.in: use `unsigned char' instead of `u_int8_t' to avoid
607         having to have that definition.  this is the easy way out instead
608         of getting the definition here where it's needed.  flame me.
610 Fri Oct 22 15:39:31 1999  Bjoern Groenvall  <bg@sics.se>
612         * k_getpwuid.c (k_getpwuid): getspuid() does not exist (even
613         though it should), use getspnam().
615 1999-10-20  Assar Westerlund  <assar@sics.se>
617         * Makefile.am: set version to 3:0:0
619 1999-10-18  Johan Danielsson  <joda@pdc.kth.se>
621         * getarg.3: document arg_collect
623         * getarg.c: change the way arg_collect works; it's still quite
624         horrible though
626         * getarg.h: change type of the collect function
628 1999-10-17  Assar Westerlund  <assar@sics.se>
630         * xdbm.h: undo last commit
632         * xdbm.h: reorder db includes
634 1999-10-10  Assar Westerlund  <assar@sics.se>
636         * socket.c: const-ize and comment
638         * net_write.c: const-ize
640         * base64.c: const-ize
642 1999-10-06  Assar Westerlund  <assar@sics.se>
644         * getarg.c (getarg): also set optind when returning error
646 1999-09-26  Assar Westerlund  <assar@sics.se>
648         * Makefile.am: add parse_bytes.[ch]
650 1999-09-24  Johan Danielsson  <joda@pdc.kth.se>
652         * getarg.3: getarg manpage
654         * getarg.{c,h}: add a callback type to do more complicated processing
656         * getarg.{c,h}: add floating point support
658 1999-09-16  Assar Westerlund  <assar@sics.se>
660         * strlcat.c (strlcat): call strlcpy
662         * strlcpy.c: update name and prototype
664         * strlcat.c: update name and prototype
666         * roken.h.in: rename strc{py,at}_truncate to strlc{py,at}
668         * Makefile.am: rename strc{py,at}_truncate -> strlc{py,at}
670         * Makefile.in: rename strc{py,at}_truncate -> strlc{py,at}
672         * strcpy_truncate.c (strcpy_truncate): change return value to be
673         the length of `src'
675 1999-08-16  Assar Westerlund  <assar@sics.se>
677         * getcap.c: try to make this work on systems with DB
679 1999-08-16  Johan Danielsson  <joda@pdc.kth.se>
681         * getcap.c: protect from db-less systems
683 1999-08-09  Johan Danielsson  <joda@pdc.kth.se>
685         * simple_exec.c: add simple_exec{ve,le}
687         * getcap.c: getcap from NetBSD
689 1999-08-06  Assar Westerlund  <assar@sics.se>
691         * roken.h.in (sockaddr_storage): cater for those that have
692         v6-support also
694 1999-08-05  Assar Westerlund  <assar@sics.se>
696         * inet_ntop.c (inet_ntop_v4): remember to call ntohl
698 1999-08-04  Assar Westerlund  <assar@sics.se>
700         * roken-common.h: add shutdown constants
702         * mini_inetd.c (listen_v4, listen_v6): handle the case of the
703         protocol not being supported
705 1999-08-01  Assar Westerlund  <assar@sics.se>
707         * mini_inetd.c (socket_set_reuseaddr): remove duplicate
709 1999-07-29  Assar Westerlund  <assar@sics.se>
711         * mini_inetd.c (mini_inetd): fix my stupid bugs
713 1999-07-28  Assar Westerlund  <assar@sics.se>
715         * roken-common.h: add socket* functions
717         * Makefile.am (libroken_la_SOURCES): add socket.c
719         * socket.c: new file, originally from appl/ftp/common
721         * Makefile.am: set version to 2:0:2
723         * roken.h.in (inet_pton): add prototype
725         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_pton
727         * inet_pton.c: new file
729         * getipnodebyname.c (getipnodebyname): try gethostbyname2 if we
730         have it
732 1999-07-27  Assar Westerlund  <assar@sics.se>
734         * mini_inetd.c: support IPv6
736 1999-07-26  Assar Westerlund  <assar@sics.se>
738         * Makefile.am: set version to 1:0:1
740         * roken.h.in (inet_ntop): add prototype
742         * roken-common.h: (INET{,6}_ADDRSTRLEN): add
744         * inet_ntop.c: new file
746         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_ntop.c
748         * Makefile.am: move some files from libroken_la_SOURCES to
749         EXTRA_libroken_la_SOURCES
751         * snprintf.c: some signed vs unsigned casts
752         
753 1999-07-24  Assar Westerlund  <assar@sics.se>
755         * roken.h.in (struct sockaddr_storage): define it needed
757 1999-07-19  Assar Westerlund  <assar@sics.se>
759         * Makefile.am (libroken_la_SOURCES): add copyhostent.c,
760         freehostent.c, getipnodebyname.c, getipnodebyaddr.c
761         
762         * roken.h.in: <netdb.h>: include
763         (copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add
764         prototypes
766         * roken-common.h: new constants for getipnodeby*
768         * Makefile.in (SOURCES): add freehostent, copyhostent,
769         getipnodebyname, getipnodebyaddr
771         * freehostent.c: new file
773         * copyhostent.c: new file
775         * getipnodebyaddr.c: new file
777         * getipnodebyname.c: new file
779 1999-07-13  Assar Westerlund  <assar@sics.se>
781         * roken.h.in (k_getpwnam): update prototype
783         * k_getpwnam.c (k_getpwnam): const-ize
785         * get_default_username.c (get_default_username): a better way of
786         guessing when the user has su:ed
788 1999-07-08  Johan Danielsson  <joda@pdc.kth.se>
790         * roken.awk: use puts, as suggested by Jeffrey Hutzelman
791         <jhutz+@cmu.edu>
793 1999-07-06  Assar Westerlund  <assar@sics.se>
795         * readv.c (readv): typo
797 1999-07-03  Assar Westerlund  <assar@sics.se>
799         * writev.c (writev): error check malloc properly
801         * sendmsg.c (sendmsg): error check malloc properly
803         * resolve.c (parse_reply): error check malloc properly
805         * recvmsg.c (recvmsg): error check malloc properly
807         * readv.c (readv): error check malloc properly
809 1999-06-23  Assar Westerlund  <assar@sics.se>
811         * parse_units.c (acc_units): move the special case of 0 -> 1 to
812         parse_something to avoid having it happen at the end of the string
814 1999-06-15  Assar Westerlund  <assar@sics.se>
816         * Makefile.in: add get_default_username
818         * get_default_username.c: new file
820         * roken.h.in (get_default_username): add prototype
822         * Makefile.am: add get_default_username
824 1999-05-08  Assar Westerlund  <assar@sics.se>
826         * xdbm.h: also try <db.h> with DB_DBM_HSEARCH == 1
828         * strnlen.c (strnlen): update prototype
830         * Makefile.am: strndup.c: add
832         * Makefile.in: strndup.c: add
834         * roken.h.in (strndup): add
835         (strnlen): update prototype
837         * strndup.c: new file
839 Fri Apr 16 17:59:30 1999  Assar Westerlund  <assar@sics.se>
841         * roken.h.in: include strsep prototype if needed
843 Thu Apr 15 14:04:03 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
845         * Makefile.am: make make-print-version.o depend on version.h
847 Wed Apr  7 14:11:00 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
849         * Makefile.am: make it compile w/o krb4
851 Sat Mar 27 17:33:03 1999  Johan Danielsson  <joda@blubb.pdc.kth.se>
853         * snprintf.c (vasnprintf): correct check if realloc returns NULL
855 Sat Mar 27 12:37:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
857         * Makefile.am: link print_version with -ldes to avoid unresolved
858         references if -lkrb is shared
860 Sat Mar 20 03:42:30 1999  Assar Westerlund  <assar@sics.se>
862         * roken-common.h (eread, ewrite): add
864         * simple_exec.c: add <roken.h>
866 Fri Mar 19 21:29:58 1999  Assar Westerlund  <assar@sics.se>
868         * Makefile.in: add eread, ewrite
870         * eread.c, ewrite.c: new files
872         * Makefile.am (libroken_la_SOURCES): add eread and ewrite
874 Fri Mar 19 14:52:57 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
876         * Makefile.am: add version-info
878 Thu Mar 18 12:53:32 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
880         * Makefile.am: remove include_dir hack
882         * Makefile.am: parse_units.h
884         * Makefile.am: include Makefile.am.common
886 Sat Mar 13 23:31:35 1999  Assar Westerlund  <assar@sics.se>
888         * Makefile.in (SOURCES): add glob.c
890 Thu Mar 11 15:02:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
892         * iruserok.c: move innetgr() to separate file
894         * innetgr.c: move innetgr() to separate file
896         * hstrerror.c (hstrerror): add const to return type
898         * erealloc.c: fix types in format string
900         * emalloc.c: fix types in format string
902 Wed Mar 10 16:36:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
904         * resolve.c: ugly fix for crays
906 Mon Mar  8 11:52:20 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
908         * roken.h.in: protos for {un,}setenv
910 1999-02-16  Assar Westerlund  <assar@sics.se>
912         * Makefile.in (SOURCES): add fnmatch
914         * roken-common.h (abs): add
916 Sat Feb 13 17:12:53 1999  Assar Westerlund  <assar@sics.se>
918         * emalloc.c, erealloc.c, estrup.c: new files
920         * roken.h.in (mkstemp, gethostname): also includes prototypes if
921         they are needed.
923 1998-12-23  Assar Westerlund  <assar@sics.se>
925         * roken.h.in: mkstemp: add prototype
927 1998-12-20  Assar Westerlund  <assar@sics.se>
929         * snprintf.c, iruserok.c, parse-units.c: unsigned char-correctness
931         * roken.h.in (inet_aton): also chedk NEED_INET_ATON_PROTO
933         * roken-common.h: __attribute__: check for autoconf'd
934         HAVE___ATTRIBUTE__ instead of GNUC
936 Sun Dec  6 19:53:21 1998  Assar Westerlund  <assar@sics.se>
938         * parse_units.c (parse_something): func is called with val == 0 if
939         no unit was given
940         (acc_flags, acc_units): update to new standard
942 Fri Nov 27 03:09:42 1998  Assar Westerlund  <assar@sics.se>
944         * resolve.c (stot): constify
945         (type_to_string): always declare
946         (dns_lookup_int): correct debug output
948 Thu Nov 26 23:43:55 1998  Assar Westerlund  <assar@sics.se>
950         * resolve.c (dns_lookup_int): send rr_class to res_search
952 Thu Nov 26 17:09:47 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
954         * resolve.c: some cleanup
956         * resolve.h: add T_NAPTR
958 Sun Nov 22 10:23:07 1998  Assar Westerlund  <assar@sics.se>
960         * Makefile.in (WFLAGS): set
962         * k_getpwnam.c (k_getpwnam): check for `struct spwd'
964         * k_getpwuid.c (k_getpwuid): check for `struct spwd'
966 Tue Sep  8 05:18:31 1998  Assar Westerlund  <assar@sics.se>
968         * recvmsg.c (recvmsg): patch from bpreece@unity.ncsu.edu
970 Fri Sep  4 16:29:27 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
972         * vsyslog.c: asprintf -> vasprintf
974 Tue Aug 18 22:25:52 1998  Assar Westerlund  <assar@sics.se>
976         * getarg.h (arg_printusage): new signature
978         * getarg.c (arg_printusage): new parameter `progname'.  NULL means
979         __progname.
981 Sun Aug  9 14:53:44 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
983         * Makefile.am: net_{read,write}.c
985 Fri Jul 24 21:56:02 1998  Assar Westerlund  <assar@sics.se>
987         * simple_exec.c (simple_execvp): loop around waitpid when errno ==
988         EINTR
990 Thu Jul 23 20:24:35 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
992         * Makefile.am: net_{read,write}.c
994 Wed Jul 22 21:38:35 1998  Assar Westerlund  <assar@sics.se>
996         * simple_exec.c (simple_execlp): initialize `argv'
998 Mon Jul 13 23:01:22 1998  Assar Westerlund  <assar@sics.se>
1000         * inaddr2str.c (inaddr2str): don't advance hostent->h_addr_list,
1001         use a copy instead
1003 Fri Jul 10 01:20:08 1998  Assar Westerlund  <assar@sics.se>
1005         * roken.h.in (net_write, net_read): add prototypes
1007         * Makefile.in: net_{read,write}.c: add
1009         * net_{read,write}.c: new files
1011 Tue Jun 30 17:29:09 1998  Assar Westerlund  <assar@sics.se>
1013         * roken.h.in (issuid): add
1015         * get_window_size.c: fix misspelling of TIOCGWINSZ and bad use of
1016         fields
1018 Sun May 31 03:24:34 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1020         * getarg.c (mandoc_template): Put short and long options in
1021         SYNOPSIS within the same [ ] pair.
1023 Sat May 30 00:13:01 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1025         * getarg.c (arg_printusage): try to keep options shorter than
1026         column width
1028         * get_window_size.c (get_window_size): check COLUMNS and LINES
1030 Fri May 29 00:05:04 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1032         * getarg.c (mandoc_template): Put short and long options in
1033         DESCRIPTION on the same line.
1035         * getarg.c (arg_match_long): make sure you only get an exact match
1036         if the strings are the same length
1038 Thu May 14 02:23:40 1998  Assar Westerlund  <assar@sics.se>
1040         * roken.awk: stupid cray awk wants \#
1042 Fri May  1 01:29:36 1998  Assar Westerlund  <assar@sics.se>
1044         * print_version.c (print_version): according to ISO/ANSI C the
1045         elements of `arg' are not constant and therefore not settable at
1046         compile-time.  Set the at run-time instead.
1048 Sun Apr 19 10:00:06 1998  Assar Westerlund  <assar@sics.se>
1050         * roken.h.in: include paths.h
1052 Sun Apr  5 12:30:49 1998  Assar Westerlund  <assar@sics.se>
1054         * Makefile.in (SOURCES): add roken_gethostby.c to make solaris
1055         make happy
1057 Thu Mar 19 20:41:25 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1059         * simple_exec.c: Simple fork+exec system() replacement.
1061 Fri Mar  6 00:21:53 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1063         * roken_gethostby.c: Make `roken_gethostby_setup' take url-like
1064         specification instead of split up versions. Makes it easier for
1065         calling applications.
1067         * roken_gethostby.c: Another miracle of the 20th century:
1068         gethostby* over HTTP.
1070 Sat Feb 21 15:18:36 1998  assar westerlund  <assar@sics.se>
1072         * parse_time.c (unparse_time_approx): new function that calls
1073         `unparse_units_approx'
1075         * parse_units.c (unparse_units_approx): new function that will
1076         only print the first unit.
1078         * Makefile.in: include parse_{time,units}
1080 Thu Feb 12 03:30:08 1998  Assar Westerlund  <assar@sics.se>
1082         * parse_time.c (print_time_table): don't return a void value.
1084 Tue Feb  3 11:06:24 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1086         * getarg.c (mandoc_template): Change date format to full month
1087         name, and day of month without leading zero.
1089 Thu Jan 22 21:23:23 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1091         * getarg.c: Fix long form of negative flags.
1093 Mon Dec 29 23:31:10 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1095         * roken.h.in: Include <err.h>, to get linux __progname.
1097 Sun Dec 21 09:45:18 1997  Assar Westerlund  <assar@sics.se>
1099         * parse_time.c (print_time_table): new function
1101         * parse_units.c (print_flags_table, print_units_table): new
1102         functions.
1104 Thu Dec  4 02:51:46 1997  Assar Westerlund  <assar@sics.se>
1106         * iruserok.c: moved here.
1108         * snprintf.c (sn_append_char): don't write any terminating zero.
1109         (as_reserve): don't loop.  better heuristic for how much space to
1110         realloc.
1111         (vasnprintf): simplify initializing to one.
1113 Sun Nov 30 14:56:59 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1115         * getarg.c: Add mandoc help back-end to getarg.
1117 Wed Nov 12 01:09:17 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1119         * verr.c, verrx.c: Fix warnings by moving exit from.
1121 Tue Nov 11 21:12:09 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1123         * parse_units.c: Change the list of separating characters (between
1124         units) to comma, space, and tab, removing digits. Having digits in
1125         this list makes a flag like `T42 generate a parse error. This
1126         change makes `17m3s' an invalid time-spec (you need a space).
1128 Tue Nov 11 02:38:44 1997  Assar Westerlund  <assar@sics.se>
1130         * roken.h: add <sys/socket.h>
1132 Sun Nov  9 04:48:46 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1134         * fnmatch.c: Add fnmatch from NetBSD
1136 Sun Nov  9 02:00:08 1997  Assar Westerlund  <assar@sics.se>
1138         * parse_units.c (parse_something): ignore white-space and ','
1140 Mon Nov  3 22:38:32 1997  Assar Westerlund  <assar@sics.se>
1141         
1142         * roken.h: fclose prototype
1144         * roken.h: add prototype for vsyslog
1146         * Makefile.in: add some more source files to make soriasis make
1147         happy
1149 Sat Nov  1 00:19:21 1997  Assar Westerlund  <assar@sics.se>
1151         * roken.h: include <sys/uio.h> and <errno.h>.
1152         prototypes for readv and writev
1154         * readv.c, writev.c: new files
1156 Wed Oct 29 02:21:38 1997  Assar Westerlund  <assar@sics.se>
1158         * roken.h: Add ugly macros for openlog, gethostbyname,
1159         gethostbyaddr, and getservbyname for the benefit of Crays.  Add
1160         default definition of MAXPATHLEN