1 1999-11-25 Assar Westerlund <assar@sics.se>
3 * getopt.c (getopt): return -1 instead of EOF. From
6 1999-11-13 Assar Westerlund <assar@sics.se>
8 * strftime.c (strftime): handle `%z' and `%Z' in a tm_gmtoff-less
11 * getcap.c: make sure to use db only if we have both the library
14 1999-11-12 Assar Westerlund <assar@sics.se>
16 * getarg.h: add arg_counter
17 * getarg.c: add a new type of argument: `arg_counter' re-organize
20 * Makefile.am: add strptime and strpftime-test
22 * snprintf.c (xyzprintf): try to do the right thing with an % at
23 the end of the format string
25 * strptime.c (strptime): implement '%U', '%V', '%W'
26 * strftime.c (strftime): implement '%U', '%V', '%W', '%z'
28 * strftime.c (strftime): correct %E and %O handling. do something
29 reasonable with "...%"
31 * strftime.c: replace the BSD implementation by one of our own
34 * strptime.c : new file
35 * strpftime-test.c: new file
37 1999-11-07 Assar Westerlund <assar@sics.se>
39 * parse_bytes-test.c: new file
41 * Makefile.am: add parse_bytes-test
43 * parse_units.c (parse_something): try to handle the case of no
44 value specified a little bit better
46 1999-11-04 Assar Westerlund <assar@sics.se>
48 * Makefile.am: bump version to 3:2:0
50 1999-10-30 Assar Westerlund <assar@sics.se>
52 * snprintf.c (PARSE_INT_FORMAT): add redundant casts to work
53 around a gcc-bug that manifests itself on Linux-PPC. From Tom
54 Rini <trini@kernel.crashing.org>
56 1999-10-28 Assar Westerlund <assar@sics.se>
58 * Makefile.am: bump version to 3:1:0
60 * roken.h.in: use `unsigned char' instead of `u_int8_t' to avoid
61 having to have that definition. this is the easy way out instead
62 of getting the definition here where it's needed. flame me.
64 Fri Oct 22 15:39:31 1999 Bjoern Groenvall <bg@sics.se>
66 * k_getpwuid.c (k_getpwuid): getspuid() does not exist (even
67 though it should), use getspnam().
69 1999-10-20 Assar Westerlund <assar@sics.se>
71 * Makefile.am: set version to 3:0:0
73 1999-10-18 Johan Danielsson <joda@pdc.kth.se>
75 * getarg.3: document arg_collect
77 * getarg.c: change the way arg_collect works; it's still quite
80 * getarg.h: change type of the collect function
82 1999-10-17 Assar Westerlund <assar@sics.se>
84 * xdbm.h: undo last commit
86 * xdbm.h: reorder db includes
88 1999-10-10 Assar Westerlund <assar@sics.se>
90 * socket.c: const-ize and comment
92 * net_write.c: const-ize
96 1999-10-06 Assar Westerlund <assar@sics.se>
98 * getarg.c (getarg): also set optind when returning error
100 1999-09-26 Assar Westerlund <assar@sics.se>
102 * Makefile.am: add parse_bytes.[ch]
104 1999-09-24 Johan Danielsson <joda@pdc.kth.se>
106 * getarg.3: getarg manpage
108 * getarg.{c,h}: add a callback type to do more complicated processing
110 * getarg.{c,h}: add floating point support
112 1999-09-16 Assar Westerlund <assar@sics.se>
114 * strlcat.c (strlcat): call strlcpy
116 * strlcpy.c: update name and prototype
118 * strlcat.c: update name and prototype
120 * roken.h.in: rename strc{py,at}_truncate to strlc{py,at}
122 * Makefile.am: rename strc{py,at}_truncate -> strlc{py,at}
124 * Makefile.in: rename strc{py,at}_truncate -> strlc{py,at}
126 * strcpy_truncate.c (strcpy_truncate): change return value to be
129 1999-08-16 Assar Westerlund <assar@sics.se>
131 * getcap.c: try to make this work on systems with DB
133 1999-08-16 Johan Danielsson <joda@pdc.kth.se>
135 * getcap.c: protect from db-less systems
137 1999-08-09 Johan Danielsson <joda@pdc.kth.se>
139 * simple_exec.c: add simple_exec{ve,le}
141 * getcap.c: getcap from NetBSD
143 1999-08-06 Assar Westerlund <assar@sics.se>
145 * roken.h.in (sockaddr_storage): cater for those that have
148 1999-08-05 Assar Westerlund <assar@sics.se>
150 * inet_ntop.c (inet_ntop_v4): remember to call ntohl
152 1999-08-04 Assar Westerlund <assar@sics.se>
154 * roken-common.h: add shutdown constants
156 * mini_inetd.c (listen_v4, listen_v6): handle the case of the
157 protocol not being supported
159 1999-08-01 Assar Westerlund <assar@sics.se>
161 * mini_inetd.c (socket_set_reuseaddr): remove duplicate
163 1999-07-29 Assar Westerlund <assar@sics.se>
165 * mini_inetd.c (mini_inetd): fix my stupid bugs
167 1999-07-28 Assar Westerlund <assar@sics.se>
169 * roken-common.h: add socket* functions
171 * Makefile.am (libroken_la_SOURCES): add socket.c
173 * socket.c: new file, originally from appl/ftp/common
175 * Makefile.am: set version to 2:0:2
177 * roken.h.in (inet_pton): add prototype
179 * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_pton
181 * inet_pton.c: new file
183 * getipnodebyname.c (getipnodebyname): try gethostbyname2 if we
186 1999-07-27 Assar Westerlund <assar@sics.se>
188 * mini_inetd.c: support IPv6
190 1999-07-26 Assar Westerlund <assar@sics.se>
192 * Makefile.am: set version to 1:0:1
194 * roken.h.in (inet_ntop): add prototype
196 * roken-common.h: (INET{,6}_ADDRSTRLEN): add
198 * inet_ntop.c: new file
200 * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_ntop.c
202 * Makefile.am: move some files from libroken_la_SOURCES to
203 EXTRA_libroken_la_SOURCES
205 * snprintf.c: some signed vs unsigned casts
207 1999-07-24 Assar Westerlund <assar@sics.se>
209 * roken.h.in (struct sockaddr_storage): define it needed
211 1999-07-19 Assar Westerlund <assar@sics.se>
213 * Makefile.am (libroken_la_SOURCES): add copyhostent.c,
214 freehostent.c, getipnodebyname.c, getipnodebyaddr.c
216 * roken.h.in: <netdb.h>: include
217 (copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add
220 * roken-common.h: new constants for getipnodeby*
222 * Makefile.in (SOURCES): add freehostent, copyhostent,
223 getipnodebyname, getipnodebyaddr
225 * freehostent.c: new file
227 * copyhostent.c: new file
229 * getipnodebyaddr.c: new file
231 * getipnodebyname.c: new file
233 1999-07-13 Assar Westerlund <assar@sics.se>
235 * roken.h.in (k_getpwnam): update prototype
237 * k_getpwnam.c (k_getpwnam): const-ize
239 * get_default_username.c (get_default_username): a better way of
240 guessing when the user has su:ed
242 1999-07-08 Johan Danielsson <joda@pdc.kth.se>
244 * roken.awk: use puts, as suggested by Jeffrey Hutzelman
247 1999-07-06 Assar Westerlund <assar@sics.se>
249 * readv.c (readv): typo
251 1999-07-03 Assar Westerlund <assar@sics.se>
253 * writev.c (writev): error check malloc properly
255 * sendmsg.c (sendmsg): error check malloc properly
257 * resolve.c (parse_reply): error check malloc properly
259 * recvmsg.c (recvmsg): error check malloc properly
261 * readv.c (readv): error check malloc properly
263 1999-06-23 Assar Westerlund <assar@sics.se>
265 * parse_units.c (acc_units): move the special case of 0 -> 1 to
266 parse_something to avoid having it happen at the end of the string
268 1999-06-15 Assar Westerlund <assar@sics.se>
270 * Makefile.in: add get_default_username
272 * get_default_username.c: new file
274 * roken.h.in (get_default_username): add prototype
276 * Makefile.am: add get_default_username
278 1999-05-08 Assar Westerlund <assar@sics.se>
280 * xdbm.h: also try <db.h> with DB_DBM_HSEARCH == 1
282 * strnlen.c (strnlen): update prototype
284 * Makefile.am: strndup.c: add
286 * Makefile.in: strndup.c: add
288 * roken.h.in (strndup): add
289 (strnlen): update prototype
291 * strndup.c: new file
293 Fri Apr 16 17:59:30 1999 Assar Westerlund <assar@sics.se>
295 * roken.h.in: include strsep prototype if needed
297 Thu Apr 15 14:04:03 1999 Johan Danielsson <joda@hella.pdc.kth.se>
299 * Makefile.am: make make-print-version.o depend on version.h
301 Wed Apr 7 14:11:00 1999 Johan Danielsson <joda@hella.pdc.kth.se>
303 * Makefile.am: make it compile w/o krb4
305 Sat Mar 27 17:33:03 1999 Johan Danielsson <joda@blubb.pdc.kth.se>
307 * snprintf.c (vasnprintf): correct check if realloc returns NULL
309 Sat Mar 27 12:37:55 1999 Johan Danielsson <joda@hella.pdc.kth.se>
311 * Makefile.am: link print_version with -ldes to avoid unresolved
312 references if -lkrb is shared
314 Sat Mar 20 03:42:30 1999 Assar Westerlund <assar@sics.se>
316 * roken-common.h (eread, ewrite): add
318 * simple_exec.c: add <roken.h>
320 Fri Mar 19 21:29:58 1999 Assar Westerlund <assar@sics.se>
322 * Makefile.in: add eread, ewrite
324 * eread.c, ewrite.c: new files
326 * Makefile.am (libroken_la_SOURCES): add eread and ewrite
328 Fri Mar 19 14:52:57 1999 Johan Danielsson <joda@hella.pdc.kth.se>
330 * Makefile.am: add version-info
332 Thu Mar 18 12:53:32 1999 Johan Danielsson <joda@hella.pdc.kth.se>
334 * Makefile.am: remove include_dir hack
336 * Makefile.am: parse_units.h
338 * Makefile.am: include Makefile.am.common
340 Sat Mar 13 23:31:35 1999 Assar Westerlund <assar@sics.se>
342 * Makefile.in (SOURCES): add glob.c
344 Thu Mar 11 15:02:21 1999 Johan Danielsson <joda@hella.pdc.kth.se>
346 * iruserok.c: move innetgr() to separate file
348 * innetgr.c: move innetgr() to separate file
350 * hstrerror.c (hstrerror): add const to return type
352 * erealloc.c: fix types in format string
354 * emalloc.c: fix types in format string
356 Wed Mar 10 16:36:55 1999 Johan Danielsson <joda@hella.pdc.kth.se>
358 * resolve.c: ugly fix for crays
360 Mon Mar 8 11:52:20 1999 Johan Danielsson <joda@hella.pdc.kth.se>
362 * roken.h.in: protos for {un,}setenv
364 1999-02-16 Assar Westerlund <assar@sics.se>
366 * Makefile.in (SOURCES): add fnmatch
368 * roken-common.h (abs): add
370 Sat Feb 13 17:12:53 1999 Assar Westerlund <assar@sics.se>
372 * emalloc.c, erealloc.c, estrup.c: new files
374 * roken.h.in (mkstemp, gethostname): also includes prototypes if
377 1998-12-23 Assar Westerlund <assar@sics.se>
379 * roken.h.in: mkstemp: add prototype
381 1998-12-20 Assar Westerlund <assar@sics.se>
383 * snprintf.c, iruserok.c, parse-units.c: unsigned char-correctness
385 * roken.h.in (inet_aton): also chedk NEED_INET_ATON_PROTO
387 * roken-common.h: __attribute__: check for autoconf'd
388 HAVE___ATTRIBUTE__ instead of GNUC
390 Sun Dec 6 19:53:21 1998 Assar Westerlund <assar@sics.se>
392 * parse_units.c (parse_something): func is called with val == 0 if
394 (acc_flags, acc_units): update to new standard
396 Fri Nov 27 03:09:42 1998 Assar Westerlund <assar@sics.se>
398 * resolve.c (stot): constify
399 (type_to_string): always declare
400 (dns_lookup_int): correct debug output
402 Thu Nov 26 23:43:55 1998 Assar Westerlund <assar@sics.se>
404 * resolve.c (dns_lookup_int): send rr_class to res_search
406 Thu Nov 26 17:09:47 1998 Johan Danielsson <joda@hella.pdc.kth.se>
408 * resolve.c: some cleanup
410 * resolve.h: add T_NAPTR
412 Sun Nov 22 10:23:07 1998 Assar Westerlund <assar@sics.se>
414 * Makefile.in (WFLAGS): set
416 * k_getpwnam.c (k_getpwnam): check for `struct spwd'
418 * k_getpwuid.c (k_getpwuid): check for `struct spwd'
420 Tue Sep 8 05:18:31 1998 Assar Westerlund <assar@sics.se>
422 * recvmsg.c (recvmsg): patch from bpreece@unity.ncsu.edu
424 Fri Sep 4 16:29:27 1998 Johan Danielsson <joda@emma.pdc.kth.se>
426 * vsyslog.c: asprintf -> vasprintf
428 Tue Aug 18 22:25:52 1998 Assar Westerlund <assar@sics.se>
430 * getarg.h (arg_printusage): new signature
432 * getarg.c (arg_printusage): new parameter `progname'. NULL means
435 Sun Aug 9 14:53:44 1998 Johan Danielsson <joda@emma.pdc.kth.se>
437 * Makefile.am: net_{read,write}.c
439 Fri Jul 24 21:56:02 1998 Assar Westerlund <assar@sics.se>
441 * simple_exec.c (simple_execvp): loop around waitpid when errno ==
444 Thu Jul 23 20:24:35 1998 Johan Danielsson <joda@emma.pdc.kth.se>
446 * Makefile.am: net_{read,write}.c
448 Wed Jul 22 21:38:35 1998 Assar Westerlund <assar@sics.se>
450 * simple_exec.c (simple_execlp): initialize `argv'
452 Mon Jul 13 23:01:22 1998 Assar Westerlund <assar@sics.se>
454 * inaddr2str.c (inaddr2str): don't advance hostent->h_addr_list,
457 Fri Jul 10 01:20:08 1998 Assar Westerlund <assar@sics.se>
459 * roken.h.in (net_write, net_read): add prototypes
461 * Makefile.in: net_{read,write}.c: add
463 * net_{read,write}.c: new files
465 Tue Jun 30 17:29:09 1998 Assar Westerlund <assar@sics.se>
467 * roken.h.in (issuid): add
469 * get_window_size.c: fix misspelling of TIOCGWINSZ and bad use of
472 Sun May 31 03:24:34 1998 Johan Danielsson <joda@emma.pdc.kth.se>
474 * getarg.c (mandoc_template): Put short and long options in
475 SYNOPSIS within the same [ ] pair.
477 Sat May 30 00:13:01 1998 Johan Danielsson <joda@emma.pdc.kth.se>
479 * getarg.c (arg_printusage): try to keep options shorter than
482 * get_window_size.c (get_window_size): check COLUMNS and LINES
484 Fri May 29 00:05:04 1998 Johan Danielsson <joda@emma.pdc.kth.se>
486 * getarg.c (mandoc_template): Put short and long options in
487 DESCRIPTION on the same line.
489 * getarg.c (arg_match_long): make sure you only get an exact match
490 if the strings are the same length
492 Thu May 14 02:23:40 1998 Assar Westerlund <assar@sics.se>
494 * roken.awk: stupid cray awk wants \#
496 Fri May 1 01:29:36 1998 Assar Westerlund <assar@sics.se>
498 * print_version.c (print_version): according to ISO/ANSI C the
499 elements of `arg' are not constant and therefore not settable at
500 compile-time. Set the at run-time instead.
502 Sun Apr 19 10:00:06 1998 Assar Westerlund <assar@sics.se>
504 * roken.h.in: include paths.h
506 Sun Apr 5 12:30:49 1998 Assar Westerlund <assar@sics.se>
508 * Makefile.in (SOURCES): add roken_gethostby.c to make solaris
511 Thu Mar 19 20:41:25 1998 Johan Danielsson <joda@emma.pdc.kth.se>
513 * simple_exec.c: Simple fork+exec system() replacement.
515 Fri Mar 6 00:21:53 1998 Johan Danielsson <joda@emma.pdc.kth.se>
517 * roken_gethostby.c: Make `roken_gethostby_setup' take url-like
518 specification instead of split up versions. Makes it easier for
519 calling applications.
521 * roken_gethostby.c: Another miracle of the 20th century:
522 gethostby* over HTTP.
524 Sat Feb 21 15:18:36 1998 assar westerlund <assar@sics.se>
526 * parse_time.c (unparse_time_approx): new function that calls
527 `unparse_units_approx'
529 * parse_units.c (unparse_units_approx): new function that will
530 only print the first unit.
532 * Makefile.in: include parse_{time,units}
534 Thu Feb 12 03:30:08 1998 Assar Westerlund <assar@sics.se>
536 * parse_time.c (print_time_table): don't return a void value.
538 Tue Feb 3 11:06:24 1998 Johan Danielsson <joda@emma.pdc.kth.se>
540 * getarg.c (mandoc_template): Change date format to full month
541 name, and day of month without leading zero.
543 Thu Jan 22 21:23:23 1998 Johan Danielsson <joda@emma.pdc.kth.se>
545 * getarg.c: Fix long form of negative flags.
547 Mon Dec 29 23:31:10 1997 Johan Danielsson <joda@emma.pdc.kth.se>
549 * roken.h.in: Include <err.h>, to get linux __progname.
551 Sun Dec 21 09:45:18 1997 Assar Westerlund <assar@sics.se>
553 * parse_time.c (print_time_table): new function
555 * parse_units.c (print_flags_table, print_units_table): new
558 Thu Dec 4 02:51:46 1997 Assar Westerlund <assar@sics.se>
560 * iruserok.c: moved here.
562 * snprintf.c (sn_append_char): don't write any terminating zero.
563 (as_reserve): don't loop. better heuristic for how much space to
565 (vasnprintf): simplify initializing to one.
567 Sun Nov 30 14:56:59 1997 Johan Danielsson <joda@emma.pdc.kth.se>
569 * getarg.c: Add mandoc help back-end to getarg.
571 Wed Nov 12 01:09:17 1997 Johan Danielsson <joda@emma.pdc.kth.se>
573 * verr.c, verrx.c: Fix warnings by moving exit from.
575 Tue Nov 11 21:12:09 1997 Johan Danielsson <joda@emma.pdc.kth.se>
577 * parse_units.c: Change the list of separating characters (between
578 units) to comma, space, and tab, removing digits. Having digits in
579 this list makes a flag like `T42 generate a parse error. This
580 change makes `17m3s' an invalid time-spec (you need a space).
582 Tue Nov 11 02:38:44 1997 Assar Westerlund <assar@sics.se>
584 * roken.h: add <sys/socket.h>
586 Sun Nov 9 04:48:46 1997 Johan Danielsson <joda@emma.pdc.kth.se>
588 * fnmatch.c: Add fnmatch from NetBSD
590 Sun Nov 9 02:00:08 1997 Assar Westerlund <assar@sics.se>
592 * parse_units.c (parse_something): ignore white-space and ','
594 Mon Nov 3 22:38:32 1997 Assar Westerlund <assar@sics.se>
596 * roken.h: fclose prototype
598 * roken.h: add prototype for vsyslog
600 * Makefile.in: add some more source files to make soriasis make
603 Sat Nov 1 00:19:21 1997 Assar Westerlund <assar@sics.se>
605 * roken.h: include <sys/uio.h> and <errno.h>.
606 prototypes for readv and writev
608 * readv.c, writev.c: new files
610 Wed Oct 29 02:21:38 1997 Assar Westerlund <assar@sics.se>
612 * roken.h: Add ugly macros for openlog, gethostbyname,
613 gethostbyaddr, and getservbyname for the benefit of Crays. Add
614 default definition of MAXPATHLEN