Initial import from FreeBSD RELENG_4:
[games.git] / crypto / kerberosIV / lib / roken / ChangeLog
1 1999-11-25  Assar Westerlund  <assar@sics.se>
2
3         * getopt.c (getopt): return -1 instead of EOF.  From
4         <art@stacken.kth.se>
5
6 1999-11-13  Assar Westerlund  <assar@sics.se>
7
8         * strftime.c (strftime): handle `%z' and `%Z' in a tm_gmtoff-less
9         world
10
11         * getcap.c: make sure to use db only if we have both the library
12         and the header file
13         
14 1999-11-12  Assar Westerlund  <assar@sics.se>
15
16         * getarg.h: add arg_counter
17         * getarg.c: add a new type of argument: `arg_counter' re-organize
18         the code somewhat
19         
20         * Makefile.am: add strptime and strpftime-test
21         
22         * snprintf.c (xyzprintf): try to do the right thing with an % at
23         the end of the format string
24         
25         * strptime.c (strptime): implement '%U', '%V', '%W'
26         * strftime.c (strftime): implement '%U', '%V', '%W', '%z'
27         
28         * strftime.c (strftime): correct %E and %O handling.  do something
29         reasonable with "...%"
30
31         * strftime.c: replace the BSD implementation by one of our own
32         coding
33
34         * strptime.c : new file
35         * strpftime-test.c: new file
36
37 1999-11-07  Assar Westerlund  <assar@sics.se>
38
39         * parse_bytes-test.c: new file
40
41         * Makefile.am: add parse_bytes-test
42
43         * parse_units.c (parse_something): try to handle the case of no
44         value specified a little bit better
45
46 1999-11-04  Assar Westerlund  <assar@sics.se>
47
48         * Makefile.am: bump version to 3:2:0
49
50 1999-10-30  Assar Westerlund  <assar@sics.se>
51
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>
55
56 1999-10-28  Assar Westerlund  <assar@sics.se>
57
58         * Makefile.am: bump version to 3:1:0
59
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.
63
64 Fri Oct 22 15:39:31 1999  Bjoern Groenvall  <bg@sics.se>
65
66         * k_getpwuid.c (k_getpwuid): getspuid() does not exist (even
67         though it should), use getspnam().
68
69 1999-10-20  Assar Westerlund  <assar@sics.se>
70
71         * Makefile.am: set version to 3:0:0
72
73 1999-10-18  Johan Danielsson  <joda@pdc.kth.se>
74
75         * getarg.3: document arg_collect
76
77         * getarg.c: change the way arg_collect works; it's still quite
78         horrible though
79
80         * getarg.h: change type of the collect function
81
82 1999-10-17  Assar Westerlund  <assar@sics.se>
83
84         * xdbm.h: undo last commit
85
86         * xdbm.h: reorder db includes
87
88 1999-10-10  Assar Westerlund  <assar@sics.se>
89
90         * socket.c: const-ize and comment
91
92         * net_write.c: const-ize
93
94         * base64.c: const-ize
95
96 1999-10-06  Assar Westerlund  <assar@sics.se>
97
98         * getarg.c (getarg): also set optind when returning error
99
100 1999-09-26  Assar Westerlund  <assar@sics.se>
101
102         * Makefile.am: add parse_bytes.[ch]
103
104 1999-09-24  Johan Danielsson  <joda@pdc.kth.se>
105
106         * getarg.3: getarg manpage
107
108         * getarg.{c,h}: add a callback type to do more complicated processing
109
110         * getarg.{c,h}: add floating point support
111
112 1999-09-16  Assar Westerlund  <assar@sics.se>
113
114         * strlcat.c (strlcat): call strlcpy
115
116         * strlcpy.c: update name and prototype
117
118         * strlcat.c: update name and prototype
119
120         * roken.h.in: rename strc{py,at}_truncate to strlc{py,at}
121
122         * Makefile.am: rename strc{py,at}_truncate -> strlc{py,at}
123
124         * Makefile.in: rename strc{py,at}_truncate -> strlc{py,at}
125
126         * strcpy_truncate.c (strcpy_truncate): change return value to be
127         the length of `src'
128
129 1999-08-16  Assar Westerlund  <assar@sics.se>
130
131         * getcap.c: try to make this work on systems with DB
132
133 1999-08-16  Johan Danielsson  <joda@pdc.kth.se>
134
135         * getcap.c: protect from db-less systems
136
137 1999-08-09  Johan Danielsson  <joda@pdc.kth.se>
138
139         * simple_exec.c: add simple_exec{ve,le}
140
141         * getcap.c: getcap from NetBSD
142
143 1999-08-06  Assar Westerlund  <assar@sics.se>
144
145         * roken.h.in (sockaddr_storage): cater for those that have
146         v6-support also
147
148 1999-08-05  Assar Westerlund  <assar@sics.se>
149
150         * inet_ntop.c (inet_ntop_v4): remember to call ntohl
151
152 1999-08-04  Assar Westerlund  <assar@sics.se>
153
154         * roken-common.h: add shutdown constants
155
156         * mini_inetd.c (listen_v4, listen_v6): handle the case of the
157         protocol not being supported
158
159 1999-08-01  Assar Westerlund  <assar@sics.se>
160
161         * mini_inetd.c (socket_set_reuseaddr): remove duplicate
162
163 1999-07-29  Assar Westerlund  <assar@sics.se>
164
165         * mini_inetd.c (mini_inetd): fix my stupid bugs
166
167 1999-07-28  Assar Westerlund  <assar@sics.se>
168
169         * roken-common.h: add socket* functions
170
171         * Makefile.am (libroken_la_SOURCES): add socket.c
172
173         * socket.c: new file, originally from appl/ftp/common
174
175         * Makefile.am: set version to 2:0:2
176
177         * roken.h.in (inet_pton): add prototype
178
179         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_pton
180
181         * inet_pton.c: new file
182
183         * getipnodebyname.c (getipnodebyname): try gethostbyname2 if we
184         have it
185
186 1999-07-27  Assar Westerlund  <assar@sics.se>
187
188         * mini_inetd.c: support IPv6
189
190 1999-07-26  Assar Westerlund  <assar@sics.se>
191
192         * Makefile.am: set version to 1:0:1
193
194         * roken.h.in (inet_ntop): add prototype
195
196         * roken-common.h: (INET{,6}_ADDRSTRLEN): add
197
198         * inet_ntop.c: new file
199
200         * Makefile.am (EXTRA_libroken_la_SOURCES): add inet_ntop.c
201
202         * Makefile.am: move some files from libroken_la_SOURCES to
203         EXTRA_libroken_la_SOURCES
204
205         * snprintf.c: some signed vs unsigned casts
206         
207 1999-07-24  Assar Westerlund  <assar@sics.se>
208
209         * roken.h.in (struct sockaddr_storage): define it needed
210
211 1999-07-19  Assar Westerlund  <assar@sics.se>
212
213         * Makefile.am (libroken_la_SOURCES): add copyhostent.c,
214         freehostent.c, getipnodebyname.c, getipnodebyaddr.c
215         
216         * roken.h.in: <netdb.h>: include
217         (copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add
218         prototypes
219
220         * roken-common.h: new constants for getipnodeby*
221
222         * Makefile.in (SOURCES): add freehostent, copyhostent,
223         getipnodebyname, getipnodebyaddr
224
225         * freehostent.c: new file
226
227         * copyhostent.c: new file
228
229         * getipnodebyaddr.c: new file
230
231         * getipnodebyname.c: new file
232
233 1999-07-13  Assar Westerlund  <assar@sics.se>
234
235         * roken.h.in (k_getpwnam): update prototype
236
237         * k_getpwnam.c (k_getpwnam): const-ize
238
239         * get_default_username.c (get_default_username): a better way of
240         guessing when the user has su:ed
241
242 1999-07-08  Johan Danielsson  <joda@pdc.kth.se>
243
244         * roken.awk: use puts, as suggested by Jeffrey Hutzelman
245         <jhutz+@cmu.edu>
246
247 1999-07-06  Assar Westerlund  <assar@sics.se>
248
249         * readv.c (readv): typo
250
251 1999-07-03  Assar Westerlund  <assar@sics.se>
252
253         * writev.c (writev): error check malloc properly
254
255         * sendmsg.c (sendmsg): error check malloc properly
256
257         * resolve.c (parse_reply): error check malloc properly
258
259         * recvmsg.c (recvmsg): error check malloc properly
260
261         * readv.c (readv): error check malloc properly
262
263 1999-06-23  Assar Westerlund  <assar@sics.se>
264
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
267
268 1999-06-15  Assar Westerlund  <assar@sics.se>
269
270         * Makefile.in: add get_default_username
271
272         * get_default_username.c: new file
273
274         * roken.h.in (get_default_username): add prototype
275
276         * Makefile.am: add get_default_username
277
278 1999-05-08  Assar Westerlund  <assar@sics.se>
279
280         * xdbm.h: also try <db.h> with DB_DBM_HSEARCH == 1
281
282         * strnlen.c (strnlen): update prototype
283
284         * Makefile.am: strndup.c: add
285
286         * Makefile.in: strndup.c: add
287
288         * roken.h.in (strndup): add
289         (strnlen): update prototype
290
291         * strndup.c: new file
292
293 Fri Apr 16 17:59:30 1999  Assar Westerlund  <assar@sics.se>
294
295         * roken.h.in: include strsep prototype if needed
296
297 Thu Apr 15 14:04:03 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
298
299         * Makefile.am: make make-print-version.o depend on version.h
300
301 Wed Apr  7 14:11:00 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
302
303         * Makefile.am: make it compile w/o krb4
304
305 Sat Mar 27 17:33:03 1999  Johan Danielsson  <joda@blubb.pdc.kth.se>
306
307         * snprintf.c (vasnprintf): correct check if realloc returns NULL
308
309 Sat Mar 27 12:37:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
310
311         * Makefile.am: link print_version with -ldes to avoid unresolved
312         references if -lkrb is shared
313
314 Sat Mar 20 03:42:30 1999  Assar Westerlund  <assar@sics.se>
315
316         * roken-common.h (eread, ewrite): add
317
318         * simple_exec.c: add <roken.h>
319
320 Fri Mar 19 21:29:58 1999  Assar Westerlund  <assar@sics.se>
321
322         * Makefile.in: add eread, ewrite
323
324         * eread.c, ewrite.c: new files
325
326         * Makefile.am (libroken_la_SOURCES): add eread and ewrite
327
328 Fri Mar 19 14:52:57 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
329
330         * Makefile.am: add version-info
331
332 Thu Mar 18 12:53:32 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
333
334         * Makefile.am: remove include_dir hack
335
336         * Makefile.am: parse_units.h
337
338         * Makefile.am: include Makefile.am.common
339
340 Sat Mar 13 23:31:35 1999  Assar Westerlund  <assar@sics.se>
341
342         * Makefile.in (SOURCES): add glob.c
343
344 Thu Mar 11 15:02:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
345
346         * iruserok.c: move innetgr() to separate file
347
348         * innetgr.c: move innetgr() to separate file
349
350         * hstrerror.c (hstrerror): add const to return type
351
352         * erealloc.c: fix types in format string
353
354         * emalloc.c: fix types in format string
355
356 Wed Mar 10 16:36:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
357
358         * resolve.c: ugly fix for crays
359
360 Mon Mar  8 11:52:20 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
361
362         * roken.h.in: protos for {un,}setenv
363
364 1999-02-16  Assar Westerlund  <assar@sics.se>
365
366         * Makefile.in (SOURCES): add fnmatch
367
368         * roken-common.h (abs): add
369
370 Sat Feb 13 17:12:53 1999  Assar Westerlund  <assar@sics.se>
371
372         * emalloc.c, erealloc.c, estrup.c: new files
373
374         * roken.h.in (mkstemp, gethostname): also includes prototypes if
375         they are needed.
376
377 1998-12-23  Assar Westerlund  <assar@sics.se>
378
379         * roken.h.in: mkstemp: add prototype
380
381 1998-12-20  Assar Westerlund  <assar@sics.se>
382
383         * snprintf.c, iruserok.c, parse-units.c: unsigned char-correctness
384
385         * roken.h.in (inet_aton): also chedk NEED_INET_ATON_PROTO
386
387         * roken-common.h: __attribute__: check for autoconf'd
388         HAVE___ATTRIBUTE__ instead of GNUC
389
390 Sun Dec  6 19:53:21 1998  Assar Westerlund  <assar@sics.se>
391
392         * parse_units.c (parse_something): func is called with val == 0 if
393         no unit was given
394         (acc_flags, acc_units): update to new standard
395
396 Fri Nov 27 03:09:42 1998  Assar Westerlund  <assar@sics.se>
397
398         * resolve.c (stot): constify
399         (type_to_string): always declare
400         (dns_lookup_int): correct debug output
401
402 Thu Nov 26 23:43:55 1998  Assar Westerlund  <assar@sics.se>
403
404         * resolve.c (dns_lookup_int): send rr_class to res_search
405
406 Thu Nov 26 17:09:47 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
407
408         * resolve.c: some cleanup
409
410         * resolve.h: add T_NAPTR
411
412 Sun Nov 22 10:23:07 1998  Assar Westerlund  <assar@sics.se>
413
414         * Makefile.in (WFLAGS): set
415
416         * k_getpwnam.c (k_getpwnam): check for `struct spwd'
417
418         * k_getpwuid.c (k_getpwuid): check for `struct spwd'
419
420 Tue Sep  8 05:18:31 1998  Assar Westerlund  <assar@sics.se>
421
422         * recvmsg.c (recvmsg): patch from bpreece@unity.ncsu.edu
423
424 Fri Sep  4 16:29:27 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
425
426         * vsyslog.c: asprintf -> vasprintf
427
428 Tue Aug 18 22:25:52 1998  Assar Westerlund  <assar@sics.se>
429
430         * getarg.h (arg_printusage): new signature
431
432         * getarg.c (arg_printusage): new parameter `progname'.  NULL means
433         __progname.
434
435 Sun Aug  9 14:53:44 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
436
437         * Makefile.am: net_{read,write}.c
438
439 Fri Jul 24 21:56:02 1998  Assar Westerlund  <assar@sics.se>
440
441         * simple_exec.c (simple_execvp): loop around waitpid when errno ==
442         EINTR
443
444 Thu Jul 23 20:24:35 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
445
446         * Makefile.am: net_{read,write}.c
447
448 Wed Jul 22 21:38:35 1998  Assar Westerlund  <assar@sics.se>
449
450         * simple_exec.c (simple_execlp): initialize `argv'
451
452 Mon Jul 13 23:01:22 1998  Assar Westerlund  <assar@sics.se>
453
454         * inaddr2str.c (inaddr2str): don't advance hostent->h_addr_list,
455         use a copy instead
456
457 Fri Jul 10 01:20:08 1998  Assar Westerlund  <assar@sics.se>
458
459         * roken.h.in (net_write, net_read): add prototypes
460
461         * Makefile.in: net_{read,write}.c: add
462
463         * net_{read,write}.c: new files
464
465 Tue Jun 30 17:29:09 1998  Assar Westerlund  <assar@sics.se>
466
467         * roken.h.in (issuid): add
468
469         * get_window_size.c: fix misspelling of TIOCGWINSZ and bad use of
470         fields
471
472 Sun May 31 03:24:34 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
473
474         * getarg.c (mandoc_template): Put short and long options in
475         SYNOPSIS within the same [ ] pair.
476
477 Sat May 30 00:13:01 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
478
479         * getarg.c (arg_printusage): try to keep options shorter than
480         column width
481
482         * get_window_size.c (get_window_size): check COLUMNS and LINES
483
484 Fri May 29 00:05:04 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
485
486         * getarg.c (mandoc_template): Put short and long options in
487         DESCRIPTION on the same line.
488
489         * getarg.c (arg_match_long): make sure you only get an exact match
490         if the strings are the same length
491
492 Thu May 14 02:23:40 1998  Assar Westerlund  <assar@sics.se>
493
494         * roken.awk: stupid cray awk wants \#
495
496 Fri May  1 01:29:36 1998  Assar Westerlund  <assar@sics.se>
497
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.
501
502 Sun Apr 19 10:00:06 1998  Assar Westerlund  <assar@sics.se>
503
504         * roken.h.in: include paths.h
505
506 Sun Apr  5 12:30:49 1998  Assar Westerlund  <assar@sics.se>
507
508         * Makefile.in (SOURCES): add roken_gethostby.c to make solaris
509         make happy
510
511 Thu Mar 19 20:41:25 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
512
513         * simple_exec.c: Simple fork+exec system() replacement.
514
515 Fri Mar  6 00:21:53 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
516
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.
520
521         * roken_gethostby.c: Another miracle of the 20th century:
522         gethostby* over HTTP.
523
524 Sat Feb 21 15:18:36 1998  assar westerlund  <assar@sics.se>
525
526         * parse_time.c (unparse_time_approx): new function that calls
527         `unparse_units_approx'
528
529         * parse_units.c (unparse_units_approx): new function that will
530         only print the first unit.
531
532         * Makefile.in: include parse_{time,units}
533
534 Thu Feb 12 03:30:08 1998  Assar Westerlund  <assar@sics.se>
535
536         * parse_time.c (print_time_table): don't return a void value.
537
538 Tue Feb  3 11:06:24 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
539
540         * getarg.c (mandoc_template): Change date format to full month
541         name, and day of month without leading zero.
542
543 Thu Jan 22 21:23:23 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
544
545         * getarg.c: Fix long form of negative flags.
546
547 Mon Dec 29 23:31:10 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
548
549         * roken.h.in: Include <err.h>, to get linux __progname.
550
551 Sun Dec 21 09:45:18 1997  Assar Westerlund  <assar@sics.se>
552
553         * parse_time.c (print_time_table): new function
554
555         * parse_units.c (print_flags_table, print_units_table): new
556         functions.
557
558 Thu Dec  4 02:51:46 1997  Assar Westerlund  <assar@sics.se>
559
560         * iruserok.c: moved here.
561
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
564         realloc.
565         (vasnprintf): simplify initializing to one.
566
567 Sun Nov 30 14:56:59 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
568
569         * getarg.c: Add mandoc help back-end to getarg.
570
571 Wed Nov 12 01:09:17 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
572
573         * verr.c, verrx.c: Fix warnings by moving exit from.
574
575 Tue Nov 11 21:12:09 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
576
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).
581
582 Tue Nov 11 02:38:44 1997  Assar Westerlund  <assar@sics.se>
583
584         * roken.h: add <sys/socket.h>
585
586 Sun Nov  9 04:48:46 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
587
588         * fnmatch.c: Add fnmatch from NetBSD
589
590 Sun Nov  9 02:00:08 1997  Assar Westerlund  <assar@sics.se>
591
592         * parse_units.c (parse_something): ignore white-space and ','
593
594 Mon Nov  3 22:38:32 1997  Assar Westerlund  <assar@sics.se>
595         
596         * roken.h: fclose prototype
597
598         * roken.h: add prototype for vsyslog
599
600         * Makefile.in: add some more source files to make soriasis make
601         happy
602
603 Sat Nov  1 00:19:21 1997  Assar Westerlund  <assar@sics.se>
604
605         * roken.h: include <sys/uio.h> and <errno.h>.
606         prototypes for readv and writev
607
608         * readv.c, writev.c: new files
609
610 Wed Oct 29 02:21:38 1997  Assar Westerlund  <assar@sics.se>
611
612         * roken.h: Add ugly macros for openlog, gethostbyname,
613         gethostbyaddr, and getservbyname for the benefit of Crays.  Add
614         default definition of MAXPATHLEN