ChangeLog revision 90926
12001-11-30  Assar Westerlund  <assar@sics.se>
2
3	* getifaddrs.c: support SIOCGLIFCONF and SIOCGLIFFLAGS which are
4	used on Solaris 8 to retrieve addresses larger than `struct
5	sockaddr'.  From Magnus Ahltorp <ahltorp@nada.kth.se> (with some
6	modifications by me)
7
82001-10-27  Assar Westerlund  <assar@sics.se>
9
10	* Makefile.am (libroken_la_LDFLAGS): set version to 15:0:6
11
122001-10-22  Assar Westerlund  <assar@sics.se>
13
14	* localtime_r.c: add
15
162001-10-02  Johan Danielsson  <joda@pdc.kth.se>
17
18	* resolve.c (dns_srv_order): don't try to return a value
19
202001-09-24  Johan Danielsson  <joda@pdc.kth.se>
21
22	* snprintf.c: va_{start,end} fixes; from Thomas Klausner
23
242001-09-20  Assar Westerlund  <assar@sics.se>
25
26	* resolve.c (dns_srv_order): make sure of not reading after the
27	array
28
292001-09-17  Assar Westerlund  <assar@sics.se>
30
31	* Makefile.am (libroken_la_LDFLAGS): bump to 14:4:5
32	* snprintf.c: rename 'struct state' -> 'struct snprintf_test' to
33	avoid collision with resolv.h on aix
34
352001-09-04  Assar Westerlund  <assar@sics.se>
36
37	* parse_bytes-test.c, parse_bytes.c, parse_bytes.h, parse_units.c,
38	parse_units.h: use int instead of size_t as return values to be
39	compatible with snprintf
40
41	* strftime.c (strftime): check for return values from snprintf() <
42	0
43
442001-09-03  Johan Danielsson  <joda@pdc.kth.se>
45
46	* socket.c: restrict is a keyword
47
482001-09-03  Assar Westerlund  <assar@sics.se>
49
50	* write_pid.c: handle atexit or on_exit
51
52	* Makefile.am (EXTRA_libroken_la_SOURCES): add vis.hin to help
53	solaris make
54
552001-08-30  Johan Danielsson  <joda@pdc.kth.se>
56
57	* Makefile.am: use LDADD directly
58
592001-08-28  Assar Westerlund  <assar@sics.se>
60
61	* Makefile.am (libroken_la_LDFLAGS): set to 14:3:5
62
63	* issuid.c (issuid): call issetugid if it exists
64
652001-08-24  Assar Westerlund  <assar@sics.se>
66
67	* Makefile.am: make it play better with recent automake
68
692001-08-21  Assar Westerlund  <assar@sics.se>
70
71	* glob.c: provide a fallback for ARG_MAX.  from <tol@stacken.kth.se>
72
73	* roken.h.in: remove all winsock.h
74	for now, it does more harm than good under cygwin and if it should be
75	used, the correct conditional needs to be found
76	from <tol@stacken.kth.se>
77
782001-08-17  Johan Danielsson  <joda@pdc.kth.se>
79
80	* getaddrinfo.c: include a definition of in6addr_loopback if it
81	doesn't exist
82
832001-08-10  Assar Westerlund  <assar@sics.se>
84
85	* Makefile.am (libroken_la_LDFLAGS): update to 14:2:5
86
872001-08-08  Assar Westerlund  <assar@sics.se>
88
89	* hstrerror.c: move h_errno to its own file (h_errno.c)
90
912001-08-04  Assar Westerlund  <assar@sics.se>
92
93	* Makefile.am: add getarg.3
94
952001-08-01  Assar Westerlund  <assar@sics.se>
96
97	* mini_inetd.c (mini_inetd): explicitly use PF_UNSPEC.  be more
98	resilient to bind/listen failing.
99
1002001-07-31  Assar Westerlund  <assar@sics.se>
101
102	* getifaddrs.c (getifaddrs2): remove unused variables
103
1042001-07-31  Assar Westerlund  <assar@sics.se>
105
106	* Makefile.am (libroken_la_LDFLAGS): update version to 14:1:5
107
1082001-07-23  Assar Westerlund  <assar@sics.se>
109
110	* getarg.c (arg_match_long): fix parsing of arg_counter optional
111	argument
112
1132001-07-19  Assar Westerlund  <assar@sics.se>
114
115	* Makefile.am (libroken_la_LDFLAGS): bump version to 14:0:5
116	
1172001-07-17  Assar Westerlund  <assar@sics.se>
118
119	* snprintf-test.h: add a file with renaming of the snprintf
120	functions, to be used for running the tests
121
1222001-07-11  Assar Westerlund  <assar@sics.se>
123
124	* snprintf-test.c: add more %X tests, and long and conditional
125	long long tests
126	* snprintf.c: add support for printing long long (if available)
127
1282001-07-10  Assar Westerlund  <assar@sics.se>
129
130	* getaddrinfo.c (add_hostent): adapt to const hostent_find_fqdn
131	* hostent_find_fqdn.c (hostent_find_fqdn): const-ize
132
1332001-07-09  Assar Westerlund  <assar@sics.se>
134
135	* roken-common.h (hostent_find_fqdn): add
136	* hostent_find_fqdn.c: separate out hostent_find_fqdn
137
138	* warnerr.c: move out getprogname, setprogname
139
1402001-07-03  Assar Westerlund  <assar@sics.se>
141
142	* warnerr.c (setprogname): add const cast
143	* vis.c (SVIS): add some (unsigned char) before calling isfoo*
144	* Makefile.am (libroken_la_LDFLAGS:) set version to 13:0:4
145
146	* Makefile.am: add snprintf_test
147	* snprintf.c: rewrite so that it does not stop as soon as there
148	are no more characters to print, we need to figure out how long
149	the string would have to be.  this also fixes snprintf(NULL, 0
150
1512001-06-21  Assar Westerlund  <assar@sics.se>
152
153	* simple_exec.c (pipe_execv): remove unused variable
154
1552001-06-20  Johan Danielsson  <joda@pdc.kth.se>
156
157	* getdtablesize.c: fix typo in obviously never used sysctl case
158
159	* simple_exec.c: rename check_status to wait_for_process, and
160	export it; function pipe_execv similar to popen, but with more
161	control over input and output
162
163	* roken-common.h: prototypes for wait_for_process and pipe_execv
164
1652001-06-17  Assar Westerlund  <assar@sics.se>
166
167	* roken-common.h: move emalloc et al to roken.h.in
168	* Makefile.am: make emalloc,ecalloc,erealloc,estrdup conditional
169	* emalloc.c, erealloc.c, estrup.c: use errx, since errno might not
170	be set reliably
171	* ecalloc.c: add for symmetry
172
1732001-06-09  Johan Danielsson  <joda@pdc.kth.se>
174
175	* resolve.c: dns_srv_order to order srv records
176
1772001-06-08  Johan Danielsson  <joda@pdc.kth.se>
178
179	* getarg.c: Grog tries to figure out if to use mdoc.old instead of
180	mdoc by looking at some macros that were only present in the old
181	version, and by looking at the number of .Oo's present. In
182	mdoc.old .Oo was a toggle, but in mdoc it's closed by .Oc, so if
183	the number of .Oo's is bigger than the number of .Oc's, it figures
184	it must be mdoc.old. This doesn't however account for called Oc's,
185	and thus grog thinks that valid pages are mdoc.old when they
186	infact are mdoc. So let's make sure that Oc's are not called by
187	other macros.
188
1892001-05-29  Assar Westerlund  <assar@sics.se>
190
191	* base64-test.c (main): initialize numerr
192
1932001-05-28  Johan Danielsson  <joda@pdc.kth.se>
194
195	* base64.c: clean up the decode mess somewhat
196
197	* base64-test.c: base64 tests
198
1992001-05-18  Johan Danielsson  <joda@pdc.kth.se>
200
201	* roken.h.in: just use standard C types with bswap*
202
203	* bswap.c: just use standard C types
204
2052001-05-17  Assar Westerlund  <assar@sics.se>
206
207	* roken.h.in: include all the headers that AC_GROK_TYPES tries for
208	finding u_int17_t et al
209
210	* Makefile.am: bump version to 12:0:3
211	* roken.h.in: re-add set_progname and get_progname for backwards
212	compatability
213	* warnerr.c: re-add set_progname and get_progname for backwards
214	compatability
215
2162001-05-12  Assar Westerlund  <assar@sics.se>
217
218	* glob.c: add limits.h, from <shadow@dementia.org>
219
2202001-05-11  Johan Danielsson  <joda@pdc.kth.se>
221
222	* Makefile.am: bswap.c
223	
224	* bswap.c: bswap{16,32}
225	
2262001-05-08  Assar Westerlund  <assar@sics.se>
227
228	* freeaddrinfo.c (freeaddrinfo): also free every `struct
229	addrinfo'.  from <tmartin@mirapoint.com>
230
2312001-04-25  Assar Westerlund  <assar@sics.se>
232
233	* getarg.h (free_getarg_strings): add prototype
234	* getarg.c (free_getarg_strings): add function
235
2362001-04-21  Johan Danielsson  <joda@pdc.kth.se>
237
238	* getarg.c: pack short flag options togther, to shorten the usage
239	string
240
2412001-04-17  Johan Danielsson  <joda@pdc.kth.se>
242
243	* getifaddrs.c (getifaddrs2): close socket when done
244
2452001-03-26  Johan Danielsson  <joda@pdc.kth.se>
246
247	* roken.awk: END has to be last with Sun's awk
248
2492001-03-26  Assar Westerlund  <assar@sics.se>
250
251	* parse_units.c (parse_something): do not check the return value
252	from strtod, it might return != 0.0 when the string has no digits.
253	just testing if it consumed any characters is enough and more
254	resilient
255	* glob.c: add GLOB_LIMIT (from NetBSD)
256
2572001-02-20  Assar Westerlund  <assar@sics.se>
258
259	* warnerr.c (warnerr): do not use __progname
260	* roken.h.in (setprogname, getprogname): add prototypes
261	* warnerr.c (setprogname, getprogname): rename to. change all
262	callers
263	
2642001-02-12  Assar Westerlund  <assar@sics.se>
265
266	* getnameinfo_verified.c (getnameinfo_verified): do the first
267	getnameinfo with NI_NUMERICSERV to avoid the error that bind 8.2.3
268	reports on not finding the service
269	(ENI_NOSERVNAME).  reported by Ake Sandgren <ake@cs.umu.se>
270
2712001-02-09  Assar Westerlund  <assar@sics.se>
272
273	* getnameinfo.c (doit): call inet_ntop with correct af, noted by
274	Ake Sandgren <ake@cs.umu.se>
275
2762001-02-08  Assar Westerlund  <assar@sics.se>
277
278	* getnameinfo_verified.c (getnameinfo_verified): always capture
279	the service from getnameinfo so it can be sent back to getaddrinfo
280	and set socktype to avoid getaddrinfo not returning any addresses
281
2822001-01-30  Assar Westerlund  <assar@sics.se>
283
284	* Makefile.am (libroken_la_LDFLAGS): bump version to 11:1:2
285	* print_version.c (print_version): add 2001
286
2872001-01-29  Assar Westerlund  <assar@sics.se>
288
289	* getifaddrs.c (getifaddrs2): copy the entire sockaddr
290
291	* roken-common.h (_PATH_BSHELL): add
292
2932001-01-27  Assar Westerlund  <assar@sics.se>
294
295	* roken.h.in: move __attribute__ to roken-common.h
296
297	* esetenv.c (esetenv): cast to handle a setenv that takes a `char
298 	* which is the case on Unicos
299
3002000-12-29  Assar Westerlund  <assar@sics.se>
301
302	* Makefile.am (EXTRA_libroken_la_SOURCES): ifaddrs.h ->
303	ifaddrs.hin
304
3052000-12-25  Assar Westerlund  <assar@sics.se>
306
307	* getarg.c (print_arg): add a case for arg_strings
308
3092000-12-15  Johan Danielsson  <joda@pdc.kth.se>
310
311	* snprintf.c (append_string): handle NULL strings by printing
312	`(null)'
313
3142000-12-12  Johan Danielsson  <joda@pdc.kth.se>
315
316	* roken-common.h: add c++ externs
317
318	* roken.h.in: fix last commit differently
319
3202000-12-11  Assar Westerlund  <assar@sics.se>
321
322	* err.hin (warnerr): remove, it's not part of the err.h interface
323	* roken-common.h (warnerr): moved here from err.hin
324	* Makefile.am (libroken_la_LDFLAGS): set version to 11:0:2
325	* vis.c: s/u_int32_t/unsigned/ for systems that do not define
326	u_int32_t
327
3282000-12-10  Johan Danielsson  <joda@pdc.kth.se>
329
330	* Makefile.am: rename some headers to avoid conflict with possible
331	system headers
332
3332000-12-06  Johan Danielsson  <joda@pdc.kth.se>
334
335	* vis.c: make sure _DIAGASSERT is defined
336
337	* unvis.c: make sure _DIAGASSERT is defined
338
339	* Makefile.am: unvis.c, and vis.h
340
341	* vis.h: vis.h from NetBSD
342
343	* unvis.c: unvis from NetBSD
344
345	* roken.h.in: cleanup previous
346
347	* roken-common.h: make `extern "C"' into a macro, this make emacs
348	much happier
349
350	* vis.c: strvis implementation from NetBSD
351
352	* roken.h.in: add prototypes for strvis*
353
3542000-12-05  Johan Danielsson  <joda@pdc.kth.se>
355
356	* ifaddrs.h: fix freeifaddrs prototype, and add ifa_broadaddr
357	macro
358
359	* getifaddrs.c: free some memory
360
3612000-12-04  Johan Danielsson  <joda@pdc.kth.se>
362
363	* ifaddrs.h: getifaddrs implementation using SIOCGIFCONFIG etc
364
365	* getifaddrs.c: getifaddrs implementation using SIOCGIFCONFIG etc
366
3672000-10-08  Assar Westerlund  <assar@sics.se>
368
369	* mini_inetd.c (mini_inetd): check that fds are not too large to
370	select on
371
3722000-09-24  Assar Westerlund  <assar@sics.se>
373
374	*  esetenv.c: new file/function
375
3762000-08-16  Assar Westerlund  <assar@sics.se>
377
378	* Makefile.am: bump version to 10:0:1
379
3802000-08-10  Assar Westerlund  <assar@sics.se>
381
382	* mini_inetd.c (accept_it): type-correctness on parameters to
383	accept
384
3852000-08-07  Johan Danielsson  <joda@pdc.kth.se>
386
387	* roken.h.in: add proto compat for getsockname
388
3892000-08-04  Johan Danielsson  <joda@pdc.kth.se>
390
391	* write_pid.c: conditionalise pidfile
392
393	* write_pid.c: add pidfile function
394
3952000-07-25  Johan Danielsson  <joda@pdc.kth.se>
396
397	* Makefile.am: bump version to 9:0:0
398
399	* warnerr.c: add get_progname
400
4012000-07-24  Assar Westerlund  <assar@sics.se>
402
403	* getaddrinfo.c (add_hostent): if there's no fqdn in `he' try
404	reverse resolving to see if there's a fuller name there.  don't
405	use just-freed memory
406
4072000-07-22  Assar Westerlund  <assar@sics.se>
408
409	* xdbm.h: do not define ndbm functions in terms of dbm functions
410	if we're using db
411
4122000-07-20  Assar Westerlund  <assar@sics.se>
413
414	* rtbl.c (rtbl_format): avoid printing an empty row at the end
415
4162000-07-19  Johan Danielsson  <joda@pdc.kth.se>
417
418	* Makefile.am: make this compatible with `make dist'
419
420	* Makefile.am: revert version number for now
421
4222000-07-18  Johan Danielsson  <joda@pdc.kth.se>
423
424	* configure.in: AM_PROG_LIBTOOL -> AC_PROG_LIBTOOL
425
4262000-07-17  Johan Danielsson  <joda@pdc.kth.se>
427
428	* Makefile.am: set ACLOCAL_AMFLAGS
429
4302000-07-15  Johan Danielsson  <joda@pdc.kth.se>
431
432	* getaddrinfo_hostspec.c: add new function that takes socktype
433	hint as parameter
434
4352000-07-09  Assar Westerlund  <assar@sics.se>
436
437	* rtbl.c (rtbl_add_column): initialize `col' completely
438
439	* configure.in: bring headers and functions more in-line with
440	what's actually being used
441
4422000-07-08  Johan Danielsson  <joda@pdc.kth.se>
443
444	* roken.h.in: declare ether_addr and sockaddr_dl for AIX
445
446	* rtbl.{c,h}: simple table functions
447
4482000-07-08  Assar Westerlund  <assar@sics.se>
449
450	* configure.in (AM_INIT_AUTOMAKE): bump version to 10
451	* configure.in (AC_BROKEN): add strsep_copy
452	* Makefile.am (ACLOCAL): fetch files from cf
453
4542000-07-01  Assar Westerlund  <assar@sics.se>
455
456	* roken-common.h (pid_file_*): fix protos
457
4582000-06-28  Assar Westerlund  <assar@sics.se>
459
460	* getnameinfo_verified.c (getnameinfo_verified): free memory
461	returned from getaddrinfo
462
4632000-06-27  Assar Westerlund  <assar@sics.se>
464
465	* resolve.c: export string_to_type and type_to_string
466	* resolve.c: add key,sig,cert update test-program
467	* resolve.h: add key,sig,cert
468
4692000-06-21  Assar Westerlund  <assar@sics.se>
470
471	* resolve.h: add T_SIG, T_KEY
472	* resolve.c: add SIG and KEY
473	* Makefile.am (libroken_la_SOURCES): add environment.c and
474	write_pid.c
475
476	* write_pid.c: new file for writing a pid file.
477
478	* environment.c: new file with functionality for reading
479	/etc/environment.  From Ake Sandgren <ake@cs.umu.se>
480
4812000-06-12  Johan Danielsson  <joda@pdc.kth.se>
482
483	* strsep_copy.c: strsep, but with const stringp so returns string
484	in separate buffer
485
4862000-05-23  Assar Westerlund  <assar@sics.se>
487
488	* vsyslog.c (vsyslog): calculate length of new format string
489	correctly
490
4912000-05-22  Johan Danielsson  <joda@pdc.kth.se>
492
493	* getusershell.c: implment the AIX version use
494	/etc/security/login.cfg
495
4962000-05-21  Assar Westerlund  <assar@sics.se>
497
498	* vsyslog.c (vsyslog): actually handle `%m'
499
5002000-05-15  Assar Westerlund  <assar@sics.se>
501
502	* Makefile.am (libroken_la_LDFLAGS): set version to 8:1:3
503
504	* roken-common.h: moved __attribute__ to roken.h.in
505
5062000-04-14  Assar Westerlund  <assar@sics.se>
507
508	* getaddrinfo_hostspec.c (roken_getaddrinfo_hostspec): copy the
509	correct length from `hostspec'.  based on a patch from Love
510	<lha@s3.kth.se>
511
5122000-04-09  Assar Westerlund  <assar@sics.se>
513
514	* xdbm.h: only include one of db.h and the dbm-series
515
5162000-04-05  Assar Westerlund  <assar@sics.se>
517
518	* resolve.c (_resolve_debug): explicitly set to zero.  this moves
519	the variable from bss to data and the dynamic linker on MacOS
520	X/Darwin seems unhappy with stuff in the bss segment.
521
5222000-04-03  Assar Westerlund  <assar@sics.se>
523
524	* Makefile.am: set version to 8:0:3
525
5262000-03-11  Assar Westerlund  <assar@sics.se>
527
528	* roken.h.in (_SS_PAD1SIZE): try to write an inpenetrable
529	expression that also works on Crays
530
5312000-03-09  Assar Westerlund  <assar@sics.se>
532
533	* getarg.c (arg_match_short): backup optind when there's a missing
534	argument so that the error can point at the flag and not the
535	non-existant argument
536
5372000-03-03  Assar Westerlund  <assar@sics.se>
538
539	* Makefile.in (SOURCES): add timeval.c
540	* Makefile.am (libroken_la_SOURCES): add timeval.c
541	* timeval.c: new file
542
5432000-02-19  Assar Westerlund  <assar@sics.se>
544
545	* Makefile.am: set version to 7:1:2
546	
5472000-02-16  Assar Westerlund  <assar@sics.se>
548
549	* snprintf.c (PARSE_INT_FORMAT): note that shorts are actually
550	transmitted as ints
551	(according to the integer protomotion rules) in variable arguments
552	lists.  Therefore, we should not call va_arg with short but rather
553	with int.  See <http://www.debian.org/Bugs/db/57/57919.html> for
554	original bug report
555
5562000-02-13  Assar Westerlund  <assar@sics.se>
557
558	* Makefile.am: bump version to 7:0:2
559
560	* getarg.c (mandoc_template): also fix no- prefix in .Sh OPTIONS
561	* getarg.c (mandoc_template): better man-stuff for negative
562	options
563
5642000-02-07  Assar Westerlund  <assar@sics.se>
565
566	* Makefile.am: set version to 6:0:1
567
5682000-02-06  Assar Westerlund  <assar@sics.se>
569
570	* xdbm.h: hopefully catch a few more declarations by including
571	<ndbm.h> even if <db.h> was found
572
5732000-01-26  Assar Westerlund  <assar@sics.se>
574
575	* mini_inetd.c (mini_inetd): separate number of allocated sockets
576	and number of actual ones
577	* mini_inetd.c (mini_inetd): count sockets properly.  and fail if
578	we cannot bind any
579	* mini_inetd.c (mini_inetd): make failing to create a socket
580	non-fatal
581
5822000-01-09  Assar Westerlund  <assar@sics.se>
583
584 	* Makefile.am(libroken_la_SOURCES): add strcollect.c
585	* Makefile.in: add strcollect.[co]
586	* simple_exec.c: use vstrcollect
587	* roken-common.h (_PATH_DEV): add
588	(strcollect, vstrcollect): add prototypes
589	* strcollect.c: new file.  functions for collapsing an `va_list'
590	into an `char **'
591
5922000-01-06  Assar Westerlund  <assar@sics.se>
593
594	* Makefile.am: bump version to 5:0:0
595
5961999-12-30  Assar Westerlund  <assar@sics.se>
597
598	* Makefile.am (strpftime_test_SOURCES): correct source file name
599
600	* roken.h.in (sockaddr_storage): change padding so that we have
601 	one char[] of pad and then an unsigned long[] (for alignment and
602 	padding).  this works much better in practice.
603
6041999-12-22  Assar Westerlund  <assar@sics.se>
605
606	* roken.h.in (sockaddr_storage): drop leading underscore on
607 	`public' fields.  this was the consensus on the ipng mailing list
608
6091999-12-21  Assar Westerlund  <assar@sics.se>
610
611	* Makefile.am (strpftime-test): define sources to avoid having
612 	'.o'
613	* Makefile.am (print_version.h): use $(EXEEXT)
614	* Makefile.am (roken.h): add $(EXEEXT) to make this work on cygwin
615 	et al
616
6171999-12-20  Assar Westerlund  <assar@sics.se>
618
619	* Makefile.am (libroken_la_LDFLAGS): bump version to 4:3:0
620
621	* getaddrinfo.c (get_nodes): use getipnodebyname instead of
622	gethostbyname(2)
623
6241999-12-16  Assar Westerlund  <assar@sics.se>
625
626	* Makefile.am (libroken_la_LDFLAGS): bump version to 4:2:0
627
628	* roken.h.in (struct sockaddr_storage): redefine with the example
629 	code from rfc2553
630
631	* getaddrinfo.c (get_null): set loopback with correct endianess
632	for v4.  dunno about v6.
633
6341999-12-13  Assar Westerlund  <assar@sics.se>
635
636	* roken.h.in: add prototypes for str[pf]time
637
638	* signal.c: macosx = rhapsody ~= nextstep also can't handle
639 	various definitions of the same symbol.
640
6411999-12-12  Assar Westerlund  <assar@sics.se>
642
643	* Makefile.am: bump version to 4:1:0
644
6451999-12-06  Assar Westerlund  <assar@sics.se>
646
647	* Makefile.am: bump version to 4:0:0
648
6491999-12-05  Assar Westerlund  <assar@sics.se>
650
651	* Makefile.in: replace inaddr2str with getnameinfo_verified
652
653	* roken-common.h (INADDR_LOOPBACK): add fallback definition
654
655	* roken-common.h: move getnameinfo_verified to roken.h.in
656	* roken.h.in (inaddr2str): remove
657	* Makefile.am (libroken_la_SOURCES); removed inaddr2str
658	* roken-common.h (getnameinfo_verified): add prototype
659	* getnameinfo_verified.c: new file
660
6611999-12-04  Assar Westerlund  <assar@sics.se>
662
663	* roken-common.h: add constants for getaddrinfo, getnameinfo
664	* roken.h.in (socklen_t): make independent of sockaddr_storage
665	(AI_*, NI_*, EAI_*): move to roken-common.h
666
6671999-12-03  Assar Westerlund  <assar@sics.se>
668
669	* mini_inetd.c (mini_inted): rewrite to use `getaddrinfo'
670	* getaddrinfo.c (const_v*): no sizeof(sizeof())
671	* getaddrinfo.c (add_hostent): search for the canonical name among
672	all aliases
673	(getaddrinfo): handle AI_NUMERICHOST correctly
674	* Makefile.am (EXTRA_libroken_la_SOURCES): add freeaddinfo,
675	getaddrinfo, getnameinfo, gai_strerror
676	(getaddrinfo_test): add
677	* Makefile.in (SOURCES): add freeaddinfo, getaddrinfo,
678	getnameinfo, gai_strerror
679	(getaddrinfo_test): add
680	* roken.h.in: arpa/inet.h: include
681	(socklen_t): add
682	(struct addrinfo): add
683	(EAI_*): add
684	(NI_*): add
685	(AI_*): add
686	(getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror): add
687	* getnameinfo.c: new file
688	* getaddrinfo-test.c: new file
689	* gai_strerror.c: new file
690	* getaddrinfo.c: new file
691	* freeaddrinfo.c: new file
692
6931999-11-25  Assar Westerlund  <assar@sics.se>
694
695	* getopt.c (getopt): return -1 instead of EOF.  From
696	<art@stacken.kth.se>
697
6981999-11-13  Assar Westerlund  <assar@sics.se>
699
700	* strftime.c (strftime): handle `%z' and `%Z' in a tm_gmtoff-less
701	world
702
703	* getcap.c: make sure to use db only if we have both the library
704	and the header file
705	
7061999-11-12  Assar Westerlund  <assar@sics.se>
707
708	* getarg.h: add arg_counter
709	* getarg.c: add a new type of argument: `arg_counter' re-organize
710	the code somewhat
711	
712	* Makefile.am: add strptime and strpftime-test
713	
714	* snprintf.c (xyzprintf): try to do the right thing with an % at
715	the end of the format string
716	
717	* strptime.c (strptime): implement '%U', '%V', '%W'
718	* strftime.c (strftime): implement '%U', '%V', '%W', '%z'
719	
720	* strftime.c (strftime): correct %E and %O handling.  do something
721 	reasonable with "...%"
722
723	* strftime.c: replace the BSD implementation by one of our own
724	coding
725
726	* strptime.c : new file
727	* strpftime-test.c: new file
728
7291999-11-07  Assar Westerlund  <assar@sics.se>
730
731	* parse_bytes-test.c: new file
732
733	* Makefile.am: add parse_bytes-test
734
735	* parse_units.c (parse_something): try to handle the case of no
736 	value specified a little bit better
737
7381999-11-04  Assar Westerlund  <assar@sics.se>
739
740	* Makefile.am: bump version to 3:2:0
741
7421999-10-30  Assar Westerlund  <assar@sics.se>
743
744	* snprintf.c (PARSE_INT_FORMAT): add redundant casts to work
745 	around a gcc-bug that manifests itself on Linux-PPC.  From Tom
746 	Rini <trini@kernel.crashing.org>
747
7481999-10-28  Assar Westerlund  <assar@sics.se>
749
750	* Makefile.am: bump version to 3:1:0
751
752	* roken.h.in: use `unsigned char' instead of `u_int8_t' to avoid
753 	having to have that definition.  this is the easy way out instead
754 	of getting the definition here where it's needed.  flame me.
755
756Fri Oct 22 15:39:31 1999  Bjoern Groenvall  <bg@sics.se>
757
758	* k_getpwuid.c (k_getpwuid): getspuid() does not exist (even
759 	though it should), use getspnam().
760
7611999-10-20  Assar Westerlund  <assar@sics.se>
762
763	* Makefile.am: set version to 3:0:0
764
7651999-10-18  Johan Danielsson  <joda@pdc.kth.se>
766
767	* getarg.3: document arg_collect
768
769	* getarg.c: change the way arg_collect works; it's still quite
770	horrible though
771
772	* getarg.h: change type of the collect function
773
7741999-10-17  Assar Westerlund  <assar@sics.se>
775
776	* xdbm.h: undo last commit
777
778	* xdbm.h: reorder db includes
779
7801999-10-10  Assar Westerlund  <assar@sics.se>
781
782	* socket.c: const-ize and comment
783
784	* net_write.c: const-ize
785
786	* base64.c: const-ize
787
7881999-10-06  Assar Westerlund  <assar@sics.se>
789
790	* getarg.c (getarg): also set optind when returning error
791
7921999-09-26  Assar Westerlund  <assar@sics.se>
793
794	* Makefile.am: add parse_bytes.[ch]
795
7961999-09-24  Johan Danielsson  <joda@pdc.kth.se>
797
798	* getarg.3: getarg manpage
799
800	* getarg.{c,h}: add a callback type to do more complicated processing
801
802	* getarg.{c,h}: add floating point support
803
8041999-09-16  Assar Westerlund  <assar@sics.se>
805
806	* strlcat.c (strlcat): call strlcpy
807
808	* strlcpy.c: update name and prototype
809
810	* strlcat.c: update name and prototype
811
812	* roken.h.in: rename strc{py,at}_truncate to strlc{py,at}
813
814	* Makefile.am: rename strc{py,at}_truncate -> strlc{py,at}
815
816	* Makefile.in: rename strc{py,at}_truncate -> strlc{py,at}
817
818 	* strcpy_truncate.c (strcpy_truncate): change return value to be
819 	the length of `src'
820
8211999-08-16  Assar Westerlund  <assar@sics.se>
822
823	* getcap.c: try to make this work on systems with DB
824
8251999-08-16  Johan Danielsson  <joda@pdc.kth.se>
826
827	* getcap.c: protect from db-less systems
828
8291999-08-09  Johan Danielsson  <joda@pdc.kth.se>
830
831	* simple_exec.c: add simple_exec{ve,le}
832
833	* getcap.c: getcap from NetBSD
834
8351999-08-06  Assar Westerlund  <assar@sics.se>
836
837	* roken.h.in (sockaddr_storage): cater for those that have
838 	v6-support also
839
8401999-08-05  Assar Westerlund  <assar@sics.se>
841
842	* inet_ntop.c (inet_ntop_v4): remember to call ntohl
843
8441999-08-04  Assar Westerlund  <assar@sics.se>
845
846	* roken-common.h: add shutdown constants
847
848	* mini_inetd.c (listen_v4, listen_v6): handle the case of the
849 	protocol not being supported
850
8511999-08-01  Assar Westerlund  <assar@sics.se>
852
853	* mini_inetd.c (socket_set_reuseaddr): remove duplicate
854
8551999-07-29  Assar Westerlund  <assar@sics.se>
856
857	* mini_inetd.c (mini_inetd): fix my stupid bugs
858
8591999-07-28  Assar Westerlund  <assar@sics.se>
860
861	* roken-common.h: add socket* functions
862
863	* Makefile.am (libroken_la_SOURCES): add socket.c
864
865	* socket.c: new file, originally from appl/ftp/common
866
867	* Makefile.am: set version to 2:0:2
868
869	* roken.h.in (inet_pton): add prototype
870
871	* Makefile.am (EXTRA_libroken_la_SOURCES): add inet_pton
872
873	* inet_pton.c: new file
874
875	* getipnodebyname.c (getipnodebyname): try gethostbyname2 if we
876 	have it
877
8781999-07-27  Assar Westerlund  <assar@sics.se>
879
880	* mini_inetd.c: support IPv6
881
8821999-07-26  Assar Westerlund  <assar@sics.se>
883
884	* Makefile.am: set version to 1:0:1
885
886	* roken.h.in (inet_ntop): add prototype
887
888 	* roken-common.h: (INET{,6}_ADDRSTRLEN): add
889
890	* inet_ntop.c: new file
891
892	* Makefile.am (EXTRA_libroken_la_SOURCES): add inet_ntop.c
893
894	* Makefile.am: move some files from libroken_la_SOURCES to
895 	EXTRA_libroken_la_SOURCES
896
897	* snprintf.c: some signed vs unsigned casts
898	
8991999-07-24  Assar Westerlund  <assar@sics.se>
900
901	* roken.h.in (struct sockaddr_storage): define it needed
902
9031999-07-19  Assar Westerlund  <assar@sics.se>
904
905	* Makefile.am (libroken_la_SOURCES): add copyhostent.c,
906 	freehostent.c, getipnodebyname.c, getipnodebyaddr.c
907	
908	* roken.h.in: <netdb.h>: include
909	(copyhostent, freehostent, getipnodebyname, getipnodebyaddr): add
910	prototypes
911
912	* roken-common.h: new constants for getipnodeby*
913
914	* Makefile.in (SOURCES): add freehostent, copyhostent,
915 	getipnodebyname, getipnodebyaddr
916
917	* freehostent.c: new file
918
919	* copyhostent.c: new file
920
921	* getipnodebyaddr.c: new file
922
923	* getipnodebyname.c: new file
924
9251999-07-13  Assar Westerlund  <assar@sics.se>
926
927	* roken.h.in (k_getpwnam): update prototype
928
929	* k_getpwnam.c (k_getpwnam): const-ize
930
931	* get_default_username.c (get_default_username): a better way of
932 	guessing when the user has su:ed
933
9341999-07-08  Johan Danielsson  <joda@pdc.kth.se>
935
936	* roken.awk: use puts, as suggested by Jeffrey Hutzelman
937	<jhutz+@cmu.edu>
938
9391999-07-06  Assar Westerlund  <assar@sics.se>
940
941	* readv.c (readv): typo
942
9431999-07-03  Assar Westerlund  <assar@sics.se>
944
945	* writev.c (writev): error check malloc properly
946
947	* sendmsg.c (sendmsg): error check malloc properly
948
949	* resolve.c (parse_reply): error check malloc properly
950
951	* recvmsg.c (recvmsg): error check malloc properly
952
953	* readv.c (readv): error check malloc properly
954
9551999-06-23  Assar Westerlund  <assar@sics.se>
956
957	* parse_units.c (acc_units): move the special case of 0 -> 1 to
958 	parse_something to avoid having it happen at the end of the string
959
9601999-06-15  Assar Westerlund  <assar@sics.se>
961
962	* Makefile.in: add get_default_username
963
964	* get_default_username.c: new file
965
966	* roken.h.in (get_default_username): add prototype
967
968	* Makefile.am: add get_default_username
969
9701999-05-08  Assar Westerlund  <assar@sics.se>
971
972	* xdbm.h: also try <db.h> with DB_DBM_HSEARCH == 1
973
974	* strnlen.c (strnlen): update prototype
975
976	* Makefile.am: strndup.c: add
977
978	* Makefile.in: strndup.c: add
979
980	* roken.h.in (strndup): add
981	(strnlen): update prototype
982
983	* strndup.c: new file
984
985Fri Apr 16 17:59:30 1999  Assar Westerlund  <assar@sics.se>
986
987	* roken.h.in: include strsep prototype if needed
988
989Thu Apr 15 14:04:03 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
990
991	* Makefile.am: make make-print-version.o depend on version.h
992
993Wed Apr  7 14:11:00 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
994
995	* Makefile.am: make it compile w/o krb4
996
997Sat Mar 27 17:33:03 1999  Johan Danielsson  <joda@blubb.pdc.kth.se>
998
999	* snprintf.c (vasnprintf): correct check if realloc returns NULL
1000
1001Sat Mar 27 12:37:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1002
1003	* Makefile.am: link print_version with -ldes to avoid unresolved
1004 	references if -lkrb is shared
1005
1006Sat Mar 20 03:42:30 1999  Assar Westerlund  <assar@sics.se>
1007
1008	* roken-common.h (eread, ewrite): add
1009
1010	* simple_exec.c: add <roken.h>
1011
1012Fri Mar 19 21:29:58 1999  Assar Westerlund  <assar@sics.se>
1013
1014	* Makefile.in: add eread, ewrite
1015
1016	* eread.c, ewrite.c: new files
1017
1018	* Makefile.am (libroken_la_SOURCES): add eread and ewrite
1019
1020Fri Mar 19 14:52:57 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1021
1022	* Makefile.am: add version-info
1023
1024Thu Mar 18 12:53:32 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1025
1026	* Makefile.am: remove include_dir hack
1027
1028	* Makefile.am: parse_units.h
1029
1030	* Makefile.am: include Makefile.am.common
1031
1032Sat Mar 13 23:31:35 1999  Assar Westerlund  <assar@sics.se>
1033
1034	* Makefile.in (SOURCES): add glob.c
1035
1036Thu Mar 11 15:02:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1037
1038	* iruserok.c: move innetgr() to separate file
1039
1040	* innetgr.c: move innetgr() to separate file
1041
1042	* hstrerror.c (hstrerror): add const to return type
1043
1044	* erealloc.c: fix types in format string
1045
1046	* emalloc.c: fix types in format string
1047
1048Wed Mar 10 16:36:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1049
1050	* resolve.c: ugly fix for crays
1051
1052Mon Mar  8 11:52:20 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1053
1054	* roken.h.in: protos for {un,}setenv
1055
10561999-02-16  Assar Westerlund  <assar@sics.se>
1057
1058	* Makefile.in (SOURCES): add fnmatch
1059
1060	* roken-common.h (abs): add
1061
1062Sat Feb 13 17:12:53 1999  Assar Westerlund  <assar@sics.se>
1063
1064	* emalloc.c, erealloc.c, estrup.c: new files
1065
1066	* roken.h.in (mkstemp, gethostname): also includes prototypes if
1067 	they are needed.
1068
10691998-12-23  Assar Westerlund  <assar@sics.se>
1070
1071	* roken.h.in: mkstemp: add prototype
1072
10731998-12-20  Assar Westerlund  <assar@sics.se>
1074
1075	* snprintf.c, iruserok.c, parse-units.c: unsigned char-correctness
1076
1077	* roken.h.in (inet_aton): also chedk NEED_INET_ATON_PROTO
1078
1079	* roken-common.h: __attribute__: check for autoconf'd
1080	HAVE___ATTRIBUTE__ instead of GNUC
1081
1082Sun Dec  6 19:53:21 1998  Assar Westerlund  <assar@sics.se>
1083
1084	* parse_units.c (parse_something): func is called with val == 0 if
1085 	no unit was given
1086	(acc_flags, acc_units): update to new standard
1087
1088Fri Nov 27 03:09:42 1998  Assar Westerlund  <assar@sics.se>
1089
1090	* resolve.c (stot): constify
1091	(type_to_string): always declare
1092	(dns_lookup_int): correct debug output
1093
1094Thu Nov 26 23:43:55 1998  Assar Westerlund  <assar@sics.se>
1095
1096	* resolve.c (dns_lookup_int): send rr_class to res_search
1097
1098Thu Nov 26 17:09:47 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
1099
1100	* resolve.c: some cleanup
1101
1102	* resolve.h: add T_NAPTR
1103
1104Sun Nov 22 10:23:07 1998  Assar Westerlund  <assar@sics.se>
1105
1106	* Makefile.in (WFLAGS): set
1107
1108	* k_getpwnam.c (k_getpwnam): check for `struct spwd'
1109
1110	* k_getpwuid.c (k_getpwuid): check for `struct spwd'
1111
1112Tue Sep  8 05:18:31 1998  Assar Westerlund  <assar@sics.se>
1113
1114	* recvmsg.c (recvmsg): patch from bpreece@unity.ncsu.edu
1115
1116Fri Sep  4 16:29:27 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1117
1118	* vsyslog.c: asprintf -> vasprintf
1119
1120Tue Aug 18 22:25:52 1998  Assar Westerlund  <assar@sics.se>
1121
1122	* getarg.h (arg_printusage): new signature
1123
1124	* getarg.c (arg_printusage): new parameter `progname'.  NULL means
1125 	__progname.
1126
1127Sun Aug  9 14:53:44 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1128
1129	* Makefile.am: net_{read,write}.c
1130
1131Fri Jul 24 21:56:02 1998  Assar Westerlund  <assar@sics.se>
1132
1133	* simple_exec.c (simple_execvp): loop around waitpid when errno ==
1134 	EINTR
1135
1136Thu Jul 23 20:24:35 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1137
1138	* Makefile.am: net_{read,write}.c
1139
1140Wed Jul 22 21:38:35 1998  Assar Westerlund  <assar@sics.se>
1141
1142	* simple_exec.c (simple_execlp): initialize `argv'
1143
1144Mon Jul 13 23:01:22 1998  Assar Westerlund  <assar@sics.se>
1145
1146	* inaddr2str.c (inaddr2str): don't advance hostent->h_addr_list,
1147 	use a copy instead
1148
1149Fri Jul 10 01:20:08 1998  Assar Westerlund  <assar@sics.se>
1150
1151	* roken.h.in (net_write, net_read): add prototypes
1152
1153	* Makefile.in: net_{read,write}.c: add
1154
1155	* net_{read,write}.c: new files
1156
1157Tue Jun 30 17:29:09 1998  Assar Westerlund  <assar@sics.se>
1158
1159	* roken.h.in (issuid): add
1160
1161	* get_window_size.c: fix misspelling of TIOCGWINSZ and bad use of
1162 	fields
1163
1164Sun May 31 03:24:34 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1165
1166	* getarg.c (mandoc_template): Put short and long options in
1167 	SYNOPSIS within the same [ ] pair.
1168
1169Sat May 30 00:13:01 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1170
1171	* getarg.c (arg_printusage): try to keep options shorter than
1172 	column width
1173
1174	* get_window_size.c (get_window_size): check COLUMNS and LINES
1175
1176Fri May 29 00:05:04 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1177
1178	* getarg.c (mandoc_template): Put short and long options in
1179 	DESCRIPTION on the same line.
1180
1181	* getarg.c (arg_match_long): make sure you only get an exact match
1182 	if the strings are the same length
1183
1184Thu May 14 02:23:40 1998  Assar Westerlund  <assar@sics.se>
1185
1186	* roken.awk: stupid cray awk wants \#
1187
1188Fri May  1 01:29:36 1998  Assar Westerlund  <assar@sics.se>
1189
1190	* print_version.c (print_version): according to ISO/ANSI C the
1191 	elements of `arg' are not constant and therefore not settable at
1192 	compile-time.  Set the at run-time instead.
1193
1194Sun Apr 19 10:00:06 1998  Assar Westerlund  <assar@sics.se>
1195
1196	* roken.h.in: include paths.h
1197
1198Sun Apr  5 12:30:49 1998  Assar Westerlund  <assar@sics.se>
1199
1200	* Makefile.in (SOURCES): add roken_gethostby.c to make solaris
1201 	make happy
1202
1203Thu Mar 19 20:41:25 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1204
1205	* simple_exec.c: Simple fork+exec system() replacement.
1206
1207Fri Mar  6 00:21:53 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1208
1209	* roken_gethostby.c: Make `roken_gethostby_setup' take url-like
1210 	specification instead of split up versions. Makes it easier for
1211 	calling applications.
1212
1213	* roken_gethostby.c: Another miracle of the 20th century:
1214 	gethostby* over HTTP.
1215
1216Sat Feb 21 15:18:36 1998  assar westerlund  <assar@sics.se>
1217
1218	* parse_time.c (unparse_time_approx): new function that calls
1219 	`unparse_units_approx'
1220
1221	* parse_units.c (unparse_units_approx): new function that will
1222 	only print the first unit.
1223
1224	* Makefile.in: include parse_{time,units}
1225
1226Thu Feb 12 03:30:08 1998  Assar Westerlund  <assar@sics.se>
1227
1228	* parse_time.c (print_time_table): don't return a void value.
1229
1230Tue Feb  3 11:06:24 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1231
1232	* getarg.c (mandoc_template): Change date format to full month
1233 	name, and day of month without leading zero.
1234
1235Thu Jan 22 21:23:23 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1236
1237	* getarg.c: Fix long form of negative flags.
1238
1239Mon Dec 29 23:31:10 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1240
1241	* roken.h.in: Include <err.h>, to get linux __progname.
1242
1243Sun Dec 21 09:45:18 1997  Assar Westerlund  <assar@sics.se>
1244
1245	* parse_time.c (print_time_table): new function
1246
1247	* parse_units.c (print_flags_table, print_units_table): new
1248 	functions.
1249
1250Thu Dec  4 02:51:46 1997  Assar Westerlund  <assar@sics.se>
1251
1252	* iruserok.c: moved here.
1253
1254	* snprintf.c (sn_append_char): don't write any terminating zero.
1255	(as_reserve): don't loop.  better heuristic for how much space to
1256 	realloc.
1257	(vasnprintf): simplify initializing to one.
1258
1259Sun Nov 30 14:56:59 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1260
1261	* getarg.c: Add mandoc help back-end to getarg.
1262
1263Wed Nov 12 01:09:17 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1264
1265	* verr.c, verrx.c: Fix warnings by moving exit from.
1266
1267Tue Nov 11 21:12:09 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1268
1269	* parse_units.c: Change the list of separating characters (between
1270 	units) to comma, space, and tab, removing digits. Having digits in
1271 	this list makes a flag like `T42 generate a parse error. This
1272 	change makes `17m3s' an invalid time-spec (you need a space).
1273
1274Tue Nov 11 02:38:44 1997  Assar Westerlund  <assar@sics.se>
1275
1276	* roken.h: add <sys/socket.h>
1277
1278Sun Nov  9 04:48:46 1997  Johan Danielsson  <joda@emma.pdc.kth.se>
1279
1280	* fnmatch.c: Add fnmatch from NetBSD
1281
1282Sun Nov  9 02:00:08 1997  Assar Westerlund  <assar@sics.se>
1283
1284	* parse_units.c (parse_something): ignore white-space and ','
1285
1286Mon Nov  3 22:38:32 1997  Assar Westerlund  <assar@sics.se>
1287	
1288	* roken.h: fclose prototype
1289
1290	* roken.h: add prototype for vsyslog
1291
1292	* Makefile.in: add some more source files to make soriasis make
1293 	happy
1294
1295Sat Nov  1 00:19:21 1997  Assar Westerlund  <assar@sics.se>
1296
1297	* roken.h: include <sys/uio.h> and <errno.h>.
1298	prototypes for readv and writev
1299
1300	* readv.c, writev.c: new files
1301
1302Wed Oct 29 02:21:38 1997  Assar Westerlund  <assar@sics.se>
1303
1304	* roken.h: Add ugly macros for openlog, gethostbyname,
1305 	gethostbyaddr, and getservbyname for the benefit of Crays.  Add
1306 	default definition of MAXPATHLEN
1307