*** empty log message ***
[heimdal.git] / lib / roken / ChangeLog
blob833b342ce83f94777873863541ceff3fa838fd82
1 1999-12-16  Assar Westerlund  <assar@sics.se>
3         * Makefile.am (libroken_la_LDFLAGS): bump version to 4:2:0
5         * roken.h.in (struct sockaddr_storage): redefine with the example
6         code from rfc2553
8         * getaddrinfo.c (get_null): set loopback with correct endianess
9         for v4.  dunno about v6.
11 1999-12-13  Assar Westerlund  <assar@sics.se>
13         * roken.h.in: add prototypes for str[pf]time
15         * signal.c: macosx = rhapsody ~= nextstep also can't handle
16         various definitions of the same symbol.
18 1999-12-12  Assar Westerlund  <assar@sics.se>
20         * Makefile.am: bump version to 4:1:0
22 1999-12-06  Assar Westerlund  <assar@sics.se>
24         * Makefile.am: bump version to 4:0:0
26 1999-12-05  Assar Westerlund  <assar@sics.se>
28         * Makefile.in: replace inaddr2str with getnameinfo_verified
30         * roken-common.h (INADDR_LOOPBACK): add fallback definition
32         * roken-common.h: move getnameinfo_verified to roken.h.in
33         * roken.h.in (inaddr2str): remove
34         * Makefile.am (libroken_la_SOURCES); removed inaddr2str
35         * roken-common.h (getnameinfo_verified): add prototype
36         * getnameinfo_verified.c: new file
38 1999-12-04  Assar Westerlund  <assar@sics.se>
40         * roken-common.h: add constants for getaddrinfo, getnameinfo
41         * roken.h.in (socklen_t): make independent of sockaddr_storage
42         (AI_*, NI_*, EAI_*): move to roken-common.h
44 1999-12-03  Assar Westerlund  <assar@sics.se>
46         * mini_inetd.c (mini_inted): rewrite to use `getaddrinfo'
47         * getaddrinfo.c (const_v*): no sizeof(sizeof())
48         * getaddrinfo.c (add_hostent): search for the canonical name among
49         all aliases
50         (getaddrinfo): handle AI_NUMERICHOST correctly
51         * Makefile.am (EXTRA_libroken_la_SOURCES): add freeaddinfo,
52         getaddrinfo, getnameinfo, gai_strerror
53         (getaddrinfo_test): add
54         * Makefile.in (SOURCES): add freeaddinfo, getaddrinfo,
55         getnameinfo, gai_strerror
56         (getaddrinfo_test): add
57         * roken.h.in: arpa/inet.h: include
58         (socklen_t): add
59         (struct addrinfo): add
60         (EAI_*): add
61         (NI_*): add
62         (AI_*): add
63         (getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror): add
64         * getnameinfo.c: new file
65         * getaddrinfo-test.c: new file
66         * gai_strerror.c: new file
67         * getaddrinfo.c: new file
68         * freeaddrinfo.c: new file
70 1999-11-25  Assar Westerlund  <assar@sics.se>
72         * getopt.c (getopt): return -1 instead of EOF.  From
73         <art@stacken.kth.se>
75 1999-11-13  Assar Westerlund  <assar@sics.se>
77         * strftime.c (strftime): handle `%z' and `%Z' in a tm_gmtoff-less
78         world
80         * getcap.c: make sure to use db only if we have both the library
81         and the header file
82         
83 1999-11-12  Assar Westerlund  <assar@sics.se>
85         * getarg.h: add arg_counter
86         * getarg.c: add a new type of argument: `arg_counter' re-organize
87         the code somewhat
88         
89         * Makefile.am: add strptime and strpftime-test
90         
91         * snprintf.c (xyzprintf): try to do the right thing with an % at
92         the end of the format string
93         
94         * strptime.c (strptime): implement '%U', '%V', '%W'
95         * strftime.c (strftime): implement '%U', '%V', '%W', '%z'
96         
97         * strftime.c (strftime): correct %E and %O handling.  do something
98         reasonable with "...%"
100         * strftime.c: replace the BSD implementation by one of our own
101         coding
103         * strptime.c : new file
104         * strpftime-test.c: new file
106 1999-11-07  Assar Westerlund  <assar@sics.se>
108         * parse_bytes-test.c: new file
110         * Makefile.am: add parse_bytes-test
112         * parse_units.c (parse_something): try to handle the case of no
113         value specified a little bit better
115 1999-11-04  Assar Westerlund  <assar@sics.se>
117         * Makefile.am: bump version to 3:2:0
119 1999-10-30  Assar Westerlund  <assar@sics.se>
121         * snprintf.c (PARSE_INT_FORMAT): add redundant casts to work
122         around a gcc-bug that manifests itself on Linux-PPC.  From Tom
123         Rini <trini@kernel.crashing.org>
125 1999-10-28  Assar Westerlund  <assar@sics.se>
127         * Makefile.am: bump version to 3:1:0
129         * roken.h.in: use `unsigned char' instead of `u_int8_t' to avoid
130         having to have that definition.  this is the easy way out instead
131         of getting the definition here where it's needed.  flame me.
133 Fri Oct 22 15:39:31 1999  Bjoern Groenvall  <bg@sics.se>
135         * k_getpwuid.c (k_getpwuid): getspuid() does not exist (even
136         though it should), use getspnam().
138 1999-10-20  Assar Westerlund  <assar@sics.se>
140         * Makefile.am: set version to 3:0:0
142 1999-10-18  Johan Danielsson  <joda@pdc.kth.se>
144         * getarg.3: document arg_collect
146         * getarg.c: change the way arg_collect works; it's still quite
147         horrible though
149         * getarg.h: change type of the collect function
151 1999-10-17  Assar Westerlund  <assar@sics.se>
153         * xdbm.h: undo last commit
155         * xdbm.h: reorder db includes
157 1999-10-10  Assar Westerlund  <assar@sics.se>
159         * socket.c: const-ize and comment
161         * net_write.c: const-ize
163         * base64.c: const-ize
165 1999-10-06  Assar Westerlund  <assar@sics.se>
167         * getarg.c (getarg): also set optind when returning error
169 1999-09-26  Assar Westerlund  <assar@sics.se>
171         * Makefile.am: add parse_bytes.[ch]
173 1999-09-24  Johan Danielsson  <joda@pdc.kth.se>
175         * getarg.3: getarg manpage
177         * getarg.{c,h}: add a callback type to do more complicated processing
179         * getarg.{c,h}: add floating point support
181 1999-09-16  Assar Westerlund  <assar@sics.se>
183         * strlcat.c (strlcat): call strlcpy
185         * strlcpy.c: update name and prototype
187         * strlcat.c: update name and prototype
189         * roken.h.in: rename strc{py,at}_truncate to strlc{py,at}
191         * Makefile.am: rename strc{py,at}_truncate -> strlc{py,at}
193         * Makefile.in: rename strc{py,at}_truncate -> strlc{py,at}
195         * strcpy_truncate.c (strcpy_truncate): change return value to be
196         the length of `src'
198 1999-08-16  Assar Westerlund  <assar@sics.se>
200         * getcap.c: try to make this work on systems with DB
202 1999-08-16  Johan Danielsson  <joda@pdc.kth.se>
204         * getcap.c: protect from db-less systems
206 1999-08-09  Johan Danielsson  <joda@pdc.kth.se>
208         * simple_exec.c: add simple_exec{ve,le}
210         * getcap.c: getcap from NetBSD
212 1999-08-06  Assar Westerlund  <assar@sics.se>
214         * roken.h.in (sockaddr_storage): cater for those that have
215         v6-support also
217 1999-08-05  Assar Westerlund  <assar@sics.se>
219         * inet_ntop.c (inet_ntop_v4): remember to call ntohl
221 1999-08-04  Assar Westerlund  <assar@sics.se>
223         * roken-common.h: add shutdown constants
225         * mini_inetd.c (listen_v4, listen_v6): handle the case of the
226         protocol not being supported
228 1999-08-01  Assar Westerlund  <assar@sics.se>
230         * mini_inetd.c (socket_set_reuseaddr): remove duplicate
232 1999-07-29  Assar Westerlund  <assar@sics.se>
234         * mini_inetd.c (mini_inetd): fix my stupid bugs
236 1999-07-28  Assar Westerlund  <assar@sics.se>
238         * roken-common.h: add socket* functions
240         * Makefile.am (libroken_la_SOURCES): add socket.c
242         * socket.c: new file, originally from appl/ftp/common
244         * Makefile.am: set version to 2:0:2
246         * roken.h.in (inet_pton): add prototype
248         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_pton
250         * inet_pton.c: new file
252         * getipnodebyname.c (getipnodebyname): try gethostbyname2 if we
253         have it
255 1999-07-27  Assar Westerlund  <assar@sics.se>
257         * mini_inetd.c: support IPv6
259 1999-07-26  Assar Westerlund  <assar@sics.se>
261         * Makefile.am: set version to 1:0:1
263         * roken.h.in (inet_ntop): add prototype
265         * roken-common.h: (INET{,6}_ADDRSTRLEN): add
267         * inet_ntop.c: new file
269         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_ntop.c
271         * Makefile.am: move some files from libroken_la_SOURCES to
272         EXTRA_libroken_la_SOURCES
274         * snprintf.c: some signed vs unsigned casts
275         
276 1999-07-24  Assar Westerlund  <assar@sics.se>
278         * roken.h.in (struct sockaddr_storage): define it needed
280 1999-07-19  Assar Westerlund  <assar@sics.se>
282         * Makefile.am (libroken_la_SOURCES): add copyhostent.c,
283         freehostent.c, getipnodebyname.c, getipnodebyaddr.c
284         
285         * roken.h.in: <netdb.h>: include
286         (copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add
287         prototypes
289         * roken-common.h: new constants for getipnodeby*
291         * Makefile.in (SOURCES): add freehostent, copyhostent,
292         getipnodebyname, getipnodebyaddr
294         * freehostent.c: new file
296         * copyhostent.c: new file
298         * getipnodebyaddr.c: new file
300         * getipnodebyname.c: new file
302 1999-07-13  Assar Westerlund  <assar@sics.se>
304         * roken.h.in (k_getpwnam): update prototype
306         * k_getpwnam.c (k_getpwnam): const-ize
308         * get_default_username.c (get_default_username): a better way of
309         guessing when the user has su:ed
311 1999-07-08  Johan Danielsson  <joda@pdc.kth.se>
313         * roken.awk: use puts, as suggested by Jeffrey Hutzelman
314         <jhutz+@cmu.edu>
316 1999-07-06  Assar Westerlund  <assar@sics.se>
318         * readv.c (readv): typo
320 1999-07-03  Assar Westerlund  <assar@sics.se>
322         * writev.c (writev): error check malloc properly
324         * sendmsg.c (sendmsg): error check malloc properly
326         * resolve.c (parse_reply): error check malloc properly
328         * recvmsg.c (recvmsg): error check malloc properly
330         * readv.c (readv): error check malloc properly
332 1999-06-23  Assar Westerlund  <assar@sics.se>
334         * parse_units.c (acc_units): move the special case of 0 -> 1 to
335         parse_something to avoid having it happen at the end of the string
337 1999-06-15  Assar Westerlund  <assar@sics.se>
339         * Makefile.in: add get_default_username
341         * get_default_username.c: new file
343         * roken.h.in (get_default_username): add prototype
345         * Makefile.am: add get_default_username
347 1999-05-08  Assar Westerlund  <assar@sics.se>
349         * xdbm.h: also try <db.h> with DB_DBM_HSEARCH == 1
351         * strnlen.c (strnlen): update prototype
353         * Makefile.am: strndup.c: add
355         * Makefile.in: strndup.c: add
357         * roken.h.in (strndup): add
358         (strnlen): update prototype
360         * strndup.c: new file
362 Fri Apr 16 17:59:30 1999  Assar Westerlund  <assar@sics.se>
364         * roken.h.in: include strsep prototype if needed
366 Thu Apr 15 14:04:03 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
368         * Makefile.am: make make-print-version.o depend on version.h
370 Wed Apr  7 14:11:00 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
372         * Makefile.am: make it compile w/o krb4
374 Sat Mar 27 17:33:03 1999  Johan Danielsson  <joda@blubb.pdc.kth.se>
376         * snprintf.c (vasnprintf): correct check if realloc returns NULL
378 Sat Mar 27 12:37:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
380         * Makefile.am: link print_version with -ldes to avoid unresolved
381         references if -lkrb is shared
383 Sat Mar 20 03:42:30 1999  Assar Westerlund  <assar@sics.se>
385         * roken-common.h (eread, ewrite): add
387         * simple_exec.c: add <roken.h>
389 Fri Mar 19 21:29:58 1999  Assar Westerlund  <assar@sics.se>
391         * Makefile.in: add eread, ewrite
393         * eread.c, ewrite.c: new files
395         * Makefile.am (libroken_la_SOURCES): add eread and ewrite
397 Fri Mar 19 14:52:57 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
399         * Makefile.am: add version-info
401 Thu Mar 18 12:53:32 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
403         * Makefile.am: remove include_dir hack
405         * Makefile.am: parse_units.h
407         * Makefile.am: include Makefile.am.common
409 Sat Mar 13 23:31:35 1999  Assar Westerlund  <assar@sics.se>
411         * Makefile.in (SOURCES): add glob.c
413 Thu Mar 11 15:02:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
415         * iruserok.c: move innetgr() to separate file
417         * innetgr.c: move innetgr() to separate file
419         * hstrerror.c (hstrerror): add const to return type
421         * erealloc.c: fix types in format string
423         * emalloc.c: fix types in format string
425 Wed Mar 10 16:36:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
427         * resolve.c: ugly fix for crays
429 Mon Mar  8 11:52:20 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
431         * roken.h.in: protos for {un,}setenv
433 1999-02-16  Assar Westerlund  <assar@sics.se>
435         * Makefile.in (SOURCES): add fnmatch
437         * roken-common.h (abs): add
439 Sat Feb 13 17:12:53 1999  Assar Westerlund  <assar@sics.se>
441         * emalloc.c, erealloc.c, estrup.c: new files
443         * roken.h.in (mkstemp, gethostname): also includes prototypes if
444         they are needed.
446 1998-12-23  Assar Westerlund  <assar@sics.se>
448         * roken.h.in: mkstemp: add prototype
450 1998-12-20  Assar Westerlund  <assar@sics.se>
452         * snprintf.c, iruserok.c, parse-units.c: unsigned char-correctness
454         * roken.h.in (inet_aton): also chedk NEED_INET_ATON_PROTO
456         * roken-common.h: __attribute__: check for autoconf'd
457         HAVE___ATTRIBUTE__ instead of GNUC
459 Sun Dec  6 19:53:21 1998  Assar Westerlund  <assar@sics.se>
461         * parse_units.c (parse_something): func is called with val == 0 if
462         no unit was given
463         (acc_flags, acc_units): update to new standard
465 Fri Nov 27 03:09:42 1998  Assar Westerlund  <assar@sics.se>
467         * resolve.c (stot): constify
468         (type_to_string): always declare
469         (dns_lookup_int): correct debug output
471 Thu Nov 26 23:43:55 1998  Assar Westerlund  <assar@sics.se>
473         * resolve.c (dns_lookup_int): send rr_class to res_search
475 Thu Nov 26 17:09:47 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
477         * resolve.c: some cleanup
479         * resolve.h: add T_NAPTR
481 Sun Nov 22 10:23:07 1998  Assar Westerlund  <assar@sics.se>
483         * Makefile.in (WFLAGS): set
485         * k_getpwnam.c (k_getpwnam): check for `struct spwd'
487         * k_getpwuid.c (k_getpwuid): check for `struct spwd'
489 Tue Sep  8 05:18:31 1998  Assar Westerlund  <assar@sics.se>
491         * recvmsg.c (recvmsg): patch from bpreece@unity.ncsu.edu
493 Fri Sep  4 16:29:27 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
495         * vsyslog.c: asprintf -> vasprintf
497 Tue Aug 18 22:25:52 1998  Assar Westerlund  <assar@sics.se>
499         * getarg.h (arg_printusage): new signature
501         * getarg.c (arg_printusage): new parameter `progname'.  NULL means
502         __progname.
504 Sun Aug  9 14:53:44 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
506         * Makefile.am: net_{read,write}.c
508 Fri Jul 24 21:56:02 1998  Assar Westerlund  <assar@sics.se>
510         * simple_exec.c (simple_execvp): loop around waitpid when errno ==
511         EINTR
513 Thu Jul 23 20:24:35 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
515         * Makefile.am: net_{read,write}.c
517 Wed Jul 22 21:38:35 1998  Assar Westerlund  <assar@sics.se>
519         * simple_exec.c (simple_execlp): initialize `argv'
521 Mon Jul 13 23:01:22 1998  Assar Westerlund  <assar@sics.se>
523         * inaddr2str.c (inaddr2str): don't advance hostent->h_addr_list,
524         use a copy instead
526 Fri Jul 10 01:20:08 1998  Assar Westerlund  <assar@sics.se>
528         * roken.h.in (net_write, net_read): add prototypes
530         * Makefile.in: net_{read,write}.c: add
532         * net_{read,write}.c: new files
534 Tue Jun 30 17:29:09 1998  Assar Westerlund  <assar@sics.se>
536         * roken.h.in (issuid): add
538         * get_window_size.c: fix misspelling of TIOCGWINSZ and bad use of
539         fields
541 Sun May 31 03:24:34 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
543         * getarg.c (mandoc_template): Put short and long options in
544         SYNOPSIS within the same [ ] pair.
546 Sat May 30 00:13:01 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
548         * getarg.c (arg_printusage): try to keep options shorter than
549         column width
551         * get_window_size.c (get_window_size): check COLUMNS and LINES
553 Fri May 29 00:05:04 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
555         * getarg.c (mandoc_template): Put short and long options in
556         DESCRIPTION on the same line.
558         * getarg.c (arg_match_long): make sure you only get an exact match
559         if the strings are the same length
561 Thu May 14 02:23:40 1998  Assar Westerlund  <assar@sics.se>
563         * roken.awk: stupid cray awk wants \#
565 Fri May  1 01:29:36 1998  Assar Westerlund  <assar@sics.se>
567         * print_version.c (print_version): according to ISO/ANSI C the
568         elements of `arg' are not constant and therefore not settable at
569         compile-time.  Set the at run-time instead.
571 Sun Apr 19 10:00:06 1998  Assar Westerlund  <assar@sics.se>
573         * roken.h.in: include paths.h
575 Sun Apr  5 12:30:49 1998  Assar Westerlund  <assar@sics.se>
577         * Makefile.in (SOURCES): add roken_gethostby.c to make solaris
578         make happy
580 Thu Mar 19 20:41:25 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
582         * simple_exec.c: Simple fork+exec system() replacement.
584 Fri Mar  6 00:21:53 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
586         * roken_gethostby.c: Make `roken_gethostby_setup' take url-like
587         specification instead of split up versions. Makes it easier for
588         calling applications.
590         * roken_gethostby.c: Another miracle of the 20th century:
591         gethostby* over HTTP.
593 Sat Feb 21 15:18:36 1998  assar westerlund  <assar@sics.se>
595         * parse_time.c (unparse_time_approx): new function that calls
596         `unparse_units_approx'
598         * parse_units.c (unparse_units_approx): new function that will
599         only print the first unit.
601         * Makefile.in: include parse_{time,units}
603 Thu Feb 12 03:30:08 1998  Assar Westerlund  <assar@sics.se>
605         * parse_time.c (print_time_table): don't return a void value.
607 Tue Feb  3 11:06:24 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
609         * getarg.c (mandoc_template): Change date format to full month
610         name, and day of month without leading zero.
612 Thu Jan 22 21:23:23 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
614         * getarg.c: Fix long form of negative flags.
616 Mon Dec 29 23:31:10 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
618         * roken.h.in: Include <err.h>, to get linux __progname.
620 Sun Dec 21 09:45:18 1997  Assar Westerlund  <assar@sics.se>
622         * parse_time.c (print_time_table): new function
624         * parse_units.c (print_flags_table, print_units_table): new
625         functions.
627 Thu Dec  4 02:51:46 1997  Assar Westerlund  <assar@sics.se>
629         * iruserok.c: moved here.
631         * snprintf.c (sn_append_char): don't write any terminating zero.
632         (as_reserve): don't loop.  better heuristic for how much space to
633         realloc.
634         (vasnprintf): simplify initializing to one.
636 Sun Nov 30 14:56:59 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
638         * getarg.c: Add mandoc help back-end to getarg.
640 Wed Nov 12 01:09:17 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
642         * verr.c, verrx.c: Fix warnings by moving exit from.
644 Tue Nov 11 21:12:09 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
646         * parse_units.c: Change the list of separating characters (between
647         units) to comma, space, and tab, removing digits. Having digits in
648         this list makes a flag like `T42 generate a parse error. This
649         change makes `17m3s' an invalid time-spec (you need a space).
651 Tue Nov 11 02:38:44 1997  Assar Westerlund  <assar@sics.se>
653         * roken.h: add <sys/socket.h>
655 Sun Nov  9 04:48:46 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
657         * fnmatch.c: Add fnmatch from NetBSD
659 Sun Nov  9 02:00:08 1997  Assar Westerlund  <assar@sics.se>
661         * parse_units.c (parse_something): ignore white-space and ','
663 Mon Nov  3 22:38:32 1997  Assar Westerlund  <assar@sics.se>
664         
665         * roken.h: fclose prototype
667         * roken.h: add prototype for vsyslog
669         * Makefile.in: add some more source files to make soriasis make
670         happy
672 Sat Nov  1 00:19:21 1997  Assar Westerlund  <assar@sics.se>
674         * roken.h: include <sys/uio.h> and <errno.h>.
675         prototypes for readv and writev
677         * readv.c, writev.c: new files
679 Wed Oct 29 02:21:38 1997  Assar Westerlund  <assar@sics.se>
681         * roken.h: Add ugly macros for openlog, gethostbyname,
682         gethostbyaddr, and getservbyname for the benefit of Crays.  Add
683         default definition of MAXPATHLEN