]> sourceware.org Git - glibc.git/blame - ChangeLog
Update.
[glibc.git] / ChangeLog
CommitLineData
23396375
UD
1Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
2
3 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
4 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
5
6Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
7
8 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
9 to 0x137f to allow long double operations.
10
11Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
12
13 Bug Fixes:
14
15 * nss/nsswitch.c (_res): Remove redundant variable definition.
16 The real one is in resolve/res_init.c, and having both prevents
17 using -fno-common when building the shared library.
18 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
19
20 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
21 a .bss object not a COMMON symbol.
22
23 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
24 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
25
26 Optimizations:
27
28 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
29 main loop for better dual-issue on EV5. Rearrange binary search to
30 pipeline better and trim one instruction.
31
32 Cosmetic Changes:
33
34 * time/localtime.c (localtime_r): Move lock declaration back next to
35 the comment where it was before the 960724 change.
36
37 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
38 The second word is supposed to be the hardware manufacturer.
39
40 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
41 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
42
43 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
44
45 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
46 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
47 Same cleanups as with EV4 GMP stuff.
48
49Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
50
51 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
52 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
53 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
54
55Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
56
57 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
58 `unsigned long'.
59
60 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
61
62Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
63
64 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
65 Mikasa.
66
67 * socket/sys/socket.h (send, __send, sendto): Declare buffer
68 pointer as __const.
69
70 * string/tester.c (main): Test stpncpy.
71
72 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
73 segfault when called with an N that is not a multiple of four and
74 src[N-1]=='\0'.
75
76 * misc/syslog.c (LogType): New variable.
77 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
78 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
79 latter type).
80 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
81 terminator as a record-delimiter. If __send(LogFile) fails,
82 call closelog() so logfile gets re-opened next time.
83
84Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
85
86 * elf/dl-open (_dl_open): Add cast to avoid warning.
87
88 * manual/memory.texi: Improve some examples to give readers better
89 advice: Use `stpcpy' instead of `strcat' if possible.
90 * manual/string.texi: Document `strtok_r' and `strtok'.
91
92 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
93 of Makeconfig.
94 [$(cross-compiling)=no]: Change test before making librpcsvc
95 to this from $(cross-compile).
96 Reported by Andreas Schwab.
97
98Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
99
100 * elf/Makefile (routines): Move dl-sysdep to here...
101 (rtld-routines): ...from here. This should make static linking
102 work again.
103
104 * locale/setlocale.c: Add local variable `lock' and add code to
105 `setlocale' to avoid simultaneous changing of global data.
106
107 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
108 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
109 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
110 of unprotected names.
111
08a3c376
UD
112Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
113
114 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
115 This requires to rename several functions to use __ protected
116 names.
117 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
118 and __readdir.
119 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
120 and make old name a weak alias.
121 * sysdeps/mach/hurd/getrlimit.c: Likewise.
122 * sysdeps/mach/hurd/opendir.c: Likewise.
123 * sysdeps/mach/hurd/readdir.c: Likewise.
124 * sysdeps/stub/closedir.c: Likewise.
125 * sysdeps/stub/opendir.c: Likewise.
126 * sysdeps/stub/readdir.c: Likewise.
127 * sysdeps/unix/closedir.c: Likewise.
128 * sysdeps/unix/opendir.c: Likewise.
129 * sysdeps/unix/readdir.c: Likewise.
130
131 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
132
133 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
134 `__closedir' instead of unprotected names.
135
136 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
137 instead of `isatty' since later is not part of ISO C.
138 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
139 `open' since later is not part of ISO C.
140
141 * login/endutent.c (endutent): Call `__endutent_r', not
142 `endutent_r'.
143 * login/endutent_r.c: Rename defined function to `__endutent_r',
144 make `endutent_r' weak alias.
145 * login/getutent.c (getutent): Call `__getutent_r', not
146 `getutent_r'.
147 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
148 * login/getutid_r.c: Rename defined function to `__getutent_r',
149 make `getutent_r' weak alias.
150 * login/getutline.c (getutline): Call `__getutline_r', not
151 `getutline_r'.
152 * login/getutline_r.c: Rename defined function to `__getutline_r',
153 make `getutline_r' weak alias.
154 * login/pututline_r.c: Rename defined function to `__pututline_r',
155 make `pututline_r' weak alias.
156 * login/setutent.c (setutent): Call `__setutline_r', not
157 `setutline_r'.
158 * login/setutent_r.c: Rename defined function to `__setutline_r',
159 make `setutline_r' weak alias.
160 Rename `utmpname' to `__utmpname' and make former weak alias.
161 (__utmpname): Call `__strdup', not `strdup'.
162 * login/utmp.h: Add prototypes for name space clean reentrant
163 versions.
164 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
165 and `__endutent_r' instead of unprotected names.
166
167 * math/math.h: Add prototype for `__matherr'.
168 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
169 of `matherr'.
170
171 * nss/getXXbyYY.c: Call __ protected reentrant function.
172 * nss/getXXent.c: Likewise.
173 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
174 name. Make usual name a weak alias.
175 * nss/getXXent_r.c: Likewise.
176
177 * posix/unistd.h: Add prototype for `__ttyname_r'.
178 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
179 and make `ttyname_r' a weak alias.
180
181 * resource/sys/resource.h: Add prototype for `__getrlimit'.
182 * sysdeps/stub/getrlimit.c: Prepend function name with __
183 and make old name a weak alias.
184 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
185 and make `getrlimit' weak alias.
186
187 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
188 * libc/stdio/vscanf.c: De-ANSI-fy.
189 Rename function to `__vscanf' and make `vscanf' a weak alias.
190 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
191 of `vscanf'.
192
193 * stdio-common/reg-printf.c: De-ANSI-fy.
194 Rename function to `__register_printf_function' and make
195 `register_printf_function' weak alias.
196
197 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
198 `wcsrtombs'.
199
200 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
201 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
202 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
203 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
204 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
205 name a weak alias.
206 * wcsmbs/mbsrtowcs.c: Likewise.
207 * wcsmbs/wcrtomb.c: Likewise.
208 * wcsmbs/wcsrtombs.c: Likewise.
209 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
210
211 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
212 instead of `sigprocmask'.
213
214
215 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
216 version getgrent_r, getgrgid_r, and getgrnam_r.
217 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
218 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
219 names.
220 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
221
222
223 * misc/error.c (private_strerror): Translate messages from table,
224 too.
225
226 * io/fcntl.h: Pretty printing.
227 * misc/fstab.h: Likewise.
228 * misc/ttyent.h: Likewise.
229 * resource/sys/resource.h: Likewise.
230 * string/argz.h: Likewise.
231 * string/envz.h: Likewise.
232
233 Add support for symbols from POSIX.1c (POSIX threads).
234 * posix/getconf.c: Handle new sysconf symbols.
235 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
236 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
237 * sysdeps/generic/confname.h: Define new symbols.
238 * sysdeps/posix/sysconf.c: Handle new symbols.
239 * sysdeps/stub/sysconf.c: Ditto.
240 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
241 is ok now.
242
243 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
244 have real prototype.
245
246 * sysdeps/generic/resourcebits.h: Add macro definition for
247 RLIMIT_* values. Some sources test using #ifdef whether specific
248 limit is available.
249 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
250 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
251 separate files for the architectures.
252 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
253 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
254 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
255 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
256
257 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
258 and only default on `OPEN_MAX'.
259 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
260 the POSIX version.
261
262 * time/Makefile (routines): Add ctime_r.
263 * time/asctime.c: Add implementation of `asctime_r'. Make
264 `asctime' implementation based on reentrant version.
265 * time/ctime_r.c: New file.
266 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
267 and `ctime_r'.
268
269Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
270
271 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
272 (_nl_C_LC_CTYPE): Fix ordering.
273 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
274 typo.
275
276Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
277
278 * csu/initfini.c: Discover the maximum alignment generated by the
279 compiler when emitting a function.
280 (_init): Make sure the end of the crti fragment is aligned.
281 (_fini): Likewise.
282
283Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
284
285 * initfini.c: (__libc_is_static): New variable. Will be
286 initialized in init-first.c. Some actions in the libc work
287 different when libc is static or dynamic.
288
289 * sysdeps/unix/sysv/linux/init-first.c (init): Use
290 `__libc_is_static' variable to determine whether call to
291 `personality' and `setfpucw' is necessary. When done set variable
292 to +-1 depending on library type.
293
294 * locale/setlocale.c (setlocale): Use global variable
295 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
296 determine whether it's a SET[UG]ID program.
297
298Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
299
300 * Version 1.93 test release.
301
302 * manual/Makefile: Use -include for chapters-incl too.
303
304 * Makeconfig (+link): Add back start.o, mistakenly removed in last
305 change.
306
307Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
308
309 * nss/Makefile (generated): Add db-*.c.
310
311 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
312 using #include_next.
313
314 * configure.in (--enable-add-ons): Quote m4 macro args.
315
316 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
317
318Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
319
320 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
321
322 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
323
324 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
325 (+link): Not here.
326
327 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
328 warning when inline function is elided.
329 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
330 (elf_machine_runtime_setup): Likewise.
331 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
332 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
333 (elf_machine_load_address): Likewise.
334
335 * catgets/gencat.c: Include <locale.h>.
336
337 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
338
339 * login/logwtmp.c (logwtmp): Call time, not __time.
340
341 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
342 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
343 * login/logwtmp.c (logwtmp): Likewise.
344
345 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
346 comparing ioctl macro values.
347
348 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
349
350 * manual/Makefile: Use -include for chapters to suppress warning.
351
352 * sysdeps/stub/socket.c: Fix type of TYPE arg.
353 * sysdeps/stub/socketpair.c: Likewise.
354
355 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
356
357 * sysdeps/generic/sysdep.h: New file, broken out of ...
358 * sysdeps/unix/sysdep.h: ... here.
359 (C_LABEL): Moved out.
360
361 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
362 stick to sed. Do `exit 0' at end because while returns nonzero.
363
364 * sysdeps/i386/sysdep.h: New file, broken out of ...
365 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
366
367 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
368 They are defined unconditionally in libio/stdio.h.
369
370 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
371 * elf/dl-cache.c: Likewise.
372
373Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
374
375 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
376 (sysdep_headers): Add sys/sysmacros.h.
377 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
378
9ebb936d
RM
379Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
380
381 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
80776ab8
UD
382 tcgetattr. We have weak aliases now.
383 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
384 "optimizations" for random functions.
9ebb936d 385
033badd4
RM
386Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
387
388 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
389 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
390 redefinition warning.
391
392Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
393
394 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
395 the __tzset_lock.
396
397Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
398
399 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
400 protection.
401
402Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
403
404 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
405 to be 64-bit clean.
406 Reported by Richard Henderson <rth@tamu.edu>.
407
408Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
409
410 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
411 David Miller.
412
413Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
414
415 * locale/setlocale.c (setlocale): Don't try to free C locale
416 data.
417 Reported by Matthias Urlichs.
418
1f0917b7
MB
419Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
420
421 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
422 (open_file): New function, contents mostly from __open.
423 (_dl_sysdep_read_whole_file): New function.
424
b98f370c
MB
425Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
426
427 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
428 `..' dots in sed search string.
429
6b3a2224
RM
430Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
431
432 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
433 protection.
434
ce7a5ef4
RM
435Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
436
6b3a2224
RM
437 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
438 in those directories.
439 * config.make.in (add-ons): New varaible, set from @subdirs@.
440 * Makefile (subdirs): Added $(add-ons) at the end.
441
ce7a5ef4
RM
442 * time/strftime.c (strftime: do_number): Initialize PRINTED to
443 MAXDIGITS in case P is null and so sprintf is never actually called.
444
445Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
446
447 Add support for the to-be-written internationalized regexp.
448 This code must be able to use collation symbols and collation
449 equivalent classes.
450 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
451 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
452 New global variables for collation classes.
453 * locale/categories.def: Add new descriptions for collation symbols
454 and collation classes.
455 * locale/langinfo.h: Add constants for collation symbols and
456 collation classes.
457 * locale/lc-collate.c: Add new global variables for collation symbols
458 and collation classes.
459 (_nl_postload_collate): Initialize new variables.
460 * locale/programs/ld-collate.c: Add code to emit tables for
461 collation symbols and collation classes.
462 * locale/programs/locales.h: Change prototype for `collate_output'.
463 * locale/programs/locfile.c (write_all_categories): Call
464 `collate_output' with new argument.
465 * locale/localeinfo.h: Add declaration for new global vars.
466 (union locale_data_value): New member wstr for `wchar_t' strings.
467 * locale/programs/locale-spec.c: Handle `collate-classes'
468 keyword and print information about available collation classes.
469 * locale/strlen-hash.h: New file. Simple hashing function which
470 takes a string with known length.
471 * locale/Makefile (distribute): Add strlen-hash.h.
472 (locale-modules): New var. Additional files for `locale' program.
473
474 * locale/C-ctype.c: Rewrite to avoid using string for giving values
475 which are of type `u_int32_t'.
476 Correct entry for EOF in toupper and tolower tables.
477
478 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
479 warning.
480
481 * locale/programs/ld-ctype.c (ctype_output): Add code to make
482 sure that all tables in binary file are words aligned.
483
484 * locale/programs/locfile.c (write_locale_data): Correct handling
485 of LC_MESSAGES locale. Create directory if necessary.
486
487 * locale/setlocale.c (setlocale): Add cast to avoid warning.
488
489 * string/string.h: Add prototype for `__strndup'.
490
491Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
492
493 * wcsmbs/mbrtowc.c: Remove unused variable.
494
495Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
496
497 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
498 2.0.10; some problems were reported with an earlier version, and this
499 one is known to work.
500
501 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
502 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
503
cddcfecf
RM
504Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
505
506 * elf/rtld.c (dl_main): Ignore arguments when environment variable
507 LD_TRACE_LOADED_OBJECTS is set.
508
509Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
510
511 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
512 __libc_enable_secure instead of _dl_secure.
513 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
514 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
515 of _dl_secure.
516 * elf/Makefile (routines): Add enbl-secure.
517 (elide-routines.so): Here too.
518 * sysdeps/generic/enbl-secure.c: New file.
519 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
520 * elf/dl-support.c (_dl_secure): Variable removed.
521 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
522
523Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
524
525 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
526 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
527 compiler doesn't elide it.
528 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
529
61965e9b
RM
530Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
531
532 * elf/rtld.c (dl_main): Take new option --verify when run directly.
533 In verify mode, exit with status zero iff the argument object's
534 PT_INTERP matches argv[0].
535 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
536 exits with zero status. This makes `ldd' secure again.
537
538Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
539
540 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
541 environment variable handling. This makes the dynamic linker
542 only print loaded libraries and quit.
543
544 * elf/ldd.sh.in: Don't use `rtld --list' but instead
545 LD_TRACE_LOADED_OBJECTS environment variable to print needed
546 objects.
547
548Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
549
550 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
551 after printing version until after doing usage for --help.
552 (long_options, main, usage): Rename -l/--lowercase option to
553 -f/--fold-case (-f matches sort).
554
555Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
556
557 * db/makedb.c: New file. Implement program to create simple <db.h>
558 database from textual input. This will be used for nss_db.
559
560Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
561
562 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
563 * sunrpc/rpc/pmap_clnt.h: Likewise.
564 * sunrpc/rpc/auth.h: Likewise.
565 * sunrpc/rpc/pmap_rmt.h: Likewise.
566 * sunrpc/rpc/rpc_msg.h: Likewise.
567
568Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
569
570 * string/string.h (strndupa): Change to use return value of
571 `memcpy' for more performance.
572 * string/strndup.c: Likewise.
573
574 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
575 This might lead to problems.
576 (strndupa): Likewise.
577
fc933e28
RM
578Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
579
580 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
581 and change K&R prototypes to ANSI prototypes.
582 * sunrpc/rpc/auth_unix.h: Ditto.
583 * sunrpc/rpc/clnt.h: Ditto.
584 * sunrpc/rpc/pmap_clnt.h: Ditto.
585 * sunrpc/rpc/pmap_prot.h: Ditto.
586 * sunrpc/rpc/pmap_rmt.h: Ditto.
587 * sunrpc/rpc/rpc_msg.h: Ditto.
588 * sunrpc/rpc/svc.h: Ditto.
589 * sunrpc/rpc/svc_auth.h: Ditto.
590 * sunrpc/rpc/xdr.h: Ditto.
591
7443a5a8
RM
592Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
593
594 * ctype/test_ctype.c: Test EOF too.
595
fc933e28
RM
596Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
597
598 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
599 * sunrpc/rpc/auth_unix.h: Likewise.
600 * sunrpc/rpc/clnt.h: Likewise.
601 * sunrpc/rpc/netdb.h: Likewise.
602 * sunrpc/rpc/pmap_clnt.h: Likewise.
603 * sunrpc/rpc/pmap_prot.h: Likewise.
604 * sunrpc/rpc/rpc_msg.h: Likewise.
605 * sunrpc/rpc/svc.h: Likewise.
606 * sunrpc/rpc/svc_auth.h: Likewise.
607 * sunrpc/rpc/xdr.h: Likewise.
608
609 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
610 to here from...
611 * sunrpc/pmap_rmt.c: ...here.
612
4627647c
MB
613Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
614
615 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
616 valid ut_id field.
617 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
618 if a search fails.
619
fa8463e5
RM
620Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
621
622 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
623 <kkojima@info.kanagawa-u.ac.jp>.
624
036cc82f
RM
625Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
626
627 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
628 defined, not __OPTIMIZED.
629 (_nl_msg_cat_cntr): Move declaration outside macro definition
630 to prevent "nested extern" warning.
631 (dcgettext): Rename local variable `result' to `__result'.
632
633Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
634
635 * locale/programs/localedef.c (__progname): Remove decl.
636 (main): Use program_invocation_short_name instead of __progname.
637 (usage): Use program_invocation_name instead of __progname.
638
639Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
640
641 * catgets/gencat.c: Use "libc" instead of PACKAGE.
642 * locale/localedef.c: Ditto.
643 * locale/locale.c: Ditto.
644
645 * locale/findlocale.c (_nl_find_locale): Little optimization.
646 Use new function `strndup'.
647
648 * locale/loadlocale.c: Little optimization. Use constant value
649 from `_nl_category_num_items' instead of byte-order dependend
650 value from file.
651
652 * locale/programs/ld-time.c (time_add): Correct string constant.
653
654 * locale/programs/locale-spec.c: New file.
655 * locale/programs/locale.c: Call `locale_special' function if
656 no other field matches.
657
658 * locale/programs/localedef.c: No need to define `program_name'.
659 Use global variable `__progname'.
660
661 * locale/programs/locfile.c (write_locale_data): Always write
662 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
663 necessary since message catalogs are also installed in the
664 LC_MESSAGES/ directory.
665
666 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
667 function instead of writing single bytes.
668 (encode_char): Also handle little endian.
669
670 * locale/setlocale.c (new_composite_name): Little optimization.
671 Use return value of `memcpy'.
672
673 * misc/ttyent.h: Pretty print prototypes, add missing parameter
674 names, prepend parameter names with __ and use `__const' instead
675 of `const'.
676 * posix/unistd.h: Ditto.
677 * stdlib/stdlib.h: Ditto.
678 * string/string.h: Ditto.
679
680 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
681 Use `error' function instead of doing it by hand.
682 * sysdeps/posix/sysconf.c: De-ANSI-fy.
683 Handle _SC_COLL_WEIGHTS_MAX.
684 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
685 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
686 since these do depend on the platform.
687 Add POSIX.4 symbols.
688
689 * posix/posix2_lim.h: Add missing definition of
690 _POSIX2_COLL_WEIGHTS_MAX.
691 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
692 to high values since we have no fixed limit.
693
694 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
695 _SC_PAGESIZE for buggy systems (= HP UX) out there.
696
697 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
698 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
699 * wcsmbs/wcsnrtombs.c: Ditto.
700 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
701 wcsnrtombs.
702
703Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
704
705 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
706 course.
707 * nss/getXXent_r.c: Likewise.
708 * nss/nsswitch.c: Likewise.
709 * nss/nss_files/files-XXX.c: Likewise.
710 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
711 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
712 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
713
4311b2a6
RM
714Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
715
716 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
717 macro, now put the needed Linux version just once, here; update to
718 needing linux-2.0.3 headers.
719 (libc_cv_linuxVER): New macro derived from that.
720 (kernel header check): Use those macros and some m4 magic to replace
721 hard-coded `201' and `2.0.1' in several places.
722
723 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
724
725Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
726
727 * time/localtime.c: Move lock variable declaration to end of
728 variable declarations since if is a dummy macro the ; at the
729 end terminates the variable section of the function.
730
731 * time/tzset.c: Undefine `tzset' before function declaration.
732 Use `weak_function' macro instead of `weak_symbol'.
733
734Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
735
736 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
737 `strotull'.
738
739Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
740
741 * locale/C-ctype.c: Increment number of fields after change
742 from Wed Jun 19 03:24:58 1996.
743
c7fd2f47
RM
744Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
745
746 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
747 ($(common-objpfx)libc.so): Move deps into that, use it.
748 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
749 $(rpcuserlibs:.so=_pic.a).
750 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
751 use $(LDLIBS-c.so).
752
753Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
754
755 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
756 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
757
b24be05f
RM
758Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
759
760 * locale/iso-4217.def: Add India to comment for symbol "INR ".
761 Reported by Raja R Harinath <harinath@cs.umn.edu>.
762
763Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
764
765 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
766 #undef RESOLVE.
767
e3047adb
RM
768Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
769
b24be05f
RM
770 * time/tzset.c: Include <libc-lock.h>.
771 (__tzset_lock): New lock variable.
772 (tzset): New function (weak defn), no longer weak alias for __tzset.
773 Call __tzset while holding __tzset_lock.
774 * time/localtime.c: Include <libc-lock.h>.
775 (__localtime_r): Hold __tzset_lock while doing the work.
776
e3047adb
RM
777 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
778 from [!HAVE_GNU_LD] to [!_LIBC].
779 [_LIBC]: Include <libc-lock.h> and define a lock.
780 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
781 (setenv, unsetenv): Use them.
782
c199a24f
MB
783Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
784
785 * locale/programs/locfile.c (write_locale_data): Deal with missing
786 UIO_MAXIOV.
787
788 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
789 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
790
e3047adb
RM
791Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
792
793 Win32 hacks from <Rob_Tulloh@tivoli.com>.
794 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
795 use void * for my_realloc; include <malloc.h> for alloca.
796 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
797 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
798 * posix/glob.h: Likewise.
799
0e33ca7b
MB
800Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
801
802 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
803 call __io_select unless there's only a single descriptor, as each
804 descriptor now has its own reply port.
805 If there is only a single descriptor, just use its reply port for
806 everything and don't bother creating the port set.
807
710bf4f9 808 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
6f9561ed 809 <unistd.h>: New include.
e3047adb 810
5764121c
MB
811 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
812 continuation line.
813
22f87e0f
RM
814Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
815
816 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
817 from the USA any software that even makes it easy to drop in an
818 encryption module of foreign origin.
819 * Makerules (cryptobjdir): Variable removed.
820 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
821 * Makefile (subdirs): Remove crypt.
822
73f7f68b
RM
823Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
824
825 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
826 operator to yesexpr and noexpr string.
827
22f87e0f
RM
828Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
829
830 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
831 old code would have failed on a big-endian 64-bit architecture).
832 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
833
834 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
835 (xdr_u_long): Use switch instead of chain of if-statements.
836 Remove gratitous parentheses around return expressions.
837 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
838
839 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
840
841 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
842 not int.
843
844Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
845
846 * dlfcn.h, db.h: New wrapper headers.
847
848 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
849 for `struct stat;' forward decl.
850
851Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
852
853 * locale/iso-4217.def: Add some more standardized currency
854 symbols.
855
cf725107
RM
856Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
857
858 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
859
f0097fa0
RM
860Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
861
862 * Rules (dummy.o, empty.o): Targets removed.
863 (dummy.c, empty.c): New targets replace them.
864
87e4c1ba
RM
865Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
866
867 * crypt/Makefile (lib-noranlib): Depend on
868 $(objpfx)libcrypt.so$(libcrypt.so-version).
cf725107 869 (subdir): Fix name.
87e4c1ba 870
49b98627
RM
871Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
872
873 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
874 check. mib's clueless hacking broke it.
875
876Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
877
878 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
879
880Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
881
49b98627
RM
882 * misc/sys/ustat.h: New file.
883 * misc/ustat.h: Ditto.
884 * sysdeps/generic/ustatbits.h: Ditto.
87e4c1ba 885 * sysdeps/stub/ustat.c: Ditto.
49b98627
RM
886 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
887 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
888 ustatbits.h.
889 (routines): Mention ustat.
890
87e4c1ba
RM
891 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
892 * sysdeps/alpha/elf/start.S: here.
893
49b98627
RM
894 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
895 alphabetically correct place. Mention ustat.
896
897 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
898 common symbol (makes errno accessible from gdb).
899
900 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
901 test, not ut_type.
902
903 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
904 record always gets appended at end of file (wtmp is a log file,
905 after all). Set ut_type to DEAD_PROCESS if name is empty.
906
907 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
908 separate loop from search for UT_ID. Fix code so it is in
909 sync with Unix man page.
910
911 * login/getutline_r.c (getutline_r): Stop searching only if
912 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
913
914Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
915
916 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
917 avoid duplicate declarations.
918
919Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
920
921 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
922 and alpha-gnu-linuxecoff targets.
923
924Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
925
926 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
927
928Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
929
930 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
931 of int.
932
933 * resolv/res_comp.c (res_hnok): Use empty statement in place
934 of NULL (which generates a "useless expression" warning in
935 gcc).
936
d7bca0d3
RM
937Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
938
939 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
940 with $(..) in output.
941
f18edac3
RM
942Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
943
944 * elf/Makefile (dl-routines): Add dl-cache.
945 * elf/dl-cache.c: New file.
946 * elf/dl-load.c (_dl_map_object): Check cache before default path.
947
3867ee64
RM
948Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
949
950 * stdio-common/vfscanf.c: Major change. Now read character
951 from stream only if needed. Before it was read after the
952 previous character was used.
953 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
954
955 * stdio-common/tstscanf.c: Change test program so that return
956 value is != 0 if one test failed.
957
ec2ac6d5
RM
958Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
959
3867ee64
RM
960 * sysdeps/m68k/Makefile (crypt): Variable removed.
961 * sysdeps/sparc/Makefile: Likewise.
962
ec2ac6d5
RM
963 * version.h (VERSION): Update to 1.93.
964
965 * Makerules ($(libdir)/libc.so): Depend on
966 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
967
968 * crypt/nocrypt.c: New file.
969 * Makefile (subdirs): Add crypt.
970 * crypt/Makefile: New file.
971
972 * Makerules (soversions.mk): Move this target, include of it, and
973 include of version.mk to ...
974 * Makeconfig: ... here.
975 (soversions.mk): Depend on Makeconfig instead of Makerules.
976
977 * shlib-versions (*-*-*): Set libcrypt=0.
978
8a5776e6
MB
979Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
980
981 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
982 word extends right up to rmargin.
983
984 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
985 output the wrap margin, set point_col to wmargin.
986 Use negative point_col to deal with a wmargin of 0.
987 (line_wrap_point): Return 0 for a negative point_col.
988 (line_wrap_stream): Make wmargin ssize_t.
989 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
990 point_col ssize_t.
991 (line_wrap_stream): Make wmargin ssize_t.
992 (line_wrap_point): Return 0 for a negative point_col.
993
ec2ac6d5
RM
994Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
995
996 * shlib-versions (*-*-gnu*): Set libc=0.0
997
998Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
999
1000 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
1001 sysdeps/i386/dl-machine.h.
1002
8a5776e6
MB
1003Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
1004
1005 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
1006 to fiddle __put_limit in conjunction with __linebuf_active.
1007
ec2ac6d5
RM
1008Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1009
1010 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
1011 to the strong name, not the file name.
1012
f36f8dcf
RM
1013Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1014
ec2ac6d5
RM
1015 * csu/initfini.c: More magic. Detect if .end is produced and put it
1016 in the output iff the compiler does.
1017
184b7b46
RM
1018 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
1019 because that is broken on alpha.
1020
f36f8dcf
RM
1021 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
1022 call as in first.
1023
1024 * Makerules (make-link): Install the new link with atomic mv -f in
1025 case ln itself requires the library being installed.
1026
ec42724d
RM
1027Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
1028
1029 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
1030 i386/dl-machine.h of 960713.
1031
1032 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
1033 (_dl_sysdep_read_whole_file): Fix result variable declaration.
1034
1035Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1036
1037 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
1038 `nodename' member.
1039
1040Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
1041
1042 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
1043 with pointer to local variable instead of NULL.
1044
10451996-07-15 Paul Eggert <eggert@twinsun.com>
1046
1047 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
1048
1049Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1050
1051 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
1052 that are already added by other means.
1053
1054 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
1055 caller column to get those syscalls added automagically.
1056
05a6a9d6
MB
1057Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
1058
1059 * login/logout.c (logout): Initialize DATA to a state that will
1060 make setutent_r happy.
1061
2064087b
RM
1062Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1063
ec42724d
RM
1064 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
1065 instead of setting the DT_DEBUG pointer.
1066
1067 * csu/initfini.c (_init, _fini): Generate .end directives after
1068 standalone prologues and filter them out from epilogues.
1069
391763e7
RM
1070 * Makeconfig (rtld-installed-name): Set to ld.so.1.
1071 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
1072 removed.
1073
1074 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
1075
1076 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
1077
a78b0f18
RM
1078 * MakeTAGS (extract): Pass --add-comments=TRANS.
1079 * sysdeps/gnu/errlist.awk: Write comments into the output with the
1080 descriptive paragraphs from the manual preceded by TRANS.
1081
b1dbbaa4
RM
1082 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
1083 (_dl_start): Move RESOLVE defn inside this function and #include
1084 "dynamic-link.h" a second time there.
1085 [RTLD_START]: Move use of this after _dl_start function.
1086
f51d1dfd
RM
1087 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
1088
1089 * elf/rtld.c: Include <string.h>.
1090
1091 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
1092 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
1093 Conditionalize defns on [RESOLVE].
1094 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
1095 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1096 Instead use RESOLVE macro with same args.
1097 (elf_machine_rel): Conditionalize defn on [RESOLVE].
1098 * elf/dl-reloc.c (RESOLVE): New macro, define before including
1099 "dynamic-link.h". It replaces `resolve' local function.
1100 * elf/dl-runtime.c: Likewise.
1101 * elf/rtld.c: Likewise.
1102
c928de79
RM
1103 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
1104
1105 * elf/dl-open.c (_dl_open): Force an indirect call for
1106 _dl_relocate_object so there is no chance a PLT fixup will be done
1107 and clobber _dl_global_scope before our call happens.
1108
1109 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
1110 to =t; must operate on top of fp reg stack, not second from top.
1111 Correct input constraint to 0 from t; must be explicit when input and
1112 output are the same register.
1113 (floor): Use __volatile instead of volatile.
1114 (ceil): Likewise.
1115
1116 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
1117 other targets.
2064087b
RM
1118
1119Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1120
1121 * manual/Makefile (lib): New phony target. Depend on stamp files.
1122 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
1123
11241996-07-13 Paul Eggert <eggert@twinsun.com>
1125
1126 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
1127 to match Emacs format-time-string specification.
1128 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
1129
1130Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1131
1132 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
1133 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
1134 between MAP and its deps.
1135 * elf/link.h: Fix decl.
1136 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
1137 colon-separated list of names, map those and pass vector of ptrs as
1138 PRELOADS list to _dl_map_object_deps.
1139 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
1140 _dl_map_object_deps with empty preload list.
1141 * elf/dl-open.c (_dl_open): Likewise.
1142
1143 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
1144 removed.
1145 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
1146 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1147 Conditionalize defn on [! MAP_ANON].
1148 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
1149 on [! MAP_ANON].
1150 * elf/rtld.c (dl_main): Likewise.
1151 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
1152 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
1153
1154 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
1155
1156Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
1157
1158 * stdlib/random.c (__random): Declare as int32_t to be in sync
1159 with declaration.
1160
1161 * socket/Makefile (headers): Add socketbits.h.
1162
1163 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
1164 it that way.
1165
1166 * grp/initgroups.c (initgroups): Add groups that user is a member
1167 of, not the ones he is _not_ a member of.
1168
1169 * nss/nsswitch.c (known_compare): Make known_compare() a static
1170 instead of a local function. The latter are difficult to debug
1171 and slow to execute on certain platforms.
1172
1173 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
1174 place of sizeof (dev). The size of a literal string includes the
1175 NUL byte.
1176
1177 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
1178
1179Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
1180
1181 * misc/mntent.c (addmntent): Seek to end of file before writing
1182 entry. Return 1 on error, not -1.
1183
1184Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
1185
1186 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
1187 syscall.
1188
1189Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1190
1191 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
1192 shift amount for Jensen must be 5 not 4.
1193
1194Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1195
1196 * socket/sys/socket.h (struct osockaddr): New type.
1197
1198Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
1199
1200 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
1201 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
1202 and `long double' versions can be generated.
1203 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
1204 so that included efgcvt{,_r}.c file generate `long double'
1205 versions.
1206 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
1207 functions.
1208
1209 * manual/startup.texi: Document new getsubopt function.
1210 * manual/examples/subopt.c: New example program for documenting
1211 getsubopt function.
1212
1213Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
1214
1215 * stdlib/Makefile (routines): Add getsubopt.
1216 * stdlib/stdlib.h: Add prototype for getsubopt.
1217 * stdlib/getsubopt.c: New file. Implement getsubopt function
1218 to handle suboption parsing.
1219
adc6ff7f
RM
1220Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1221
842907c6
RM
1222 * inet/getnetent_r.c: Define NEED_H_ERRNO.
1223 * inet/getnetbynm_r.c: Likewise.
1224 * inet/getnetent.c: Likewise.
1225 * inet/getnetbyad_r.c: Likewise.
1226 * inet/getnetbyad.c: Likewise.
1227 * inet/getnetbynm.c: Likewise.
1228
1229 * sysdeps/generic/pselect.c: Include <sys/time.h>.
1230
1231 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
1232 `struct timespec'.
1233
e6c9a67a
RM
1234 * math/Makefile (calls): Add s_frexp, s_ldexp.
1235 (routines): Remove them and &f from here.
1236
1237 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
1238
adc6ff7f
RM
1239 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
1240 and check it.
1241
1242 * nss/nss_files/files-XXX.c: Comment fix.
1243
1244Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
1245
1246 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
1247 of reentrant function.
1248 (setup): Pass additional argument with function name we are
1249 looking for.
1250 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
1251 new argument {SET,END,GET}FUNC_NAME_STRING.
1252
1253 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
1254 we return a pointer.
1255
1256Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1257
1258 * nss/nss_files/files-parse.c: Add comment about things to #define.
1259
1260 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
1261
1262 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
1263 terminator char as an error.
1264
1265 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
1266
1267Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
1268
1269 * catgets/gencat.c (write_out): Move code to determine new
1270 best size out of inner loop.
1271
e6c9a67a
RM
1272Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
1273
1274 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
1275 implementation of frexp() function.
1276 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
1277 implementation of ldexp() function.
1278
1279 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
1280 out before or'ing.
1281
adc6ff7f
RM
1282Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
1283
1284 * misc/mntent.c: Include <sys/types.h>.
1285 (endmntent): Return 1 one success, 0 on failure.
1286 (getmntent): Chop newline and ignore empty lines.
1287
1288Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1289
1290 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
1291 differently based on [RTLD_BOOTSTRAP].
1292 (elf_machine_rela): Use it instead of the fn ptr arg directly.
1293
c1509239
RM
1294Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1295
07a4742f
RM
1296 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
1297 __glob_closedir_hook): Remove decls.
1298
1299 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
1300
1301 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
1302 for send and connect syscalls.
1303
1304 * socket/sys/socket.h: New file, taken from non-sysdep parts of
1305 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
1306 Declare __ names for send and connect.
1307 * sysdeps/generic/socketbits.h: New file.
1308 * sysdeps/unix/sysv/linux/socketbits.h: New file.
1309 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
1310 * sysdeps/generic/sys/socket.h: File removed.
1311
1312 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
1313 * sysdeps/mach/hurd/send.c: Likewise.
1314
c1509239
RM
1315 * sysdeps/mach/libc-lock.h: New file.
1316 * sysdeps/unix/readdir.c: Do locking.
1317 * sysdeps/unix/seekdir.c: Likewise.
1318 * sysdeps/unix/rewinddir.c: Likewise.
1319 * sysdeps/unix/closedir.c: Likewise.
1320 * sysdeps/unix/bsd/telldir.c: Likewise.
1321 * sysdeps/mach/hurd/seekdir.c: Likewise.
1322 * sysdeps/mach/hurd/readdir.c: Likewise.
1323 * sysdeps/mach/hurd/closedir.c: Likewise.
1324 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
1325 * sysdeps/unix/opendir.c: Likewise.
1326 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
1327 (struct __dirstream): Add lock member using __libc_lock_define.
1328 * sysdeps/unix/dirstream.h: Likewise.
1329
1330 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
1331
1332 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
1333
1334 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
1335
1336Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
1337
1338 * locale/programs/stringtrans.c: Fix typo in copyright.
1339
1340 * stdio-common/printf-prs.c: Add casts to prevent
1341 signed<->unsigned warnings.
1342
1343 * stdio-common/printf-parse.h: Initialize state variable before
1344 calling mbrlen.
1345 * stdio-common/printf-prs.c: Don't initialize state variable here.
1346 * stdio-common/vfprintf.c: Don't initialize state variable.
1347 (vfprintf): While determining length of multibyte string don't
1348 try to be clever in determining characters to use for first
1349 call.
1350
1351 Add real implementation of multibyte<->wide char conversion
1352 functions. The functions always convert between the fixed wide
1353 char format (ISO 10646 in UCS4) and the UTF8 representation of
1354 this character set. Conversion between the currently used
1355 8bit character set and ISO 10646 will not take place. This is
1356 what iconv() is for.
1357 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
1358 dummy definition.
1359 Add optimized version of `mbrlen' function.
1360 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
1361 to 0...0x7f.
1362 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
1363 to 0..0x7f.
1364 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
1365 This is needed in the wchar.h header.
1366 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
1367 encoded character to UCS4.
1368 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
1369 element of `mbstate_t' for initial state.
1370 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
1371 encoded string to UCS4 string.
1372 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
1373 character to UTF8 encoded form.
1374 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
1375 encoded string to UTF8 encoded form.
1376
3dbe1581
RM
1377Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1378
089b2b8a
RM
1379 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
1380 variable name, so new a libc with new requirements won't fail to
1381 notice an insufficient Linux version.
1382
99c57951
RM
1383 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
1384
1385 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
1386 instead of 2.0 headers.
1387
20121a6a
RM
1388 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
1389
1390 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
1391 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
1392
3dbe1581
RM
1393 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
1394 before using it in lhs of weak_alias.
1395
1396 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
1397 Call __nss_lookup when not setting STARTP.
1398 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
1399 function-calling loop.
1400
18c75117
TBB
1401Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1402
1403 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
1404 PENDIN, NOFLSH): Undefine these at start if they are already
1405 defined to avoid collision with termbits.h.
1406 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
1407 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
1408
999493cb
RM
1409Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1410
1411 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
1412 already defined to float, long double. Use those macros for _Mdouble_
1413 defns when including mathcalls.h.
1414 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
1415 -D_Mlong_double_=double.
1416
1417 Add more -lm functions to -lc because ldexp uses them.
1418 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
1419 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
1420 ldexp have both f and l code, and those have f though not l code.
1421
18c75117
TBB
1422Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1423
1424 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
d33f2ad4 1425 error is 0. The "placeholder" entries recently added to
18c75117
TBB
1426 errno.texi convert to zero since `???/' is at the front of them.
1427 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
1428
d33f2ad4 1429 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
18c75117
TBB
1430 __const to conform with unistd.h.
1431
18c75117 1432 * stdlib/stdlib.h (random): Declare return type to be int32_t.
53163ad0
TBB
1433
1434 * string/argz-delete.c (argz_delete): Use memmove instead of
999493cb 1435 memcpy for possibly overlapping strings.
53163ad0 1436
af5b3bc3
RM
1437Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1438
1439 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
1440 storage class. GCC gives an error for non-extern data defns with the
1441 alias attribute.
1442
467ab247
TBB
1443Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1444
1445 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
1446 memmove instead of memcpy for possible overlapping strings.
1447
af5b3bc3
RM
1448Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1449
1450 * libc-symbols.h (weak_function): New macro.
1451 For GCC 2.7+ define as __attribute__ ((weak)).
1452 * elf/dl-minimal.c: Use weak_function as keyword in function defns
1453 instead of weak_symbol (NAME) after the defn.
1454 * stdlib/strtol.c: Likewise.
7702f9b5 1455 * stdlib/strtod.c: Likewise.
af5b3bc3
RM
1456 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1457
1458 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
1459 If this is defined, don't declare _dl_rtld_map as weak, and
1460 don't check for MAP pointing to it. RESOLVE is always null in this
1461 case, so test with #ifdef instead of if.
1462
1463 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
1464 weak_symbol.
1465 * csu/initfini.c (_init): Likewise.
1466 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
1467 * misc/efgcvt_r.c: Likewise.
1468 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1469 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1470
1471 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
1472 It was not used in any assembler code.
1473 (weak_symbol_asm): Renamed to weak_extern_asm.
1474 (weak_extern): New macro replaces weak_symbol for weak extern refs;
1475 define to weak_extern_asm for [!ASSEMBLER].
1476
edb8e1d9
RM
1477Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1478
af5b3bc3
RM
1479 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
1480 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
1481 define those now as aliases.
1482 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
1483 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
1484 after GCC weak attribute decl.
1485
28160ffb
RM
1486 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
1487 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
1488 (element printer): Check for elt in ALIAS, instead of special case
1489 for EWOULDBLOCK.
1490
faf85e08
RM
1491 * io/Makefile (headers): Add sys/vfs.h.
1492 * io/sys/vfs.h: New file.
1493
edb8e1d9
RM
1494 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
1495 critical section lock before unlinking dying active resources.
1496 The unlock just before return is right (i.e. old code unlocked twice).
1497
99ed3e39
MB
1498Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1499
edb8e1d9 1500 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
99ed3e39
MB
1501 Use memmove instead of memcpy where overlap is possible (not
1502 necessary using current implementation of memcpy, but...).
1503 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
1504
1505Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
1506
e851d072
RM
1507 * stdio/linewrap.c (lwupdate): New function, mostly was
1508 __line_wrap_update. Use POINT_COL field instead of POINT.
99ed3e39
MB
1509 (__line_wrap_output): Use lwupdate.
1510 (__line_wrap_update): New function.
1511 (ensure_unwrapped, ensure_wrapped): New functions.
1512 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1513 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1514
e851d072 1515 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
467ab247 1516 POINT_COL. Add POINT_OFFS field.
99ed3e39
MB
1517 (__line_wrap_update): New decl.
1518 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1519 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1520
2549e758
MB
1521Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
1522
1523 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
1524
1525 * login/pututline_r.c (pututline_r): Since we assign RESULT from
1526 lseek now, check that it's >= 0, not == 0.
1527
1528Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
1529
1530 * login/login.c (login): Make a copy of *UT, fill in various
1531 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
1532 in place of UT.
1533
1534 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
1535 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
1536
4c3e8a9e 1537Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
f5348425 1538
7f4e9608
RM
1539 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
1540 signal during critical section doing interruptible RPC, if
1541 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
1542 before thread_resume. If in critical section, pass 0 for SIGNO to
1543 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
1544
1545 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
1546
39d69079
RM
1547 * sysdeps/unix/sysv/linux/sys/user.h: New file.
1548 * sysdeps/unix/sysv/linux/Dist: Add it.
1549 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
1550
dbe31b9a
RM
1551 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
1552 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
1553 itself, no need to skip past a NUL.
1554
1555 * nss/nsswitch.h (known_function): Comment fix.
1556 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
1557 directly. Do the lookup and insertion with a single call, and fill in
1558 the tree node afterwards if new.
1559 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
1560
1561 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
1562 (struct timeval): Add bodiless decl for scope.
1563
1564 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
1565 Move struct timespec defn outside [_TIME_H] so it can be got with
1566 #define __need_timespec.
1567
1568 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
1569 for `struct timespec' member names.
1570 (TIMESPEC_TO_TIMEVAL): Likewise.
1571
1572 * nss/Makefile (extra-libs-others): New variable.
1573
1574 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
1575 $(lib) in $(extra-libs-others).
1576 * sunrpc/Makefile (extra-libs-others): New variable.
1577 (librpcsvc-no-lib-dep): Variable removed.
1578
f5348425
RM
1579 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
1580 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
1581 _dl_rtld_map.
1582 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
1583 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
1584 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
1585 _dl_rtld_map weak only here.
1586
1587 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
1588
dbe31b9a
RM
1589Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
1590
1591 * login/utmp.h: Fix typos.
1592
1593 * misc/syslog.c (vsyslog): Use __send instead of send and
1594 __connect instead of connect to avoid name-space collisions (e.g.,
1595 with psgetty).
1596
503054c0
RM
1597Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1598
1599 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
1600
1601 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
1602
1603 * malloc/malloc-size.c (malloc_usable_size): Renamed from
1604 malloc_object_allocation_size.
1605 * malloc/malloc.h: Fix decl.
1606
1607 * sys/select.h: New file, wrapper header.
1608
1609 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1610 fd_set, associated macros, and select decl.
1611
1612 * sysdeps/posix/isfdtype.c: New file.
1613
1614Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
1615
1616 The latest Japanese proposal for POSIX locales renames the
1617 CHARMAP keyword in locale definition files to CHARCONV.
1618 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1619 function ctype_is_charmap to ctype_is_charconv.
1620 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1621 charconv.
1622 * locale/programs/locfile-token.h: Add definition of token
1623 charconv.
1624 * locale/programs/locfile.c: Recognize charconv keyword. Rename
1625 lables according to this.
1626
1627 * locale/weight.h (get_weight): Cast constants to prevent
1628 warnings.
1629
1630 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1631 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1632 warnings.
1633
1634 New stuff described in P1003.1g.
1635 * misc/Makefile (headers): Add sys/select.h.
1636 (routines): Add pselect.
1637 * misc/sys/select.h: New file. Declare select functions and
1638 needed data types and macros.
1639 * sysdeps/generic/pselect.c: New file. Add generic implementation
1640 of pselect() function which uses select().
1641
1642 * posix/getconf.c: Recognize new variables from P1003.1g.
1643 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1644 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1645 * posix/unistd.h: Add description of the P1003.1g variables.
1646 * sysdeps/generic/confname.h: Define _SC_* values for new
1647 variables.
1648 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1649 _PC_SOCK_MAXBUF.
1650 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1651 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1652 P1003.1g variables.
1653 * sysdeps/stub/sysconf.c (sysconf): Ditto.
1654 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1655 _POSIX_SELECT since Linux has this.
1656
1657 * socket/Makefile (routines): Add isfdtype.
1658 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1659 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
1660 isfdtype.
1661
1662 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1663
8a594e3c
RM
1664Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1665
175b633d
RM
1666 * elf/Makefile (LDFLAGS-dl.so): New variable.
1667 (libdl.so): Depend on eval.so.
1668 (distribute): Add eval.c.
1669 * elf/eval.c: New file.
1670
8a594e3c
RM
1671 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
1672 in case it wrote fewer than MAXDIGITS chars.
1673
1674 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
1675 newline from flushing full buffer in loop, fix test so no fflush is
1676 done when last byte written exactly fills the buffer.
1677
1678 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
1679
1680 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
1681 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
1682
1683 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
1684 extracting _dl_rtld_map.l_addr.
1685
1686 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
1687 weak.
1688 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1689
1690 * shlib-versions (*-*-*): Set libnss_db=1.
1691
ffee1316
RM
1692Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1693
8a594e3c
RM
1694 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
1695
66da789f
RM
1696 * rpm/template (%build): Use @prefix@ instead of always /usr.
1697 Set up configparms only if @prefix@ is in fact /usr.
1698 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
1699
f49bc43f
RM
1700 * elf/Makefile: Add missing endif.
1701
54955962
RM
1702 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
1703
96bda0ea
RM
1704 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
1705 (DATABASE): Define this instead of DATAFILE.
1706 * nss/nss_files/files-hosts.c: Likewise.
1707 (hostbyname): Use LOOKUP_NAME macro.
1708
1709 * nss/nss_db/db-XXX.c: New file.
1710 * nss/Makefile (services): Add db.
1711 (libnss_db-inhibit-o): New variable.
1712 (libnss_db-routines): New variable.
1713 (distribute): Append db-XXX.c.
1714 (libnss_db.so): Depend on libdb.so and libnss_files.so.
1715 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
1716
1717 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
1718 args, ignored.
1719 (DATAFILE): New macro.
1720 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
1721 "files-XXX.c".
1722 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
1723 Pass db key args to DB_LOOKUP.
1724 (DATAFILE): Macro removed.
1725 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
1726 * nss/nss_files/files-service.c: Likewise.
1727 * nss/nss_files/files-pwd.c: Likewise.
1728 * nss/nss_files/files-proto.c: Likewise.
1729 * nss/nss_files/files-grp.c: Likewise.
1730 * nss/nss_files/files-ethers.c: Likewise.
1731
1732 * elf/linux-compat.c: File removed.
1733 * elf/Makefile (distribute): Remove linux-compat.c.
1734 (ld-linux.so.1): Remove target and associated variables.
1735
1736 * sunrpc/xdr.c: Remove malloc decl.
1737 * sunrpc/portmap.c: Likewise.
1738
1739 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
1740 casting abort to fn returning bool_t.
1741
1742 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1743 the parser function.
1744 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
1745 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
1746 * nss/nss_files/files-grp.c: Likewise.
1747
1748 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
1749
1750 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
1751
1752 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
1753 of ld.so so lookups for that soname find it.
1754
1755 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
1756 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
1757
ffee1316
RM
1758 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
1759 define parse_line function.
1760 (parse_line): #define to _nss_files_parse_pwent and
1761 add extern decl for that.
1762
1763 * nss/nss_files/files-XXX.c (internal_getent): Return
1764 NSS_STATUS_TRYAGAIN for ERANGE error.
1765
1766 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
1767 of null, so next round returns null again instead of bombing. Fix
1768 from drepper.
1769
1770 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
1771 Remove ; after `ENTDATA_DECL (data)'.
1772 Truncate line at strpbrk (line, EOLSET "\n").
1773 (ENTDATA_DECL): Put ; at end.
1774 (MIDLINE_COMMENTS): Macro removed.
1775 * nss/nss_files/files-ethers.c: Pass new argument.
1776 * nss/nss_files/files-hosts.c: Likewise.
1777 * nss/nss_files/files-network.c: Likewise.
1778 * nss/nss_files/files-parse.c: Likewise.
1779 * nss/nss_files/files-proto.c: Likewise.
1780 * nss/nss_files/files-rpc.c: Likewise.
1781 * nss/nss_files/files-service.c: Likewise.
1782 * grp/fgetgrent.c: Likewise.
1783 * pwd/fgetpwent.c: Likewise.
1784 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1785 fgetpwent.c already defines it.
1786 * nss/nss_files/files-grp.c: Likewise.
1787
1788 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1789 as well as any matching with l_libname. Fix DT_SONAME lookup to use
1790 string table properly.
1791
1792 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1793 invoked directly, and l_libname from that if PT_INTERP missing.
1794 Set l_name from l_libname only if not set from argv.
1795
1796 * time/europe, time/northamerica: Updated from ADO 96i.
1797
eb48c963
RM
1798Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1799
ffee1316
RM
1800 * stdio-common/tst-ungetc.c: Include unistd.h.
1801
eb48c963
RM
1802 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1803
6ce16797
MB
1804Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
1805
25f329f7
MB
1806 * hurd/report-wait.c (describe_number): Make I unsigned long.
1807
6ce16797
MB
1808 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1809 actually found any entry.
1810
1811 * login/pututline_r.c (pututline_r): If not located after any
1812 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1813 Lock the file before stating.
1814
eb48c963
RM
1815Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1816
1817 * nss/Makefile (databases): Change host to hosts.
1818 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1819
1820 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1821
1822 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1823
1824 * string/string.h (strndupa): Pass missing arg to strnlen.
1825
1826 * inet/getnetbypt_r.c: Renamed to ...
1827 * inet/getnetbyad_r.c: this; fixed function name.
1828 * inet/getnetbypt.c: Renamed to ...
1829 * inet/getnetbyad.c: this; fixed function name.
1830
1831Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1832
1833 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1834 struct passwd.
1835
2baf7c31
MB
1836Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1837
1838 * login/login.c (login): Initialize DATA so that setutent_r will
1839 actually do something.
1840
eb48c963
RM
1841Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1842
1843 * resolv/res_hconf.c (strndup): Remove function.
1844
1845 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1846 using ElfW() instead of Elf32_*.
1847
1848 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1849 sysdeps/unix/sysv/linux/m68k/init-first.h,
1850 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1851 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1852 init-first.h to make abstract machine dependent parts of
1853 initialization.
1854
1855 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1856 error handling. It's safer that way.
1857
1858 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1859 Fix by Richard Henderson.
1860
1861 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1862 typo/extraneous whitespace.
1863
1864 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1865 determine what integer sizes we're dealing with.
1866
d7126ae6
RM
1867Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1868
eb48c963
RM
1869 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1870 check for signal zero, repair logical sense of test by
1871 parenthesizing correctly.
1872
d7126ae6
RM
1873 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1874 check-for-pending signals code, release _hurd_siglock before
1875 jumping to deliver_pending.
1876
eb48c963
RM
1877Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1878
1879 * configure.in (config_machine): Make ELF the default even for
1880 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1881 is specified.
1882
de6b0623
RM
1883Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1884
eb48c963
RM
1885 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1886 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1887 member only #ifdef ENTDATA.
1888 (ENTDATA_DECL): New macro.
1889 (LINE_PARSER): Use it for entdata decl.
1890 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1891 from the input LINE, which might not be writable buffer space.
1892 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1893 [ENTDATA] (parser_stclass): #define to `static inline'.
1894 [!ENDATA] (parser_stclass): #define to empty.
1895 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1896 function is exported to -lnss_files users.
1897
1898 * string/strndup.c: Add missing arg.
1899
de6b0623 1900 * string/string.h (strndupa): Likewise.
eb48c963 1901 * string/strndup.c (strndup): Always terminate the string.
de6b0623
RM
1902
1903Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1904
1905 * stdio/Makefile (routines): Add vscanf.
1906 * stdio-common/Makefile (routines): Remove vscanf.
1907 * stdio-common/vscanf.c: Move to ...
1908 * stdio/vscanf.c: here.
1909
1910 * rpm/Makefile (headers, install-lib, install-lib.so,
1911 versioned, install-bin, install-sbin, install-data,
1912 install-others): Add $(-VARIABLE).
1913
6dbe2837
RM
1914Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1915
1916 * nss/Makefile (databases): New variable.
1917 (routines, libnss_files-routines): Use it.
1918 (subdir-dirs): Compute from $(services).
1919
1920 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1921 init_module, klogctl): Use EXTRA in the "caller" column so these get
1922 added to unix-extra-syscalls and thus compiled in misc.
1923
1924 * string/Makefile (routines): Add strndup.
1925 * string/strndup.c: New file.
1926 * string/string.h: Declare strndup.
1927 (strndupa): New macro.
1928
1929 * string/string.h: Declare __strdup.
1930 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1931
1932 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1933
6dbe2837
RM
1934Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1935
1936 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1937
1938 * grp/initgroups.c (initgroups): De-ansi-fy.
1939 Move declaration of NGROUPS and GROUPS outside #if so that
1940 the code compiles for NGROUPS_MAX != 0.
1941
1942 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1943 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1944 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1945 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1946 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1947 inet/ether_ntoh.c: New files. Implementation of functions to
1948 handle Ethernet address to host mapping.
1949 * inet/netinet/ether.h: New file. Declare ether_* functions.
1950 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1951 compilation.
1952 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1953 * nss/Makefile (routines): Add ethers-lookup.
1954 (libnss_files-routines): Add files-ethers.
1955
1956 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1957 with _r suffix.
1958
1959 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1960 KEEP_STREAM every time called.
1961 (_nss_files_end): Reset KEEP_STREAM here instead.
1962 (internal_getent): If STREAM == NULL try to open instead of
1963 signalling error.
1964 Use cast to prevent warning.
1965 Terminate read line in case the buffer is too small.
1966
1967 * nss/nss_files/files-ethers.c: New file. Implementation of
1968 Ethernet adress<->hostname lookup through files interface.
1969
1970 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1971 * stdlib/mbtowc.c: Define based on mbrtowc().
1972 * stdlib/wcstombs.c: Define based on wcsrtombs().
1973 * stdlib/wctomb.c: Define based on wcrtomb().
1974
1975 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1976 unexpected_sizes_in_xdr_u_int.
1977
1978 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1979 of `struct ether_addr'.
1980 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1981 declaration of `struct ether_addr'.
1982
1983 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1984 * wcsmbs/mbsrtowcs.c: Ditto.
1985 * wcsmbs/wcrtomb.c: Ditto.
1986 * wcsmbs/wcsrtombs.c: Ditto.
1987
1988 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1989
f34e0ae3
MB
1990Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1991
a5d96b25
MB
1992 * hurd/get-host.c <fcntl.h>: New include.
1993 * hurd/set-host.c <fcntl.h>: New include.
1994 (_hurd_set_host_config): Include NEW in args to dir_link.
1995 Return NWROTE, not NREAD.
1996
f34e0ae3
MB
1997 * sysdeps/mach/hurd/getcwd.c
1998 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1999 DOTID & DOTDEVID until we're finished with them (we need to keep
2000 them at least until we've fetched the next level of id ports, so
2001 that mach will be able to use the same name if they're the same).
2002 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
2003 jumps to errlose, for those places where such cleanup is needed.
2004
bba7bb78
RM
2005Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2006
2007 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
2008
2009 Move DB code into separate -ldb library.
2010 * db/Makefile (extra-libs): New variable, list libdb.
2011 (routines): Renamed to libdb-routines.
2012 * shlib-versions: Add libdb=2.
2013
2014 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
2015 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
2016
2017 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
2018 of strncasecmp. Extend syntax to grok [!foo=bar].
2019
2020 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
2021 weak alias.
2022 * string/string.h: Declare __strncasecmp.
2023
2024 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
2025 (service_alias): Variable removed.
2026 (nss_parse_service_list): New function, broken out of nss_getline.
2027 Remove alias conversion; we will just use symlinks.
2028 (__nss_database_lookup): Take new string arg DEFCONFIG.
2029 If no entry exists, make one with service list parsed from that.
2030 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
2031 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
2032 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
2033
2034 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
2035 list size.
2036
2037 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
2038
2039Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
2040
2041 * locale/programs/locale.c (long_options): Short form of
2042 --version option is `-V'.
2043 (main): Recognize `-V' as option, not `-v'.
2044 Call `usage' instead of printing error message for illegal
2045 option.
2046 (usage): Document `-V'.
2047
23586dcc
MB
2048Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
2049
2050 * sysdeps/mach/hurd/getcwd.c
2051 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
2052 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
2053
622586fb
RM
2054Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2055
2056 * inet/getrpcent.c: Fix macros.
2057 * inet/getrpcent_r.c: Fix macros.
2058
2059 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
2060
2061 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
2062
a4242e25
RM
2063Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
2064
2065 * catgets/gencat.c (write_out): Use %Zu to print variables of type
2066 size_t.
2067 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
2068 cast it to (unsigned long) to make it work both on 32 and 64
2069 bit architectures.
2070
2071Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2072
2073 * locale/Makefile (distribute): Add `programs/' prefix to all
2074 files in that directory.
2075
2076 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
2077 subdir' works.
2078
2079 * MakeTAGS (sources, headers): Make them simply expanded variables
2080 so that all-dist is expanded before it is changed.
2081
5f0e6fc7
RM
2082Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2083
5325738c 2084 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
748050b3
RM
2085 * Makefile (subdirs): Remove crypt.
2086 * crypt: Directory removed. It will be made an independent library
2087 distribution.
2088
2089 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
2090
ad8da79b
RM
2091 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
2092
dcea62dd
RM
2093 * inet/getrpcbynumber.c (BUFLEN): New macro.
2094
2095 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
2096
3d3ac840
RM
2097 * Makefile (headers): Add libc-lock.h.
2098 * sysdeps/stub/libc-lock.h: New file.
2099
2100 * inet/getrpcbynumber.c: Remove _r typo.
2101
2102 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
2103
c66273aa
RM
2104 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
2105 after the first!
2106
2107 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
2108 or doesn't mention DATABASE, use an internal default equivalent to
2109 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
2110 (nss_lookup_function): Call nss_new_service as needed.
2111 (nss_parse_file): Don't bother calling nss_new_service here.
2112
2113 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
2114 * pwd/fgetpwent.c: Likewise.
2115
5f0e6fc7
RM
2116 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
2117 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
2118 * malloc/malloc-size.c: New file.
2119 * malloc/malloc-walk.c: New file.
2120
2121 * malloc/malloc-find.c (malloc_find_object_address): Return null if
2122 PTR is outside the heap.
2123
2124 * elf/dl-load.c (_dl_map_object): If the requested name matches the
2125 soname of a loaded object, use that object.
2126
2127Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2128
2129 * Makefile (subdirs): Add nss.
2130
2131 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
2132 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
2133 * inet/getrpcbynumber_r.c: New file.
2134 * inet/getrpcbynumber.c: New file.
2135 * inet/getrpcbyname.c: New file.
2136 * inet/getrpcbyname_r.c: New file.
2137 * inet/getrpcent_r.c: New file.
2138 * inet/getrpcent.c: New file.
2139 * nss/rpc-lookup.c: New file.
2140 * nss/nss_files/files-rpc.c: New file.
2141 * nss/Makefile (routines): Add rpc-lookup.
2142 (libnss_files-routines): Add files-rpc.
2143 * sunrpc/Makefile (routines): Remove getrpcent.
2144 * sunrpc/getrpcent.c: File removed.
2145
2146 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
2147 non-null on entry.
2148
2149 * Makeconfig (rpath-link): Add $(nssobjdir).
2150 (nssobjdir): New variable.
2151
2152 * Makerules: Move shared library building before objects rules, so
2153 versions are known before extra-lib.mk gets included.
2154 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
2155
2156 * pwd/getpwuid.c: Rewritten using nss.
2157 * pwd/getpwnam.c: Likewise.
2158 * pwd/getpwent.c: Likewise.
2159 * grp/getgrnam.c: Likewise.
2160 * grp/getgrgid.c: Likewise.
2161 * grp/getgrent.c: Likewise.
2162 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
2163 * pwd/getpwent_r.c: New file.
2164 * pwd/getpwnam_r.c: New file.
2165 * pwd/getpwuid_r.c: New file.
2166 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
2167 * grp/getgrnam_r.c: New file.
2168 * grp/getgrgid_r.c: New file.
2169 * grp/getgrent_r.c: New file.
2170 * grp/Makefile (routines): Remove grpopen, grpread.
2171 * pwd/Makefile (routines): Remove pwdopen, pwdread.
2172 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
2173
2174 * pwd/fgetpwent.c: Rewritten using files-parse.c.
2175 * grp/fgetgrent.c: Likewise.
2176
2177 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
2178 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
2179 * nss/nss_files/files-grp.c: New file.
2180 * nss/nss_files/files-pwd.c: New file.
2181
2182 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
2183
2184 * nss/nss_files/files-parse.c: New file.
2185 * nss/nss_files/files-XXX.c: New file.
2186 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
2187 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
2188 Rewritten using them.
2189
2190 * nss/Makefile (libnss_files-routines): Remove files-host.
2191 Add files-hosts, files-grp, files-pwd.
2192
2193 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
2194
2195Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
2196
2197 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2198 A .plt entry now loads the .rela.plt offset directly rather
2199 than making us calculate it.
2200
2201Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2202
2203 * time/Makefile ($(installed-localtime-file) rule): Do
2204 $(make-target-directory) first.
2205
2206 * resolv.h: Fix wrapper for resolv/resolv.h.
2207
2208 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
2209 Compile dummy file and pass -nostdlib -nostartfiles so as not to
2210 require installed libraries.
2211
2212 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
2213 libnss_dns=1.
2214
2215Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
2216
282d8743
RM
2217 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
2218 and mapv4v6hostent.h.
2219 (routines): Move res* and gethnamaddr into libresolv-routines.
2220 (libresolv-routines): New variable, put them there.
2221 (extra-libs): New variable, list libresolv.
2222 (CPPFLAGS): Add -D for get*by* to res_get*by*.
2223
5f0e6fc7
RM
2224 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
2225
2226 * inet/herrno.c: New file.
2227
2228 * resolv/res_init.c: Remove res_hconf calls.
2229
2230 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
2231 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
2232 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
2233 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
2234 nss/service-lookup.c: New files. Implementation of name
2235 service switch, following the approach in Solaris.
2236 Interface specification and general structure inspired by Peter
2237 Eriksson <pen@lysator.liu.se>.
2238 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
2239 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
2240 Implementation of libnss_files.so module for file based databases
2241 in NSS service.
2242 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
2243 if libnss_dns.so module for DNS name lookup in NSS service.
2244
2245 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
2246 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
2247 Changed to serve as interface to NSS.
2248 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
2249 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
2250 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
2251 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
2252 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
2253 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
2254 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
2255 interfaces to NSS, including reentrant functions.
2256
2257 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
2258 resolv/sethostent.c: Removed: Obsoleted by NSS.
2259
2260 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
2261 gethnamaddr.c. These private functions are now used in more
2262 than one file.
2263
2264 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
2265
2266Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2267
2268 * rpm/Makefile ($(config)): Make sure the word list in the for
2269 loop is syntactically non-empty.
2270
7f811679
RM
2271Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2272
2273 * Version 1.92 test release.
2274
2275Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
2276
2277 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
2278 to klogctl to match prototype in sys/klog.h.
2279
2280 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
2281 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
2282
2283 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
2284 Remove. Code is now part of __getcwd again. The old function
2285 never really worked for anything but THISDIR==".".
2286
2287 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
2288 only when building ELF version of library.
2289
2290 * libio/libioP.h (_IO_vscanf): Add prototype.
2291
2292 * posix/unistd.h (syscall): Change sysno arg and return value
2293 to int long.
2294
78b5ba3e
RM
2295Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2296
7f811679 2297 * version.h (VERSION): Updated to 1.92.
072ebcef
RM
2298
2299 * misc/Makefile (headers): Add ar.h.
2300 * misc/ar.h: New file.
2301
2302 * config.make.in (BUILD_CC): New variable.
2303 * configure.in: Check for BUILD_CC if $host != $build.
2304
2305 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
2306
2307 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
2308 (stamp$o files): New targets, create them empty, no deps.
2309
78b5ba3e
RM
2310 * rpm/template (Source): New field.
2311 (%prep, %build, %install): New sections.
2312 (%files): Add %doc FAQ NEWS NOTES README.
2313 * rpm/rpmrc (builddir): Removed.
2314
51fbd1f6
RM
2315Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2316
0d3726c3
RM
2317 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
2318 guessing to not assume p_vaddr of first load cmd is zero.
2319
4f54cdb1
RM
2320 * sysdeps/sparc/elf/start.S: New file.
2321 * sysdeps/sparc/dl-machine.h: New file.
2322
2323 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
2324 only for ?s, not for *s. Fix from Chet Ramey.
2325
2326 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
2327 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
2328 Use __{BEGIN,END}_DECLS.
2329 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
2330 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
2331 New macros, moved here from sysdeps/gnu/utmpbits.h.
2332 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
2333 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
2334 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
2335 Use sizeof instead of UT_*SIZE.
2336 * login/logwtmp.c: Likewise.
2337
2338 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
2339
2340 * version.c (banner): Add trailing newline.
2341
51fbd1f6
RM
2342 * login/utmp.h: Declare login_tty.
2343
2344Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
2345
2346 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
2347 Changed to a 12-byte PLT entry to remove dependency on $gp.
2348 Take a new got_addr parameter.
2349 (elf_machine_rela): Pass the new parameter.
2350 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
2351 (RTLD_START): Do normal linkage with program entry.
2352
51ec5cb2
MB
2353Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
2354
2355 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
2356
2357 * hurd/getuids.c (getuids): New weak link to __getuids.
2358
bf0f4720
MB
2359Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2360
2361 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
51fbd1f6
RM
2362 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
2363 argument.
bf0f4720
MB
2364 Rename nested function lookup to lookup_op.
2365 (__file_name_lookup, __file_name_lookup_under):
2366 Pass 0 for lookup arg to __hurd_file_name_lookup.
2367 (__file_name_split): Likewise for __hurd_file_name_split.
2368 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
2369 Rename nested function lookup to scan_lookup.
2370 (file_name_path_lookup): Pass 0 for lookup arg to
2371 hurd_file_name_path_lookup.
2372 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
51fbd1f6 2373 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
bf0f4720
MB
2374 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
2375 Add LOOKUP argument.
2376 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
2377 __hurd_file_name_lookup.
2378
e50ec9f9
RM
2379Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2380
2381 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
2382 up a huge list just to discard most of it.
2383
2384 * configure.in (sysnames): Avoid fgrep by using the case shell
2385 builtin.
2386
2387 * Makeconfig (config.status): Fix dependency on Implies files.
2388
6990326c
RM
2389Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2390
2391 * math/Makefile (distribute): Add ieee-math.c.
2392
2393Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
2394
2395 * locale/codeset_name.c: New file. Provide function for information
2396 about currently used character set.
2397 * locale/Makefile (routines): Add codeset_name.
2398 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
2399 * locale/localeinfo.h: Change magic number because of incompatible
2400 change.
2401 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
2402 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
2403
2404 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
2405 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
2406
2407 * locale/setlocale.c (setlocale): Initialize local variables to
2408 prevent warnings.
2409
a1470b6f
RM
2410Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
2411
2412 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
2413
2414 * locale/programs/locale.c: Include string.h.
2415
2416 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
2417 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
2418 appropriate sign-extension is performed on machines with
2419 sizeof(long) > 4.
2420
2421 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
2422 sizeof(int)<sizeof(long), we need to go through a temporary
2423 variable.
2424
2425 * locale/programs/ld-numeric.c: Include <alloca.h>
2426
2427 * libio/stdio.h (__libc_fatal): Add prototype.
2428
2429 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
2430 in efect.
2431
2432 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
2433 volatile to avoid "might get clobbered by longjmp" warning.
2434
2435 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
2436 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
2437 probability is a sure loser).
2438 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
2439
2440 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
2441 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
2442
2443 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
2444 to be Linux FSSTND compliant.
2445
2446Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
2447
2448 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
2449
2450 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
2451 sysdeps/unix/sysv/linux/alpha/brk.S,
2452 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2453 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2454 sysdeps/unix/sysv/linux/alpha/llseek.S,
2455 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2456 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
2457 __syscall_error to avoid intruding application name space.
2458
2459 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
2460 to SYS_get?id so that syscall stubs in sysdeps/unix define
2461 these syscalls in terms of getxpid/getxuid/getxgid.
2462
2463 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
2464 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
2465 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
2466 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
2467
2468 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
2469 (PSEUDO_END): Rename END() to PSEUDO_END().
2470
2471 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
2472 to PSEUDO_END to improve branch-prediction. Include .frame
2473 directive to make syscalls debugabble.
2474 (PSEUDO_END): New macro.
2475
2476 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
2477 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
2478 latter is illegal under DEC Unix.
2479
2480 * sysdeps/unix/alpha/sysdep.S: Renamed from
2481 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
2482 as well.
2483 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
2484 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
2485 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
2486
2487 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
2488 address register in the .frame directive.
2489
2490 * sysdeps/alpha/copysign.c: Remove.
2491
2492 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
2493 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
2494
2495 * errno.h: Move __END_DECLS to correct place to make file
2496 compilable under c++.
2497
2498 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
2499 d_ino only if <direntry.h> hasn't defined d_fileno.
2500
2501 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
2502 arguments to weakext to make .weakext detection work on ECOFF systems.
2503
2504 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
2505 that _validuser() has been replaced by __ivaliduser().
2506
2507Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
2508
2509 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
2510 as unsigned long, not as int (to avoid incorrect int->long
2511 promotion).
2512
e215c478 2513\f
28f540f4 2514
f0097fa0 2515See ChangeLog.5 for earlier changes.
This page took 0.424743 seconds and 5 git commands to generate.