1 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
4 ($(common-objpfx)libc.so): Move deps into that, use it.
5 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
6 $(rpcuserlibs:.so=_pic.a).
7 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
10 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
12 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
13 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
15 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
17 * locale/iso-4217.def: Add India to comment for symbol "INR ".
18 Reported by Raja R Harinath <harinath@cs.umn.edu>.
20 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
22 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
25 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
27 * time/tzset.c: Include <libc-lock.h>.
28 (__tzset_lock): New lock variable.
29 (tzset): New function (weak defn), no longer weak alias for __tzset.
30 Call __tzset while holding __tzset_lock.
31 * time/localtime.c: Include <libc-lock.h>.
32 (__localtime_r): Hold __tzset_lock while doing the work.
34 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
35 from [!HAVE_GNU_LD] to [!_LIBC].
36 [_LIBC]: Include <libc-lock.h> and define a lock.
37 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
38 (setenv, unsetenv): Use them.
40 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
42 * locale/programs/locfile.c (write_locale_data): Deal with missing
45 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
46 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
48 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
50 Win32 hacks from <Rob_Tulloh@tivoli.com>.
51 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
52 use void * for my_realloc; include <malloc.h> for alloca.
53 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
54 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
55 * posix/glob.h: Likewise.
57 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
59 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
60 call __io_select unless there's only a single descriptor, as each
61 descriptor now has its own reply port.
62 If there is only a single descriptor, just use its reply port for
63 everything and don't bother creating the port set.
65 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
66 <unistd.h>: New include.
68 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
71 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
73 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
74 from the USA any software that even makes it easy to drop in an
75 encryption module of foreign origin.
76 * Makerules (cryptobjdir): Variable removed.
77 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
78 * Makefile (subdirs): Remove crypt.
80 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
82 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
83 operator to yesexpr and noexpr string.
85 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
87 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
88 old code would have failed on a big-endian 64-bit architecture).
89 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
91 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
92 (xdr_u_long): Use switch instead of chain of if-statements.
93 Remove gratitous parentheses around return expressions.
94 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
96 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
98 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
101 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
103 * dlfcn.h, db.h: New wrapper headers.
105 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
106 for `struct stat;' forward decl.
108 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
110 * locale/iso-4217.def: Add some more standardized currency
113 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
115 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
117 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
119 * Rules (dummy.o, empty.o): Targets removed.
120 (dummy.c, empty.c): New targets replace them.
122 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
124 * crypt/Makefile (lib-noranlib): Depend on
125 $(objpfx)libcrypt.so$(libcrypt.so-version).
128 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
130 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
131 check. mib's clueless hacking broke it.
133 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
135 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
137 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
139 * misc/sys/ustat.h: New file.
140 * misc/ustat.h: Ditto.
141 * sysdeps/generic/ustatbits.h: Ditto.
142 * sysdeps/stub/ustat.c: Ditto.
143 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
144 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
146 (routines): Mention ustat.
148 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
149 * sysdeps/alpha/elf/start.S: here.
151 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
152 alphabetically correct place. Mention ustat.
154 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
155 common symbol (makes errno accessible from gdb).
157 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
160 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
161 record always gets appended at end of file (wtmp is a log file,
162 after all). Set ut_type to DEAD_PROCESS if name is empty.
164 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
165 separate loop from search for UT_ID. Fix code so it is in
166 sync with Unix man page.
168 * login/getutline_r.c (getutline_r): Stop searching only if
169 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
171 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
173 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
174 avoid duplicate declarations.
176 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
178 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
179 and alpha-gnu-linuxecoff targets.
181 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
183 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
185 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
187 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
190 * resolv/res_comp.c (res_hnok): Use empty statement in place
191 of NULL (which generates a "useless expression" warning in
194 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
196 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
197 with $(..) in output.
199 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
201 * elf/Makefile (dl-routines): Add dl-cache.
202 * elf/dl-cache.c: New file.
203 * elf/dl-load.c (_dl_map_object): Check cache before default path.
205 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
207 * stdio-common/vfscanf.c: Major change. Now read character
208 from stream only if needed. Before it was read after the
209 previous character was used.
210 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
212 * stdio-common/tstscanf.c: Change test program so that return
213 value is != 0 if one test failed.
215 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
217 * sysdeps/m68k/Makefile (crypt): Variable removed.
218 * sysdeps/sparc/Makefile: Likewise.
220 * version.h (VERSION): Update to 1.93.
222 * Makerules ($(libdir)/libc.so): Depend on
223 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
225 * crypt/nocrypt.c: New file.
226 * Makefile (subdirs): Add crypt.
227 * crypt/Makefile: New file.
229 * Makerules (soversions.mk): Move this target, include of it, and
230 include of version.mk to ...
231 * Makeconfig: ... here.
232 (soversions.mk): Depend on Makeconfig instead of Makerules.
234 * shlib-versions (*-*-*): Set libcrypt=0.
236 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
238 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
239 word extends right up to rmargin.
241 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
242 output the wrap margin, set point_col to wmargin.
243 Use negative point_col to deal with a wmargin of 0.
244 (line_wrap_point): Return 0 for a negative point_col.
245 (line_wrap_stream): Make wmargin ssize_t.
246 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
248 (line_wrap_stream): Make wmargin ssize_t.
249 (line_wrap_point): Return 0 for a negative point_col.
251 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
253 * shlib-versions (*-*-gnu*): Set libc=0.0
255 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
257 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
258 sysdeps/i386/dl-machine.h.
260 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
262 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
263 to fiddle __put_limit in conjunction with __linebuf_active.
265 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
267 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
268 to the strong name, not the file name.
270 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
272 * csu/initfini.c: More magic. Detect if .end is produced and put it
273 in the output iff the compiler does.
275 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
276 because that is broken on alpha.
278 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
281 * Makerules (make-link): Install the new link with atomic mv -f in
282 case ln itself requires the library being installed.
284 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
286 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
287 i386/dl-machine.h of 960713.
289 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
290 (_dl_sysdep_read_whole_file): Fix result variable declaration.
292 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
294 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
297 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
299 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
300 with pointer to local variable instead of NULL.
302 1996-07-15 Paul Eggert <eggert@twinsun.com>
304 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
306 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
308 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
309 that are already added by other means.
311 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
312 caller column to get those syscalls added automagically.
314 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
316 * login/logout.c (logout): Initialize DATA to a state that will
317 make setutent_r happy.
319 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
321 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
322 instead of setting the DT_DEBUG pointer.
324 * csu/initfini.c (_init, _fini): Generate .end directives after
325 standalone prologues and filter them out from epilogues.
327 * Makeconfig (rtld-installed-name): Set to ld.so.1.
328 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
331 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
333 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
335 * MakeTAGS (extract): Pass --add-comments=TRANS.
336 * sysdeps/gnu/errlist.awk: Write comments into the output with the
337 descriptive paragraphs from the manual preceded by TRANS.
339 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
340 (_dl_start): Move RESOLVE defn inside this function and #include
341 "dynamic-link.h" a second time there.
342 [RTLD_START]: Move use of this after _dl_start function.
344 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
346 * elf/rtld.c: Include <string.h>.
348 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
349 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
350 Conditionalize defns on [RESOLVE].
351 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
352 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
353 Instead use RESOLVE macro with same args.
354 (elf_machine_rel): Conditionalize defn on [RESOLVE].
355 * elf/dl-reloc.c (RESOLVE): New macro, define before including
356 "dynamic-link.h". It replaces `resolve' local function.
357 * elf/dl-runtime.c: Likewise.
358 * elf/rtld.c: Likewise.
360 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
362 * elf/dl-open.c (_dl_open): Force an indirect call for
363 _dl_relocate_object so there is no chance a PLT fixup will be done
364 and clobber _dl_global_scope before our call happens.
366 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
367 to =t; must operate on top of fp reg stack, not second from top.
368 Correct input constraint to 0 from t; must be explicit when input and
369 output are the same register.
370 (floor): Use __volatile instead of volatile.
373 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
376 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
378 * manual/Makefile (lib): New phony target. Depend on stamp files.
379 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
381 1996-07-13 Paul Eggert <eggert@twinsun.com>
383 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
384 to match Emacs format-time-string specification.
385 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
387 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
389 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
390 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
391 between MAP and its deps.
392 * elf/link.h: Fix decl.
393 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
394 colon-separated list of names, map those and pass vector of ptrs as
395 PRELOADS list to _dl_map_object_deps.
396 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
397 _dl_map_object_deps with empty preload list.
398 * elf/dl-open.c (_dl_open): Likewise.
400 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
402 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
403 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
404 Conditionalize defn on [! MAP_ANON].
405 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
407 * elf/rtld.c (dl_main): Likewise.
408 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
409 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
411 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
413 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
415 * stdlib/random.c (__random): Declare as int32_t to be in sync
418 * socket/Makefile (headers): Add socketbits.h.
420 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
423 * grp/initgroups.c (initgroups): Add groups that user is a member
424 of, not the ones he is _not_ a member of.
426 * nss/nsswitch.c (known_compare): Make known_compare() a static
427 instead of a local function. The latter are difficult to debug
428 and slow to execute on certain platforms.
430 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
431 place of sizeof (dev). The size of a literal string includes the
434 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
436 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
438 * misc/mntent.c (addmntent): Seek to end of file before writing
439 entry. Return 1 on error, not -1.
441 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
443 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
446 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
448 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
449 shift amount for Jensen must be 5 not 4.
451 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
453 * socket/sys/socket.h (struct osockaddr): New type.
455 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
457 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
458 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
459 and `long double' versions can be generated.
460 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
461 so that included efgcvt{,_r}.c file generate `long double'
463 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
466 * manual/startup.texi: Document new getsubopt function.
467 * manual/examples/subopt.c: New example program for documenting
470 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
472 * stdlib/Makefile (routines): Add getsubopt.
473 * stdlib/stdlib.h: Add prototype for getsubopt.
474 * stdlib/getsubopt.c: New file. Implement getsubopt function
475 to handle suboption parsing.
477 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
479 * inet/getnetent_r.c: Define NEED_H_ERRNO.
480 * inet/getnetbynm_r.c: Likewise.
481 * inet/getnetent.c: Likewise.
482 * inet/getnetbyad_r.c: Likewise.
483 * inet/getnetbyad.c: Likewise.
484 * inet/getnetbynm.c: Likewise.
486 * sysdeps/generic/pselect.c: Include <sys/time.h>.
488 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
491 * math/Makefile (calls): Add s_frexp, s_ldexp.
492 (routines): Remove them and &f from here.
494 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
496 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
499 * nss/nss_files/files-XXX.c: Comment fix.
501 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
503 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
504 of reentrant function.
505 (setup): Pass additional argument with function name we are
507 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
508 new argument {SET,END,GET}FUNC_NAME_STRING.
510 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
513 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
515 * nss/nss_files/files-parse.c: Add comment about things to #define.
517 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
519 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
520 terminator char as an error.
522 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
524 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
526 * catgets/gencat.c (write_out): Move code to determine new
527 best size out of inner loop.
529 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
531 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
532 implementation of frexp() function.
533 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
534 implementation of ldexp() function.
536 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
539 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
541 * misc/mntent.c: Include <sys/types.h>.
542 (endmntent): Return 1 one success, 0 on failure.
543 (getmntent): Chop newline and ignore empty lines.
545 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
547 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
548 differently based on [RTLD_BOOTSTRAP].
549 (elf_machine_rela): Use it instead of the fn ptr arg directly.
551 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
553 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
554 __glob_closedir_hook): Remove decls.
556 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
558 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
559 for send and connect syscalls.
561 * socket/sys/socket.h: New file, taken from non-sysdep parts of
562 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
563 Declare __ names for send and connect.
564 * sysdeps/generic/socketbits.h: New file.
565 * sysdeps/unix/sysv/linux/socketbits.h: New file.
566 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
567 * sysdeps/generic/sys/socket.h: File removed.
569 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
570 * sysdeps/mach/hurd/send.c: Likewise.
572 * sysdeps/mach/libc-lock.h: New file.
573 * sysdeps/unix/readdir.c: Do locking.
574 * sysdeps/unix/seekdir.c: Likewise.
575 * sysdeps/unix/rewinddir.c: Likewise.
576 * sysdeps/unix/closedir.c: Likewise.
577 * sysdeps/unix/bsd/telldir.c: Likewise.
578 * sysdeps/mach/hurd/seekdir.c: Likewise.
579 * sysdeps/mach/hurd/readdir.c: Likewise.
580 * sysdeps/mach/hurd/closedir.c: Likewise.
581 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
582 * sysdeps/unix/opendir.c: Likewise.
583 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
584 (struct __dirstream): Add lock member using __libc_lock_define.
585 * sysdeps/unix/dirstream.h: Likewise.
587 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
589 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
591 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
593 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
595 * locale/programs/stringtrans.c: Fix typo in copyright.
597 * stdio-common/printf-prs.c: Add casts to prevent
598 signed<->unsigned warnings.
600 * stdio-common/printf-parse.h: Initialize state variable before
602 * stdio-common/printf-prs.c: Don't initialize state variable here.
603 * stdio-common/vfprintf.c: Don't initialize state variable.
604 (vfprintf): While determining length of multibyte string don't
605 try to be clever in determining characters to use for first
608 Add real implementation of multibyte<->wide char conversion
609 functions. The functions always convert between the fixed wide
610 char format (ISO 10646 in UCS4) and the UTF8 representation of
611 this character set. Conversion between the currently used
612 8bit character set and ISO 10646 will not take place. This is
614 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
616 Add optimized version of `mbrlen' function.
617 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
619 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
621 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
622 This is needed in the wchar.h header.
623 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
624 encoded character to UCS4.
625 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
626 element of `mbstate_t' for initial state.
627 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
628 encoded string to UCS4 string.
629 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
630 character to UTF8 encoded form.
631 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
632 encoded string to UTF8 encoded form.
634 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
636 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
637 variable name, so new a libc with new requirements won't fail to
638 notice an insufficient Linux version.
640 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
642 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
643 instead of 2.0 headers.
645 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
647 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
648 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
650 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
651 before using it in lhs of weak_alias.
653 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
654 Call __nss_lookup when not setting STARTP.
655 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
656 function-calling loop.
658 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
660 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
661 PENDIN, NOFLSH): Undefine these at start if they are already
662 defined to avoid collision with termbits.h.
663 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
664 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
666 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
668 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
669 already defined to float, long double. Use those macros for _Mdouble_
670 defns when including mathcalls.h.
671 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
672 -D_Mlong_double_=double.
674 Add more -lm functions to -lc because ldexp uses them.
675 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
676 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
677 ldexp have both f and l code, and those have f though not l code.
679 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
681 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
682 error is 0. The "placeholder" entries recently added to
683 errno.texi convert to zero since `???/' is at the front of them.
684 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
686 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
687 __const to conform with unistd.h.
689 * stdlib/stdlib.h (random): Declare return type to be int32_t.
691 * string/argz-delete.c (argz_delete): Use memmove instead of
692 memcpy for possibly overlapping strings.
694 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
696 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
697 storage class. GCC gives an error for non-extern data defns with the
700 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
702 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
703 memmove instead of memcpy for possible overlapping strings.
705 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
707 * libc-symbols.h (weak_function): New macro.
708 For GCC 2.7+ define as __attribute__ ((weak)).
709 * elf/dl-minimal.c: Use weak_function as keyword in function defns
710 instead of weak_symbol (NAME) after the defn.
711 * stdlib/strtol.c: Likewise.
712 * stdlib/strtod.c: Likewise.
713 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
715 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
716 If this is defined, don't declare _dl_rtld_map as weak, and
717 don't check for MAP pointing to it. RESOLVE is always null in this
718 case, so test with #ifdef instead of if.
720 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
722 * csu/initfini.c (_init): Likewise.
723 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
724 * misc/efgcvt_r.c: Likewise.
725 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
726 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
728 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
729 It was not used in any assembler code.
730 (weak_symbol_asm): Renamed to weak_extern_asm.
731 (weak_extern): New macro replaces weak_symbol for weak extern refs;
732 define to weak_extern_asm for [!ASSEMBLER].
734 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
736 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
737 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
738 define those now as aliases.
739 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
740 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
741 after GCC weak attribute decl.
743 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
744 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
745 (element printer): Check for elt in ALIAS, instead of special case
748 * io/Makefile (headers): Add sys/vfs.h.
749 * io/sys/vfs.h: New file.
751 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
752 critical section lock before unlinking dying active resources.
753 The unlock just before return is right (i.e. old code unlocked twice).
755 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
757 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
758 Use memmove instead of memcpy where overlap is possible (not
759 necessary using current implementation of memcpy, but...).
760 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
762 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
764 * stdio/linewrap.c (lwupdate): New function, mostly was
765 __line_wrap_update. Use POINT_COL field instead of POINT.
766 (__line_wrap_output): Use lwupdate.
767 (__line_wrap_update): New function.
768 (ensure_unwrapped, ensure_wrapped): New functions.
769 (line_wrap_set_lmargin, line_wrap_set_rmargin,
770 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
772 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
773 POINT_COL. Add POINT_OFFS field.
774 (__line_wrap_update): New decl.
775 (line_wrap_set_lmargin, line_wrap_set_rmargin,
776 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
778 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
780 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
782 * login/pututline_r.c (pututline_r): Since we assign RESULT from
783 lseek now, check that it's >= 0, not == 0.
785 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
787 * login/login.c (login): Make a copy of *UT, fill in various
788 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
791 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
792 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
794 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
796 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
797 signal during critical section doing interruptible RPC, if
798 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
799 before thread_resume. If in critical section, pass 0 for SIGNO to
800 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
802 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
804 * sysdeps/unix/sysv/linux/sys/user.h: New file.
805 * sysdeps/unix/sysv/linux/Dist: Add it.
806 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
808 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
809 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
810 itself, no need to skip past a NUL.
812 * nss/nsswitch.h (known_function): Comment fix.
813 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
814 directly. Do the lookup and insertion with a single call, and fill in
815 the tree node afterwards if new.
816 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
818 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
819 (struct timeval): Add bodiless decl for scope.
821 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
822 Move struct timespec defn outside [_TIME_H] so it can be got with
823 #define __need_timespec.
825 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
826 for `struct timespec' member names.
827 (TIMESPEC_TO_TIMEVAL): Likewise.
829 * nss/Makefile (extra-libs-others): New variable.
831 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
832 $(lib) in $(extra-libs-others).
833 * sunrpc/Makefile (extra-libs-others): New variable.
834 (librpcsvc-no-lib-dep): Variable removed.
836 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
837 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
839 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
840 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
841 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
842 _dl_rtld_map weak only here.
844 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
846 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
848 * login/utmp.h: Fix typos.
850 * misc/syslog.c (vsyslog): Use __send instead of send and
851 __connect instead of connect to avoid name-space collisions (e.g.,
854 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
856 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
858 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
860 * malloc/malloc-size.c (malloc_usable_size): Renamed from
861 malloc_object_allocation_size.
862 * malloc/malloc.h: Fix decl.
864 * sys/select.h: New file, wrapper header.
866 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
867 fd_set, associated macros, and select decl.
869 * sysdeps/posix/isfdtype.c: New file.
871 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
873 The latest Japanese proposal for POSIX locales renames the
874 CHARMAP keyword in locale definition files to CHARCONV.
875 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
876 function ctype_is_charmap to ctype_is_charconv.
877 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
879 * locale/programs/locfile-token.h: Add definition of token
881 * locale/programs/locfile.c: Recognize charconv keyword. Rename
882 lables according to this.
884 * locale/weight.h (get_weight): Cast constants to prevent
887 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
888 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
891 New stuff described in P1003.1g.
892 * misc/Makefile (headers): Add sys/select.h.
893 (routines): Add pselect.
894 * misc/sys/select.h: New file. Declare select functions and
895 needed data types and macros.
896 * sysdeps/generic/pselect.c: New file. Add generic implementation
897 of pselect() function which uses select().
899 * posix/getconf.c: Recognize new variables from P1003.1g.
900 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
901 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
902 * posix/unistd.h: Add description of the P1003.1g variables.
903 * sysdeps/generic/confname.h: Define _SC_* values for new
905 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
907 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
908 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
910 * sysdeps/stub/sysconf.c (sysconf): Ditto.
911 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
912 _POSIX_SELECT since Linux has this.
914 * socket/Makefile (routines): Add isfdtype.
915 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
916 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
919 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
921 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
923 * elf/Makefile (LDFLAGS-dl.so): New variable.
924 (libdl.so): Depend on eval.so.
925 (distribute): Add eval.c.
926 * elf/eval.c: New file.
928 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
929 in case it wrote fewer than MAXDIGITS chars.
931 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
932 newline from flushing full buffer in loop, fix test so no fflush is
933 done when last byte written exactly fills the buffer.
935 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
937 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
938 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
940 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
941 extracting _dl_rtld_map.l_addr.
943 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
945 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
947 * shlib-versions (*-*-*): Set libnss_db=1.
949 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
951 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
953 * rpm/template (%build): Use @prefix@ instead of always /usr.
954 Set up configparms only if @prefix@ is in fact /usr.
955 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
957 * elf/Makefile: Add missing endif.
959 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
961 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
962 (DATABASE): Define this instead of DATAFILE.
963 * nss/nss_files/files-hosts.c: Likewise.
964 (hostbyname): Use LOOKUP_NAME macro.
966 * nss/nss_db/db-XXX.c: New file.
967 * nss/Makefile (services): Add db.
968 (libnss_db-inhibit-o): New variable.
969 (libnss_db-routines): New variable.
970 (distribute): Append db-XXX.c.
971 (libnss_db.so): Depend on libdb.so and libnss_files.so.
972 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
974 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
976 (DATAFILE): New macro.
977 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
979 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
980 Pass db key args to DB_LOOKUP.
981 (DATAFILE): Macro removed.
982 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
983 * nss/nss_files/files-service.c: Likewise.
984 * nss/nss_files/files-pwd.c: Likewise.
985 * nss/nss_files/files-proto.c: Likewise.
986 * nss/nss_files/files-grp.c: Likewise.
987 * nss/nss_files/files-ethers.c: Likewise.
989 * elf/linux-compat.c: File removed.
990 * elf/Makefile (distribute): Remove linux-compat.c.
991 (ld-linux.so.1): Remove target and associated variables.
993 * sunrpc/xdr.c: Remove malloc decl.
994 * sunrpc/portmap.c: Likewise.
996 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
997 casting abort to fn returning bool_t.
999 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1000 the parser function.
1001 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
1002 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
1003 * nss/nss_files/files-grp.c: Likewise.
1005 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
1007 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
1009 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
1010 of ld.so so lookups for that soname find it.
1012 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
1013 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
1015 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
1016 define parse_line function.
1017 (parse_line): #define to _nss_files_parse_pwent and
1018 add extern decl for that.
1020 * nss/nss_files/files-XXX.c (internal_getent): Return
1021 NSS_STATUS_TRYAGAIN for ERANGE error.
1023 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
1024 of null, so next round returns null again instead of bombing. Fix
1027 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
1028 Remove ; after `ENTDATA_DECL (data)'.
1029 Truncate line at strpbrk (line, EOLSET "\n").
1030 (ENTDATA_DECL): Put ; at end.
1031 (MIDLINE_COMMENTS): Macro removed.
1032 * nss/nss_files/files-ethers.c: Pass new argument.
1033 * nss/nss_files/files-hosts.c: Likewise.
1034 * nss/nss_files/files-network.c: Likewise.
1035 * nss/nss_files/files-parse.c: Likewise.
1036 * nss/nss_files/files-proto.c: Likewise.
1037 * nss/nss_files/files-rpc.c: Likewise.
1038 * nss/nss_files/files-service.c: Likewise.
1039 * grp/fgetgrent.c: Likewise.
1040 * pwd/fgetpwent.c: Likewise.
1041 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1042 fgetpwent.c already defines it.
1043 * nss/nss_files/files-grp.c: Likewise.
1045 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1046 as well as any matching with l_libname. Fix DT_SONAME lookup to use
1047 string table properly.
1049 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1050 invoked directly, and l_libname from that if PT_INTERP missing.
1051 Set l_name from l_libname only if not set from argv.
1053 * time/europe, time/northamerica: Updated from ADO 96i.
1055 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1057 * stdio-common/tst-ungetc.c: Include unistd.h.
1059 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1061 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
1063 * hurd/report-wait.c (describe_number): Make I unsigned long.
1065 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1066 actually found any entry.
1068 * login/pututline_r.c (pututline_r): If not located after any
1069 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1070 Lock the file before stating.
1072 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1074 * nss/Makefile (databases): Change host to hosts.
1075 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1077 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1079 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1081 * string/string.h (strndupa): Pass missing arg to strnlen.
1083 * inet/getnetbypt_r.c: Renamed to ...
1084 * inet/getnetbyad_r.c: this; fixed function name.
1085 * inet/getnetbypt.c: Renamed to ...
1086 * inet/getnetbyad.c: this; fixed function name.
1088 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1090 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1093 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1095 * login/login.c (login): Initialize DATA so that setutent_r will
1096 actually do something.
1098 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1100 * resolv/res_hconf.c (strndup): Remove function.
1102 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1103 using ElfW() instead of Elf32_*.
1105 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1106 sysdeps/unix/sysv/linux/m68k/init-first.h,
1107 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1108 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1109 init-first.h to make abstract machine dependent parts of
1112 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1113 error handling. It's safer that way.
1115 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1116 Fix by Richard Henderson.
1118 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1119 typo/extraneous whitespace.
1121 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1122 determine what integer sizes we're dealing with.
1124 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1126 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1127 check for signal zero, repair logical sense of test by
1128 parenthesizing correctly.
1130 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1131 check-for-pending signals code, release _hurd_siglock before
1132 jumping to deliver_pending.
1134 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1136 * configure.in (config_machine): Make ELF the default even for
1137 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1140 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1142 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1143 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1144 member only #ifdef ENTDATA.
1145 (ENTDATA_DECL): New macro.
1146 (LINE_PARSER): Use it for entdata decl.
1147 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1148 from the input LINE, which might not be writable buffer space.
1149 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1150 [ENTDATA] (parser_stclass): #define to `static inline'.
1151 [!ENDATA] (parser_stclass): #define to empty.
1152 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1153 function is exported to -lnss_files users.
1155 * string/strndup.c: Add missing arg.
1157 * string/string.h (strndupa): Likewise.
1158 * string/strndup.c (strndup): Always terminate the string.
1160 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1162 * stdio/Makefile (routines): Add vscanf.
1163 * stdio-common/Makefile (routines): Remove vscanf.
1164 * stdio-common/vscanf.c: Move to ...
1165 * stdio/vscanf.c: here.
1167 * rpm/Makefile (headers, install-lib, install-lib.so,
1168 versioned, install-bin, install-sbin, install-data,
1169 install-others): Add $(-VARIABLE).
1171 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1173 * nss/Makefile (databases): New variable.
1174 (routines, libnss_files-routines): Use it.
1175 (subdir-dirs): Compute from $(services).
1177 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1178 init_module, klogctl): Use EXTRA in the "caller" column so these get
1179 added to unix-extra-syscalls and thus compiled in misc.
1181 * string/Makefile (routines): Add strndup.
1182 * string/strndup.c: New file.
1183 * string/string.h: Declare strndup.
1184 (strndupa): New macro.
1186 * string/string.h: Declare __strdup.
1187 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1189 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1191 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1193 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1195 * grp/initgroups.c (initgroups): De-ansi-fy.
1196 Move declaration of NGROUPS and GROUPS outside #if so that
1197 the code compiles for NGROUPS_MAX != 0.
1199 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1200 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1201 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1202 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1203 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1204 inet/ether_ntoh.c: New files. Implementation of functions to
1205 handle Ethernet address to host mapping.
1206 * inet/netinet/ether.h: New file. Declare ether_* functions.
1207 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1209 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1210 * nss/Makefile (routines): Add ethers-lookup.
1211 (libnss_files-routines): Add files-ethers.
1213 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1216 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1217 KEEP_STREAM every time called.
1218 (_nss_files_end): Reset KEEP_STREAM here instead.
1219 (internal_getent): If STREAM == NULL try to open instead of
1221 Use cast to prevent warning.
1222 Terminate read line in case the buffer is too small.
1224 * nss/nss_files/files-ethers.c: New file. Implementation of
1225 Ethernet adress<->hostname lookup through files interface.
1227 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1228 * stdlib/mbtowc.c: Define based on mbrtowc().
1229 * stdlib/wcstombs.c: Define based on wcsrtombs().
1230 * stdlib/wctomb.c: Define based on wcrtomb().
1232 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1233 unexpected_sizes_in_xdr_u_int.
1235 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1236 of `struct ether_addr'.
1237 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1238 declaration of `struct ether_addr'.
1240 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1241 * wcsmbs/mbsrtowcs.c: Ditto.
1242 * wcsmbs/wcrtomb.c: Ditto.
1243 * wcsmbs/wcsrtombs.c: Ditto.
1245 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1247 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1249 * hurd/get-host.c <fcntl.h>: New include.
1250 * hurd/set-host.c <fcntl.h>: New include.
1251 (_hurd_set_host_config): Include NEW in args to dir_link.
1252 Return NWROTE, not NREAD.
1254 * sysdeps/mach/hurd/getcwd.c
1255 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1256 DOTID & DOTDEVID until we're finished with them (we need to keep
1257 them at least until we've fetched the next level of id ports, so
1258 that mach will be able to use the same name if they're the same).
1259 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1260 jumps to errlose, for those places where such cleanup is needed.
1262 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1264 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1266 Move DB code into separate -ldb library.
1267 * db/Makefile (extra-libs): New variable, list libdb.
1268 (routines): Renamed to libdb-routines.
1269 * shlib-versions: Add libdb=2.
1271 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1272 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1274 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1275 of strncasecmp. Extend syntax to grok [!foo=bar].
1277 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1279 * string/string.h: Declare __strncasecmp.
1281 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1282 (service_alias): Variable removed.
1283 (nss_parse_service_list): New function, broken out of nss_getline.
1284 Remove alias conversion; we will just use symlinks.
1285 (__nss_database_lookup): Take new string arg DEFCONFIG.
1286 If no entry exists, make one with service list parsed from that.
1287 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1288 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1289 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1291 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1294 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1296 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1298 * locale/programs/locale.c (long_options): Short form of
1299 --version option is `-V'.
1300 (main): Recognize `-V' as option, not `-v'.
1301 Call `usage' instead of printing error message for illegal
1303 (usage): Document `-V'.
1305 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1307 * sysdeps/mach/hurd/getcwd.c
1308 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1309 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1311 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1313 * inet/getrpcent.c: Fix macros.
1314 * inet/getrpcent_r.c: Fix macros.
1316 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1318 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1320 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1322 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1324 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1325 cast it to (unsigned long) to make it work both on 32 and 64
1328 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1330 * locale/Makefile (distribute): Add `programs/' prefix to all
1331 files in that directory.
1333 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1336 * MakeTAGS (sources, headers): Make them simply expanded variables
1337 so that all-dist is expanded before it is changed.
1339 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1341 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
1342 * Makefile (subdirs): Remove crypt.
1343 * crypt: Directory removed. It will be made an independent library
1346 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1348 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1350 * inet/getrpcbynumber.c (BUFLEN): New macro.
1352 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1354 * Makefile (headers): Add libc-lock.h.
1355 * sysdeps/stub/libc-lock.h: New file.
1357 * inet/getrpcbynumber.c: Remove _r typo.
1359 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1361 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1364 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1365 or doesn't mention DATABASE, use an internal default equivalent to
1366 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1367 (nss_lookup_function): Call nss_new_service as needed.
1368 (nss_parse_file): Don't bother calling nss_new_service here.
1370 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1371 * pwd/fgetpwent.c: Likewise.
1373 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1374 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1375 * malloc/malloc-size.c: New file.
1376 * malloc/malloc-walk.c: New file.
1378 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1379 PTR is outside the heap.
1381 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1382 soname of a loaded object, use that object.
1384 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1386 * Makefile (subdirs): Add nss.
1388 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1389 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1390 * inet/getrpcbynumber_r.c: New file.
1391 * inet/getrpcbynumber.c: New file.
1392 * inet/getrpcbyname.c: New file.
1393 * inet/getrpcbyname_r.c: New file.
1394 * inet/getrpcent_r.c: New file.
1395 * inet/getrpcent.c: New file.
1396 * nss/rpc-lookup.c: New file.
1397 * nss/nss_files/files-rpc.c: New file.
1398 * nss/Makefile (routines): Add rpc-lookup.
1399 (libnss_files-routines): Add files-rpc.
1400 * sunrpc/Makefile (routines): Remove getrpcent.
1401 * sunrpc/getrpcent.c: File removed.
1403 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1406 * Makeconfig (rpath-link): Add $(nssobjdir).
1407 (nssobjdir): New variable.
1409 * Makerules: Move shared library building before objects rules, so
1410 versions are known before extra-lib.mk gets included.
1411 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1413 * pwd/getpwuid.c: Rewritten using nss.
1414 * pwd/getpwnam.c: Likewise.
1415 * pwd/getpwent.c: Likewise.
1416 * grp/getgrnam.c: Likewise.
1417 * grp/getgrgid.c: Likewise.
1418 * grp/getgrent.c: Likewise.
1419 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1420 * pwd/getpwent_r.c: New file.
1421 * pwd/getpwnam_r.c: New file.
1422 * pwd/getpwuid_r.c: New file.
1423 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1424 * grp/getgrnam_r.c: New file.
1425 * grp/getgrgid_r.c: New file.
1426 * grp/getgrent_r.c: New file.
1427 * grp/Makefile (routines): Remove grpopen, grpread.
1428 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1429 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1431 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1432 * grp/fgetgrent.c: Likewise.
1434 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1435 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1436 * nss/nss_files/files-grp.c: New file.
1437 * nss/nss_files/files-pwd.c: New file.
1439 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1441 * nss/nss_files/files-parse.c: New file.
1442 * nss/nss_files/files-XXX.c: New file.
1443 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1444 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1445 Rewritten using them.
1447 * nss/Makefile (libnss_files-routines): Remove files-host.
1448 Add files-hosts, files-grp, files-pwd.
1450 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1452 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1454 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1455 A .plt entry now loads the .rela.plt offset directly rather
1456 than making us calculate it.
1458 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1460 * time/Makefile ($(installed-localtime-file) rule): Do
1461 $(make-target-directory) first.
1463 * resolv.h: Fix wrapper for resolv/resolv.h.
1465 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1466 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1467 require installed libraries.
1469 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1472 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1474 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1475 and mapv4v6hostent.h.
1476 (routines): Move res* and gethnamaddr into libresolv-routines.
1477 (libresolv-routines): New variable, put them there.
1478 (extra-libs): New variable, list libresolv.
1479 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1481 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1483 * inet/herrno.c: New file.
1485 * resolv/res_init.c: Remove res_hconf calls.
1487 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1488 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1489 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1490 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1491 nss/service-lookup.c: New files. Implementation of name
1492 service switch, following the approach in Solaris.
1493 Interface specification and general structure inspired by Peter
1494 Eriksson <pen@lysator.liu.se>.
1495 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1496 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1497 Implementation of libnss_files.so module for file based databases
1499 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1500 if libnss_dns.so module for DNS name lookup in NSS service.
1502 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1503 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1504 Changed to serve as interface to NSS.
1505 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1506 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1507 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1508 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1509 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1510 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1511 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1512 interfaces to NSS, including reentrant functions.
1514 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1515 resolv/sethostent.c: Removed: Obsoleted by NSS.
1517 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1518 gethnamaddr.c. These private functions are now used in more
1521 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1523 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1525 * rpm/Makefile ($(config)): Make sure the word list in the for
1526 loop is syntactically non-empty.
1528 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1530 * Version 1.92 test release.
1532 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1534 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1535 to klogctl to match prototype in sys/klog.h.
1537 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1538 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1540 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1541 Remove. Code is now part of __getcwd again. The old function
1542 never really worked for anything but THISDIR==".".
1544 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1545 only when building ELF version of library.
1547 * libio/libioP.h (_IO_vscanf): Add prototype.
1549 * posix/unistd.h (syscall): Change sysno arg and return value
1552 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1554 * version.h (VERSION): Updated to 1.92.
1556 * misc/Makefile (headers): Add ar.h.
1557 * misc/ar.h: New file.
1559 * config.make.in (BUILD_CC): New variable.
1560 * configure.in: Check for BUILD_CC if $host != $build.
1562 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1564 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1565 (stamp$o files): New targets, create them empty, no deps.
1567 * rpm/template (Source): New field.
1568 (%prep, %build, %install): New sections.
1569 (%files): Add %doc FAQ NEWS NOTES README.
1570 * rpm/rpmrc (builddir): Removed.
1572 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1574 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1575 guessing to not assume p_vaddr of first load cmd is zero.
1577 * sysdeps/sparc/elf/start.S: New file.
1578 * sysdeps/sparc/dl-machine.h: New file.
1580 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1581 only for ?s, not for *s. Fix from Chet Ramey.
1583 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1584 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1585 Use __{BEGIN,END}_DECLS.
1586 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1587 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1588 New macros, moved here from sysdeps/gnu/utmpbits.h.
1589 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1590 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1591 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1592 Use sizeof instead of UT_*SIZE.
1593 * login/logwtmp.c: Likewise.
1595 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1597 * version.c (banner): Add trailing newline.
1599 * login/utmp.h: Declare login_tty.
1601 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1603 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1604 Changed to a 12-byte PLT entry to remove dependency on $gp.
1605 Take a new got_addr parameter.
1606 (elf_machine_rela): Pass the new parameter.
1607 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1608 (RTLD_START): Do normal linkage with program entry.
1610 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1612 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1614 * hurd/getuids.c (getuids): New weak link to __getuids.
1616 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1618 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
1619 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1621 Rename nested function lookup to lookup_op.
1622 (__file_name_lookup, __file_name_lookup_under):
1623 Pass 0 for lookup arg to __hurd_file_name_lookup.
1624 (__file_name_split): Likewise for __hurd_file_name_split.
1625 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1626 Rename nested function lookup to scan_lookup.
1627 (file_name_path_lookup): Pass 0 for lookup arg to
1628 hurd_file_name_path_lookup.
1629 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
1630 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
1631 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1632 Add LOOKUP argument.
1633 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1634 __hurd_file_name_lookup.
1636 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1638 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1639 up a huge list just to discard most of it.
1641 * configure.in (sysnames): Avoid fgrep by using the case shell
1644 * Makeconfig (config.status): Fix dependency on Implies files.
1646 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1648 * math/Makefile (distribute): Add ieee-math.c.
1650 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1652 * locale/codeset_name.c: New file. Provide function for information
1653 about currently used character set.
1654 * locale/Makefile (routines): Add codeset_name.
1655 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1656 * locale/localeinfo.h: Change magic number because of incompatible
1658 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1659 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1661 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1662 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1664 * locale/setlocale.c (setlocale): Initialize local variables to
1667 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1669 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1671 * locale/programs/locale.c: Include string.h.
1673 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1674 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1675 appropriate sign-extension is performed on machines with
1678 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1679 sizeof(int)<sizeof(long), we need to go through a temporary
1682 * locale/programs/ld-numeric.c: Include <alloca.h>
1684 * libio/stdio.h (__libc_fatal): Add prototype.
1686 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1689 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1690 volatile to avoid "might get clobbered by longjmp" warning.
1692 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1693 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1694 probability is a sure loser).
1695 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1697 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1698 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1700 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1701 to be Linux FSSTND compliant.
1703 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1705 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1707 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1708 sysdeps/unix/sysv/linux/alpha/brk.S,
1709 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1710 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1711 sysdeps/unix/sysv/linux/alpha/llseek.S,
1712 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1713 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1714 __syscall_error to avoid intruding application name space.
1716 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1717 to SYS_get?id so that syscall stubs in sysdeps/unix define
1718 these syscalls in terms of getxpid/getxuid/getxgid.
1720 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1721 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1722 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1723 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1725 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1726 (PSEUDO_END): Rename END() to PSEUDO_END().
1728 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1729 to PSEUDO_END to improve branch-prediction. Include .frame
1730 directive to make syscalls debugabble.
1731 (PSEUDO_END): New macro.
1733 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1734 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1735 latter is illegal under DEC Unix.
1737 * sysdeps/unix/alpha/sysdep.S: Renamed from
1738 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1740 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1741 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1742 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1744 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1745 address register in the .frame directive.
1747 * sysdeps/alpha/copysign.c: Remove.
1749 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1750 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1752 * errno.h: Move __END_DECLS to correct place to make file
1753 compilable under c++.
1755 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1756 d_ino only if <direntry.h> hasn't defined d_fileno.
1758 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1759 arguments to weakext to make .weakext detection work on ECOFF systems.
1761 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1762 that _validuser() has been replaced by __ivaliduser().
1764 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1766 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1767 as unsigned long, not as int (to avoid incorrect int->long
1772 See ChangeLog.5 for earlier changes.