]> sourceware.org Git - glibc.git/blame - ChangeLog
Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
[glibc.git] / ChangeLog
CommitLineData
49b98627
RM
1Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
2
3 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
4 check. mib's clueless hacking broke it.
5
6Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
7
8 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
9
10Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
11
12 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
13 * sysdeps/alpha/elf/start.S: here.
14
15 * misc/sys/ustat.h: New file.
16 * misc/ustat.h: Ditto.
17 * sysdeps/generic/ustatbits.h: Ditto.
18 * libc-orig/sysdeps/stub/ustat.c: Ditto.
19 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
20 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
21 ustatbits.h.
22 (routines): Mention ustat.
23
24 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
25 alphabetically correct place. Mention ustat.
26
27 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
28 common symbol (makes errno accessible from gdb).
29
30 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
31 test, not ut_type.
32
33 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
34 record always gets appended at end of file (wtmp is a log file,
35 after all). Set ut_type to DEAD_PROCESS if name is empty.
36
37 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
38 separate loop from search for UT_ID. Fix code so it is in
39 sync with Unix man page.
40
41 * login/getutline_r.c (getutline_r): Stop searching only if
42 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
43
44Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
45
46 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
47 avoid duplicate declarations.
48
49Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
50
51 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
52 and alpha-gnu-linuxecoff targets.
53
54Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
55
56 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
57
58Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
59
60 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
61 of int.
62
63 * resolv/res_comp.c (res_hnok): Use empty statement in place
64 of NULL (which generates a "useless expression" warning in
65 gcc).
66
d7bca0d3
RM
67Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
68
69 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
70 with $(..) in output.
71
f18edac3
RM
72Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
73
74 * elf/Makefile (dl-routines): Add dl-cache.
75 * elf/dl-cache.c: New file.
76 * elf/dl-load.c (_dl_map_object): Check cache before default path.
77
3867ee64
RM
78Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
79
80 * stdio-common/vfscanf.c: Major change. Now read character
81 from stream only if needed. Before it was read after the
82 previous character was used.
83 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
84
85 * stdio-common/tstscanf.c: Change test program so that return
86 value is != 0 if one test failed.
87
ec2ac6d5
RM
88Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
89
3867ee64
RM
90 * sysdeps/m68k/Makefile (crypt): Variable removed.
91 * sysdeps/sparc/Makefile: Likewise.
92
ec2ac6d5
RM
93 * version.h (VERSION): Update to 1.93.
94
95 * Makerules ($(libdir)/libc.so): Depend on
96 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
97
98 * crypt/nocrypt.c: New file.
99 * Makefile (subdirs): Add crypt.
100 * crypt/Makefile: New file.
101
102 * Makerules (soversions.mk): Move this target, include of it, and
103 include of version.mk to ...
104 * Makeconfig: ... here.
105 (soversions.mk): Depend on Makeconfig instead of Makerules.
106
107 * shlib-versions (*-*-*): Set libcrypt=0.
108
8a5776e6
MB
109Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
110
111 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
112 word extends right up to rmargin.
113
114 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
115 output the wrap margin, set point_col to wmargin.
116 Use negative point_col to deal with a wmargin of 0.
117 (line_wrap_point): Return 0 for a negative point_col.
118 (line_wrap_stream): Make wmargin ssize_t.
119 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
120 point_col ssize_t.
121 (line_wrap_stream): Make wmargin ssize_t.
122 (line_wrap_point): Return 0 for a negative point_col.
123
ec2ac6d5
RM
124Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
125
126 * shlib-versions (*-*-gnu*): Set libc=0.0
127
128Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
129
130 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
131 sysdeps/i386/dl-machine.h.
132
8a5776e6
MB
133Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
134
135 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
136 to fiddle __put_limit in conjunction with __linebuf_active.
137
ec2ac6d5
RM
138Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
139
140 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
141 to the strong name, not the file name.
142
f36f8dcf
RM
143Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
144
ec2ac6d5
RM
145 * csu/initfini.c: More magic. Detect if .end is produced and put it
146 in the output iff the compiler does.
147
184b7b46
RM
148 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
149 because that is broken on alpha.
150
f36f8dcf
RM
151 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
152 call as in first.
153
154 * Makerules (make-link): Install the new link with atomic mv -f in
155 case ln itself requires the library being installed.
156
ec42724d
RM
157Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
158
159 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
160 i386/dl-machine.h of 960713.
161
162 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
163 (_dl_sysdep_read_whole_file): Fix result variable declaration.
164
165Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
166
167 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
168 `nodename' member.
169
170Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
171
172 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
173 with pointer to local variable instead of NULL.
174
1751996-07-15 Paul Eggert <eggert@twinsun.com>
176
177 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
178
179Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
180
181 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
182 that are already added by other means.
183
184 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
185 caller column to get those syscalls added automagically.
186
05a6a9d6
MB
187Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
188
189 * login/logout.c (logout): Initialize DATA to a state that will
190 make setutent_r happy.
191
2064087b
RM
192Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
193
ec42724d
RM
194 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
195 instead of setting the DT_DEBUG pointer.
196
197 * csu/initfini.c (_init, _fini): Generate .end directives after
198 standalone prologues and filter them out from epilogues.
199
391763e7
RM
200 * Makeconfig (rtld-installed-name): Set to ld.so.1.
201 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
202 removed.
203
204 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
205
206 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
207
a78b0f18
RM
208 * MakeTAGS (extract): Pass --add-comments=TRANS.
209 * sysdeps/gnu/errlist.awk: Write comments into the output with the
210 descriptive paragraphs from the manual preceded by TRANS.
211
b1dbbaa4
RM
212 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
213 (_dl_start): Move RESOLVE defn inside this function and #include
214 "dynamic-link.h" a second time there.
215 [RTLD_START]: Move use of this after _dl_start function.
216
f51d1dfd
RM
217 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
218
219 * elf/rtld.c: Include <string.h>.
220
221 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
222 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
223 Conditionalize defns on [RESOLVE].
224 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
225 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
226 Instead use RESOLVE macro with same args.
227 (elf_machine_rel): Conditionalize defn on [RESOLVE].
228 * elf/dl-reloc.c (RESOLVE): New macro, define before including
229 "dynamic-link.h". It replaces `resolve' local function.
230 * elf/dl-runtime.c: Likewise.
231 * elf/rtld.c: Likewise.
232
c928de79
RM
233 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
234
235 * elf/dl-open.c (_dl_open): Force an indirect call for
236 _dl_relocate_object so there is no chance a PLT fixup will be done
237 and clobber _dl_global_scope before our call happens.
238
239 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
240 to =t; must operate on top of fp reg stack, not second from top.
241 Correct input constraint to 0 from t; must be explicit when input and
242 output are the same register.
243 (floor): Use __volatile instead of volatile.
244 (ceil): Likewise.
245
246 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
247 other targets.
2064087b
RM
248
249Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
250
251 * manual/Makefile (lib): New phony target. Depend on stamp files.
252 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
253
2541996-07-13 Paul Eggert <eggert@twinsun.com>
255
256 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
257 to match Emacs format-time-string specification.
258 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
259
260Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
261
262 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
263 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
264 between MAP and its deps.
265 * elf/link.h: Fix decl.
266 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
267 colon-separated list of names, map those and pass vector of ptrs as
268 PRELOADS list to _dl_map_object_deps.
269 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
270 _dl_map_object_deps with empty preload list.
271 * elf/dl-open.c (_dl_open): Likewise.
272
273 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
274 removed.
275 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
276 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
277 Conditionalize defn on [! MAP_ANON].
278 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
279 on [! MAP_ANON].
280 * elf/rtld.c (dl_main): Likewise.
281 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
282 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
283
284 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
285
286Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
287
288 * stdlib/random.c (__random): Declare as int32_t to be in sync
289 with declaration.
290
291 * socket/Makefile (headers): Add socketbits.h.
292
293 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
294 it that way.
295
296 * grp/initgroups.c (initgroups): Add groups that user is a member
297 of, not the ones he is _not_ a member of.
298
299 * nss/nsswitch.c (known_compare): Make known_compare() a static
300 instead of a local function. The latter are difficult to debug
301 and slow to execute on certain platforms.
302
303 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
304 place of sizeof (dev). The size of a literal string includes the
305 NUL byte.
306
307 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
308
309Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
310
311 * misc/mntent.c (addmntent): Seek to end of file before writing
312 entry. Return 1 on error, not -1.
313
314Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
315
316 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
317 syscall.
318
319Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
320
321 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
322 shift amount for Jensen must be 5 not 4.
323
324Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
325
326 * socket/sys/socket.h (struct osockaddr): New type.
327
328Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
329
330 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
331 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
332 and `long double' versions can be generated.
333 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
334 so that included efgcvt{,_r}.c file generate `long double'
335 versions.
336 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
337 functions.
338
339 * manual/startup.texi: Document new getsubopt function.
340 * manual/examples/subopt.c: New example program for documenting
341 getsubopt function.
342
343Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
344
345 * stdlib/Makefile (routines): Add getsubopt.
346 * stdlib/stdlib.h: Add prototype for getsubopt.
347 * stdlib/getsubopt.c: New file. Implement getsubopt function
348 to handle suboption parsing.
349
adc6ff7f
RM
350Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
351
842907c6
RM
352 * inet/getnetent_r.c: Define NEED_H_ERRNO.
353 * inet/getnetbynm_r.c: Likewise.
354 * inet/getnetent.c: Likewise.
355 * inet/getnetbyad_r.c: Likewise.
356 * inet/getnetbyad.c: Likewise.
357 * inet/getnetbynm.c: Likewise.
358
359 * sysdeps/generic/pselect.c: Include <sys/time.h>.
360
361 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
362 `struct timespec'.
363
e6c9a67a
RM
364 * math/Makefile (calls): Add s_frexp, s_ldexp.
365 (routines): Remove them and &f from here.
366
367 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
368
adc6ff7f
RM
369 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
370 and check it.
371
372 * nss/nss_files/files-XXX.c: Comment fix.
373
374Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
375
376 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
377 of reentrant function.
378 (setup): Pass additional argument with function name we are
379 looking for.
380 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
381 new argument {SET,END,GET}FUNC_NAME_STRING.
382
383 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
384 we return a pointer.
385
386Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
387
388 * nss/nss_files/files-parse.c: Add comment about things to #define.
389
390 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
391
392 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
393 terminator char as an error.
394
395 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
396
397Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
398
399 * catgets/gencat.c (write_out): Move code to determine new
400 best size out of inner loop.
401
e6c9a67a
RM
402Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
403
404 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
405 implementation of frexp() function.
406 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
407 implementation of ldexp() function.
408
409 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
410 out before or'ing.
411
adc6ff7f
RM
412Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
413
414 * misc/mntent.c: Include <sys/types.h>.
415 (endmntent): Return 1 one success, 0 on failure.
416 (getmntent): Chop newline and ignore empty lines.
417
418Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
419
420 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
421 differently based on [RTLD_BOOTSTRAP].
422 (elf_machine_rela): Use it instead of the fn ptr arg directly.
423
c1509239
RM
424Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
425
07a4742f
RM
426 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
427 __glob_closedir_hook): Remove decls.
428
429 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
430
431 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
432 for send and connect syscalls.
433
434 * socket/sys/socket.h: New file, taken from non-sysdep parts of
435 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
436 Declare __ names for send and connect.
437 * sysdeps/generic/socketbits.h: New file.
438 * sysdeps/unix/sysv/linux/socketbits.h: New file.
439 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
440 * sysdeps/generic/sys/socket.h: File removed.
441
442 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
443 * sysdeps/mach/hurd/send.c: Likewise.
444
c1509239
RM
445 * sysdeps/mach/libc-lock.h: New file.
446 * sysdeps/unix/readdir.c: Do locking.
447 * sysdeps/unix/seekdir.c: Likewise.
448 * sysdeps/unix/rewinddir.c: Likewise.
449 * sysdeps/unix/closedir.c: Likewise.
450 * sysdeps/unix/bsd/telldir.c: Likewise.
451 * sysdeps/mach/hurd/seekdir.c: Likewise.
452 * sysdeps/mach/hurd/readdir.c: Likewise.
453 * sysdeps/mach/hurd/closedir.c: Likewise.
454 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
455 * sysdeps/unix/opendir.c: Likewise.
456 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
457 (struct __dirstream): Add lock member using __libc_lock_define.
458 * sysdeps/unix/dirstream.h: Likewise.
459
460 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
461
462 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
463
464 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
465
466Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
467
468 * locale/programs/stringtrans.c: Fix typo in copyright.
469
470 * stdio-common/printf-prs.c: Add casts to prevent
471 signed<->unsigned warnings.
472
473 * stdio-common/printf-parse.h: Initialize state variable before
474 calling mbrlen.
475 * stdio-common/printf-prs.c: Don't initialize state variable here.
476 * stdio-common/vfprintf.c: Don't initialize state variable.
477 (vfprintf): While determining length of multibyte string don't
478 try to be clever in determining characters to use for first
479 call.
480
481 Add real implementation of multibyte<->wide char conversion
482 functions. The functions always convert between the fixed wide
483 char format (ISO 10646 in UCS4) and the UTF8 representation of
484 this character set. Conversion between the currently used
485 8bit character set and ISO 10646 will not take place. This is
486 what iconv() is for.
487 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
488 dummy definition.
489 Add optimized version of `mbrlen' function.
490 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
491 to 0...0x7f.
492 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
493 to 0..0x7f.
494 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
495 This is needed in the wchar.h header.
496 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
497 encoded character to UCS4.
498 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
499 element of `mbstate_t' for initial state.
500 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
501 encoded string to UCS4 string.
502 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
503 character to UTF8 encoded form.
504 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
505 encoded string to UTF8 encoded form.
506
3dbe1581
RM
507Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
508
089b2b8a
RM
509 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
510 variable name, so new a libc with new requirements won't fail to
511 notice an insufficient Linux version.
512
99c57951
RM
513 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
514
515 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
516 instead of 2.0 headers.
517
20121a6a
RM
518 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
519
520 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
521 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
522
3dbe1581
RM
523 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
524 before using it in lhs of weak_alias.
525
526 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
527 Call __nss_lookup when not setting STARTP.
528 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
529 function-calling loop.
530
18c75117
TBB
531Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
532
533 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
534 PENDIN, NOFLSH): Undefine these at start if they are already
535 defined to avoid collision with termbits.h.
536 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
537 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
538
999493cb
RM
539Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
540
541 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
542 already defined to float, long double. Use those macros for _Mdouble_
543 defns when including mathcalls.h.
544 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
545 -D_Mlong_double_=double.
546
547 Add more -lm functions to -lc because ldexp uses them.
548 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
549 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
550 ldexp have both f and l code, and those have f though not l code.
551
18c75117
TBB
552Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
553
554 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
d33f2ad4 555 error is 0. The "placeholder" entries recently added to
18c75117
TBB
556 errno.texi convert to zero since `???/' is at the front of them.
557 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
558
d33f2ad4 559 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
18c75117
TBB
560 __const to conform with unistd.h.
561
18c75117 562 * stdlib/stdlib.h (random): Declare return type to be int32_t.
53163ad0
TBB
563
564 * string/argz-delete.c (argz_delete): Use memmove instead of
999493cb 565 memcpy for possibly overlapping strings.
53163ad0 566
af5b3bc3
RM
567Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
568
569 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
570 storage class. GCC gives an error for non-extern data defns with the
571 alias attribute.
572
467ab247
TBB
573Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
574
575 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
576 memmove instead of memcpy for possible overlapping strings.
577
af5b3bc3
RM
578Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
579
580 * libc-symbols.h (weak_function): New macro.
581 For GCC 2.7+ define as __attribute__ ((weak)).
582 * elf/dl-minimal.c: Use weak_function as keyword in function defns
583 instead of weak_symbol (NAME) after the defn.
584 * stdlib/strtol.c: Likewise.
7702f9b5 585 * stdlib/strtod.c: Likewise.
af5b3bc3
RM
586 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
587
588 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
589 If this is defined, don't declare _dl_rtld_map as weak, and
590 don't check for MAP pointing to it. RESOLVE is always null in this
591 case, so test with #ifdef instead of if.
592
593 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
594 weak_symbol.
595 * csu/initfini.c (_init): Likewise.
596 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
597 * misc/efgcvt_r.c: Likewise.
598 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
599 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
600
601 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
602 It was not used in any assembler code.
603 (weak_symbol_asm): Renamed to weak_extern_asm.
604 (weak_extern): New macro replaces weak_symbol for weak extern refs;
605 define to weak_extern_asm for [!ASSEMBLER].
606
edb8e1d9
RM
607Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
608
af5b3bc3
RM
609 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
610 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
611 define those now as aliases.
612 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
613 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
614 after GCC weak attribute decl.
615
28160ffb
RM
616 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
617 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
618 (element printer): Check for elt in ALIAS, instead of special case
619 for EWOULDBLOCK.
620
faf85e08
RM
621 * io/Makefile (headers): Add sys/vfs.h.
622 * io/sys/vfs.h: New file.
623
edb8e1d9
RM
624 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
625 critical section lock before unlinking dying active resources.
626 The unlock just before return is right (i.e. old code unlocked twice).
627
99ed3e39
MB
628Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
629
edb8e1d9 630 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
99ed3e39
MB
631 Use memmove instead of memcpy where overlap is possible (not
632 necessary using current implementation of memcpy, but...).
633 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
634
635Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
636
e851d072
RM
637 * stdio/linewrap.c (lwupdate): New function, mostly was
638 __line_wrap_update. Use POINT_COL field instead of POINT.
99ed3e39
MB
639 (__line_wrap_output): Use lwupdate.
640 (__line_wrap_update): New function.
641 (ensure_unwrapped, ensure_wrapped): New functions.
642 (line_wrap_set_lmargin, line_wrap_set_rmargin,
643 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
644
e851d072 645 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
467ab247 646 POINT_COL. Add POINT_OFFS field.
99ed3e39
MB
647 (__line_wrap_update): New decl.
648 (line_wrap_set_lmargin, line_wrap_set_rmargin,
649 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
650
2549e758
MB
651Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
652
653 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
654
655 * login/pututline_r.c (pututline_r): Since we assign RESULT from
656 lseek now, check that it's >= 0, not == 0.
657
658Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
659
660 * login/login.c (login): Make a copy of *UT, fill in various
661 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
662 in place of UT.
663
664 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
665 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
666
4c3e8a9e 667Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
f5348425 668
7f4e9608
RM
669 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
670 signal during critical section doing interruptible RPC, if
671 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
672 before thread_resume. If in critical section, pass 0 for SIGNO to
673 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
674
675 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
676
39d69079
RM
677 * sysdeps/unix/sysv/linux/sys/user.h: New file.
678 * sysdeps/unix/sysv/linux/Dist: Add it.
679 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
680
dbe31b9a
RM
681 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
682 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
683 itself, no need to skip past a NUL.
684
685 * nss/nsswitch.h (known_function): Comment fix.
686 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
687 directly. Do the lookup and insertion with a single call, and fill in
688 the tree node afterwards if new.
689 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
690
691 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
692 (struct timeval): Add bodiless decl for scope.
693
694 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
695 Move struct timespec defn outside [_TIME_H] so it can be got with
696 #define __need_timespec.
697
698 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
699 for `struct timespec' member names.
700 (TIMESPEC_TO_TIMEVAL): Likewise.
701
702 * nss/Makefile (extra-libs-others): New variable.
703
704 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
705 $(lib) in $(extra-libs-others).
706 * sunrpc/Makefile (extra-libs-others): New variable.
707 (librpcsvc-no-lib-dep): Variable removed.
708
f5348425
RM
709 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
710 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
711 _dl_rtld_map.
712 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
713 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
714 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
715 _dl_rtld_map weak only here.
716
717 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
718
dbe31b9a
RM
719Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
720
721 * login/utmp.h: Fix typos.
722
723 * misc/syslog.c (vsyslog): Use __send instead of send and
724 __connect instead of connect to avoid name-space collisions (e.g.,
725 with psgetty).
726
503054c0
RM
727Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
728
729 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
730
731 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
732
733 * malloc/malloc-size.c (malloc_usable_size): Renamed from
734 malloc_object_allocation_size.
735 * malloc/malloc.h: Fix decl.
736
737 * sys/select.h: New file, wrapper header.
738
739 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
740 fd_set, associated macros, and select decl.
741
742 * sysdeps/posix/isfdtype.c: New file.
743
744Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
745
746 The latest Japanese proposal for POSIX locales renames the
747 CHARMAP keyword in locale definition files to CHARCONV.
748 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
749 function ctype_is_charmap to ctype_is_charconv.
750 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
751 charconv.
752 * locale/programs/locfile-token.h: Add definition of token
753 charconv.
754 * locale/programs/locfile.c: Recognize charconv keyword. Rename
755 lables according to this.
756
757 * locale/weight.h (get_weight): Cast constants to prevent
758 warnings.
759
760 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
761 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
762 warnings.
763
764 New stuff described in P1003.1g.
765 * misc/Makefile (headers): Add sys/select.h.
766 (routines): Add pselect.
767 * misc/sys/select.h: New file. Declare select functions and
768 needed data types and macros.
769 * sysdeps/generic/pselect.c: New file. Add generic implementation
770 of pselect() function which uses select().
771
772 * posix/getconf.c: Recognize new variables from P1003.1g.
773 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
774 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
775 * posix/unistd.h: Add description of the P1003.1g variables.
776 * sysdeps/generic/confname.h: Define _SC_* values for new
777 variables.
778 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
779 _PC_SOCK_MAXBUF.
780 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
781 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
782 P1003.1g variables.
783 * sysdeps/stub/sysconf.c (sysconf): Ditto.
784 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
785 _POSIX_SELECT since Linux has this.
786
787 * socket/Makefile (routines): Add isfdtype.
788 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
789 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
790 isfdtype.
791
792 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
793
8a594e3c
RM
794Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
795
175b633d
RM
796 * elf/Makefile (LDFLAGS-dl.so): New variable.
797 (libdl.so): Depend on eval.so.
798 (distribute): Add eval.c.
799 * elf/eval.c: New file.
800
8a594e3c
RM
801 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
802 in case it wrote fewer than MAXDIGITS chars.
803
804 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
805 newline from flushing full buffer in loop, fix test so no fflush is
806 done when last byte written exactly fills the buffer.
807
808 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
809
810 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
811 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
812
813 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
814 extracting _dl_rtld_map.l_addr.
815
816 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
817 weak.
818 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
819
820 * shlib-versions (*-*-*): Set libnss_db=1.
821
ffee1316
RM
822Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
823
8a594e3c
RM
824 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
825
66da789f
RM
826 * rpm/template (%build): Use @prefix@ instead of always /usr.
827 Set up configparms only if @prefix@ is in fact /usr.
828 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
829
f49bc43f
RM
830 * elf/Makefile: Add missing endif.
831
54955962
RM
832 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
833
96bda0ea
RM
834 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
835 (DATABASE): Define this instead of DATAFILE.
836 * nss/nss_files/files-hosts.c: Likewise.
837 (hostbyname): Use LOOKUP_NAME macro.
838
839 * nss/nss_db/db-XXX.c: New file.
840 * nss/Makefile (services): Add db.
841 (libnss_db-inhibit-o): New variable.
842 (libnss_db-routines): New variable.
843 (distribute): Append db-XXX.c.
844 (libnss_db.so): Depend on libdb.so and libnss_files.so.
845 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
846
847 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
848 args, ignored.
849 (DATAFILE): New macro.
850 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
851 "files-XXX.c".
852 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
853 Pass db key args to DB_LOOKUP.
854 (DATAFILE): Macro removed.
855 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
856 * nss/nss_files/files-service.c: Likewise.
857 * nss/nss_files/files-pwd.c: Likewise.
858 * nss/nss_files/files-proto.c: Likewise.
859 * nss/nss_files/files-grp.c: Likewise.
860 * nss/nss_files/files-ethers.c: Likewise.
861
862 * elf/linux-compat.c: File removed.
863 * elf/Makefile (distribute): Remove linux-compat.c.
864 (ld-linux.so.1): Remove target and associated variables.
865
866 * sunrpc/xdr.c: Remove malloc decl.
867 * sunrpc/portmap.c: Likewise.
868
869 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
870 casting abort to fn returning bool_t.
871
872 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
873 the parser function.
874 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
875 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
876 * nss/nss_files/files-grp.c: Likewise.
877
878 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
879
880 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
881
882 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
883 of ld.so so lookups for that soname find it.
884
885 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
886 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
887
ffee1316
RM
888 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
889 define parse_line function.
890 (parse_line): #define to _nss_files_parse_pwent and
891 add extern decl for that.
892
893 * nss/nss_files/files-XXX.c (internal_getent): Return
894 NSS_STATUS_TRYAGAIN for ERANGE error.
895
896 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
897 of null, so next round returns null again instead of bombing. Fix
898 from drepper.
899
900 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
901 Remove ; after `ENTDATA_DECL (data)'.
902 Truncate line at strpbrk (line, EOLSET "\n").
903 (ENTDATA_DECL): Put ; at end.
904 (MIDLINE_COMMENTS): Macro removed.
905 * nss/nss_files/files-ethers.c: Pass new argument.
906 * nss/nss_files/files-hosts.c: Likewise.
907 * nss/nss_files/files-network.c: Likewise.
908 * nss/nss_files/files-parse.c: Likewise.
909 * nss/nss_files/files-proto.c: Likewise.
910 * nss/nss_files/files-rpc.c: Likewise.
911 * nss/nss_files/files-service.c: Likewise.
912 * grp/fgetgrent.c: Likewise.
913 * pwd/fgetpwent.c: Likewise.
914 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
915 fgetpwent.c already defines it.
916 * nss/nss_files/files-grp.c: Likewise.
917
918 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
919 as well as any matching with l_libname. Fix DT_SONAME lookup to use
920 string table properly.
921
922 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
923 invoked directly, and l_libname from that if PT_INTERP missing.
924 Set l_name from l_libname only if not set from argv.
925
926 * time/europe, time/northamerica: Updated from ADO 96i.
927
eb48c963
RM
928Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
929
ffee1316
RM
930 * stdio-common/tst-ungetc.c: Include unistd.h.
931
eb48c963
RM
932 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
933
6ce16797
MB
934Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
935
25f329f7
MB
936 * hurd/report-wait.c (describe_number): Make I unsigned long.
937
6ce16797
MB
938 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
939 actually found any entry.
940
941 * login/pututline_r.c (pututline_r): If not located after any
942 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
943 Lock the file before stating.
944
eb48c963
RM
945Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
946
947 * nss/Makefile (databases): Change host to hosts.
948 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
949
950 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
951
952 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
953
954 * string/string.h (strndupa): Pass missing arg to strnlen.
955
956 * inet/getnetbypt_r.c: Renamed to ...
957 * inet/getnetbyad_r.c: this; fixed function name.
958 * inet/getnetbypt.c: Renamed to ...
959 * inet/getnetbyad.c: this; fixed function name.
960
961Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
962
963 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
964 struct passwd.
965
2baf7c31
MB
966Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
967
968 * login/login.c (login): Initialize DATA so that setutent_r will
969 actually do something.
970
eb48c963
RM
971Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
972
973 * resolv/res_hconf.c (strndup): Remove function.
974
975 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
976 using ElfW() instead of Elf32_*.
977
978 * sysdeps/unix/sysv/linux/alpha/init-first.h,
979 sysdeps/unix/sysv/linux/m68k/init-first.h,
980 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
981 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
982 init-first.h to make abstract machine dependent parts of
983 initialization.
984
985 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
986 error handling. It's safer that way.
987
988 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
989 Fix by Richard Henderson.
990
991 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
992 typo/extraneous whitespace.
993
994 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
995 determine what integer sizes we're dealing with.
996
d7126ae6
RM
997Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
998
eb48c963
RM
999 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1000 check for signal zero, repair logical sense of test by
1001 parenthesizing correctly.
1002
d7126ae6
RM
1003 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1004 check-for-pending signals code, release _hurd_siglock before
1005 jumping to deliver_pending.
1006
eb48c963
RM
1007Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1008
1009 * configure.in (config_machine): Make ELF the default even for
1010 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1011 is specified.
1012
de6b0623
RM
1013Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1014
eb48c963
RM
1015 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1016 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1017 member only #ifdef ENTDATA.
1018 (ENTDATA_DECL): New macro.
1019 (LINE_PARSER): Use it for entdata decl.
1020 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1021 from the input LINE, which might not be writable buffer space.
1022 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1023 [ENTDATA] (parser_stclass): #define to `static inline'.
1024 [!ENDATA] (parser_stclass): #define to empty.
1025 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1026 function is exported to -lnss_files users.
1027
1028 * string/strndup.c: Add missing arg.
1029
de6b0623 1030 * string/string.h (strndupa): Likewise.
eb48c963 1031 * string/strndup.c (strndup): Always terminate the string.
de6b0623
RM
1032
1033Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1034
1035 * stdio/Makefile (routines): Add vscanf.
1036 * stdio-common/Makefile (routines): Remove vscanf.
1037 * stdio-common/vscanf.c: Move to ...
1038 * stdio/vscanf.c: here.
1039
1040 * rpm/Makefile (headers, install-lib, install-lib.so,
1041 versioned, install-bin, install-sbin, install-data,
1042 install-others): Add $(-VARIABLE).
1043
6dbe2837
RM
1044Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1045
1046 * nss/Makefile (databases): New variable.
1047 (routines, libnss_files-routines): Use it.
1048 (subdir-dirs): Compute from $(services).
1049
1050 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1051 init_module, klogctl): Use EXTRA in the "caller" column so these get
1052 added to unix-extra-syscalls and thus compiled in misc.
1053
1054 * string/Makefile (routines): Add strndup.
1055 * string/strndup.c: New file.
1056 * string/string.h: Declare strndup.
1057 (strndupa): New macro.
1058
1059 * string/string.h: Declare __strdup.
1060 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1061
1062 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1063
6dbe2837
RM
1064Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1065
1066 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1067
1068 * grp/initgroups.c (initgroups): De-ansi-fy.
1069 Move declaration of NGROUPS and GROUPS outside #if so that
1070 the code compiles for NGROUPS_MAX != 0.
1071
1072 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1073 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1074 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1075 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1076 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1077 inet/ether_ntoh.c: New files. Implementation of functions to
1078 handle Ethernet address to host mapping.
1079 * inet/netinet/ether.h: New file. Declare ether_* functions.
1080 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1081 compilation.
1082 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1083 * nss/Makefile (routines): Add ethers-lookup.
1084 (libnss_files-routines): Add files-ethers.
1085
1086 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1087 with _r suffix.
1088
1089 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1090 KEEP_STREAM every time called.
1091 (_nss_files_end): Reset KEEP_STREAM here instead.
1092 (internal_getent): If STREAM == NULL try to open instead of
1093 signalling error.
1094 Use cast to prevent warning.
1095 Terminate read line in case the buffer is too small.
1096
1097 * nss/nss_files/files-ethers.c: New file. Implementation of
1098 Ethernet adress<->hostname lookup through files interface.
1099
1100 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1101 * stdlib/mbtowc.c: Define based on mbrtowc().
1102 * stdlib/wcstombs.c: Define based on wcsrtombs().
1103 * stdlib/wctomb.c: Define based on wcrtomb().
1104
1105 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1106 unexpected_sizes_in_xdr_u_int.
1107
1108 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1109 of `struct ether_addr'.
1110 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1111 declaration of `struct ether_addr'.
1112
1113 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1114 * wcsmbs/mbsrtowcs.c: Ditto.
1115 * wcsmbs/wcrtomb.c: Ditto.
1116 * wcsmbs/wcsrtombs.c: Ditto.
1117
1118 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1119
f34e0ae3
MB
1120Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1121
a5d96b25
MB
1122 * hurd/get-host.c <fcntl.h>: New include.
1123 * hurd/set-host.c <fcntl.h>: New include.
1124 (_hurd_set_host_config): Include NEW in args to dir_link.
1125 Return NWROTE, not NREAD.
1126
f34e0ae3
MB
1127 * sysdeps/mach/hurd/getcwd.c
1128 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1129 DOTID & DOTDEVID until we're finished with them (we need to keep
1130 them at least until we've fetched the next level of id ports, so
1131 that mach will be able to use the same name if they're the same).
1132 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1133 jumps to errlose, for those places where such cleanup is needed.
1134
bba7bb78
RM
1135Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1136
1137 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1138
1139 Move DB code into separate -ldb library.
1140 * db/Makefile (extra-libs): New variable, list libdb.
1141 (routines): Renamed to libdb-routines.
1142 * shlib-versions: Add libdb=2.
1143
1144 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1145 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1146
1147 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1148 of strncasecmp. Extend syntax to grok [!foo=bar].
1149
1150 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1151 weak alias.
1152 * string/string.h: Declare __strncasecmp.
1153
1154 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1155 (service_alias): Variable removed.
1156 (nss_parse_service_list): New function, broken out of nss_getline.
1157 Remove alias conversion; we will just use symlinks.
1158 (__nss_database_lookup): Take new string arg DEFCONFIG.
1159 If no entry exists, make one with service list parsed from that.
1160 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1161 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1162 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1163
1164 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1165 list size.
1166
1167 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1168
1169Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1170
1171 * locale/programs/locale.c (long_options): Short form of
1172 --version option is `-V'.
1173 (main): Recognize `-V' as option, not `-v'.
1174 Call `usage' instead of printing error message for illegal
1175 option.
1176 (usage): Document `-V'.
1177
23586dcc
MB
1178Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1179
1180 * sysdeps/mach/hurd/getcwd.c
1181 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1182 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1183
622586fb
RM
1184Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1185
1186 * inet/getrpcent.c: Fix macros.
1187 * inet/getrpcent_r.c: Fix macros.
1188
1189 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1190
1191 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1192
a4242e25
RM
1193Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1194
1195 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1196 size_t.
1197 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1198 cast it to (unsigned long) to make it work both on 32 and 64
1199 bit architectures.
1200
1201Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1202
1203 * locale/Makefile (distribute): Add `programs/' prefix to all
1204 files in that directory.
1205
1206 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1207 subdir' works.
1208
1209 * MakeTAGS (sources, headers): Make them simply expanded variables
1210 so that all-dist is expanded before it is changed.
1211
5f0e6fc7
RM
1212Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1213
5325738c 1214 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
748050b3
RM
1215 * Makefile (subdirs): Remove crypt.
1216 * crypt: Directory removed. It will be made an independent library
1217 distribution.
1218
1219 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1220
ad8da79b
RM
1221 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1222
dcea62dd
RM
1223 * inet/getrpcbynumber.c (BUFLEN): New macro.
1224
1225 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1226
3d3ac840
RM
1227 * Makefile (headers): Add libc-lock.h.
1228 * sysdeps/stub/libc-lock.h: New file.
1229
1230 * inet/getrpcbynumber.c: Remove _r typo.
1231
1232 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1233
c66273aa
RM
1234 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1235 after the first!
1236
1237 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1238 or doesn't mention DATABASE, use an internal default equivalent to
1239 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1240 (nss_lookup_function): Call nss_new_service as needed.
1241 (nss_parse_file): Don't bother calling nss_new_service here.
1242
1243 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1244 * pwd/fgetpwent.c: Likewise.
1245
5f0e6fc7
RM
1246 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1247 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1248 * malloc/malloc-size.c: New file.
1249 * malloc/malloc-walk.c: New file.
1250
1251 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1252 PTR is outside the heap.
1253
1254 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1255 soname of a loaded object, use that object.
1256
1257Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1258
1259 * Makefile (subdirs): Add nss.
1260
1261 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1262 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1263 * inet/getrpcbynumber_r.c: New file.
1264 * inet/getrpcbynumber.c: New file.
1265 * inet/getrpcbyname.c: New file.
1266 * inet/getrpcbyname_r.c: New file.
1267 * inet/getrpcent_r.c: New file.
1268 * inet/getrpcent.c: New file.
1269 * nss/rpc-lookup.c: New file.
1270 * nss/nss_files/files-rpc.c: New file.
1271 * nss/Makefile (routines): Add rpc-lookup.
1272 (libnss_files-routines): Add files-rpc.
1273 * sunrpc/Makefile (routines): Remove getrpcent.
1274 * sunrpc/getrpcent.c: File removed.
1275
1276 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1277 non-null on entry.
1278
1279 * Makeconfig (rpath-link): Add $(nssobjdir).
1280 (nssobjdir): New variable.
1281
1282 * Makerules: Move shared library building before objects rules, so
1283 versions are known before extra-lib.mk gets included.
1284 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1285
1286 * pwd/getpwuid.c: Rewritten using nss.
1287 * pwd/getpwnam.c: Likewise.
1288 * pwd/getpwent.c: Likewise.
1289 * grp/getgrnam.c: Likewise.
1290 * grp/getgrgid.c: Likewise.
1291 * grp/getgrent.c: Likewise.
1292 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1293 * pwd/getpwent_r.c: New file.
1294 * pwd/getpwnam_r.c: New file.
1295 * pwd/getpwuid_r.c: New file.
1296 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1297 * grp/getgrnam_r.c: New file.
1298 * grp/getgrgid_r.c: New file.
1299 * grp/getgrent_r.c: New file.
1300 * grp/Makefile (routines): Remove grpopen, grpread.
1301 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1302 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1303
1304 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1305 * grp/fgetgrent.c: Likewise.
1306
1307 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1308 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1309 * nss/nss_files/files-grp.c: New file.
1310 * nss/nss_files/files-pwd.c: New file.
1311
1312 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1313
1314 * nss/nss_files/files-parse.c: New file.
1315 * nss/nss_files/files-XXX.c: New file.
1316 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1317 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1318 Rewritten using them.
1319
1320 * nss/Makefile (libnss_files-routines): Remove files-host.
1321 Add files-hosts, files-grp, files-pwd.
1322
1323 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1324
1325Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1326
1327 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1328 A .plt entry now loads the .rela.plt offset directly rather
1329 than making us calculate it.
1330
1331Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1332
1333 * time/Makefile ($(installed-localtime-file) rule): Do
1334 $(make-target-directory) first.
1335
1336 * resolv.h: Fix wrapper for resolv/resolv.h.
1337
1338 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1339 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1340 require installed libraries.
1341
1342 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1343 libnss_dns=1.
1344
1345Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1346
282d8743
RM
1347 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1348 and mapv4v6hostent.h.
1349 (routines): Move res* and gethnamaddr into libresolv-routines.
1350 (libresolv-routines): New variable, put them there.
1351 (extra-libs): New variable, list libresolv.
1352 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1353
5f0e6fc7
RM
1354 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1355
1356 * inet/herrno.c: New file.
1357
1358 * resolv/res_init.c: Remove res_hconf calls.
1359
1360 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1361 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1362 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1363 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1364 nss/service-lookup.c: New files. Implementation of name
1365 service switch, following the approach in Solaris.
1366 Interface specification and general structure inspired by Peter
1367 Eriksson <pen@lysator.liu.se>.
1368 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1369 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1370 Implementation of libnss_files.so module for file based databases
1371 in NSS service.
1372 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1373 if libnss_dns.so module for DNS name lookup in NSS service.
1374
1375 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1376 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1377 Changed to serve as interface to NSS.
1378 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1379 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1380 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1381 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1382 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1383 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1384 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1385 interfaces to NSS, including reentrant functions.
1386
1387 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1388 resolv/sethostent.c: Removed: Obsoleted by NSS.
1389
1390 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1391 gethnamaddr.c. These private functions are now used in more
1392 than one file.
1393
1394 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1395
1396Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1397
1398 * rpm/Makefile ($(config)): Make sure the word list in the for
1399 loop is syntactically non-empty.
1400
7f811679
RM
1401Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1402
1403 * Version 1.92 test release.
1404
1405Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1406
1407 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1408 to klogctl to match prototype in sys/klog.h.
1409
1410 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1411 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1412
1413 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1414 Remove. Code is now part of __getcwd again. The old function
1415 never really worked for anything but THISDIR==".".
1416
1417 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1418 only when building ELF version of library.
1419
1420 * libio/libioP.h (_IO_vscanf): Add prototype.
1421
1422 * posix/unistd.h (syscall): Change sysno arg and return value
1423 to int long.
1424
78b5ba3e
RM
1425Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1426
7f811679 1427 * version.h (VERSION): Updated to 1.92.
072ebcef
RM
1428
1429 * misc/Makefile (headers): Add ar.h.
1430 * misc/ar.h: New file.
1431
1432 * config.make.in (BUILD_CC): New variable.
1433 * configure.in: Check for BUILD_CC if $host != $build.
1434
1435 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1436
1437 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1438 (stamp$o files): New targets, create them empty, no deps.
1439
78b5ba3e
RM
1440 * rpm/template (Source): New field.
1441 (%prep, %build, %install): New sections.
1442 (%files): Add %doc FAQ NEWS NOTES README.
1443 * rpm/rpmrc (builddir): Removed.
1444
51fbd1f6
RM
1445Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1446
0d3726c3
RM
1447 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1448 guessing to not assume p_vaddr of first load cmd is zero.
1449
4f54cdb1
RM
1450 * sysdeps/sparc/elf/start.S: New file.
1451 * sysdeps/sparc/dl-machine.h: New file.
1452
1453 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1454 only for ?s, not for *s. Fix from Chet Ramey.
1455
1456 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1457 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1458 Use __{BEGIN,END}_DECLS.
1459 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1460 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1461 New macros, moved here from sysdeps/gnu/utmpbits.h.
1462 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1463 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1464 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1465 Use sizeof instead of UT_*SIZE.
1466 * login/logwtmp.c: Likewise.
1467
1468 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1469
1470 * version.c (banner): Add trailing newline.
1471
51fbd1f6
RM
1472 * login/utmp.h: Declare login_tty.
1473
1474Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1475
1476 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1477 Changed to a 12-byte PLT entry to remove dependency on $gp.
1478 Take a new got_addr parameter.
1479 (elf_machine_rela): Pass the new parameter.
1480 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1481 (RTLD_START): Do normal linkage with program entry.
1482
51ec5cb2
MB
1483Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1484
1485 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1486
1487 * hurd/getuids.c (getuids): New weak link to __getuids.
1488
bf0f4720
MB
1489Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1490
1491 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
51fbd1f6
RM
1492 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1493 argument.
bf0f4720
MB
1494 Rename nested function lookup to lookup_op.
1495 (__file_name_lookup, __file_name_lookup_under):
1496 Pass 0 for lookup arg to __hurd_file_name_lookup.
1497 (__file_name_split): Likewise for __hurd_file_name_split.
1498 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1499 Rename nested function lookup to scan_lookup.
1500 (file_name_path_lookup): Pass 0 for lookup arg to
1501 hurd_file_name_path_lookup.
1502 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
51fbd1f6 1503 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
bf0f4720
MB
1504 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1505 Add LOOKUP argument.
1506 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1507 __hurd_file_name_lookup.
1508
e50ec9f9
RM
1509Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1510
1511 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1512 up a huge list just to discard most of it.
1513
1514 * configure.in (sysnames): Avoid fgrep by using the case shell
1515 builtin.
1516
1517 * Makeconfig (config.status): Fix dependency on Implies files.
1518
6990326c
RM
1519Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1520
1521 * math/Makefile (distribute): Add ieee-math.c.
1522
1523Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1524
1525 * locale/codeset_name.c: New file. Provide function for information
1526 about currently used character set.
1527 * locale/Makefile (routines): Add codeset_name.
1528 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1529 * locale/localeinfo.h: Change magic number because of incompatible
1530 change.
1531 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1532 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1533
1534 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1535 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1536
1537 * locale/setlocale.c (setlocale): Initialize local variables to
1538 prevent warnings.
1539
a1470b6f
RM
1540Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1541
1542 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1543
1544 * locale/programs/locale.c: Include string.h.
1545
1546 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1547 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1548 appropriate sign-extension is performed on machines with
1549 sizeof(long) > 4.
1550
1551 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1552 sizeof(int)<sizeof(long), we need to go through a temporary
1553 variable.
1554
1555 * locale/programs/ld-numeric.c: Include <alloca.h>
1556
1557 * libio/stdio.h (__libc_fatal): Add prototype.
1558
1559 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1560 in efect.
1561
1562 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1563 volatile to avoid "might get clobbered by longjmp" warning.
1564
1565 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1566 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1567 probability is a sure loser).
1568 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1569
1570 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1571 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1572
1573 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1574 to be Linux FSSTND compliant.
1575
1576Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1577
1578 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1579
1580 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1581 sysdeps/unix/sysv/linux/alpha/brk.S,
1582 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1583 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1584 sysdeps/unix/sysv/linux/alpha/llseek.S,
1585 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1586 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1587 __syscall_error to avoid intruding application name space.
1588
1589 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1590 to SYS_get?id so that syscall stubs in sysdeps/unix define
1591 these syscalls in terms of getxpid/getxuid/getxgid.
1592
1593 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1594 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1595 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1596 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1597
1598 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1599 (PSEUDO_END): Rename END() to PSEUDO_END().
1600
1601 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1602 to PSEUDO_END to improve branch-prediction. Include .frame
1603 directive to make syscalls debugabble.
1604 (PSEUDO_END): New macro.
1605
1606 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1607 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1608 latter is illegal under DEC Unix.
1609
1610 * sysdeps/unix/alpha/sysdep.S: Renamed from
1611 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1612 as well.
1613 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1614 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1615 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1616
1617 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1618 address register in the .frame directive.
1619
1620 * sysdeps/alpha/copysign.c: Remove.
1621
1622 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1623 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1624
1625 * errno.h: Move __END_DECLS to correct place to make file
1626 compilable under c++.
1627
1628 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1629 d_ino only if <direntry.h> hasn't defined d_fileno.
1630
1631 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1632 arguments to weakext to make .weakext detection work on ECOFF systems.
1633
1634 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1635 that _validuser() has been replaced by __ivaliduser().
1636
1637Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1638
1639 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1640 as unsigned long, not as int (to avoid incorrect int->long
1641 promotion).
1642
96383fc7
RM
1643Tue Jun 18 17:56:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1644
bd1be8ec
RM
1645 * Version 1.91 test release.
1646
36dbcbc9
RM
1647 * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1648 distinfo to this.
1649 (distinfo): Make phony target depending on that.
1650 (TAGS, po/%.pot, dist): Change deps.
1651 (common-clean): Remove that file.
1652 * rpm/Makefile (distinfo): Change names.
1653
96383fc7
RM
1654 * rpm/Makefile (clean): New target.
1655
1656 * stdlib/test-canon.c: New test program contributed by David Mosberger.
1657 * stdlib/Makefile (tests): Add test-canon.
1658 * stdlib/canonicalize.c: Rewritten by David Mosberger.
1659
2cc7dc4d
RM
1660Mon Jun 17 17:53:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1661
96383fc7
RM
1662 * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1663 mention of $< in mig cmd. Thanks to Shantanu Goel.
1664
2cc7dc4d
RM
1665 * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1666 _hurd_brk.
1667
1668 * libio/stdio.h [__USE_SVID]: Declare tempnam.
1669
1670Fri Jun 14 19:28:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1671
1672 * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1673 parameters.
1674
1675Wed Jun 12 20:40:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1676
1677 * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1678 _dl_default_scope.
1679
3433189e
RM
1680Sun Jun 16 03:22:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1681
2cc7dc4d
RM
1682 * sysdeps/stub/elfclass.h: New file.
1683
61ee476c
RM
1684 * Make-dist (subdir): Make empty value really empty.
1685
4c904bd4
RM
1686 * version.h (VERSION): Update to 1.91.
1687
26da047f
RM
1688 * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1689
1690 * shlib-versions (*-*-*): Add libutil=1.
1691
1692 * rpm/Makefile (install-lib): Add libc.a et al.
1693 (install-others): Only add libc.so if $(build-shared) is yes.
1694
1695 * math/Makefile (install-lib): New variable, list libieee.a.
1696 (non-lib.a): Likewise.
1697 (extra-objs): Likewise, and ieee-math.o.
1698 ($(objpfx)libieee.a): New target, link to ieee-math.o.
1699 * math/ieee-math.c: New file.
1700 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1701 and libieee.a stuff.
1702 * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1703 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1704
3433189e
RM
1705 * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1706 and rule for it conditional on termio.h not already being in
1707 sysdep_headers.
1708
1709 * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1710 $(libdir), only the versioned named from $(slibdir).
1711 (instfiles): New variable.
1712 (glibc-$(version).$(config).rpm): New target. Run rpm -bb.
1713 * rpm/rpmrc: New file. A third of the options controlling rpm can
1714 only be given here (another third is on the command line, and a third
1715 cannot be specified in any way shape or form).
1716
6a441471
RM
1717Sun Jun 16 02:44:22 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1718
1719 * rpm/template: New file.
1720 * rpm/Makefile: New file.
1721
1722 * Makeconfig (sysdep-configures): Remove empty variable.
1723
1724 * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1725 $(versioned).
1726
1727 * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1728 to rule w/dep on %, with no-op commands.
1729
1730 * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1731 * Makefile (rpm/%): New rule.
1732 (+subdir_targets): Add subdir_distinfo.
1733
a3b58440
RM
1734Sun Jun 16 00:40:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1735
6a441471
RM
1736 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1737 fpu_control.h here.
1738
a3b58440
RM
1739 * time/Makefile ($(installed-localtime-file)): If target exists, do
1740 nothing but print a message; if not, make it an absolute symlink.
1741
1742 * time/tzset.c (__tzset): After stripping leading :, call
1743 __tzfile_read on TZ even if it's empty or null.
1744 * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1745
a23db8e4
RM
1746Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1747
5fbef188
RM
1748 * hurd/Makefile (routines): Add get-host, set-host.
1749 (distribute): Add hurdhost.h.
1750 * hurd/hurdhost.h: New file.
1751 * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1752 * sysdeps/mach/hurd/gethostid.c: Likewise.
1753 * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1754 * sysdeps/mach/hurd/sethostid.c: Likewise.
1755 * hurd/get-host.c: New file.
1756 * hurd/set-host.c: New file.
1757
1758 * math/Makefile (headers): Add fpu_control.h.
1759 (aux): New variable, list fpu_control and setfpucw.
1760 * sysdeps/generic/fpu_control.c: New file.
1761 * sysdeps/stub/fpu_control.h: New file.
1762 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1763 * sysdeps/m68k/fpu_control.h: here.
1764 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1765 * sysdeps/i386/fpu_control.h: here.
1766 * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1767 * sysdeps/alpha/fpu/fpu_control.h: here. Fixed copyright.
1768 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1769 setfpucw, fpu_control.
1770 * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1771 * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1772 * sysdeps/generic/setfpucw.c: here.
1773 (__fpu_control): Variable removed.
1774 (__setfpucw): Use SET even if zero.
1775
f9496a7b
RM
1776 * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1777 Set mark bits of deps as opened, instead of as scanned.
1778
1779 * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1780 Then if it has a nonzero l_opencount, add it back in search order.
1781
1782 * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1783 it ain't got one!
1784
a23db8e4
RM
1785 * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1786
1787 * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1788 * elf/link.h: Update prototype.
1789 * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1790 NAME, try the DT_RPATH of the executable itself if dynamic.
1791 * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1792
1793 * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1794 open succeeds.
1795
1796 * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1797
1798 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1799 (rpath-link): Append to this instead.
1800
f332db02
RM
1801Fri Jun 14 01:51:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1802
1803 * version.c (banner): New static const variable, complete version
1804 banner text.
1805 (__libc_print_version): Use it, and use __write instead of printf.
1806
1807 * configure.in (sysnames): Don't cache the value, because it
1808 depends only on libc sources. Merge uniquifying third pass into
1809 Implies/parent expansion second pass. Report each unique name as
1810 it is added in partial report string, terminated when finished.
1811
1812 * Makeconfig (sysdep_dir): Move defn before config.status rule that
1813 expands it.
1814 (sysdep-configures): Variable removed.
1815 (config.status): Use its contents directly, tighten up a bit, and
1816 include Implies files.
1817
1818 * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1819
1820 * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1821
5c5ae36f
MB
1822Thu Jun 13 14:29:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
1823
1824 * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1825 label to `deliver_pending:' to match goto.
1826
4d6acc61
RM
1827Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1828
f332db02
RM
1829 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1830 Add comment.
1831
1832 * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1833
1834 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1835 weak alias for _mcount.
1836 * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1837
4d6acc61
RM
1838 * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1839 null, consider it a strong reference and give the error.
1840
1841Wed Jun 12 15:52:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1842
1843 * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1844 after relocating NEW when it's the only new object.
1845
1846 * elf/dl-init.c (_dl_init_next): When out of initializers, set
1847 _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1848 before return.
1849
1850 * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1851 relocation. Call it unconditionally and only fill in DT_DEBUG
1852 if it's present. Then call _dl_debug_state with r_state RT_ADD
1853 before running initializers.
1854
1855 * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1856 _dl_debug_state with r_state RT_ADD before running initializers
1857 * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1858 RT_DELETE before running finalizers and with RT_CONSISTENT just
1859 before return.
1860
1861 * elf/Makefile (dl-routines): Add dl-debug.
1862 * elf/dl-debug.c: New file.
1863 * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1864 (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1865 (dl_main): Use _dl_debug_initialize.
1866 * elf/link.h: Fix name to _dl_debug_state in decl.
1867 (_dl_debug_initialize): Declare new function from dl-debug.c.
1868 (_r_debug): Declare it.
1869
1870 * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1871 In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1872
1873 * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1874 (default-rpath): Use it.
1875 (built-program-cmd): Use it in LD_LIBRARY_PATH.
1876
1877 * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1878
1879 * sysdeps/unix/Dist: Add make-syscalls.sh.
1880
1881 * misc/Makefile (headers): Add sys/swap.h.
1882 * posix/unistd.h: Remove decls for swapon, swapoff.
1883 * sysdeps/generic/sys/swap.h: New file.
1884 * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1885
1886 * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1887 of __kernel_fsid_t. It is correctly defines in <linux/types.h> now.
1888
463e148b
RM
1889Tue Jun 11 23:23:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1890
1891 * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1892 __libc_print_version as entry point for shared object.
1893 * version.c [HAVE_ELF] (__libc_main): New function.
1894
1895 * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1896 load address.
1897
8d6468d0
RM
1898Tue Jun 11 19:13:04 1996 Richard Henderson <rth@tamu.edu>
1899
4d5da9a6
RM
1900 * sysdeps/alpha/dl-machine.h: New file.
1901
8d6468d0
RM
1902 * elf/dl-close.c: Include <string.h> for memcpy.
1903 * elf/dl-lookup.c: Same.
1904
1905 * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1906 * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1907 (_dl_setup_hash): Use it.
1908 * elf/link.h (struct link_map): Use it.
1909
1910 * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1911 for getting the argc/argv/envp block. Instead, make it the argument.
1912 sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1913 sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1914
1915 * shlib-versions: Add version numbers for alpha-linux. To avoid
1916 user confusion, make them the same as i386-linux.
1917
1918 * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1919 sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1920 Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1921 without using literal data.
1922
1923 * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1924 Finish Elf32 -> ElfW migration.
1925
6ba35316
RM
1926Tue Jun 11 15:09:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1927
6e86a7c2
RM
1928 * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1929
1930 * elf/Makefile (routines): Remove init-first.
1931 * csu/Makefile (routines): New variable; put it here instead.
1932
1933 * config.make.in (CFLAGS): New variable.
1934
1935 * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1936 not __USE_GNU.
1937 * string/string.h (strncasecmp): Likewise.
1938
a89d30d4
RM
1939 * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1940 to after `include ../Rules', so $(rtld-installed-name) is defined.
1941
d8c7ef98
RM
1942 * string/basename.c (basename): Cast FILENAME to char * for return.
1943
1944 * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1945 libc.so and libc.a in the deps.
1946
852fc4b9
RM
1947 * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
1948 link to ld.so if that is not the installed name.
1949 (lib-noranlib): Depend on the installed name in the build directory
1950 instead of on ld.so.
1951
1952 * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
1953 between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
1954 ld searches libc.a before ld.so (is that an ld bug?).
1955 Add $(elfobjdir) to -rpath-link.
1956
1957 * Makerules (elfobjdir): Define as . when $(subdir) is elf.
1958
1959 * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
1960 relocating _dl_rtld_map, subtract SYM's value from final reloc value,
1961 but don't change *RELOC_ADDR before calling *RESOLVE, because it might
1962 call the function we are relocating!
1963
6ba35316
RM
1964 * string/basename.c: New file.
1965 * string/Makefile (routines): Add basename.
1966
266180eb
RM
1967Mon Jun 10 06:14:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1968
ba79d61b
RM
1969 * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
1970
1971 * elf/dl-close.c: New file.
1972 * elf/link.h: Declare _dl_close.
1973 * elf/Makefile (routines): Add dl-close.
1974 * elf/dlclose.c (dlclose): Use _dl_close.
1975
1976 * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
1977
1978 * elf/dl-runtime.c (_dl_global_scope): New variable.
1979 (_dl_object_relocation_scope): New function.
1980 (fixup): Use it.
1981 * elf/rtld.c (dl_main): Use it.
1982 * elf/dl-open.c (_dl_open): Use it. If (MODE & RTLD_GLOBAL), set the
1983 l_global bit and append the new map to _dl_global_scope.
1984 * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
1985 and _dl_object_relocation_scope.
1986
1987 * elf/link.h (struct link_map): Add l_loader member.
1988 Remove _dl_map_object_from_fd decl.
1989 * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
1990 (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
1991 (_dl_map_object): Try DT_RPATH from all loaders up the chain.
1992
1993 * elf/dl-object.c (_dl_loaded): Variable removed.
1994 (_dl_default_scope): New variable replaces it.
1995 * elf/link.h (_dl_loaded): Remove variable decl; instead define as
1996 macro for _dl_default_scope[2].
1997 (_dl_default_scope): Declare it.
1998 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
1999 instead of _dl_loaded.
2000 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2001 * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
2002
2003 * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
2004 * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
2005
2006 * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
2007 (struct link_map): Add new flag member l_global.
2008
2009 * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
2010 directly instead of looking for lt_interpreter.
2011 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2012 * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
2013 (dl_main): Set _dl_rtld_map.l_type to lt_library.
2014
2015 * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
2016 dependencies loaded, downgrading lt_executable -> lt_library.
2017
2018 * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
2019 l_type from that, translating lt_library->lt_executable based on the
2020 file's ELF type.
2021 (_dl_map_object): Likewise.
2022 * elf/link.h: Update prototypes.
2023 * elf/dl-open.c: Pass type lt_loaded.
2024 * elf/rtld.c: Pass type lt_library.
2025
2026 * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
2027 _dl_new_object.
2028 (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
2029 Free REALNAME, and just use NAME in error message.
2030 * elf/dl-object.c (_dl_new_object): If malloc fails, return null
2031 instead of calling _dl_signal_error.
2032
2033 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
2034 error for _dl_zerofd setup failure.
2035
2036 * elf/dl-object.c (_dl_startup_loaded): Variable removed.
2037 * elf/link.h: Remove its decl.
2038
2039 * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
2040 through to _dl_lookup_symbol.
2041 * elf/link.h (_dl_relocate_object): Update comment and prototype.
2042 * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
2043
2044 * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
2045 null-terminated vector of pointers, no longer a vector of exactly two.
2046 * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
2047
2048 * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
2049 done in _dl_relocate_object.
2050
2051 * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
2052
567c63af
RM
2053 * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
2054 (ElfW, ELFW): Use it.
2055 * elf/Makefile (headers): Add elfclass.h.
2056 * sysdeps/wordsize-32/elfclass.h: New file.
2057 * sysdeps/wordsize-64/elfclass.h: New file.
2058 * sysdeps/alpha/Implies: Add wordsize-64.
2059 * sysdeps/i386/Implies: Add wordsize-32.
2060 * sysdeps/m68k/Implies: Add wordsize-32.
2061 * sysdeps/mips/Implies: Add wordsize-32.
2062 * sysdeps/sparc/Implies: Add wordsize-32.
2063
266180eb
RM
2064 * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
2065 (__close, __mmap): Likewise define with __ names now.
2066
2067Mon Jun 10 05:13:18 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2068
2069 * elf/dl-support.c: New file.
2070 * elf/Makefile (CFLAGS-dl-support.c): New variable.
2071 (routines, elide-routines.so): Add dl-support.
2072
2073 * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
2074 * elf/dl-load.c (_dl_pagesize): Define it here.
2075 (_dl_map_object_from_fd): Initialize it if zero.
2076 * elf/link.h (_dl_pagesize): Remove const.
2077
2078Sun Jun 9 04:04:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2079
2080 * elf/Makefile (routines): Add dl-symbol.
2081 * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
2082 * elf/dl-symbol.c: New file.
2083
2084 * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
2085 (Elf32_Section, Elf64_Section): New types, 16 bits.
2086 (Elf32_Sym, Elf64_Sym): Use it.
2087
2088 * elf/dl-deps.c (_dl_open): Moved to ...
2089 * elf/dl-open.c: New file.
2090 * Makefile (routines): Add dl-open.
2091
2092 * elf/Makefile (dl-routines): New variable.
2093 (routines): Add $(dl-routines).
2094 (elide-routines.so): New variable, set to $(dl-routines).
2095 (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
2096 (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
2097 $(dl-routines).
2098
2099 * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
2100
2101 * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
2102
2103 * elf/dl-load.c (open_path): Use __ names for open and close. Avoid
2104 using strdup.
2105 (_dl_map_object): Likewise.
2106 (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
2107 * elf/dl-minimal.c (malloc): Likewise.
2108 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2109
2110 * elf/dl-minimal.c (_dl_pagesize): New variable.
2111 (malloc): Use that instead of a static variable.
2112 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
2113 calling getpagesize.
2114 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2115 * elf/link.h: Declare _dl_pagesize.
2116
2117 * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
2118
2119 * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
2120 * elf/rtld.c (dl_main): Use Half for phdr count arg.
2121 (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
2122
2123 * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
2124 extract 4-byte magic number, not ElfW(Word). Match EI_CLASS against
2125 native wordsize, either 32 or 64.
2126
2127 * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed. In C a
2128 char is always a byte, no need for a typedef. Section indices are
2129 16-bit quantities in elf64, which already have a typedef Elf64_Half.
2130
2131 Remove partial -lelf implementation. There is now a
2132 separately-distributed `libelf' package that implements it.
2133 * elf/dl-lookup.c: Don't #include <libelf.h> any more.
2134 (_dl_elf_hash): New function, moved from
2135 libelf.h:elf_hash.
2136 (_dl_lookup_symbol): Use it instead of elf_hash.
2137 * elf/libelf.h: File removed.
2138 * elf/elf_hash.c: File removed.
2139 * elf/Makefile (headers): Remove libelf.h.
2140 (extra-libs): Remove libelf.
2141 (libelf-routines): Variable removed.
2142
2143 * elf/Makefile (libdl.so): Remove commands from this target. The
2144 implicit rule commands are correct, this explicit rule just serves to
2145 add some dependencies.
2146
2147 * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
2148 ELF32_ST_TYPE. Likewise ST_BIND.
2149 * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
2150
2151 * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
2152 naming.
2153 (ELFW): New macro, likewise for ELFXX_* macro naming.
2154 (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
2155
2156Sat Jun 8 20:52:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2157
2158 * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
2159 elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
2160 elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
2161 elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
2162 `ElfW(XXX)' for wordsize-independence.
2163
2164Sat Jun 8 20:50:42 1996 Richard Henderson <rth@tamu.edu>
2165
2166 * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
2167 (Elf64_auxv_t): New type.
2168 (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
2169
564210fe
RM
2170Mon Jun 10 02:22:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2171
2172 * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
2173 Add check for installed <linux/version.h> being v2.0 or later.
2174
2175 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
2176 instead of open.
2177 (_dl_sysdep_fatal): Call __write instead of write.
2178 (_dl_sysdep_message): Likewise.
2179
2180Sun Jun 9 20:40:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2181
2182 * sysdeps/m68k/fpu/e_acosl.c: New file.
2183
dcfb26a7
RM
2184Sun Jun 9 01:11:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2185
564210fe
RM
2186 * Makerules (o-objects): New variable. Use it in place of
2187 $(objects:.o=$o); it filters out $(elide-routines$o).
2188 Use o-iterator for ar and ranlib rules so they use the per-type object
2189 list.
2190
6d9756c9
RM
2191 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
2192
2193 * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
2194 * sysdeps/stub/mprotect.c: Likewise.
2195 * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
2196 * sysdeps/generic/sys/mman.h: Declare __mprotect.
2197 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2198 * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2199 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2200 * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
564210fe 2201 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
6d9756c9 2202
9dd2fc5d
RM
2203 * Make-dist ($(tardir).tar): Use sed to check for file names longer
2204 than 14 chars, instead of doschk which checks for other things we
2205 don't care about.
2206
780b91d9
RM
2207 * Version 1.90 test release.
2208
dcfb26a7
RM
2209 * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2210 assume . is in PATH.
2211
2212Sat Jun 8 22:05:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2213
2214 * math/Makefile (distribute): Comment out addition of
2215 $(long-m-routines) sources until they are all written.
2216
2217 * math/Makefile (distribute): Append long double source names to this
2218 instead of using elided-routines.
2219
2220Sat Jun 8 15:15:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2221
2222 * mach/mach_shortcuts.c: Obsolete file removed.
2223 * mach/mach_syscalls.h: Likewise.
2224
2225 * hurd/Makefile (distribute): Consolidate defns into one.
2226
2227 * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2228
bf668fc8
RM
2229Fri Jun 7 16:48:13 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2230
2231 * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2232 sys/vm86.h.
2233
2234 Removed old math code no longer used since the fdlibm integration.
2235 * sysdeps/stub/acos.c: File removed.
2236 * sysdeps/stub/asin.c: File removed.
2237 * sysdeps/stub/atan2.c: File removed.
2238 * sysdeps/stub/cosh.c: File removed.
2239 * sysdeps/stub/exp.c: File removed.
2240 * sysdeps/stub/fmod.c: File removed.
2241 * sysdeps/stub/frexp.c: File removed.
2242 * sysdeps/stub/log.c: File removed.
2243 * sysdeps/stub/log10.c: File removed.
2244 * sysdeps/stub/sinh.c: File removed.
2245 * sysdeps/stub/tan.c: File removed.
2246 * sysdeps/stub/tanh.c: File removed.
2247 * sysdeps/generic/acos.c: File removed.
2248 * sysdeps/generic/acosh.c: File removed.
2249 * sysdeps/generic/asin.c: File removed.
2250 * sysdeps/generic/asinh.c: File removed.
2251 * sysdeps/generic/atan.c: File removed.
2252 * sysdeps/generic/atan2.c: File removed.
2253 * sysdeps/generic/atanh.c: File removed.
2254 * sysdeps/generic/cabs.c: File removed.
2255 * sysdeps/generic/ceil.c: File removed.
2256 * sysdeps/generic/copysign.c: File removed.
2257 * sysdeps/generic/cosh.c: File removed.
2258 * sysdeps/generic/exp.c: File removed.
2259 * sysdeps/generic/expm1.c: File removed.
2260 * sysdeps/generic/fabs.c: File removed.
2261 * sysdeps/generic/floor.c: File removed.
2262 * sysdeps/generic/fmod.c: File removed.
2263 * sysdeps/generic/frexp.c: File removed.
2264 * sysdeps/generic/hypot.c: File removed.
2265 * sysdeps/generic/infnan.c: File removed.
2266 * sysdeps/generic/isnan.c: File removed.
2267 * sysdeps/generic/ldexp.c: File removed.
2268 * sysdeps/generic/log.c: File removed.
2269 * sysdeps/generic/log10.c: File removed.
2270 * sysdeps/generic/log1p.c: File removed.
2271 * sysdeps/generic/modf.c: File removed.
2272 * sysdeps/generic/pow.c: File removed.
2273 * sysdeps/generic/rint.c: File removed.
2274 * sysdeps/generic/sinh.c: File removed.
2275 * sysdeps/generic/tan.c: File removed.
2276 * sysdeps/generic/tanh.c: File removed.
2277 * sysdeps/ieee754/cabs.c: File removed.
2278 * sysdeps/ieee754/copysign.c: File removed.
2279 * sysdeps/ieee754/frexp.c: File removed.
2280 * sysdeps/ieee754/hypot.c: File removed.
2281 * sysdeps/ieee754/infnan.c: File removed.
2282 * sysdeps/ieee754/ldexp.c: File removed.
2283 * sysdeps/ieee754/log10.c: File removed.
2284
2285 * posix/Makefile (headers): Add schedbits.h.
2286
2287 * math/Makefile (elided-routines): Add long double routines.
dcfb26a7 2288
268eb642
MB
2289Fri Jun 7 11:02:22 1996 Miles Bader <miles@gnu.ai.mit.edu>
2290
9646d934
MB
2291 * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2292 to __proc_getprocinfo.
2293
268eb642
MB
2294 * login/login.c (tty_name): New function.
2295 (login): Use it.
2296 (PATH_MAX): MACRO removed.
2297 <stdlib.h>: New include.
2298
bf668fc8
RM
2299Fri Jun 7 09:11:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2300
2301 * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2302 sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2303
2304 * gmon/Makefile (distribute): Add profil-counter.h.
2305
2306 * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2307
2308 * sysdeps/unix/Dist: Add s-proto.S.
2309
2310 * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2311
2312 * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2313
2314 * csu/Makefile (distribute): Add start.c.
2315
2316 * elf/Makefile (distribute): Add dl-machine.h.
2317
2318 * sysdeps/alpha/Dist: Add _mcount.S.
2319
2320 * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2321 resetting; don't add bb_init_func.
2322
2323 * string/Makefile (routines): Add strerror_r.
2324 * string/string.h (strerror_r): Use int for BUFLEN arg.
2325
2326 * Makefile (distribute): Add shlib-versions.
2327
2328 * po/Makefile (distribute): Add SYS_libc.pot.
2329
2330 * misc/Makefile (routines): Add lsearch.
2331
2332 * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2333 and other changes inadvertently made to the obsolete assert.texi.
2334 * manual/assert.texi: File removed.
2335
2336 * mach/mach_syscalls.c: Obsolete file removed.
2337 * mach/mach_syscalls.h: Likewise.
2338 * mach/mach_traps.S: Likewise.
2339 * mach/msg_destroy.c: Likewise.
2340 * mach/vm_page_size.c: Likewise.
2341
2342 * locale/Makefile (distribute): Add weight.h, charset.h.
2343
2344 * Makefile (distribute): Add version.h.
2345
2346 * hurd/Makefile (headers): Add hurd/ioctl.h.
2347 (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2348
2349 * csu/Makefile (distribute): Add gmon-start.c.
2350
2351 * Makefile (distribute): Add config.h.in.
2352
1c2f546b
RM
2353Wed Jun 5 22:06:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2354
2355 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2356 argument.
2357 [case R_68K_32]: Check for resolve being null.
2358 (RTLD_START): Add missing label.
2359
1be6ec30
RM
2360Fri Jun 7 1996 05:29:32 Ulrich Drepper <drepper@cygnus.com>
2361
2362 * misc/lsearch.c: New file. Implementation of lfind and
2363 lsearch functions.
2364
2365 * misc/search.h: Add prototype for functions from tsearch
2366 family with __ prefix.
2367 Correct prototype for lsearch: BASE parameter must not be
2368 const.
2369
2370 * misc/tsearch.c: prepend all global function names with __
2371 and make normal names weak aliases.
2372
2373Fri Jun 7 00:15:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2374
2375 * Make-dist (sysdep_dirs): Skip CVS dirs.
2376
4d02a5b1
RM
2377Thu Jun 6 16:12:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2378
c035afc9
RM
2379 * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2380 gmalloc-head.c.
2381 (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2382 (malloc/Makefile): Do $(make-target-directory) first.
2383 * malloc/gmalloc-head.c: New file.
2384
2385 * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2386
4d02a5b1
RM
2387 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2388 check, deliver a pending blocked signal if its action might be to
2389 ignore.
2390 * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2391 and SIG is pending, wake up signal thread to check us.
2392
2393 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2394 pending while blocked or stopped when the action is to ignore it.
2395
e60062b7
RM
2396Thu Jun 6 12:56:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2397
4d02a5b1
RM
2398 * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2399 SS_SUSPENDED when the thread is really suspended.
2400
2401 * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2402
e60062b7
RM
2403 * Makerules (headers): Move append of $(sysdep_headers) after include
2404 of sysdep makefiles.
2405
2406 * sysdeps/mach/hurd/errlist.c: File removed.
2407
02eec644
MB
2408Thu Jun 6 07:32:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
2409
2410 * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2411 (_gethtbyname2): Remove ALIAS variable.
2412 Initialize NAME field of SELF and TARGET to 0.
2413 Add SELF_NAME_SIZE static variable.
2414 Add loop to call gethostname until the space we allocated is enough.
2415 Use malloced strings instead of fixed size buffers.
2416 <stdlib.h>, <unistd.h>: New includes.
2417 * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2418
2419 * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2420 (_sys_nerr): Initialize to 107.
2421 Update _HURD_ERRNOS consistency check.
2422
2423 * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2424 not sysconf.
2425
2426 * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2427 already defined.
2428
2429 * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2430 argument to __msg_sig_post_request.
2431
2432 * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2433 libthreads/malloc.c:
2434 (more_memory): Use assert_perror instead of MACH_CALL.
2435 "cthread_internals.h": Include removed.
2436 (realloc): Use LOG2_MIN_SIZE.
2437 (LOG2_MIN_SIZE): New macro.
2438 (realloc): Don't bother allocating a new block if the
2439 new size request fits in the old one and doesn't waste any space.
2440 Only free the old block if we successfully got a new one.
2441 [MCHECK] (struct header): New type.
2442 (union header): Only define if !MCHECK.
2443 (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2444 [MCHECK] (MIN_SIZE): Add correct definition for this case.
2445 (more_memory, malloc, free, realloc): Use above macros, and add
2446 appropiate checks & frobs in MCHECK case.
2447
92f3773b
RM
2448Thu Jun 6 02:00:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2449
2450 * Makerules (distinfo-vars): Don't write constant line to frob sources.
2451 * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2452 routines.
2453
8f30ca23
RM
2454Tue Jun 4 22:03:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2455
2456 * sysdeps/m68k/fpu/__math.h: Define long double versions of
2457 the inline functions.
8f30ca23
RM
2458 * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2459 sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2460 sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2461 sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2462 sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2463 sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2464 sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2465 sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2466 sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2467 sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2468 sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2469 sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2470 sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2471 sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2472 sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2473 sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2474 sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
bf668fc8 2475 sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
8f30ca23
RM
2476
2477 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2478 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2479 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2480 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2481 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2482 sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2483 float_type with appropriate defaults.
2484
2485 * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2486 sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2487 sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2488 sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2489 sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2490 sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2491 versions with appropriate definitions to get float functions,
2492 instead of defining them directly.
2493
2494 * sysdeps/m68k/fpu/acos.c: File removed.
2495 * sysdeps/m68k/fpu/asin.c: File removed.
2496 * sysdeps/m68k/fpu/atan.c: File removed.
2497 * sysdeps/m68k/fpu/atan2.c: File removed.
2498 * sysdeps/m68k/fpu/atanh.c: File removed.
2499 * sysdeps/m68k/fpu/ceil.c: File removed.
2500 * sysdeps/m68k/fpu/cos.c: File removed.
2501 * sysdeps/m68k/fpu/cosh.c: File removed.
2502 * sysdeps/m68k/fpu/drem.c: File removed.
2503 * sysdeps/m68k/fpu/exp.c: File removed.
2504 * sysdeps/m68k/fpu/expm1.c: File removed.
2505 * sysdeps/m68k/fpu/fabs.c: File removed.
2506 * sysdeps/m68k/fpu/fl.h: File removed.
2507 * sysdeps/m68k/fpu/floor.c: File removed.
2508 * sysdeps/m68k/fpu/fmod.c: File removed.
2509 * sysdeps/m68k/fpu/frexp.c: File removed.
2510 * sysdeps/m68k/fpu/isinf.c: File removed.
2511 * sysdeps/m68k/fpu/isinfl.c: File removed.
2512 * sysdeps/m68k/fpu/isnan.c: File removed.
2513 * sysdeps/m68k/fpu/isnanl.c: File removed.
2514 * sysdeps/m68k/fpu/ldexp.c: File removed.
2515 * sysdeps/m68k/fpu/log.c: File removed.
2516 * sysdeps/m68k/fpu/log10.c: File removed.
2517 * sysdeps/m68k/fpu/log1p.c: File removed.
2518 * sysdeps/m68k/fpu/logb.c: File removed.
2519 * sysdeps/m68k/fpu/pow.c: File removed.
2520 * sysdeps/m68k/fpu/rint.c: File removed.
2521 * sysdeps/m68k/fpu/sin.c: File removed.
2522 * sysdeps/m68k/fpu/sinh.c: File removed.
2523 * sysdeps/m68k/fpu/sqrt.c: File removed.
2524 * sysdeps/m68k/fpu/tan.c: File removed.
2525 * sysdeps/m68k/fpu/tanh.c: File removed.
2526
f127cd28
RM
2527Thu Jun 6 00:02:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2528
8f30ca23
RM
2529 * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2530 is _newselect).
2531 * sysdeps/unix/sysv/linux/select.S: File removed.
2532
2533 * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2534 current kernels, generic linux version is fine.
2535
f127cd28
RM
2536 * locale/Makefile: Add vpath for %.gperf to programs.
2537
2538 * Make-dist (+tsrcs): Variable removed.
2539 (dist): Process $^ here instead of using $(+tsrcs).
2540
2541 * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2542 ($(includedir)/sys/syscall.h): Target removed.
2543 (sysdep_headers): Add syscall-list.h.
2544 ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2545 (generated): Add those.
2546 * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2547
92702b91
RM
2548Wed Jun 5 15:57:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2549
f127cd28
RM
2550 * misc/sys/syscall.h: New file.
2551 * misc/Makefile (headers): Add sys/syscall.h.
2552
dfe1754a
RM
2553 * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2554 time/africa, time/asia, time/australasia, time/europe,
2555 time/northamerica, time/southamerica: Updated from ADO 96h.
2556
2557 * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2558 (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2559
2560 * Makerules (distinfo-vars): Add sysdep_headers.
2561 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2562 this instead of $(headers).
2563 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
f127cd28 2564 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
dfe1754a
RM
2565
2566 * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2567 $(subdir); we are already there.
2568
2569 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2570
92702b91
RM
2571 * mach/Machrules: Undo last change.
2572 (mach-generated): List .uh and .__h files only for $(user-interfaces),
2573 not for each .h in $(interface-headers); server-interfaces have no .uh
2574 or .__h files.
2575
b13aa0b8
MB
2576Wed Jun 5 15:42:51 1996 Miles Bader <miles@gnu.ai.mit.edu>
2577
2578 * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2579 corrsponding .defs file with without the `_server' will be used.
92702b91
RM
2580
2581 * mach/Makefile (mach/mach_interface.defs): Renamed from
2582 mach_interface.defs.
b13aa0b8
MB
2583 (mach/memory_object_user.defs): New variable.
2584
92702b91
RM
2585Wed Jun 5 15:10:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2586
2587 * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2588
2589 * locale/Makefile (subdir-dirs): New variable.
2590
1c384dcd
RM
2591Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2592
aa592a63
RM
2593 * Makerules (distinfo-vars): Add sysdep_routines.
2594
2595 * mach/Machrules (include-%.defs): New canned sequence.
2596 Change all uses of `#include <$*.defs>' in cmds to use it.
2597 * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2598
2599 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2600 null in all cases but R_386_COPY.
2601 (elf_machine_rel):
2602
92702b91
RM
2603Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2604
aa592a63
RM
2605 * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2606 * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2607 * sysdeps/unix/sysv/sysv4/Dist: Updated.
2608 * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2609 * sysdeps/unix/sysv/irix4/Dist: Updated.
2610 * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2611 * sysdeps/unix/sysv/Dist: Updated.
2612 * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2613 * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2614 * sysdeps/gnu/Dist: New file.
2615 * sysdeps/alpha/Dist: Updated.
2616 * sysdeps/mach/hurd/Dist: Updated.
2617
2618 * Make-dist [subdir-dirs]: Set a vpath for %.c.
2619
2620 * Make-dist (README): Fix typo in cvs cmd.
2621
1c384dcd
RM
2622 * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2623 Comment out ref to nonexistent _dl_close.
2624
ee188d55
RM
2625Tue Jun 4 21:01:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2626
58e07151
RM
2627 * math/Makefile (libm-support, libm-calls): New variables.
2628 (libm-routines): Construct this from those.
2629 (calls): New variable.
2630 (routines): Construct this from it.
2631
2632 * resolv/res_debug.c: Add missing #include <ctype.h>.
2633
2634 * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2635 * sysdeps/unix/getlogin_r.c: Likewise.
2636
2637 * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2638
2639 * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2640
2641 * math/Makefile (long-m-routines): Define recursive variable as
2642 $(long-m-$(long-double-fcts)).
2643 (long-m-yes): Put list of routines here.
2644 (long-c-routines, long-c-yes): Likewise.
2645
2646 * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2647
2648 * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2649 * sysdeps/m68k/Makefile: Likewise.
2650
2651 * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2652 -DNO_LONG_DOUBLE.
2653
ee188d55
RM
2654 * sysdeps/mach/hurd/getlogin_r.c: New file.
2655
2656Wed Jun 5 02:11:30 1996 Ulrich Drepper <drepper@cygnus.com>
2657
2658 * io/Makefile (routines): Add ttyname_r.
2659
2660 * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2661
2662 * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2663 sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2664 sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2665 sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2666 sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2667 sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2668 sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2669 sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2670 sysdeps/libm-i387/s_tanl.S: New files. i387 assembler versions
2671 of `long double' math functions.
2672
2673 * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2674 in long double functions.
2675
2676 * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2677 sysdeps/libm-ieee754/s_modfl.c: New files. Generic versions
2678 of `long double' math functions.
2679
2680 * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2681 alias for __isinfl.
2682
2683 * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2684 sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2685 sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2686 sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2687 sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2688 sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2689 sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2690 sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2691 sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2692 sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2693 sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2694 sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2695 sysdeps/libm-ieee754/w_sqrtl.c: New files. Wrapper functions
2696 around long double function implementations.
2697
2698 * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2699 to determine length of directory entry name.
2700
2701 * posix/Makefile (routines): Add getlogin_r.
2702 * posix/unistd.h: Add prototype for getlogin_r.
2703 * sysdeps/stub/getlogin_r.c: New file. Reentrant version of
2704 getlogin function, specified in P1003.1c/D6. Stub version.
2705 * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2706 ttyname. This avoids saving and restoring the old content.
2707 Also use setutent_r, getutline_r and endutent_r instead of
2708 accing UTMP file directly.
2709 * sysdeps/unix/getlogin_r.c: New file. Reentrant version of
2710 getlogin function, specified in P1003.1c/D6.
2711
2712Tue Jun 4 20:10:09 1996 J.T. Conklin <jtc@cygnus.com>
2713
2714 * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2715
f68b86cc
RM
2716Tue Jun 4 18:57:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2717
ee188d55
RM
2718 * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2719 _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2720
2721 * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2722 * elf/link.h: Declare _dl_rtld_map.
2723
2724 * elf/dl-lookup.c (_dl_symbol_value): New function.
2725 * elf/link.h: Declare it.
2726
f68b86cc
RM
2727 * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2728
2729 * shlib-versions: Set libdl=2.
2730
2731 * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2732 elements and then scan it to fill the single malloc'd array, instead
2733 of using realloc to grow the array in the first pass. _dl_map_object
2734 may do some mallocs that break our stream of reallocs, and the minimal
2735 realloc can't handle that.
2736
2737 * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2738 searchlist describes the piece of the DT_NEEDED graph to be
2739 initialized.
2740 * elf/link.h: Update prototype.
2741 * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2742 to _dl_init_next.
2743 * sysdeps/m68k/dl-machine.h: Likewise.
2744 * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2745
2746 * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2747 extra bits in last byte.
2748 * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2749 putting dup elts in search list.
2750
2751 * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2752
2753 * elf/dlsym.c: Don't tweak linked list. Scope array given to
2754 _dl_lookup_symbol does the right thing.
efec1d0c 2755
14d898ae
RM
2756 * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2757 (lib-noranlib): Depend on on $(extra-objs).
2758
2759 * errno.h: Move __END_DECLS out of #ifdef's so it matches
2760 __BEGIN_DECLS.
2761
f68b86cc
RM
2762Tue Jun 4 02:25:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2763
a2b934be
RM
2764 * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2765 macro. _IO_size_t is just an alias for the real size_t anyway.
2766
2767 * elf/Makefile (libdl-routines): Add dladdr.
2768 * elf/dladdr.c: New file.
2769 * elf/dlfcn.h (Dl_info): New typedef.
2770 (dladdr): Declare it.
2771
55f3aaff 2772 * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
fa00327f
RM
2773
2774 * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2775
2776 * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2777 removed. Instead, include <stdio_lim.h>.
2778
2779 * libio/_G_config.h: New file.
2780 * libio/Makefile (headers): Add _G_config.h.
2781
2782 * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2783
bf18dbd7
RM
2784 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2785 this macro too; current Linux kernels test that instead of
2786 _LINUX_TYPES_DONT_EXPORT.
2787
efec1d0c
RM
2788 * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2789
2790 * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2791
2792 * elf/dl-deps.c: New file.
2793 * elf/Makefile (rtld-routines): Add dl-deps.
2794 * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2795 * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2796 * elf/dlopen.c: Use _dl_open.
2797
2798 * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2799 frobnication based on its value. Detach RTLD_MAP from the chain if
2800 its l_opencount is zero after loading deps.
2801
2802 * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2803
2804 * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2805 `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2806 * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2807 of two link_map ptrs. Search the maps in the l_searchlist of each
2808 elt that is not null.
2809 * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2810 * elf/dl-runtime.c: Likewise.
2811 * elf/dlsym.c: Likewise.
2812 * elf/rtld.c (dl_main): Likewise.
2813
2814 * elf/dl-minimal.c (realloc): Support realloc of the block most
2815 recently returned by the minimal malloc.
2816
b25ae9c6
RM
2817Tue Jun 4 00:16:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2818
2819 * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2820
2821 * intl: Updated from gettext-0.10.13.
efec1d0c 2822 * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
b25ae9c6
RM
2823
2824 * signal/siggetmask.c: New file. Wrapper around sigblock with
2825 link_warning about obsolescence.
2826 * signal/Makefile (routines): Add siggetmask.
2827
2828 * sysdeps/gnu/errlist.awk: New file, adapted from ...
2829 * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2830 * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2831 * sysdeps/gnu/Makefile: New file.
2832 (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2833
5f2eab42
RM
2834Mon Jun 3 21:03:54 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2835
b25ae9c6
RM
2836 * manual/errno.texi (Error Codes): Add placeholder items for missing
2837 Linux/i386 errno codes, with perror text but no documentation.
2838 Some existing perror texts changed.
2839
5f2eab42
RM
2840 * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2841
2842 * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2843 `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2844
2845Sun Jun 2 20:14:30 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2846
2847 * locale/programs/linereader.c (lr_open): Don't pass NULL to
2848 xstrdup; fix memory leak.
2849 (lr_close): Fix memory leak.
2850
9f195df2
TBB
2851Mon Jun 3 15:58:22 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2852
5f2eab42 2853 * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
9f195df2
TBB
2854 for a HANDLE signal to IGNORE because the signal is blocked, clean
2855 up any pending suspension left over from a call to resume.
2856
710f7bab
RM
2857Mon Jun 3 00:30:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2858
2859 * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2860 don't allow a defn resolving to that address.
5f2eab42 2861
710f7bab
RM
2862 * elf/link.h: Update prototype and comment.
2863 * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2864 it to elf_machine_relplt.
2865 * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2866 RELOC_ADDR and pass it through to _dl_lookup_symbol.
2867 * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2868 instead of calling it ourselves and passing its results.
2869 (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2870 * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2871 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2872 arg. Add RESOLVE function ptr arg. Call *RESOLVE as necessary.
2873 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2874 * sysdeps/stub/dl-machine.h: Likewise.
2875
9004bc20
RM
2876Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2877
710f7bab
RM
2878 * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2879
2880 * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2881 (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2882 (RTLD_GLOBAL): New macro.
2883 (dlopen): Take arg of type int instead of dl_open_mode.
2884 * elf/dlopen.c: Likewise.
2885
2886 * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2887 (M_*): Use it for these constants.
2888
6c03c2cf
RM
2889 * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2890 Reject SHN_UNDEF defns iff NOPLT is nonzero.
2891 * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2892 * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2893 * elf/dlsym.c (dlsym): Pass 0.
2894 * elf/rtld.c (dl_main): Likewise.
2895 * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2896 replaced with NOPLT flag. Pass it through to _dl_lookup_symbol.
2897 * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2898 Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2899 * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2900 * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2901 * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2902
9004bc20
RM
2903 * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2904
2905 * sysdeps/generic/gnu/types.h (__clock_t): New type.
2906
84724245
RM
2907Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2908
9004bc20
RM
2909 * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2910 using kernel types.
2911 * time/time.h (clock_t): Include <gnu/types.h> and define using
2912 __clock_t.
2913
84724245
RM
2914 * time/Makefile (tests): Add test-tz.
2915
2916 * time/test-tz.c: New test.
2917
2918 * time/clocktest.c: Rewrite to test more meaningfully.
2919
2920 * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2921 create_module, delete_module, get_kernel_syms, init_module,
2922 klogctl.
2923
2924 * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2925 instead of SYMLOOP_MAX, which is nowhere to be found.
2926
2927 * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2928 sysdeps/unix/sysv/linux/sys/sem_buf.h,
2929 sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2930 control ops and datastructures.
2931
2932 * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2933 I/O related functions.
2934
2935 * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2936 daemon related functions/operations.
2937
2938 * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2939 logging related functions/operations.
2940
2941 * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2942 module related functions/operations.
2943
2944 * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2945 for non-Alpha based Linux systems.
2946
2947 * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
2948
2949 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
2950 sys/io.h, sys/klog.h, and sys/kdaemon.h.
2951
2952 * sysdeps/unix/sysdep.h (END): Define empty END macro for
2953 platforms that don't need some sort of end directive at the
2954 end of functions.
2955
2956 * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
2957 syscall wrapper to allow correct generation of debugging
2958 information.
2959
2960 * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
2961 directive for both ELF and ECOFF.
2962 (ret): Delete macro. It was a dangerous macro and unnecessary
2963 since the Alpha assemblers recognizes "ret" as a macro themselves.
2964
2965 * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
2966 ut_session to guarantee long alignment. This is important for
2967 Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
2968 This will all get cleaned up as programs start to use ut_tv
2969 instead ut_time.
2970
2971 * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
2972
2973 * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
2974 _setjmp.
2975
2976 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
2977 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
2978 sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
2979 sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
2980 sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
2981 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
2982 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2983 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2984 sysdeps/unix/sysv/linux/alpha/llseek.S,
2985 sysdeps/unix/sysv/linux/alpha/pipe.S,
2986 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2987 sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
2988 .end directive.
2989
2990 * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
2991 function by having it contain a dummy function call.
2992
2993 * configure.in (config_machine): Don't make ELF the default for
2994 Linux/Alpha just yet (use --with-elf instead).
2995 (.init/.fini check): Generate .text to ensure function start and
2996 end are in same section.
2997
2998 * sysdeps/unix/bsd/osf/alpha/brk.S,
2999 sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
3000 break value, not just the low 32 bits to accomodate large
3001 memories.
3002
3003Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
3004
3005 * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
3006 dynamically resolve _end for initializing __curbrk, support the
3007 brk(0) query idiom.
3008
3009 * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
3010
3011 * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
3012
3013Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
3014
3015 * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
3016 stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
3017
3018Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
3019
3020 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
3021 sys/klog.h, and sys/kdaemon.h.
3022
3023 * sysdeps/unix/sysv/linux/sys/io.h: New file.
3024 * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
3025 * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
3026
3027 * sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
3028 dangerous and unnecessary since both OSF/1 as and gas define "ret"
3029 as a pseudo-instruction.
3030
3031Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3032
3033 * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
3034 them. Bug found by David Mosberger-Tang.
3035
3036 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
3037 of PTR.
3038
3039 * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
3040 to work around Make bug when A contains var ref.
3041
3042Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3043
3044 * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
3045
3046 * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
3047 strong names and [gs]etpgid as weak aliases.
3048
76060ec0
RM
3049Thu May 30 11:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3050
84724245
RM
3051 * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
3052
76060ec0
RM
3053 * po/header.pot: Replace with exact boilerplate pinard dictates.
3054
3055 * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
3056 errno and the check that jumped to it.
3057
3058 * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
3059
3060Thu May 30 03:21:57 1996 Ulrich Drepper <drepper@cygnus.com>
3061
3062 * FAQ: Document need of gperf program for developers.
3063
3064 * elf/elf.h: Fix typos in comments.
3065
3066 * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
3067 prototypes for `ctermid' and `cuserid'.
3068
3069 * locale/programs/locale.c: Switch to user selected locale
3070 before printing variables.
3071
3072 * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
3073 and long-c-routines. Only if the `long double' data type is
3074 available we need to compile the functions.
3075 (libm-routines): Add $(long-m-routines).
3076 (routines): Remove isinfl, isnanl. Use new file s_isinfl and
3077 s_isnanl instead if `long double' is available.
3078
3079 * math/math.h: Include <mathcalls.h> again to define `long double'
3080 functions.
3081
3082 * math/math_private.h: Define data types, prototypes and access
3083 macros for `long double'.
3084
3085 * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
3086 [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
3087 calls __strto{,u}q_internal.
3088
3089 * stdlib/strfmon.c: Replace PTR by `void *'.
3090
3091 * stdlib/strtoq.c: Define strtoll as weak alias.
3092 * stdlib/strtouq.c: Define strtoull as weak alias.
3093
3094 * string/tester.c: Correct `strsep' test.
3095
3096 * sysdeps/generic/strsep.c: Make compatible with BSD version.
3097 Trailing characters of skip set are not skipped. In this case
3098 empty tokens are returned.
3099
3100 * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
3101 sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
3102 sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed. We
3103 now use the versions part of libm.
3104
3105 * sysdeps/i386/strsep.S: Removed. Generic C version is of
3106 similar speed.
3107 * sysdeps/i386/strtok.S: Remove support for `strsep'.
3108
3109 * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
3110 sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
3111 sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
3112 sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
3113 sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
3114 New i387 specific math functions implementing `long double'
3115 versions.
3116
3117 * sysdeps/libm-ieee754/s_ceill.c,
3118 sysdeps/libm-ieee754/s_copysignl.c,
3119 sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
3120 sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
3121 sysdeps/libm-ieee754/s_isnanl.c,
3122 sysdeps/libm-ieee754/s_nextafterl.c,
3123 sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
3124 sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
3125 versions of libm functions.
3126
3127 * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
3128 Intel FPU nonsense.
3129
3130 * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
3131 sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
3132 handling of local variables. The old version created a stack
3133 frame but stored the values outside.
3134
3135 * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
3136 [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
3137
c3352e62
RM
3138Wed May 29 12:53:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3139
76060ec0
RM
3140 * login/pututline_r.c: Include sys/stat.h. Fix typos.
3141
c3352e62
RM
3142 * version.h (VERSION): Set to 1.90.
3143
3144 * Makerules (distinfo-vars): Write extra-libs and *-routines for each
3145 of its elts.
3146 * MakeTAGS (sources): Add those sources.
3147
3148 * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
3149
3150Wed May 29 08:53:08 1996 Miles Bader <miles@gnu.ai.mit.edu>
3151
3152 * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
3153 itimer thread.
3154
3155 * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
3156 _hurd_proc_init.
3157
d06b536d
RM
3158Wed May 29 00:52:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3159
c3352e62
RM
3160 * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
3161 token instead of it being implicitly skipped.
3162
77aae366
RM
3163 * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
3164 Must operate on top of fp reg stack, not second from top.
3165
d06b536d
RM
3166 * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
3167 (others): Instead, make this depend on it.
3168
0200214b
RM
3169Tue May 28 04:38:10 1996 Ulrich Drepper <drepper@cygnus.com>
3170
3171 * limits.h: Change MB_LEN_MAX to 6. A 31-bit ISO 10646
3172 character in UTF-8 encoding has that many bytes.
3173
3174 * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
3175 * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
3176 * locale/Makefile (routines): Add mb_cur_max.
3177 * locale/mb_cur_max.c: New file. This function gets called
3178 when the macro MB_CUR_MAX is used.
3179 * locale/C-ctype.c: Initialize new mb_cur_max field.
3180 * locale/localeinfo.h: Change magic value because of incompatible
3181 change.
3182 * locale/programs/ld-ctype.c: Determine value of mb_cur_max
3183 according to current character set and write it out with the rest.
3184 * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore. Get value
76060ec0 3185 according to currently used locale for category LC_CTYPE by
0200214b
RM
3186 calling the function __ctype_get_mb_cur_max.
3187
3188Tue May 28 03:27:46 1996 Ulrich Drepper <drepper@cygnus.com>
3189
3190 * FAQ: Fix some typos.
3191 Tell that for Linux the kernel header files are necessary.
3192
3193 * PROJECTS: New file. List of open jobs for glibc.
3194 * Makefile (distribute): Add PROJECTS.
3195
3196 * crypt/GNUmakefile (headers): New variable. Mention crypt.h.
3197 * crypt/crypt.h: Header for crypt functions.
3198
3199 * elf/elf.h: Add some new constants from recent Cygnus ELF
3200 header files.
3201
3202 * login/getutid_r.c: Test for correct type.
3203 Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
3204 _HAVE_UT_ID resp. are defined.
3205 Make really compliant with specification.
3206
3207 * login/getutline_r.c, login/pututline_r.c: Don't depend on
3208 ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3209 defined.
3210 Make really compliant with specification.
3211
3212 * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3213 _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3214
3215 * login/login.c, login/logout.c, login/logwtmp.c: Complete
3216 rewrite. Now based on getut*/setut* functions.
3217
3218 * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3219 This prevented using this file in other GNU packages.
3220
3221 * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3222 and _HAVE_UT_TV because struct utmp has these members.
3223
3224 * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3225
3226 * utmp.h: New file. Wrapper around login/utmp.h.
3227
215dbbb1
RM
3228Tue May 28 13:11:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3229
0200214b
RM
3230 * elf/dl-error.c (struct catch): New type.
3231 (catch): New static variable, struct catch *.
3232 (catch_env, signalled_errstring, signalled_objname): Variables removed.
3233 (_dl_signal_error): If CATCH is non-null, set its errstring and
3234 objname members and jump to CATCH->env. If it is null, call
3235 _dl_sysdep_fatal with a standard message.
3236 * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3237 No longer use _dl_catch_error.
3238
215dbbb1
RM
3239 * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3240 continuation line.
3241
3242 * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3243 setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3244 args are found at 4(%esp), not 8(%esp).
3245
4e395306
RM
3246Mon May 27 10:10:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3247
13a0be88
RM
3248 * Makefile ($(includedir)/stubs.h): Add missing backslash.
3249
2a4dcf76
RM
3250 * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3251 can be aliased.
3252
80791291
RM
3253 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3254 Append termio.h.
3255
3256 * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3257
3258 * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3259 defined.
3260
3261 * sysdeps/unix/sysv/linux/termio.h: New file.
3262 * sysdeps/unix/sysv/linux/Dist: Add it.
3263
3264 * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3265 kernel header <asm/termios.h>.
3266
3267 * misc/Makefile (headers): Add ioctl-types.h.
3268 * sysdeps/generic/ioctl-types.h: New file.
3269 * misc/sys/ioctl.h: Include <ioctl-types.h>.
3270 (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3271 struct ttysize): Types moved there.
3272
d36e7692
RM
3273 * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3274 identical.
3275
4e395306
RM
3276 * time/Makefile (z.% rule): Generate generic zone%/ rule after
3277 zone%/right/ and zone%/posix/ rules so they match first.
3278
59dd8641
RM
3279Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3280
5f160cde
RM
3281 * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3282 _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
e463fcfb 3283
71a40c74
RM
3284 * time/Makefile (tzcompile): Add missing backslash.
3285
59dd8641
RM
3286 * stdlib/ldiv.c: Deansideclized.
3287
71a40c74
RM
3288 * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3289 [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3290 stddef.h doesn't define it.
3291 * wcsmbs/wchar.h: Likewise.
3292 * stdlib/strtod.c: Likewise.
3293
3294 * wcsmbs/wcstok.c: Fix argument name typo.
3295
59dd8641
RM
3296Sun May 26 19:39:53 1996 Ulrich Drepper <drepper@cygnus.com>
3297
3298 * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3299 after malloc.
3300
3301 * string/Makefile (tester-ENV): New variable to suppress message
3302 translation in test.
3303
3304 * string/tester.c: Add tests for strtok_r and strsep.
3305
3306 * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3307 <-> 32 bit operand conflicts.
3308
3309 * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3310 to produce strsep function.
3311 * sysdeps/i386/strtok.S: Optimized implementation of strtok
3312 function.
3313 * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3314 to produce strtok_r function.
3315
3316 * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3317 Corrected example in comment.
3318
3319 * string/Makefile (routines): Add strtok_r.
3320 * sysdeps/generic/strtok_r.c: New file. Implement reentrant version
3321 of strtok_r.
3322 * string/string.h: Add prototype for strtok_r.
3323 * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3324 as in strtok_r.
3325
3326Sun May 26 13:28:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3327
3328 * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3329 first and fall back to 1003.1 syntax only if it fails.
3330
3331 * time/Makefile (install-others): Also install posix/ZONE and
3332 right/ZONE for each ZONE in $(zonenames).
3333 (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3334 the difference begin leapseconds vs /dev/null as 3rd dep. For
3335 original ZONE targets use $(leapseconds), to be set in Makeconfig.
3336 (target-zone-flavor): New variable.
3337 (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3338 * Makeconfig (leapseconds): New variable.
3339
3340 * mach/Machrules (%.udeps rule): Depend on Machrules.
3341 Emit deps for .uh and .__h files.
3342 (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3343 instead.
3344
3345Sun May 26 01:06:47 1996 Ulrich Drepper <drepper@cygnus.com>
3346
3347 * stdlib/Makefile (routines): Add llabs, lldiv.
3348 * stdlib/llabs.c: New file. Implementation of return
3349 absolute value of long long argument.
3350 * stdlib/lldiv.c: New file. Implementation of division with remainder
3351 of long long argument.
3352 * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3353 function.
3354 Define prototypes for lldiv and llabs functions.
3355
3356 * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3357
3358 * stdlib/strtod.c: Replace wchar_t with wint_t. The later is
3359 really the type for a single wide character.
3360
3361 * string/strxfrm.c (print_val): Define separate version for
3362 use as wcsxfrm. Here we don't need UTF8 encoding.
3363
3364 * wcsmbs/wchar.h: gcc-2.7.2-960517 finally introduces wint_t
3365 in <stddef.h>. Use this value and only for older gcc version
3366 define in place.
3367 (uwchar_t): Remove definition.
3368
3369 * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3370 wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3371 type. wint_t is intended for this.
3372
3373Sat May 25 14:10:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3374
3375 * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3376 quiet -ansi -pedantic.
3377 * sysdeps/unix/common/direntry.h: Likewise.
3378
3379 * login/Makefile (headers): Add lastlog.h.
3380 * login/lastlog.h: New file.
3381
3382 * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3383 * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3384 with #ifdef __USE_REENTRANT.
3385
3386 * features.h (__GNU_LIBRARY__): Set to 6.
3387 [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3388 _SVID_SOURCE): Make sure they are all defined.
3389
3390 * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3391 <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3392 include <linux/types.h>.
3393
3394 * resource/sys/resource.h: Remove trailing commas from enums.
3395
41f27456
RM
3396Fri May 24 17:30:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3397
59dd8641
RM
3398 * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3399 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3400
27a11070
RM
3401 * login/getutline_r.c: Include string.h.
3402
5790c439
RM
3403 * Rules (static-only-routines): Restore the rule to make these .so's
3404 empty objects.
3405
41f27456
RM
3406 * login/pututline_r.c: Use struct assignment instead of memcpy.
3407
3408 * login/getutline_r.c: Use strncmp instead of comparing two pointers
3409 that will only be equal if you are overwriting the data and screwing
3410 yourself anyway.
3411
613a76ff
RM
3412Fri May 24 02:31:36 1996 Ulrich Drepper <drepper@cygnus.com>
3413
3414 * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3415
3416Thu May 23 23:09:33 1996 Ulrich Drepper <drepper@cygnus.com>
3417
3418 * FAQ: Add answer for 100% source code compatibility to Linux
3419 libc by David Mosberger-Tang.
3420
072ebcef 3421 Update from bind-4.9.4-T3B.
613a76ff
RM
3422 * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3423 inet_nsap_addr, and inet_nsap_ntoa.
3424 * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3425 remove fourth argument to inet_pton and correct handling of
3426 host_addr passing.
3427 * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3428 * resolv/inet_pton.c: Remove fourth argument.
3429 * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
76060ec0 3430 inet_nsap_ntoa. Now in <arpa/inet.h>.
613a76ff
RM
3431
3432 * stdlib/gmp-impl.h: Add prototypes for internal functions.
3433
3434Thu May 23 22:49:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3435
3436 * Rules (subdir_install): Remove dep on sor-$(subdir).
3437 (static-only-routines): Removed variable and associated rules.
3438
510ca033
RM
3439Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
3440
3441 * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3442 460800 baud.
3443
3444 * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3445
613a76ff 3446 * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
510ca033
RM
3447 alpha/ptrace.h.
3448 * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3449
3450 * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3451 scalbnf.
3452
3453 * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3454 __sigdelset): Add declaration to keep ANSI compilers quiet.
3455
3456 * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3457 __cabs_complex member names in call to __hypot().
3458
3459 * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3460
3461 * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3462 name collision with math library.
3463
3464 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3465 sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3466 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3467 of divrem.S.
3468
3469 * sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
3470 to simplify declaration of leaf functions.
3471
3472 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
613a76ff 3473 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
510ca033
RM
3474 sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3475 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3476 sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3477 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3478 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3479 sysdeps/unix/sysv/linux/alpha/pipe.S,
613a76ff 3480 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
510ca033 3481 sysdeps/unix/sysv/linux/alpha/syscall.S,
613a76ff 3482 sysdeps/unix/sysv/linux/alpha/start.S,
510ca033
RM
3483 sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3484 sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3485 framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
3486
3487 * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3488 define.
3489
3490 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3491 ptrace, and sysctl.
3492
3493 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3494
3495 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3496 dynamic recognition of platform type.
3497 (_bus_base): New function.
3498
3499 * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3500
3501 * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3502 they produce ugly warnings by gcc.
3503
3504 * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3505
3506Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
3507
3508 * sysdeps/alpha/setjmp.S: Must establish global pointer before
3509 address of __sigsetjmp_aux can be loaded.
3510
fa0bc87c
RM
3511Wed May 22 22:10:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3512
3513 * stdlib/canonicalize.c: New file.
3514 * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3515 * stdlib/Makefile (routines): Add canonicalize.
3516
3517 * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3518
3519Thu May 23 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
3520
3521 * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3522 same #if condition as in the other db files.
3523
3524 * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3525 bindtextdom.c, finddomain.c, and localealias.c.
3526
3527 * intl/dcgettext.c: Don't define prototype for getcwd() when
3528 compiling in glibc.
3529
3530 * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3531
3532 * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3533 define _POSIX_SOURCE unconditionally.
3534
3535 * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3536 compiling in glibc.
3537
3538 * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3539 flush instead. This relaxes the rules from POSIX.1 about
3540 changing the active handle a bit.
3541
3542 * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3543 into <libio.h>.
3544 Add prototypes for local functions to prevent warnings.
3545
3546 * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
76060ec0 3547 _IO_dup2 to contain complete parameter list.
fa0bc87c
RM
3548
3549 * libio/libio.h: Add definition of struct _IO_cookie_file.
3550
3551 * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3552 and _IO_vsnprintf.
3553
3554 * libio/memstream.c: Include <stdio.h>.
3555
3556 * libio/stdio.h: Add prototypes for fopencookie,
3557 __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3558
3559 * libio/strops.c: Avoid useless expression in `for' initializer.
3560
3561 * locale/findlocale.c: Add some casts to prevent warnings.
3562
3563 * locale/programs/locfile.c (write_locale_data): Don't use
3564 double `/' in locale binary file.
3565
3566 * posix/unistd.h: Remove prototype for `reboot'.
3567
3568 Update from bind-4.9.4-T1A.
3569 * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3570 * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3571 * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3572 resolv/res_debug.c, resolv/res_init.c
3573
3574 * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3575
3576 * resolv/resolv.h: Add RES_USE_INET6 flag.
3577 (__dn_isvalid): Renamed to __res_dnok.
3578 Add prototypes for __res_ownok and __res_mailok.
3579
3580 * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3581
3582 * stdio-common/getline.c, stdio-common/vfscanf.c,
3583 sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3584
3585 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3586 (sysdep_routines): Add s_reboot.
3587 (install-others): Add $(includedir)/sys/syscall.h.
3588 New rule for $(includedir)/sys/syscall.h to produce from
3589 <asm/unistd.h>.
3590
3591 * sysdeps/unix/sysv/linux/reboot.c: New file. Make single
3592 argument function call 3 argument system call.
3593
3594 * sysdeps/unix/sysv/linux/sys/reboot.h: New file. Linux specific
3595 definition for reboot function.
3596
3597 * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3598 comment.
3599
3600 * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3601 reboot syscall to __syscall_reboot.
3602
3603 * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3604 __USE_GNU, not USE_GNU.
3605
3606Tue May 21 21:55:49 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3607
3608 * locale/programs/charset.c, locale/programs/ld-collate.c:
3609 Add casts to prevent warnings on 64-bit machines.
3610
3611 * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3612 int_frac_digits and frac_digits which only produce warnings.
3613
3614Mon May 13 23:45:29 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3615
3616 * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3617 * resolv/inet_addr.c: Likewise.
3618
3619 * resolv/Makefile (distribute): Add res_hconf.h
3620 (routines): Add res_hconf.
3621
3622 * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3623
3624 * resolv/res_init.c: Initialize /etc/host.conf reader.
3625
3626 * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3627 Implementation of reading /etc/host.conf.
3628
3629Wed May 22 21:21:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3630
3631 * Rules (%.out rules): Prepend $($*-ENV) to the command.
3632
3633 * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3634 alias for __curbrk.
3635
3636Wed May 22 19:37:27 1996 Miles Bader <miles@gnu.ai.mit.edu>
3637
3638 * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3639 * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3640
3641Wed May 22 18:47:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3642
3643 * sysdeps/mach/hurd/getcwd.c
3644 (_hurd_canonicalize_directory_name_internal): New function, broken out
3645 of __getcwd.
3646 (__getcwd): Use it.
3647 (__canonicalize_directory_name_internal): New function using it.
3648
3649 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3650 function, broken out of __getcwd.
3651 (__getcwd): Use it.
3652
3653Wed May 22 18:14:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3654
3655 * string/argz-create.c (__argz_create): Correctly calculate length.
3656
3657 * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3658 * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3659
0b0fc9d3
RM
3660Wed May 22 17:22:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3661
3662 * posix/glob.c [VMS]: Don't include <pwd.h>.
fa0bc87c
RM
3663 [HAVE_VMSDIR_H]: Include "vmsdir.h".
3664 (glob) [VMS]: Don't grok ~.
0b0fc9d3 3665
a8fd3594
RM
3666Wed May 22 14:46:53 1996 Miles Bader <miles@gnu.ai.mit.edu>
3667
0b0fc9d3
RM
3668 * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3669 back from argz_extract.
a8fd3594
RM
3670
3671Wed May 22 13:56:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3672
3673 * configure.in: Remove checks for objdump, objcopy, and awk.
3674 * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3675 * Makefile (distribute): Remove extract-dynsym.
3676 * extract-dynsym: File removed.
3677
3678Tue May 21 22:17:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3679
3680 * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3681
b8fe19fa
RM
3682Wed May 22 01:48:54 1996 Ulrich Drepper <drepper@cygnus.com>
3683
3684 * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3685 macros if they are not available.
3686 (WEAKNAME): New macro to declare argument as weak.
3687 Define function with __ prefix and add normal name as weak alias.
3688
3689 * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3690 these macros if not already available based on R_OK, W_OK, and
3691 X_OK.
3692
3693Tue May 21 18:48:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3694
3695 * misc/sys/syslog.h (__need___va_list): Define this instead of
3696 __need_va_list before including <stdarg.h>.
3697
3698 * Makerules (o-iterator): Use $(object-suffixes-left) instead
3699 of $(object-suffixes) to produce repetitions; this is used for other
3700 lists than just that one.
3701 [versioned]: Use $(o-iterator) properly.
3702
3703 * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3704 * sysdeps/mach/hurd/Implies: Likewise.
3705
3706Sat May 18 02:57:46 1996 Ulrich Drepper <drepper@cygnus.com>
3707
3708 * login/Makefile: New file. This directory contains functions
3709 for user administration.
3710 * Makefile (subdirs): Add login.
3711
3712 * misc/Makefile (headers): Remove utmp.h. Now in login/utmp.h.
3713 (extra-libs, libutil-routines): Ditto.
3714 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3715 misc/utmp.h: Moved to misc/.
3716 * login/login.c, login/login_tty.c, login/logout.c,
3717 login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3718
3719 * login/utmp.h: Split file. Definitions of data structures
3720 and constants are now in the system dependent utmpbits.h file.
3721
3722 * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3723 login/endutent.c, login/getutent_r.c, login/getutent.c,
3724 login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3725 login/getutline.c, login/pututline_r.c, login/pututline.c:
3726 New files. Routines to handle utmp-style files.
3727
3728 * sysdeps/gnu/utmpbits.h: New file. Contains GNU/Linux
3729 specific definitions of utmp data structures and constants.
3730
3731 * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3732
3733 * sysdeps/generic/utmpbits.h: New file. Generic (BSDish) version of
3734 definitions of utmp data structures and constants.
3735
3736Fri May 17 00:01:31 1996 Ulrich Drepper <drepper@cygnus.com>
3737
3738 * locale/C-monetary.c: Default value for mon_decimal_point should be
3739 '.'.
3740
3741 * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3742 Add `extra' flag. Currently used in __printf_fp.
3743
3744 * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3745 `guess_grouping' and extend visibility to extern. This function
3746 is now used in `strfmon'.
3747 (__printf_fp): Recognize new bit flag in info struct. This
3748 triggers to use the grouping information and decimal point from
3749 the LC_MONETARY category instead of the LC_NUMERIC category.
3750
3751 * stdio-common/vfprintf.c (process_arg): Correct major bug. In
3752 `complicated' loop we must not use the varargs because the args
3753 are already available in the ARGS_VALUE array.
3754
3755 * stdlib/Makefile (headers): Add monetary.h.
3756 (routines): Add strfmon.
3757 * stdlib/monetary.h: New file. Header for strfmon function.
3758 * stdlib/strfmon.c: New file. Implement strfmon function to print
3759 monetary amounts according to current locale's rules.
3760
3761 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3762 now (>= Linux-1.3.100) called <asm/vm86.h>.
3763
20c81189
RM
3764Thu May 16 00:31:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3765
3766 * Makerules [versioned]: Make symlinks in the build directory, because
3767 the versioned names might be referenced by a DT_NEEDED in another
3768 library.
3769
46d9215f
RM
3770Wed May 15 18:59:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3771
3772 * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3773
0adc881c
RM
3774Tue May 14 03:36:21 1996 Ulrich Drepper <drepper@cygnus.com>
3775
3776 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3777 Add sys/acct.h and sys/sysctl.h.
3778
f8adc70c
RM
3779Tue May 14 19:42:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3780
3781 * sysdeps/generic/strrchr.c: Deansideclized.
3782
3783 * elf/Makefile (ldd): Depend on Makefile.
3784 Find ld.so in $(slibdir) instead of $(libdir).
3785
3786 * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3787 %esi'; gas misassembles the latter into `testb $3, %dh'.
3788
3789 * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3790
3791Tue May 14 16:38:44 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3792
3793 * sunrpc/getrpcent.c (interpret): Declare args. Rewrite parsing using
3794 strpbrk.
3795
3796Tue May 14 20:18:38 1996 Ulrich Drepper <drepper@cygnus.com>
3797
3798 * time/Makefile (routines): Add strptime.
3799 * time/time.h: Add prototype for strptime.
3800 * time/strptime.c: New file. Implementation according to XPG4.
3801
64166d98
RM
3802Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3803
3804 * libc-symbols.h (lint): Macro removed. The sunrpc code does some
3805 really stupid things #ifdef lint.
3806
3807 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3808 struct member name: sc_eip -> eip.
3809
1796d83f
RM
3810Mon May 13 19:52:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3811
7cdef098
RM
3812 * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3813 output redirect outside it.
3814
1796d83f
RM
3815 * elf/Makefile (subdir_lib): Depend on ld.so.
3816
70c71518
RM
3817Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
3818
3819 * stdio-common/vfprintf.c: Correct handling of unsigned short
3820 values.
3821
7da3079b
RM
3822Mon May 13 12:03:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3823
70c71518
RM
3824 * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3825 $(common-objpfx).
3826 * Makerules [install-lib.a]: Find them there.
3827
7f0d69db
RM
3828 * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3829
a13dab1c
RM
3830 * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3831
3832 * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3833
a5b7bf0e
RM
3834 * configure.in (--with-fp): Note in help string that it's the default.
3835
3836 * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3837 instead of unsigned int for map_collection_max and map_collection_act.
3838
3839 * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3840 Macros removed; they are in <stdio.h>.
3841 * stdio-common/vfscanf.c: Likewise.
3842
9fb16eea
RM
3843 * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3844 (glob): Remove bogus & in call to globfree.
3845 [_AMIGA]: Use AmigaDOS file name conventions.
3846
45086082
RM
3847 * time/Makefile (zonenames): Target removed.
3848 (extra-objs): Remove it from here.
3849 Include the z.* files directly instead of including zonenames; use
a5b7bf0e 3850 `-include' to not complain before they exist.
45086082
RM
3851
3852 * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3853 $(common-objpfx) instead of $(objpfx).
3854
01dbca86
RM
3855 * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3856 names without __.
3857
d929664a
RM
3858 * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3859 instead of $(common-objpfx).
3860
7da3079b
RM
3861 * Makeconfig (sysdep-configures): New variable.
3862 (config.status): Depend on $(sysdep-configures).
3863
3864Fri May 10 20:07:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3865
3866 * sysdeps/unix/sysv/linux/profil.c: New file.
3867
3868Fri May 10 19:59:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3869
3870 * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3871
3872Fri May 10 19:55:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3873
3874 * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3875
aa1075ea
RM
3876Sun May 12 11:16:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3877
7da3079b
RM
3878 * string/envz.c: Fix uses of unsigned to size_t.
3879
0f90ef96
RM
3880 * Makerules ($(libdir)/libc.so): Make the file an ld script.
3881
3882 * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3883
3884 * sysdeps/mach/configure.in: File removed.
3885 * sysdeps/mach/configure: File removed.
3886
aa1075ea
RM
3887 * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3888 (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3889 installed .defs file.
3890
3891 * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3892 nothing for stdio. Fix fUNlockfile -> funlockfile for libio.
3893 * stdio-common/vfscanf.c: Likewise.
3894
3895Sat May 11 13:43:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3896
3897 * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3898
3899 * mach/Machrules (%.ir rule): Don't produce deps for imports.
3900
3901 * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3902
3903 * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3904 [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3905 these targets and install dep on $(libdir)/libc.so with this.
3906
3907 * hurd/Makefile: Removed all rules and defns for using code from Hurd
3908 sources and installing headers from there.
3909
3910 * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3911 set it. In Mach error matching clause, only match if FILENAME is
3912 still the same value.
3913
3914 * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3915 $(mach-srcdir) no longer exists.
3916 (hurd-srcdir): Variable removed.
3917 (includes): Don't append -I$(hurd-srcdir).
3918 (last-includes): Variable removed.
3919 Remove vpath specs using $(hurd-srcdir).
3920 (mach-errno-h): New canned sequence.
3921 ($(common-objpfx)errnos.d): New target, generated included makefile
3922 to determine absolute file names of Mach headers to search for error
3923 codes and set variable mach-errnos-deps.
3924 ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3925 of prior explicit list.
3926 (generated): Add errnos.d, stamp-errnos.
3927
3928 * mach/Machrules (some-if-rtn): New variable and target; compute deps
3929 of some if routine and make all if routines depend on that .d file
3930 instead of static list of .h files.
3931
3932 * mach/Makefile (mach/mach_interface.defs,
3933 mach/memory_object_user.defs): Targets removed.
3934 ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3935 directly on Mach sources.
3936
3937 * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3938 (includes): Don't append -I$(mach-srcdir).
3939 Remove vpath specs using $(mach-srcdir).
3940
3941 * hurd/Makefile (server-interfaces): Add faultexc.
3942 (sig): Remove it from here.
3943 (fault%.[ch]): Rule removed.
3944 (MIGFLAGS-faultexc): New variable.
3945
3946 * hurd/faultexc.defs: New file.
3947
3948 * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
3949 (%_server.[ch] rule): Likewise.
3950
3951 * mach/Makefile: Removed all rules and defns for using code from Mach
3952 sources and installing headers from there.
3953
3954 * Makeconfig [$(build-shared)=yes] (link-libc): Append
3955 $(libc.so-version) to libc.so.
3956
f8cac037
RM
3957Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3958
aa1075ea
RM
3959 * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
3960 (%.udeps): New rule parallel to that one, generating included
3961 makefiles with -M output from `#include <%.defs>'.
3962
3963 * Makerules (sed-remove-objpfx): Remove space before \ at eol.
3964
d617ac4e 3965 * Makefile (distribute): Add FAQ.
f8cac037
RM
3966 * FAQ: New file contributed by drepper.
3967
3968 * time/Makefile (headers): Add timebits.h.
3969 * sysdeps/unix/sysv/linux/timebits.h: New file.
3970 * sysdeps/stub/timebits.h: New file.
3971 * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
3972 (CLOCKS_PER_SEC): Remove this macro. Instead #include <timebits.h>.
3973
4d4b4875
TBB
3974Fri May 10 16:22:44 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3975
3976 * string/argz-create.c (__argz_create): Restore const keyword to
3977 ARGV parm.
3978 * string/argz.h (__argz_create, argz_create): Restore const
3979 keyword.
9635799d 3980 * string/envz.c (envz_get): Don't declare ENTRY const.
f8cac037 3981
4d4b4875
TBB
3982Fri May 10 11:48:03 1996 Miles Bader <miles@gnu.ai.mit.edu>
3983
3984 * string/argz.h (argz_create): Fix param type.
3985 * string/argz-create.c (__argz_create): Remove const from param type.
3986 * string/envz.c (envz_get): Remove const from return type.
3987
7cf6f3e0
TBB
3988Fri May 10 09:41:54 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3989
3990 * string/argz.h (__argz_create, argz_create): Omit const keyword
3991 from declaration of ARGV.
349e97bd
TBB
3992 * string/envz.h (envz_get): Omit const from declaration of return
3993 type.
f8cac037 3994
782e8650
RM
3995Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3996
6e85aaf7
TBB
3997 * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
3998
c28fb3c8
RM
3999 Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
4000 * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
4001 * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
4002 RPC_ANYSOCK.
4003 * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
4004 CLNT_DESTROY already has.
4005 (pmap_unset): Likewise.
4006 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
4007 * sunrpc/pm_getport.c (pmap_getport): Likewise.
4008 * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
4009 * sunrpc/portmap.c (callit): Likewise.
4010
05d4c982
RM
4011 * Makerules (versioned): Strip whitespace.
4012
4013 * Rules (static-only-routines rule): Remove spurious space in dep.
4014
4015 * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
4016 Cast string constants to char *.
4017
4018 * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
4019 New files, AmigaDOS support from Aaron Digulla.
4020 * posix/Makefile (glob.tar): Add AmigaDOS support files.
4021
8942a07a
RM
4022 * sysdeps/unix/sysv/linux/net/if.h: New file.
4023 * sysdeps/unix/sysv/linux/Dist: Add it.
4024 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
4025 net/if.h.
4026
4027 * Makeconfig (link-libc): Add libc.a after libc.so in link.
4028
4029 * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
4030 (empty.o): New target.
4031 (generated): Add empty.c, empty.o.
4032
55707265
RM
4033 * resolv: Code updated from BIND-4.9.3P2C3.
4034
782e8650
RM
4035 * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
4036
7c713e28
RM
4037Wed May 8 20:04:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4038
03d0a7e2
RM
4039 * extract-dynsym: New file.
4040 * Makefile (distribute): Add it.
7c713e28
RM
4041 * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
4042 [! libc.so-version]: Clear static-only-routines.
4043 ($(common-objpfx)sor-$(subdir)): New target.
4044 [static-only-routines]: New static pattern rule for these .so's.
4045 * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
4046 [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
4047 New targets replace it.
4048 (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
4049 $(slibdir)/libc.so.
4050 * io/Makefile (static-only-routines): New variable.
4051 * configure.in: Check for tools objdump and objcopy, and for awk.
4052 * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
4053
4054Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
4055
4056 * locale/programs/config.h: Remove definition of wint_t.
4057
4058 * locale/programs/ld-collate.c: Include <wchar.h> instead of
4059 <wcstr.h>.
4060
4061 * manual/time.texi: Add some more description for %U and %W
4062 format of strftime. Describe new format %V of strftime.
4063
4064 * resolv/gethnamaddr.c: Prevent warning by preventing variable
4065 definition.
4066 * stdio-common/_itoa.c: Ditto.
4067
4068Tue May 7 23:43:07 1996 Ulrich Drepper <drepper@cygnus.com>
4069
4070 * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
4071 libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
4072 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
4073 libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
4074 libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
4075 libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
4076 libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
4077 libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
4078 libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
4079 libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
ee188d55 4080 stdio-common/vfscanf.c: Prepare for reentrant libio.
7c713e28
RM
4081
4082 * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
4083 libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
4084 libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
ee188d55 4085 Used in reentrant libio.
7c713e28
RM
4086
4087 * misc/getusershell.c: Prevent warnings.
4088
c17097f1
RM
4089Wed May 8 12:08:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4090
f0523145
RM
4091 * Makerules (install-lib.so rules): Undouble $s in target and dep
4092 parts of o-iterator-doit defns.
4093 (unversioned libraries install rule): Fix pattern.
4094
4095 * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
4096 $(config-machine).
4097 ($(includedir)/machine): Likewise.
4098
4099 * config.make.in (base-machine): New variable.
4100 * configure.in (machine): Move case stmt to set $machine out of sysdep
4101 dirs AC_CACHE_CHECK.
4102 (base_machine): New variable, set in that switch and AC_SUBST'd.
4103
4104 * Makerules (stub-$(subdir)): Use file name in directory as output,
4105 since cmd is cd'd.
4106
c17097f1
RM
4107 * configure.in (MSGFMT): Use : if none found.
4108
4109 * po/Makefile: Include ../Rules instead of ../Makerules.
4110
ce4d8b66
RM
4111Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4112
4113 * po/Makefile: New file.
4114 * Makefile (subdirs): Add po.
4115
4116 * configure.in: Check for msgfmt.
4117 * config.make.in (MSGFMT): New variable.
4118
4119Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com>
4120
4121 * misc/Makefile (routines): Add swapoff.
4122
4123 * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
4124
4125 * sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around
4126 kernel header file.
4127
0e3426bb
RM
4128Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4129
4130 * string/argz-extract.c: Remove const from decl.
4131 * string/argz.h: Here too.
4132
4133 * Makeconfig (version.mk): Fix regexp in sed cmd.
4134 Depend on $(..)Makeconfig.
4135
4136 * GMP code updated from gmp-2.0 release.
4137 * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
4138 * sysdeps/generic/add_1.c: File removed.
4139 * stdlib/strtod.c: mp_limb is now mp_limb_t.
4140 * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
4141 * stdio-common/_itoa.c: Likewise.
4142 * stdio-common/printf_fp.c: Likewise.
4143 Don't include ansidecl.h.
4144
4145 * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
4146
4147 * shlib-versions: New file.
4148 * Makerules (soversions.mk): New target, include file generated from
4149 shlib-versions. Moved shared library rules before installation rules.
4150 Rewrote shared library installation rules for versioned libraries.
4151 * math/Makefile (libm.so-version): Variable removed.
4152
4153 * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
4154
4155 * hurd/report-wait.c (_S_msg_describe_ports): New function.
4156
4157 * configure.in: Add AC_PROG_LN_S check.
4158 * config.make.in (LN_S): New variable.
4159
4160Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
4161
4162 * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
4163 not know about weak aliases now and optimizes necessary `if'
4164 statement away.
4165
4166 * posix/unistd.h: Add swapoff prototype.
4167
4168 * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
4169
4170 * sysdeps/posix/fpathconf.c (__fpathconf): Get information
4171 for _PC_PATH_MAX from fstatfs function if available.
4172
4173 * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
4174 _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
4175 _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
4176 _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
4177 _SC_TIMER_MAX.
4178 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4179
4180 * sysdeps/stub/swapoff.c: New file. Stub version for swapoff
4181 function.
4182
4183 * sysdeps/unix/syscalls.list: Add swapoff.
4184
4185 * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
4186
4187 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
4188 (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
4189 sysinfo, and uselib.
4190 (headers): Add sys/sysinfo.h.
4191
4192 * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
4193
4194 * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
4195 (sysdep_routines): Add ioperm, iopl, and vm86.
4196 (headers): Add sys/perm.h and sys/vm86.h.
4197
4198 * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
4199 prototypes for iopl and ioperm.
4200
4201 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
4202 prototype for vm86.
4203
4204 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
4205 vm86 system call.
4206
4207 * sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
4208 prototypes for acct function.
4209
4210 * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4211 file with prototypes.
4212
4213 * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
4214 prototype for sysinfo function.
4215
4216 * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4217 llseek, setfsgid, setfsuid, sysinfo, and uselib.
4218
4219 * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4220 posix/sysconf.c now only handle cases different to that
4221 implementation.
4222
4223Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
4224
4225 * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4226 (all references changed). Now exported.
4227
4228 * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4229 (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4230 line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4231 instead of struct data.
4232 (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4233 occurences of `wrap' and `wrapmargin' to `wmargin'.
4234 (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4235 line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4236 line_wrap_set_wmargin, line_wrap_point): New functions.
4237 * stdio/linewrap.h: New file.
4238 * stdio/Makefile (headers): Add linewrap.h.
4239
4240Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4241
4242 * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4243
4244 * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4245
4246 * sysdeps/unix/sysv/linux/schedbits.h: New file.
4247
4248Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4249
4250 * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4251 (lwoutput): Adjust uses acordingly.
4252
93a470c7
RM
4253Tue May 7 10:51:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4254
0e3426bb
RM
4255 * sysdeps/mach/hurd/fdatasync.c: New file.
4256 * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4257
4258 * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4259 * sysdeps/mach/hurd/symlink.c: Likewise.
4260 * sysdeps/mach/hurd/link.c: Likewise.
4261 * sysdeps/mach/hurd/bind.c: Likewise.
4262 * hurd/hurdsig.c (write_corefile): Likewise.
4263
4264 * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4265
4266 * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4267
4268 * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4269 proc_mark_exit.
4270 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4271
4272 * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4273
4274 * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4275
4276 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4277 hurd_signal_detail.
4278 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4279 * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4280 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4281 Likewise.
4282 * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4283
4284 * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4285
4286 * hurd/hurdsig.c (write_corefile): Take const struct
4287 hurd_signal_detail * arg. Pass all details to crash_dump_task.
4288 (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4289 (_hurd_internal_post_signal: suspend): Pass code and error to
4290 proc_mark_stop.
4291
4292 * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4293 proc_getprocinfo by reference.
4294
93a470c7
RM
4295 * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4296
4297 * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4298
4299 * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4300 * sysdeps/stub/sched_sets.c: Likewise.
4301 * sysdeps/stub/sched_setp.c: Likewise.
4302 * sysdeps/stub/sched_rr_gi.c: Likewise.
4303 * sysdeps/stub/sched_gets.c: Likewise.
4304
4305 * hurd/hurdsig.c: Use struct hurd_signal_detail.
4306 * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4307 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4308
4ddc1f9d
RM
4309Mon May 6 09:51:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4310
4311 * stdio/linewrap.c: New file.
4312 * stdio/Makefile (routines): Add linewrap.
4313 * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4314 line_unwrap_stream.
4315
4316Mon May 6 14:53:26 1996 Ulrich Drepper <drepper@cygnus.com>
4317
4318 * time/strftime.c (week): Add third parameter telling how
4319 many days must be in new year so that it is called week 1.
4320 (Following ISO 8601).
4321 Correct computation for %U and %V formats when day was first
4322 day of the week.
4323 (strftime): Implement %V format according to Spec1170.
4324
cee8df03
TBB
4325Mon May 6 17:01:09 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4326
4327 * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4328
8f0c527e
RM
4329Sat May 4 05:44:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4330
4ddc1f9d
RM
4331 * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4332 prototype of `preempter' elt to use struct hurd_signal_detail.
4333
4334 * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4335 (struct hurd_sigstate): Make `pending_data' member an array of that.
4336 Use the new type in several decls.
4337
db2286f6
RM
4338 * locale/setlocale.c (_nl_C_name): Variable removed.
4339 * locale/C_name.c: New file.
4340 (_nl_C_name): Put it here instead.
4341 * locale/Makefile (aux): Add C_name.
4342
4343 * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4344 auth_user_authenticate rpc.
4345 (open): Avoid using strtol in digit conversion for "fd/N" magic.
4346 (_dl_sysdep_start): Likewise for memobj name in magic switches.
4347
4348 * elf/Makefile (reloc-link): New variable.
4349 (dl-allobjs.so): New target, link together $(rtld-routines).
4350 (librtld.so): Depend on that instead of the rtld components.
4351 (generated): Add dl-allobjs.so.
4352
8f0c527e
RM
4353 * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4354 rpc.
4355
4356 * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4357 instead of _hurd_split_args.
4358 (_S_msg_*_exec_flags): Functions removed.
4359 (_S_msg_startup_dosync): Stub removed.
4360
4361Sat May 4 02:11:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4362
4363 * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4364 EXEC_TRACED bit in _hurd_exec_flags.
4365 Pass sigcode arg in msg_sig_post_untraced rpc.
4366
4367 * sysdeps/mach/hurd/access.c: Don't pass io port in
4368 auth_user_authenticate rpc.
4369
4370 * posix/sched.h: Fix typos.
4371
4372 * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4373 Clear _hurdsig_traced instead of EXEC_TRACED.
4374
4375 * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4376
4377 * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4378 * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4379 * wcsmbs/wcstod.c: Likewise.
4380 * wcsmbs/wcstold.c: Likewise.
4381
4382 * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4383
4384 * string/envz.c (envz_entry): Use const.
4385 (envz_get, envz_remove): Likewise.
4386 (envz_entry): Return char *, not const char *.
4387
4388 * string/envz.h: Fix decl.
4389
4390 * string/argz-create.c: Use const in prototype.
4391 * string/argz-next.c: Likewise.
4392
7a12c6bb
RM
4393Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4394
8f0c527e
RM
4395 * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4396 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4397 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4398 * sysdeps/mach/hurd/kill.c: Likewise.
4399
4400 * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4401 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4402 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4403 * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4404 Likewise.
4405 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4406 * sysdeps/mach/hurd/sigaction.c: Likewise.
4407
4408 * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4409 change meaninglessly.
4410
4411 * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4412 flag with a spin lock.
4413 (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4414 get it. No need to take SS->lock at all.
4415 (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4416 instead of clearing the old flag member.
4417 * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4418 test the critical section state.
4419
4420 * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4421
4422 * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4423
4424 * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4425 instead of testing (_hurd_exec_flags & EXEC_TRACED).
4426 (_S_msg_sig_post): Take sigcode arg and pass it through.
4427 (_S_msg_sig_post_untraced): Likewise.
4428 (reauth_proc): Don't pass proc port in auth_user_authenticate.
4429
4430 * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4431 auth_user_authenticate RPCs, just the one-off rendezvous port.
4432 * hurd/dtable.c (reauth_dtable): Likewise.
4433 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4434
4435 * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4436 Pass sigcode arg to msg_sig_post.
4437
4438 * string/argz.h (argz_create): Use const in prototype.
4439
4440 * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4441 testing (_hurd_exec_flags & EXEC_TRACED).
4442 Pass sigcode arg to msg_sig_post.
4443
4444 * hurd/hurd.h: Declare _hurdsig_traced.
4445
4446 * string/argz.h (__argz_next): Cast ENTRY before returning it.
4447
4448 * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4449 to msg_sig_post.
4450
4451 * hurd/path-lookup.c: New file.
4452 * hurd/Makefile (routines): Add path-lookup.
4453 * hurd/hurd/lookup.h: Declare file_name_path_scan,
4454 hurd_file_name_path_lookup.
4455 * hurd/hurd.h: Declare file_name_path_lookup.
4456
4457 * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4458 argument. Instead, use a separate reply port for each RPC and put them
4459 all in a port set to wait for slow replies.
4460
7a12c6bb
RM
4461 * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4462 LOCALE_ALIAS_PATH.
4463
4464Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
4465
4466 * intl/Makefile (routines): Add l10nflist and explodename.
4467 (distribute): Add loadinfo.h and locale.alias.
4468 (install-others): New variable to install locale.alias.
4469
4470 * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4471 intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13. Some code
4472 is now shared with the locale implementation.
4473
4474 * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4475 Extracted from finddomain.c. This is also used in the locale
4476 implementation.
4477
4478 * intl/locale.alias: New file. Locale alias database compatible
4479 with X Window System's locale alias file. Can now be used in
4480 locale and gettext code.
4481
4482 * libio/stdio.h: Add prototypes for asprint and vasprintf.
4483
4484 * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4485 locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4486 field in structure with name of locale ("C" in this case).
4487
4488 * locale/Makefile (routines): Add findlocale.
4489
4490 * locale/findlocale.c: New file. Instead of trying to load the
4491 directly described file we now try to be much smarter when this
4492 fails. Use the same code as gettext does.
4493
4494 * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4495 new loading scheme.
4496
4497 * locale/localeinfo.h: Adapt prototypes and declarations for new
4498 setlocale implementation. Remove definition of u32_t type. We
4499 now use u_int32_t from <sys/types.h>.
4500
4501 * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4502 with constant.
4503
4504 * locale/programs/config.h, locale/lc-collate.c,
4505 locale/localeinfo.h, locale/programs/ld-collate.c,
4506 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4507 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4508 locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4509 Change to use u_int32_t and u_int16_t.
4510
4511 * locale/programs/localedef.c (construct_output_path): Change name
4512 of output locale to contain normalized form of the character set
4513 portion.
4514
4515 * string/Makefile (routines): Add agrz-ctsep and argz-next.
4516 (tests): Add tst-strlen.
4517
4518 * string/argz-ctsep.c: New file. Implement reverse operation
4519 from argz-stringify.
4520
4521 * string/argz-next.c: Non-inline version of function from argz.h.
4522
4523 * string/argz.h, string/envz.h: Make usable as global header file.
4524
4525 * string/envz.c: Fix declarations to use size_t where prototypes
4526 say so.
4527
4528 * string/tst-strlen.c: New file. Another test for critical
4529 situation in strlen implementations.
4530
4531 * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4532 being zero.
4533
4534 * wctype/test_wctype.c: Fix controlling comparison after change to
4535 32 bit character class array.
4536
4537Fri May 3 12:53:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4538
4539 * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4540
4541Thu May 2 22:50:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4542
4543 * sysdeps/unix/sysv/linux/getpriority.c: New file.
4544 * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4545
4546Thu May 2 22:41:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4547
4548 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4549 Disable all exceptions.
4550
4551Thu May 2 22:33:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4552
4553 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4554 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4555 sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4556 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4557 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4558 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4559 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4560 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4561 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4562 define __NO_MATH_INLINES, which is already defined on command
4563 line.
4564
4565Thu May 2 22:18:28 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4566
4567 * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4568 Replace 0x80000000 by 0x48000000.
4569 * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4570
4571Thu May 2 21:30:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4572
4573 * sunrpc/svc_simple.c: Make global variable pl local to
4574 registerrpc.
4575
4576Thu May 2 00:24:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4577
4578 * time/Makefile (tz-cflags): New variable.
4579 (CFLAGS-tzfile.c): New variable.
4580 (CFLAGS-zic.c): Add $(tz-cflags).
4581 (tz-cc): Remove variable.
4582 ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4583
75cd5204
RM
4584Wed May 1 09:10:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4585
7a12c6bb
RM
4586 * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4587 name, instead of checking for reaching end of buffer, which happens
4588 when the match is the last entry in the buffer.
4589
75cd5204
RM
4590 * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4591 include.
4592
4593Mon Apr 29 02:48:26 1996 Ulrich Drepper <drepper@cygnus.com>
4594
4595 * ctype/ctype-info.c: (__ctype_width): New variable.
4596 (__ctype_names): Initialize correctly without offset.
4597
4598 * locale/C-collate.c, locale/C-ctype.c,
4599 locale/C-messages.c, locale/C-monetary.c,
4600 locale/C-numeric.c, locale/C-time.c: Change copyright.
4601
4602 * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4603 endianess for initialization value.
4604
4605 * locale/lc-ctype.c (current): Add parameter for offset.
4606 (__ctype32_b, __ctype_width): Add initialization for these
4607 variables.
4608
4609 * locale/programs/charmap.c: Finish support for WIDTH information.
4610 (new_width): New function.
4611
4612 * locale/programs/charset.h (width_rule): new data structure.
4613 (charset_t): Add elements for width information.
4614
4615 * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4616 for width information.
4617 (allocate_arrays): Add new argument for charset.
4618 (ctype_finish): Make sure all characters named in charset
4619 width table are known to name table.
4620 (ctype_output): Correct handling of class and map name
4621 information and write out width information.
4622 (find_idx): Prepare for being called with NULL pointer as
4623 TABLE argument. This means only allocate name entry.
4624 (allocate_arrays): Correct handling of array element -1.
4625 Because EOF == -1 the value of element 127 must *not* be
4626 mirrored here.
4627 Fill width information from charset tables.
4628
4629 * locale/programs/localedef.c (main): Correct loop over all
4630 categories after change of order from Thu Mar 28 14:22:51 1996.
4631 Add new charset argument to call of `write_all_categories'.
4632
4633 * locale/programs/locales.h (ctype_finish, ctype_output): New
4634 charset argument.
4635
4636 * locale/programs/locfile.c (write_all_categories): Call
4637 `ctype_output' with additional argument charset.
4638
4639 * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4640 and _POSIX_PRIO_IO definitions.
4641
4642 * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4643 and CHARCLASS_NAME_MAX.
4644
4645 * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4646 and _POSIX_PRIO_IO.
4647
4648 * stdlib/grouping.h: Prepare for use in wide string functions.
4649
4650 * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4651 functions.
4652
4653 * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4654
4655 * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4656
4657 * string/strcoll.c: Extend for use as `wcscoll'.
4658
4659 * string/strxfrm.c: Extend for use as `wcsxfrm'.
4660
4661 * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4662 _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4663
4664 * sysdeps/generic/stpncpy.c: Correct return value.
4665
4666 * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4667 _PC_ASYNC_IO, and _PC_PRIO_IO.
4668
4669 * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4670 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4671 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4672 _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4673 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4674 _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4675 * sysdeps/stub/sysconf.c: Ditto.
4676 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4677
4678 * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4679
4680 * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4681 (sysdep_routines): Add s_sysctl and sysctl.
4682
4683 * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4684
4685 * sysdeps/unix/sysv/linux/sys/socket.h: New file. Wrapper
4686 around kernel header.
4687
4688 * sysdeps/unix/sysv/linux/sys/sysctl.h: New file. Define
4689 interface to `sysctl' function.
4690
4691 * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4692
4693 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4694 _SC_CHARCLASS_NAME_MAX.
4695
4696 * sysdeps/unix/sysv/linux/sysctl.c: new file. Implement caller
4697 of _sysctl system call.
4698
4699 * sysvipc/Makefile (routines): Add ftok.
4700
4701 * sysvipc/ftok.c: use variable `proj_id' not `id'. Patch by
4702 David Mosberger-Tang.
4703
4704 * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4705 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4706 wcsxfrm, wcwidth, and wcswidth.
4707
4708 * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4709 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4710 wcsxfrm, wcwidth, and wcswidth.
4711 Declare internal interfaces for wcsto* functions.
4712 [OPTIMIZE]: Define inline functions for wcsto* functions to
4713 call internal interface functions.
4714
4715 * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files. Implement non-
4716 standard function equivalent to stpcpy/stpncpy.
4717
4718 * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4719 `strcoll' implementation.
4720
4721 * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4722 wchar_t.
4723
4724 * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4725 implementation.
4726 * wcsmbs/wcstof.c: Same for `wcstof'.
4727 * wcsmbs/wcstold.c: Same for `strtold'.
4728
4729 * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4730 implementation.
4731 * wcsmbs/wcstoq.c: Same for `wcstoq'.
4732 * wcsmbs/wcstoul.c: Same for `wcstoul'.
4733 * wcsmbs/wcstouq.c: Same for `wcstouq'.
4734
4735 * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4736 CAE.
4737 * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4738 * wcsmbs/wcwidth.h: Common function for definitions of above two
4739 functions.
4740
4741 * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4742 `strxfrm implementation.
4743
4744 * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4745
4746 * wctype/wctype.h (wint_t): Protect against multiple definition.
4747 (wctype_t): Always define as `unsigned long int'.
4748
4749 * wctype.h: New file. Wrapper around wctype/wctype.h.
4750
5bd44955
RM
4751Tue Apr 30 17:30:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
4752
4753 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4754 interrupt_operation call.
4755 (_hurdsig_interrupt_timeout): New variable.
4756
4757 * hurd/report-wait.c (describe_number): Correctly allocate space
4758 in DESCRIPTION for the digits in I.
4759
392d7920
RM
4760Mon Apr 29 00:11:59 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4761
75cd5204
RM
4762 * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4763 (_hurd_startup): Use argz functions.
4764
4765 * hurd/hurdexec.c: Use argz functions.
4766
392d7920
RM
4767 * errno.h [!__error_t_defined] (error_t): New type.
4768 * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4769 typedef in errnos.h.
4770
4771 * string/envz.c, string/envz.h: New files.
4772 * string/argz.h, string/argz-append.c, string/argz-count.c,
4773 string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4774 string/argz-insert.c, string/argz-stringify.c: New files.
4775 * string/Makefile (routines): Add envz, argz-*.
4776 (headers): Add argz.h, envz.h.
4777
7b3547eb
RM
4778Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4779
4780 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4781
4782Wed Apr 24 17:35:30 Ulrich Drepper <drepper@cygnus.com>
4783
4784 * inet/netinet/in.h, socket/sys/socket.h: Move to
4785 sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4786 * netinet/in.h, sys/socket.h: Remove file.
4787
4788 * misc/Makefile (routines): Add fdatasync.
4789
4790 * posix/Makefile (headers): Add sched.h.
4791 (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4792 sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4793
4794 * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4795 _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4796 _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4797 _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4798 _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4799 _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4800
4801 * posix/sched.h: New file. Header for POSIX scheduling interface.
4802
4803 * posix/unistd.h: Describe options from POSIX.4.
4804 Add declaration of fdatasync.
4805
4806 * sysdeps/generic/confname.h: Add definition for
4807 _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4808 _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4809 _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4810 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4811 _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4812
4813 * sysdeps/generic/fdatasync.c: New file. Default implementation
4814 simply uses fsync.
4815
4816 * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4817
4818 * sysdeps/generic/schedbits.h: New file. System dependent
4819 defintion for POSIX.4 scheduling interface.
4820
4821 * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4822
4823 * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4824 sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4825 sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4826 sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4827 sysdeps/stub/sched_yield.c: New file: Stub implementation
4828 for systems missing these POSIX.4 system calls.
4829
4830 * sysdeps/unix/sysv/linux/gnu/types.h,
4831 sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4832 data type definitions.
4833
4834 * sysdeps/unix/sysv/linux/netinet/in.h: New file. Linux
4835 specific version.
4836
4837 * sysdeps/unix/sysv/linux/posix_opt.h: New file. Define POSIX
4838 options applicable for Linux.
4839
4840 * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4841 fdatasync, nanosleep, sched_setparam, sched_getparam,
4842 sched_setscheduler, sched_getscheduler, sched_yield,
4843 sched_get_priority_max, sched_get_priority_min, and
4844 sched_rr_get_interval.
4845
4846 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4847 options.
4848
4849 * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4850
4851 * time/sys/time.h: Remove definition of `struct timespec'.
4852
4853 * time/time.h (struct timespec): Move definition to here.
4854
b2c8be1f
RM
4855Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4856
4857 * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4858
b1794a28
RM
4859Thu Apr 25 15:49:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4860
4861 * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4862 the scan for a name, avoid doing another readdir (which overwrites
4863 NENTRIES, and was resulting in a bogus ENOENT).
4864
4865 * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4866
b2c8be1f
RM
4867Wed Apr 24 00:22:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4868
4869 * stdio/internals.c (seek_to_target): Set errno if seek function
4870 returns the wrong offset.
4871
4872 * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4873 * wcsmbs/wcrtomb.c: Likewise.
4874
4875 * stdio-common/vfprintf.c: Include errno.h.
4876
66aeca9c
RM
4877Tue Apr 23 21:09:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
4878
4879 * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
7b3547eb 4880 variable, LUCKY, to use instead of setting D to -1 (which fouls
66aeca9c
RM
4881 things up).
4882
9a8c0d4f
RM
4883Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4884
4885 * config.h.in (HAVE_REGEX): New macro.
4886
4887 * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4888 * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4889 (routines): Add statfs, fstatfs.
4890 * sysdeps/mach/hurd/statfs.c: New file.
4891 * sysdeps/mach/hurd/fstatfs.c: New file.
4892 * sysdeps/stub/fstatfs.c: New file.
4893 * sysdeps/stub/statfs.c: New file.
4894 * io/sys/statfs.h: New file.
4895 * sysdeps/generic/statfsbuf.h: New file.
4896 * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4897
4898Tue Apr 23 00:06:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4899
4900 * malloc/Makefile (gmalloc-routines): Add valloc back here.
4901 (dist-routines): Remove it here.
4902 * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4903 (ELIDE_VALLOC): Define it.
4904 [! ELIDE_VALLOC]: Make whole file conditional on this.
4905 * malloc/malloc.h (valloc): Make decl conditional on
4906 [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4907
4908Mon Apr 22 00:02:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4909
4910 * MakeTAGS: Include version.mk.
4911 (po/SYS_libc.pot): Add missing / in sed s cmd.
4912
b0d20a87
RM
4913Sat Apr 20 18:13:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4914
4915 * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4916 $(libc_cv_ld_no_whole_archive).
4917
4918Sat Apr 20 17:07:17 1996 Ulrich Drepper <drepper@cygnus.com>
4919
4920 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4921 grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4922 math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4923 misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4924 posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4925 posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4926 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4927 stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4928 string/string.h, sysdeps/generic/sigaction.h,
4929 sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4930 sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4931 sysdeps/unix/sysv/linux/sys/ptrace.h,
4932 sysdeps/unix/sysv/minix/sigaction.h,
4933 sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4934 sysdeps/unix/sysv/sysv4/sigaction.h,
4935 sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4936 time/sys/time.h, time/time.h: Fix copyright comment.
4937
a641835a
RM
4938Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4939
b0d20a87
RM
4940 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4941 not given in stack aux vector, fetch them with syscalls.
4942
a641835a
RM
4943 * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4944 for nonmatching nonerror (instead of !MATCH).
4945 (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4946
4947 * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
4948 unsigned long for variable NET2.
4949
4950 * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
4951
4952Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
4953
4954 * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
4955 catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
4956 catgets/open_catalog.c: New files. Implementation of XPG4
4957 compliant catgets() function and needed tools.
4958 * Makefile (subdirs): Add catgets.
4959
4960Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4961
4962 * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
4963
4964Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
4965
4966 * stdio-common/vfprintf.c: Correct some typos.
4967
4968 * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
4969 sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
4970 __signgam.
4971
4972Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4973
4974 * Makerules (no-whole-archive): New variable.
4975 (build-shlib): Use it.
4976 * elf/Makefile (libdl.so): Use it.
4977 * configure.in (libc_cv_ld_no_whole_archive): New check for
4978 --no-whole-archive.
4979 * config.make.in (have-no-whole-archive): New variable.
4980
4981 * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
4982 from 3 to 4.
4983
4984 * Make-dist: Include version.mk.
4985 (version, release): Variables removed.
4986 * Makeconfig (version.mk): New target.
4987
4988Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
4989
4990 * locale/Makefile (headers): Add langinfo.h.
4991 (CPPFLAGS): Remove -Iliblib.
4992
f24f4dc8
RM
4993Mon Apr 15 16:49:04 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4994
4995 * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
4996 function and its declaration.
4997
e2a501ab
MB
4998Wed Apr 10 14:13:45 1996 Miles Bader <miles@gnu.ai.mit.edu>
4999
5000 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
5001 MACH_PORT_DEAD in the thread reply-port variable before destroying
5002 the signal handler's reply port, to avoid infinite recursion.
5003
b84095fe
RM
5004Mon Apr 8 18:27:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
5005
5006 * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
5007 user passes in TZ, just zero it (emacs passes in a dummy variable,
5008 and rms says the hurd should be the one to change).
5009
3125073e
RM
5010Sun Apr 7 10:37:30 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5011
5012 * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
5013 port in the parent.
786db220 5014
3125073e 5015Fri Apr 5 17:43:41 1996 Miles Bader <miles@gnu.ai.mit.edu>
d7057689 5016
786db220
MB
5017 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
5018 MACH_PORT_DEAD in the thread reply-port variable before destroying
5019 the signal handler's reply port to avoid infinite recursion.
5020 * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
5021 attempt to destroy PORT if it's a valid port name.
5022
2e516341
RM
5023Wed Apr 3 17:10:44 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5024
5025 * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
5026 * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
5027 instead of $(objpfx).
5028
299a95b9
RM
5029Tue Apr 2 21:27:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5030
5031 * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
5032 the pattern ends with a backslash and quoting is enabled.
5033 * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
5034 patterns.
5035
30de3b18
RM
5036Mon Apr 1 13:34:55 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5037
5038 * stdio-common/tst-printf.c (main): Add new test case.
5039
5040 * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
5041
5042Mon Apr 1 11:39:10 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5043
5044 * stdlib/strtod.c (STRTOD): Fix handling of American style FP
5045 numbers.
5046
5047 * stdio-common/vfprintf.c (vfprintf): Don't increment format
5048 string pointer twice after seeing `*'.
5049
5050Sun Mar 31 17:31:54 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5051
5052 * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
5053 po/header.pot.
5054
5055Sun Mar 31 18:07:32 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5056
5057 * locale/Makefile (others, install-bin): Compiling locale works
5058 again.
5059 (locale-modules): locale has no --dump option anymore. Remove
5060 ctypedump.
5061
5062 * locale/programs/config.h: Don't declare euidaccess.
5063 Use #include_next to get libc's config.h.
5064
5065 * locale/programs/ctypedump.c: Not needed anymore. Dump option
5066 of locale is removed.
5067
5068 * locale/programs/locale.c: Adapt for new locale implementation.
5069
5070 * stdio-common/_itoa.h (_itoa_word): Define as inline function.
5071 * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
5072 Don't declare static because used in _itoa_word inline function.
5073
5074 * stdio-common/printf-parse.h: Prepare for use in wide-char
5075 stdio implementation.
5076 (find_spec): Take additional argument to work with mbrlen instead
5077 of mblen.
5078 (parse_one_spec): Ditto.
5079
5080 * stdio-common/printf-prs.c: Prepare for use in wide-char
5081 stdio implementation.
5082
5083 * stdio-common/printf.h: Mark change for wide-char handling.
5084 Changing it now would result in incompatibilities.
5085
5086 * stdio-common/vfprintf.c: New and fast implementation.
5087
5088 * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
5089 mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
5090 mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
5091 Change wcswcs to wcsstr.
5092 Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
5093 mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
5094
5095 * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
5096 wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
5097 wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
5098 wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
5099 wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
5100 function according to ISO C amendment 1.
5101 * wchar.h: Wrapper around "wcsmbs/wchar.h".
5102
5103 * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
5104 wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
5105 wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
5106 wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
5107 wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
5108 amendment 1.
5109
5110 * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
5111 wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
5112 wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
5113 wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
5114 wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
5115 Implement functions from early drafts, not part of final standard.
5116
5117Sun Mar 31 16:50:41 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5118
5119 * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
5120 __jmp_bug_tag so its C++ implicit typedef does not conflict with the
5121 __jmp_buf typedef.
5122
5123 * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
5124 compiling in the source directories.
5125
5126Fri Mar 29 16:26:35 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5127
5128 * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
5129 * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
5130
b8051057
RM
5131Fri Mar 29 11:29:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5132
5133 * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
5134 with weak alias signgam.
5135
27e00f3f
RM
5136Thu Mar 28 18:32:34 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5137
5138 * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
5139
8c1442d0
RM
5140Thu Mar 28 14:22:51 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5141
c475b8f5
RM
5142 * sunrpc/rpc_main.c (main): Call textdomain.
5143
7a1c652d
RM
5144 * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
5145 --no-location.
5146 (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
5147 ($P/subdirs.pot): New target.
5148 ($P/SYS_libc.pot): Add -n switch.
5149
a141dd34
RM
5150 * locale/locale.h (LC_*): Values reordered to match Linux libc.
5151
8c1442d0
RM
5152 * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
5153 the process is a zombie; send no messages and return success.
5154
43efc103
RM
5155Thu Mar 28 11:53:26 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5156
5157 * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
5158 * wctype/wctype.c: Likewise.
5159 * wctype/wctrans.c: Likewise.
5160
ffcf9634
RM
5161Thu Mar 28 03:00:43 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5162
5163 * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
5164 DATA->strings.
5165
5166 * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
5167
5168 * configure.in (.weakext check): Fix asm code to use .weakext instead
5169 of .weak! Fix bogus test calls.
5170 * configure: Regenerated.
5171
19bc17a9
RM
5172Thu Mar 28 03:25:10 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5173
0393dfd6
RM
5174 * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
5175
5176 * locale/programs/ld-collate.c (collate_finish): Use error_at_line
5177 instead of error_with_loc.
5178
5179 * locale/weight.h: Use u_int32_t instead of u32_t.
5180 * string/strxfrm.c: Likewise.
5181
5182 * string/strxfrm.c: Find weight.h in ../locale; don't #include
5183 "localeinfo.h".
5184 * string/strcoll.c: Likewise.
5185
19bc17a9
RM
5186 * intl/Makefile (copysrc): Add missing > in sed cmd.
5187
5188Sat Mar 23 17:52:49 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5189
5190 * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
5191 change value to $(datadir)/i18n. `nls' is not an appropriate
5192 name.
5193
5194 * Makefile (subdirs): Add new subdir wctype.
5195
5196 * ctype/ctype-info.c: Add new global variable __ctype_names
5197 and initialize from _nl_C_LC_CTYPE.
5198
5199 * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
5200 class. Use bit 11.
5201 [_ISbit]: Protect definition of bitmasks because they are also
5202 used in wctype.h.
5203
5204 * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5205 after successfully pushing back a character.
5206
5207 Fundamental changes in locale implementation. Almost nothing
5208 from the old code is used anymore.
5209 * locale/charmap.c, locale/collate.c, locale/config.h,
5210 locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5211 locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5212 locale/locale.c locale/localeconv.c, locale/localedef.c,
5213 locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5214 locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5215 locale/numeric.c, locale/setlocale.c, locale/token.h,
5216 locale/xmalloc.c: Removed.
5217
5218 * locale/Makefile: Update for new locale implementation with
5219 program source code distributed in subdir.
5220
5221 * locale/categories.def, locale/iso-4217.def: Updated file
5222 for new locale implementation.
5223
5224 * locale/langinfo.h: Updated for new locale implementation.
5225 (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5226 P1003.2b/D11.
5227 (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5228 _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5229 _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5230 _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5231 _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5232 _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5233 extended LC_CTYPE and LC_COLLATE implementation.
5234
0393dfd6
RM
5235 * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5236 locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5237 for locale related programs.
19bc17a9
RM
5238
5239 * locale/C-collate.c, locale/C-ctype.c,
5240 locale/C-messages.c, locale/C-monetary.c,
5241 locale/C-numeric.c, locale/C-time.c,
5242 locale/lc-collate.c, locale/lc-ctype.c,
5243 locale/lc-messages.c, locale/lc-monetary.c,
5244 locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5245 functions, and new generated "C" locale data.
5246
5247 * locale/loadlocale.c: Now handles word fields in locale binary
5248 automatically by changing the endianess if necessary.
5249
5250 * locale/localeinfo.h (LIMAGIC): Changed magic number because
5251 of incompatible changes.
5252 (locale_data): Changed definition to allow word as a value type.
5253 (coll_sort_rule): Values for collation sorting mode.
5254 (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5255 (__collate_table, __collate_extra): Declare new global variables
5256 for collation tables.
5257
5258 * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
0393dfd6
RM
5259 locale/programs/charmap.c, locale/programs/charset.c,
5260 locale/programs/charset.h, locale/programs/config.h,
5261 locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5262 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5263 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5264 locale/programs/ld-time.c, locale/programs/linereader.c,
5265 locale/programs/linereader.h, locale/programs/locale.c,
5266 locale/programs/localedef.c, locale/programs/locales.h,
5267 locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5268 locale/programs/locfile-token.h, locale/programs/locfile.c,
5269 locale/programs/locfile.h, locale/programs/stringtrans.c,
5270 locale/programs/stringtrans.h: Implementation of locale related
5271 programs.
19bc17a9
RM
5272
5273 * locale/weight.h: Functions to access collation tables.
5274
5275 * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5276
5277 * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5278 < 10^-1. Reported by Bill Metzenthen.
5279
5280 * stdio-common/tfformat.c: Add new test for above bug.
5281
5282 * string/strcoll.c, string/strxfrm.c: Real implementation of
5283 string collation according to ISO C.
5284
5285 * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5286 wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5287 wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5288 Implementation of wide character classes and mapping.
5289
53f770e0
RM
5290Wed Mar 27 14:52:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5291
5292 * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5293 _dl_relocate_object loop. Avoid relocating RTLD_MAP in that loop, and
5294 do it individually if necessary after _dl_sysdep_start_cleanup call.
5295
5296 * stdlib/Makefile (mpn-routines): Add divrem.
5297
5298Tue Mar 26 22:54:14 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5299
5300 * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5301 instead of __mpn_divmod.
5302
5303Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
5304
5305 * sysdeps/alpha/setjmp.S: Must establish global pointer before
5306 address of __sigsetjmp_aux can be loaded.
5307
5308Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5309
5310 * sysdeps/i386/i586/memset.S: New file. Highly optimized
5311 version for i586 contributed by Torbjorn Granlund.
5312 Adapted for use as bzero.
5313 * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5314 code to implement bzero().
5315
5316Tue Mar 26 20:01:17 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5317
5318 * stdlib/Makefile (mpn-routines): Remove divmod.
5319
c0621444
BK
5320Tue Mar 26 15:40:14 1996 Brendan Kehoe <brendan@zen.org>
5321
5322 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5323 wrapped with #ifndef, to avoid config.h defining it.
5324
5775972d
RM
5325Mon Mar 25 13:10:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5326
81e4d60c
RM
5327 * malloc/realloc.c (_realloc_internal): In case of growing large
5328 block, leave _heaplimit zero across _malloc_internal call.
5329
5775972d
RM
5330 * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5331
857fa1b8
RM
5332Mon Mar 25 03:35:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5333
5334 * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5335 table when _heaplimit==0 during realloc growing large block.
5336
5337 * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5338 (text-srcs): New variable: extract only C sources from $(tags_sources).
5339 (po/$(domain).pot): Depend on that.
5340 If it's empty, cp /dev/null $@ instead of $(extract).
5341
5342 * misc/Makefile (headers): Add iovec.h.
5343 * sysdeps/unix/sysv/linux/iovec.h: New file.
5344 * sysdeps/generic/iovec.h: New file.
5345 * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5346
5347 * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5348 AC_TRY_COMPILE.
5349
5350 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5351 macros inside [! __STDC__].
5352
5353 * stdlib/rpmatch.c: New file.
5354 * stdlib/Makefile (routines): Add rpmatch.
5355 * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5356
5357 * MakeTAGS (MSGJOIN): Variable removed.
5358 (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5359
5360Wed Mar 20 20:08:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5361
5362 * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5363
5364 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5365 NO_UNDERSCORES.
5366
036a2725
RM
5367Thu Mar 21 11:19:15 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5368
5369 * mach/devstream.c (input): Translate \r to \n on input.
5370
ce563359
RM
5371Wed Mar 20 11:28:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5372
5373 * stdio-common/printf.h, stdio-common/printf_fp.c,
5374 stdio-common/vfprintf.c: Place const in parameter list at
5375 correct place.
5376
5377Wed Mar 20 23:58.12 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5378
5379 * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5380 sysdeps/ieee754/ldbl2mpn.c.
5381 * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5382 Reported by Andreas Schwab.
5383
5384Wed Mar 20 19:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5385
5386 * version.c: Include version.h to define RELEASE and VERSION macros.
5387 (__libc_release, __libc_version): Use them.
5388 * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5389 use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5390 * Make-dist (rel+vers): Snarf the macro values from version.h.
5391
5392 * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5393 (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5394 pass -a for these files.
5395
5396 * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5397 always run.
5398
38bb44bc
RM
5399Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5400
5401 * sysdeps/unix/sysv/linux/wait3.c: New file.
5402 * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5403 one from sysdeps/posix.
5404
948c3e72
RM
5405Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5406
d7193325
RM
5407 * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5408
948c3e72
RM
5409 * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5410 lt_executable, then lt_library.
5411 * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5412
5413Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5414
5415 * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5416
5417Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5418
5419 * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5420 VEOL2, VMIN, VTIME): Corrected.
5421 (PAGEOUT, WRAP, VDSUSP): Deleted.
5422
b20e47cb
RM
5423Tue Mar 19 14:18:42 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5424
948c3e72
RM
5425 * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5426 (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5427
4d585333
RM
5428 * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5429
5430 * math/math.h: Move M_* constants before __math.h include.
5431 [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5432
5433 * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5434 If log10 is not defined (i.e. no -lm), use stupid loop instead.
5435
d3669add
RM
5436 * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5437 and no other _*_SOURCE macro is.
5438 (_GNU_SOURCE): Don't define by default.
5439 * libc-symbols.h (_GNU_SOURCE): Define it.
5440
c8cf0b14
RM
5441 * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5442
c224a18a
RM
5443 * config.make.in (weak-symbols): Variable removed.
5444 * configure.in (--with-weak-symbols): Option removed.
5445 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5446 New tests.
c8cf0b14 5447
c224a18a
RM
5448 * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5449 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5450 New #undefs.
5451 * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5452
b20e47cb
RM
5453 * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5454
5455Mon Mar 4 20:17:28 1996 David Mosberger-Tang <davidm@azstarnet.com>
5456
c224a18a
RM
5457 * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5458 * inet/inet_mkadr.c: Likewise.
5459 * inet/inet_net.c: Likewise.
5460 * inet/inet_netof.c: Likewise.
5461 * inet/rcmd.c: Likewise.
5462 * inet/arpa/inet.h: Likewise.
5463 * inet/netinet/in.h: Likewise.
5464 * inet/netinet/tcp.h: Likewise.
5465 * inet/protocols/rwhod.h: Likewise.
5466 * inet/protocols/talkd.h: Likewise.
5467 * resolv/inet_addr.c: Likewise.
5468
b20e47cb
RM
5469 * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5470
5471 * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5472
5473 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5474 umount.
5475
5476 * sysdeps/alpha/__math.h (atan, cabs): New functions.
5477
5478 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5479 expects set-value, not pointer to it).
5480
5481Sun Feb 25 22:36:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
5482
5483 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5484
5485 * gmon/gmon.c (__bb_head): new variable.
5486 (write_hist, write_call_graph, write_bb_counts): new functions.
5487 (_mcleanup): modified to call above functions instead of directly
5488 writing out gmon.out.
5489 * gmon/sys/gmon.h (struct __bb): New type.
5490 (struct gmonhdr): Type removed.
5491 (struct gmonparam): New member `log_hashfraction'.
5492 (GMONVERSION): Macro removed.
5493
5494 * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5495 sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5496 files.
5497 * gmon/Makefile (headers): Add sys/gmon_out.h.
5498 (routines): Add bb_init_func, bb_exit_func.
5499
5500 * gmon/mcount.c: Avoid integer division.
5501
5502Wed Feb 21 23:56:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
5503
5504 * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5505 passed to match what __sigsetjmp_aux() expects.
5506
5507Tue Feb 20 11:33:46 1996 David Mosberger-Tang <davidm@azstarnet.com>
5508
5509 * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5510 connect, getpeername, getsockname, listen, recv, recvfrom,
5511 recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5512 added to override same-name assembly file in the parent directory.
5513
5514 * stdlib/stdlib.h: add include of sys/types.h in front of random
5515 etc declarations to ensure int32_t is declared.
5516
5517 * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5518 where 32 bit integers are required. Also change LONG_MAX into
5519 0x7fffffff since the intent is to turn off the sign bit in a
5520 32 bit integer.
5521
5522 * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5523 with very large values for "days" (e.g., 64 bit values).
5524
5525Mon Feb 19 22:22:12 1996 David Mosberger-Tang <davidm@azstarnet.com>
5526
5527 * stdlib/stdlib.h (__random, __random_r, random_r, struct
5528 random_data): use int32_t instead of `long int'.
5529
5530Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
5531
5532 * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5533
5534 * sysdeps/alpha/ffs.S: new file.
5535
5536 * sysdeps/alpha/fabs.c: File removed.
5537
5538 * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5539 num_transitions!
5540
5541 * time/offtime.c: make capable of dealing with very large (64 bit)
5542 time_t values. Use old algorithm until a year is reached that
5543 is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5544 do the remainder in a single division.
5545
5546 * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5547 be unsigned int, not unsigned long.
5548
5549 * string/test-ffs.c (main): add test case with all upper bits
5550 set.
5551
5552 * stdlib/tst-strtol.c: add tests cases for machines where
5553 sizeof(long)==8.
5554
5555 * stdlib/testrand.c (main): disallow rand() to return negative
5556 integers.
5557
5558 * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5559
5560 * stdlib/stdlib.h: on 64 bit machines, declare
5561 struct random_data, __random(), __random_r, and random_r to
5562 return "int" instead of "long int".
5563
5564 * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5565 int". Similarly, use INT_MAX instead of LONG_MAX.
5566
5567 * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5568 need to operate on "int" instead of "long int".
5569
5570 * locale/locfile-hash.c (compute_hashval): make shifted constant
5571 a long to avoid loosing bits on 64 bit machines.
5572
5573 * dirent/tst-seekdir.c (main): fix confusing comment; print
5574 a line to mark point where directory is rewound.
5575
5576Fri Feb 16 15:01:49 1996 David Mosberger-Tang <davidm@azstarnet.com>
5577
5578 * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5579
5580Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5581
5582 * sysdeps/unix/sysv/linux/alpha/Makefile,
5583 sysdeps/unix/sysv/linux/alpha/brk.S,
5584 sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5585 sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5586 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5587 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5588 sysdeps/unix/sysv/linux/alpha/pipe.S,
5589 sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5590 sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5591 sysdeps/unix/sysv/linux/alpha/speed.c,
5592 sysdeps/unix/sysv/linux/alpha/start.S,
5593 sysdeps/unix/sysv/linux/alpha/syscall.S,
5594 sysdeps/unix/sysv/linux/alpha/syscalls.list,
5595 sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5596 sysdeps/unix/sysv/linux/alpha/sysdep.S,
5597 sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5598
5599 * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5600 address register before returning (gcc 2.7.1 doesn't do it,
5601 presumably because $26 is declared as a global variable).
5602
5603 * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5604 argument.
5605
5606 * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5607 instead of multiplication.
5608
5609 * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5610 currently blocked signals instead of the empty mask to ensure
5611 that execution of alarm handler occurs with none of the currently
5612 blocked signals enabled.
5613
5614 * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5615
5616 * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5617 sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5618
5619 * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5620 sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5621 sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5622 sysdeps/alpha/strlen.S: New files.
5623
5624 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5625 sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5626 sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5627 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5628 Removed.
5629
5630 * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5631 int.
5632
5633 * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5634 to end of function to avoid a jump across NOPs.
5635
5636 * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5637 pertaining to integer division/remainder routines since new code
5638 doesn't require them.
5639
5640 * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5641 where 32 bit quantities are consumed/stored. Various other minor
5642 64-bit cleanups (casting).
5643
5644 * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5645 whether xdr_long or xdr_short should be used to encode an int.
5646 Notice that an xdr_long is 4 bytes independent of the architecture
5647 (otherwise no Alpha could interoperate with existing NFS servers,
5648 for example). Ditto for enums.
5649
5650 * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5651 to 16 since it really wants 16 bytes.
5652
5653 * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5654
c224a18a
RM
5655 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5656 u_int32_t (instead of u_long).
5657
b20e47cb
RM
5658 * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5659 "buf" pointer by casting it to a char* first since a long* may be 8
5660 bytes or more and oa->oa_length may be any multiple of 4.
5661
b20e47cb
RM
5662 * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5663 since it really is testing for 32 bits. Fixed casts to use
5664 u_int32 instead of u_long.
5665 * sunrpc/xdr_rec.c: Likewise.
5666
5667 * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5668 * sunrpc/rpc/auth.h: Likewise.
5669
5670 * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5671 for Alpha.
5672
5673Tue Mar 19 13:27:49 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5674
5675 * sysdeps/i386/fpu/__math.h: New file.
5676 Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5677
5678Sun Mar 17 00:28:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5679
5680 * sysdeps/posix/clock.c: Don't multiply the return value by
5681 CLOCKS_PER_SEC or CLK_TCK.
5682
e3845371
RM
5683Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5684
b20e47cb
RM
5685 * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5686 scan finds no match.
5687
5688 * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5689 * misc/bsd-compat.c (setpgrp): New function, two arg version.
5690 * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5691 * sysdeps/mach/hurd/setpgid.c: Likewise.
5692 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5693 * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5694 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5695 * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5696 * posix/setpgrp.c (setpgrp): New file.
5697 * posix/Makefile (routines): Add setpgrp.
5698
e3845371
RM
5699 * elf/Makefile (rtld-link): New canned sequence.
5700 (ld.so, ld-linux.so.1): Use it. Pass -soname option.
5701
5702 * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5703
5704Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5705
5706 * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5707 sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5708
9b431e31
RM
5709Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5710
5711 * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5712 (CFLAGS): Append -Wno-unitialized.
5713
5aab07eb
RM
5714Sat Mar 16 20:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5715
5716 * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5717 short bits into double.
5718
6025c399
RM
5719Sat Mar 16 20:08:22 1996 David Mosberger-Tang <davidm@azstarnet.com>
5720
9b431e31
RM
5721 * sysdeps/alpha/memchr.S: New file.
5722 * sysdeps/alpha/memchr.c: Obsolete file removed.
5723 * string/tester.c: Soup up memchr tests.
6025c399
RM
5724
5725Sat Mar 16 16:26:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5726
5727 * misc/Makefile (headers): Add sysexits.h.
5728 * misc/sysexits.h: New file.
5729
5730Thu Mar 14 15:20:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5731
5732 * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5733 call to __atan.
5734 * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5735 call to __atanf.
5736
5737 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5738 sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5739 sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5740 sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5741 sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5742 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5743 sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5744 sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5745 sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5746 sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5747 sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5748 sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5749 sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5750 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5751 sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5752 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5753 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5754 sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5755 sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5756 sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5757 sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5758 sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5759 sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5760 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5761 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5762 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5763 sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5764 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5765 sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5766 sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5767 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5768 sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5769 sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5770 sysdeps/m68k/fpu/s_significand.c,
5771 sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5772 sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5773 sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5774 sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5775
5776 * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5777
5778 * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5779 * sysdeps/m68k/fpu/isnanl.c: Likewise.
5780
5781Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5782
5783 * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5784 calculation to include trailing invariant portion. Don't use alloca;
5785 instead use a dynamic auto array for GCC, malloc for non-GCC.
5786 Handle nested braces properly.
5787
5788 * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5789
5790 * libc-symbols.h (lint): New macro.
5791
5792Fri Mar 15 01:18:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5793
5794 * libio/iosetvbuf.c: Add weak alias setvbuf.
5795
52e9a9d1
RM
5796Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5797
5798 * string/strnlen.c: New file.
5799 * string/Makefile (routines): Add strnlen.
5800 * string/string.h [__USE_GNU] (strnlen): Declare new function.
5801 [__OPTIMIZE__]: Define extern inline implementation of it.
5802
5803 * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5804 addition, to avoid using anything from -lm.
5805
5806Mon Mar 4 21:57:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5807
5808 * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5809
5810 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5811 (CALL_MCOUNT): New macro, empty unless [PROF].
5812 (ENTRY): Do CALL_MCOUNT just after the label.
5813 (JUMPTARGET): New macro.
5814 (SYSCALL_ERROR_HANDLER): Fix syntax.
5815
5816Thu Mar 14 04:20:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5817
5818 * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5819 function instead of using inline asm i386 syscall.
5820 * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5821
5822 * posix/unistd.h [__USE_BSD]: Declare usleep.
5823
6c46dada
RM
5824Tue Mar 12 04:57:57 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5825
52e9a9d1
RM
5826 * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5827 (fcvt, ecvt): Use it for buffer size.
5828
5829 * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5830 conditionalizing long vs long long.
5831
5832 * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5833 pointers; never return EFAULT.
5834 * stdlib/drand48_r.c (drand48_r): Likewise.
5835 * stdlib/erand48_r.c (erand48_r): Likewise.
5836
6c46dada
RM
5837 * setjmp/Makefile (tests): Add jmpbug.
5838 * setjmp/jmpbug.c: New file.
5839
1177c8ba
RM
5840Tue Mar 12 04:42:01 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5841
5842 * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5843 * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5844 * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5845 `restore' until the target frame is hit.
5846
5847Sun Mar 10 20:29:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5848
5849 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5850 * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5851 s_sigsuspend.
5852
5853Thu Mar 7 21:30:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5854
5855 * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5856 left side of sed substitutions.
5857
5858Sun Mar 10 16:58:10 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5859
5860 * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5861 is not available anymore. Do it ourselves.
5862
5863 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5864 Correct GCC `asm' syntax.
5865
dd0e4e0c
RM
5866Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5867
1177c8ba
RM
5868 * stdio-common/Makefile (tests): Add tst-ungetc.
5869 * stdio-common/tst-ungetc.c: New test from drepper.
5870 * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5871
5872 * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5873 somehow this was missed, though the weak alias is already there.
5874
dd0e4e0c
RM
5875 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5876 default to double precision, all interrupts masked; fdlibm requires.
5877
d25d5f6a
RM
5878Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5879
5880 * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5881
5882Fri Mar 8 22:16:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5883
5884 * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5885
45667a53
MB
5886Tue Mar 5 18:45:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
5887
5888 * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5889 final loop.
5890
f7eac6eb
RM
5891Mon Mar 4 20:54:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5892
5893 * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5894
5d8a006d
MB
5895Tue Mar 5 12:14:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
5896
5897 * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5898 because some fdmask is 0.
5899
e4963995
MB
5900Mon Mar 4 17:35:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
5901
5902 * sysdeps/mach/hurd/select.c (__select):
5903 Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5904 Don't return without frobbing the bitmasks after a timeout.
5905 When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
f7eac6eb
RM
5906
5907Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5908
5909 * hurd/catch-signal.c (hurd_safe_memmove): New function.
5910 (hurd_safe_copyin, hurd_safe_copyout): New functions.
5911 * hurd/hurd/sigpreempt.h: Declare them.
5912
5913Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5914
5915 Replace math code with fdlibm from Sun as modified for netbsd by
5916 JT Conklin and Ian Taylor, including x86 FPU support.
5917 * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5918 * math/math_private.h: New file.
5919 * sysdeps/i386/fpu/Implies: New file.
5920 * sysdeps/ieee754/Implies: New file.
5921 * math/machine/asm.h, math/machine/endian.h: New files.
5922 * math/Makefile, math/math.h: Rewritten.
5923 * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5924 * math/finite.c: File removed.
5925 * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5926
5927 * math/test-math.c: Include errno.h and string.h.
5928
5929 * sysdeps/unix/bsd/dirstream.h: File removed.
5930 * sysdeps/unix/bsd/readdir.c: File removed.
5931
661fa176
RM
5932Sat Mar 2 16:35:40 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5933
5934 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5935 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5936 removed.
5937 * sysdeps/generic/profil-counter.h: New file.
5938
48a65a29
BK
5939Fri Mar 1 17:11:59 1996 Brendan Kehoe <brendan@zen.org>
5940
5941 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5942 including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5943 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5944 same as linux/m68k/profil-counter.h except the comment.
5945
e9607dbe
RM
5946Fri Mar 1 10:09:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5947
6b628d36
RM
5948 * stdlib/Makefile (mpn-stuff): New target.
5949 (copy-mpn): Use it.
5950
5951 * Code copied from GMP updated to 1.937 version.
5952 * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
5953
e9607dbe
RM
5954 * posix/glob.c: Use canonical code from autoconf manual for dirent
5955 include.
5956 [_D_NAMLEN]: Redefine NAMLEN using this.
5957 (glob_in_dir): Use NAMLEN macro.
5958
5959 * sysdeps/posix/profil.c: New file.
5960
5961Thu Feb 29 20:55:57 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5962
5963 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
5964
b7459e56
RM
5965Tue Feb 27 12:14:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5966
e9607dbe
RM
5967 * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
5968 `extern' keyword.
5969
b7459e56
RM
5970 * time/strftime.c: Support - and _ flags to affect number padding.
5971
5972 * sysdeps/unix/common/tcsendbrk.c: New file.
5973
92777700
RM
5974Mon Feb 26 10:22:30 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5975
5976 * sysdeps/unix/dirstream.h: Rewritten.
5977 * sysdeps/unix/readdir.c: Rewritten.
5978 * sysdeps/unix/telldir.c: Rewritten.
5979 * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
5980 Remove __ from DIR struct member names.
5981 * sysdeps/unix/dirfd.c: Likewise.
5982 * sysdeps/unix/seekdir.c: Likewise.
5983 * sysdeps/unix/rewinddir.c: Likewise.
5984 * sysdeps/unix/opendir.c: Likewise. Don't allocate extra space after
5985 DIR structure.
5986 * sysdeps/stub/direct.h: File removed.
5987 * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
5988 * sysdeps/unix/bsd/direct.h: File removed.
5989 * sysdeps/unix/common/direct.h: File removed.
5990 * sysdeps/unix/sysv/irix4/direct.h: File removed.
5991 * sysdeps/unix/sysv/isc3/direct.h: File removed.
5992 * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
5993 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
5994 * sysdeps/unix/common/direntry.h: New file.
5995 * sysdeps/unix/bsd/direntry.h: New file.
5996 * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
5997 * sysdeps/unix/sysv/direntry.h: New file.
5998 * sysdeps/stub/direntry.h: New file.
5999 * dirent/dirent.h (struct dirent): Type removed. Include <direntry.h>
6000 to define it.
6001 (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
6002 * dirent/Makefile (headers): Add direntry.h.
6003 (distribute): Remove direct.h.
6004 * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
6005 * dirent/scandir.c: Likewise.
6006 * io/fts.c (fts_build): Likewise.
6007 * io/ftw.c (ftw_dir): Likewise.
6008 * sysdeps/posix/ttyname.c: Likewise.
6009
6010 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6011
6012 * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
6013 (collector_timeout): New static variable.
6014 (update_waiter): Actually call __task_enable_pc_sampling.
6015 Set collector_timeout based on the `tick' count returned.
6016 (profile_waiter): Use MAX_PC_SAMPLES. Set nsamples before RPC.
6017 Use collector_timeout in __mach_msg call.
6018
6019 * gmon/Makefile (noprof): New variable containing mcount.
6020 Append profil unless it is in $(unix-syscalls).
6021 (mcount.po): Use $(noprof) for list of targets in this rule.
6022
6023 * libc-symbols.h: Define _LIBC before #include <config.h>.
6024
6025Sun Feb 25 12:29:23 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6026
6027 * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
6028 Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
6029
e9607dbe 6030 * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
92777700
RM
6031
6032Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6033
6034 * libio/cleanup.c (_IO_cleanup_registration_needed)
6035 [!_G_HAVE_ATEXIT]: Init to NULL.
6036 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
6037
6038Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
6039
6040 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
6041 previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
6042
6043Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6044
6045 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
6046 extern.
6047
6048Sat Feb 24 11:34:13 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6049
6050 * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
6051
6052 * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
6053
a182affd
RM
6054Wed Feb 21 02:25:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6055
6056 * Rules (others): Depend on $(extra-objs), $(install-lib),
6057 $(install-bin), $(install-sbin), in object directory.
6058
6059 * Makeconfig (link-libc): Don't pass -rpath option with default
6060 path, since ld.so should use the same default.
6061 * Makerules (build-shlib): Likewise.
6062
6063 * Makerules (make-target-directory): Use mkinstalldirs.
6064
6065 * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
6066 redefine ENTRY et al.
6067
6068 * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
6069 Macros removed. The code in unix/i386/sysdep.h should now suffice.
6070
6071 * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
6072 [HAVE_ELF] and not.
6073 (ENTRY): Use it in .align directive.
6074 (CALL_MCOUNT): New macro, empty unless [PROF].
6075 (ENTRY): Do CALL_MCOUNT just after the label.
6076
6077 * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
6078 code can call mcount.
6079
6080Tue Feb 20 23:05:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6081
6082 * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
6083 translation markings are now integrated in his distribution.
6084
6085 * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
6086
f2e235b9
RM
6087Mon Feb 19 18:31:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6088
a182affd
RM
6089 * po: New directory where `LANG.po' files for message translations
6090 will reside.
6091 * po/SYS_libc.pot: New file, template of message strings as in source.
6092 * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
6093 the source using xgettext.
6094 * Makerules ($(..)po/%.pot): New rule.
6095 * manual/Makefile (../po/manual.pot): New target, make it empty.
6096
6097 * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
6098 * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
6099 * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
6100 * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
6101 * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
6102
f2e235b9
RM
6103 * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
6104 Updated from ADO 96d.
6105
0ddc0d16
RM
6106Sun Feb 18 14:08:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6107
6108 * csu/initfini.c (_init): Remove bogus volatile declarations and
6109 extra variable, take the address of __gmon_start__ only implicitly
6110 to avoid the test being optimized out.
6111
bfc04a9f
RM
6112Sun Feb 18 15:08:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6113
6114 * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
6115 sec.
6116
6117Sun Feb 18 13:56:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6118
6119 * elf/Makefile, time/Makefile: Make `all' the default target.
6120
6121Mon Feb 19 18:09:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6122
6123 * misc/sys/ptrace.h: Moved to ...
6124 * sysdeps/generic/sys/ptrace.h: ... here.
6125 * sys/ptrace.h: File removed.
6126
6127Sun Feb 18 12:13:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6128
6129 * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
6130
6131 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
6132 so that the symbol alias works.
6133
6134 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
6135
6136 * sysdeps/unix/sysv/linux/resourcebits.h: New file.
6137
6138 * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
6139
6140 * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
6141 getppid and reboot.
6142
6143 * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
6144 use getdtablesize.
6145
6146Sat Feb 17 10:30:21 1996 David Mosberger-Tang <davidm@AZStarNet.com>
6147
6148 * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
6149 sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
6150 sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
6151 to `long' where necessary.
6152
6153Thu Feb 15 20:04:50 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
6154
6155 * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
6156 * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
6157 to correctly access MPN array depending on architecture.
6158
be10a868
RM
6159Mon Feb 19 15:30:26 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6160
6161 * stdio-common/tstscanf.c (main): Add check for "0" as %d.
6162
6163 * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
6164 Only some systems have three args; let them define their own stub.
6165
6166 * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
6167
6168 * sysdeps/generic/machine-gmon.h: New file.
6169 * gmon/Makefile (distribute): Add machine-gmon.h.
6170 * gmon/mcount.c: Undo changes of Feb 13.
6171 Include "machine-gmon.h".
6172
6173Sun Feb 18 13:24:06 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6174
6175 * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
6176 identical to unix/common/direct.h.
6177
6178 * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
6179
6180 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
6181
6182 * stdio-common/Makefile (tests): Remove scanf6.
6183
6184 * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
6185
6186 * time/mktime.c (mktime): Move static variable localtime_offset to
6187 file scope.
6188
6189 * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
6190 base indicator.
6191
6192Thu Feb 15 16:56:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6193
6194 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
6195 (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
6196 (_dl_runtime_resolve): Save %a1 as well.
6197 (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
6198 (elf_machine_relplt): Define.
6199
6200 * elf/dl-runtime.c: Include possible extra args in declaration of
6201 fixup.
6202
1cbca0d9
RM
6203Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6204
6205 * time/tzset.c: Limit hours to 23, not 12. From jaffer.
6206
7c97bb09
RM
6207Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6208
6209 * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6210
9e3db9cd
RM
6211Thu Feb 15 13:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6212
6213 * mach/Machrules: Use -include for $(*.ir).
6214
6215 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6216 request values.
6217 * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6218 (_IOT_COUNT2): Field is 3 bits, not 2.
6219 * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6220 * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6221 bits before looking up handler.
6222 (fioctl): Use __hurd_dfail.
6223 (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6224
9b19f55d
RM
6225Thu Feb 15 11:49:45 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6226
6227 * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6228 (sysdep_routines): Don't add sys-sig.
6229
6230 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6231
9e3db9cd
RM
6232Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
6233
6234 * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6235 character bailed out one too early; changed constant 6 to
6236 7 to fix this.
6237
de1b40af
RM
6238Wed Feb 14 01:08:58 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6239
a1c46301
RM
6240 * posix/execvp.c: When executing shell on script, first arg is
6241 full file name, not argv[0].
6242
6243 * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6244 * mach/Machrules [no_deps]: Inhibit interface rules.
6245
de1b40af
RM
6246 * malloc/Makefile (distribute): Removed TODO.
6247
363113d0
RM
6248Tue Feb 13 05:12:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6249
de1b40af
RM
6250 * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6251 caller column.
6252
ae4c4dae
RM
6253 * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6254
4eea716e
RM
6255 * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6256
2a072de4
RM
6257 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6258 (sysdep_routines): Append setfpucw.
6259 (extra-objs): Append ieee-fpucw.o.
6260 (install-lib): Append libieee.a.
6261 (libieee.a): New target.
6262 * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6263 * sysdeps/unix/sysv/linux/i386/fpu_control.h
6264 (_FPU_GETCW, _FPU_SETCW): New macros.
6265 (fpu_control_t): New typedef.
6266 (__setfpucw): Use fpu_control_t for argument type.
6267 * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6268
6269 * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6270
363113d0
RM
6271 * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6272 * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6273
01f3e03b
RM
6274Sat Feb 10 13:09:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6275
46d7de19
RM
6276 * sysdeps/unix/sysv/linux/m68k/brk.c,
6277 sysdeps/unix/sysv/linux/m68k/mmap.S,
6278 sysdeps/unix/sysv/linux/m68k/select.S,
6279 sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6280 sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6281 sysdeps/unix/sysv/linux/m68k/socket.S,
6282 sysdeps/unix/sysv/linux/m68k/syscall.S,
6283 sysdeps/unix/sysv/linux/m68k/sysdep.S,
6284 sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6285
13987e68
RM
6286 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6287
3585d6bf
RM
6288 * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6289 sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6290
01f3e03b
RM
6291 * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6292 MAP_FILE if not already defined.
6293
6294 * elf/elf.h: Add m68k reloc definitions.
6295 * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6296
dbdb6189
RM
6297Tue Feb 13 00:12:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6298
d2c23123
RM
6299 * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6300 this macro declare extra leading args.
6301
6302 * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6303
38334018
RM
6304 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6305 elf_machine_relplt): New macros.
6306 * elf/dl-runtime.c: New file.
6307 * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6308
dbdb6189
RM
6309 * gmon/Makefile (headers): Remove machine-gmon.h.
6310 * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6311 * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6312 the asm name.
6313 (_mcount): Define normally, taking no args.
6314 Use __builtin_return_address to fetch PC values of caller and caller's
6315 caller.
6316
6317 * Makerules: Rewrote rules to update libc archives of all flavors.
6318 Define separate specific rules for each flavor using o-iterator.
6319
6320 * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6321
6322Sat Feb 10 11:35:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6323
6324 * Makerules (ar-symtab-name): New macro. Replace all occurences
6325 of __.SYMDEF by $(ar-symtab-name).
6326 * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6327
808c413c
RM
6328Mon Feb 12 03:10:41 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6329
dbdb6189
RM
6330 * Makefile (configure, %/configure): Depend on aclocal.m4.
6331 * Make-dist (configure, %/configure): Likewise.
6332
6333 * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6334
6335 * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6336 only needed in the implementation, not for any users.
6337
6338 * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6339 1996.
6340
25f9784e
RM
6341 * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6342 * sunrpc/pm_getmaps.c: Likewise.
6343
1fe58993
RM
6344 * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6345 so real syscalls override unix/sysv/*.c on sysv-derived systems
6346 that have them.
6347 * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6348 override unix/sysv/settimeofday.c since that overrides
6349 unix/syscalls.list.
6350
6351 * Makeconfig (+link): Put $(link-libc) after deps from $^,
6352 regardless of where libc.a appears in the deps.
6353
808c413c
RM
6354 * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6355 Add __waitid.
6356 * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6357 Define __ name for sigprocmask.
6358 * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6359 Add getsysinfo.
6360 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6361 * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6362 * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6363 * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6364 Add getdents, wait3, waitpid.
6365 * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6366 settimeofday, sigsuspend, sstk, utimes.
6367 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6368 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6369 * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6370 Removed sigtramp.
6371 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6372 * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6373 * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6374 * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6375 * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6376 * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6377 * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6378 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6379 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6380 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6381 * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6382 * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6383 * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6384 * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6385 * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6386 * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6387 * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6388
63f89404
RM
6389 * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6390 FORWARD_SIGEXC to one. Uncomment setting of thread exc port, and
6391 move it to last thing.
6392
186588d6
RM
6393Sat Feb 10 05:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6394
6395 * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6396
6397 * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6398
6a032d81
RM
6399Sat Feb 10 04:18:48 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6400
6401 * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6402 the file.
6403
6404Fri Feb 9 11:46:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6405
6406 * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6407 CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6408
6409 * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6410
56f778c9
RM
6411Thu Feb 8 18:55:27 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6412
6413 * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6414
4ca84cff
RM
6415Wed Feb 7 18:48:30 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6416
a482b5a5
RM
6417 * Makefile (subdirs): Added wcsmbs.
6418 * wcsmbs: New directory of wide char/multibyte char functions from
6419 drepper.
6420
4ca84cff
RM
6421 * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6422 * hurd/report-wait.c: New file.
6423 * hurd/Makefile (routines): Added report-wait.
6424
6425 * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6426
6427 * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6428 New type.
6429 (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6430 * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6431 Structure moved to intr-msg.h; include that.
6432
6433 * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6434 (CFLAGS-scheck.c): New variable.
6435
6436 * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6437 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6438 __hurd_threadvar_stack_mask): New variables.
6439
6440 * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6441 its new message port.
6442
6443 * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6444
6445 * configure.in (uname): Add quoting.
6446
6447 * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6448 * hurd/fchroot.c: Likewise.
6449
6450 * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6451 __attribute__ ((__mode__ (__XX__))).
6452
6453Wed Feb 7 03:24:05 1996 Torbjorn Granlund <tege@tmg.se>
6454
6455 * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6456 destination cache lines.
6457 (WORD_COPY_BWD): Likewise.
6458
6459Wed Feb 7 14:16:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6460
6461 * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6462 file name first thing, before $(native-compile) changes directories.
6463
6464 From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6465 * sysdeps/unix/make_errlist.c: Use strerror if available.
6466 * sysdeps/unix/configure.in: New file
6467
6468 * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6469 * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6470
6471 * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6472 * sysdeps/stub/connect.c: Likewise.
6473 * sysdeps/stub/bind.c: Likewise.
6474
6475 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6476 "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6477 another dir_lookup of "".
6478
b20e47cb
RM
6479Tue Feb 6 12:46:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
6480
6481 * libc-symbols.h (weak_alias, weak_symbol): added definitions
6482 for ECOFF (HAVE_ECOFF).
6483
1ac3b08e
RM
6484Fri Feb 2 13:09:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6485
6486 * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6487
54139447
RM
6488Wed Jan 31 20:08:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6489
6490 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6491 when cancelled before RPC.
6492
01cdeca0
RM
6493Tue Jan 30 13:32:05 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6494
6495 * dirent/scandir.c: Allocate dirents with correct size for name, and
6496 copy with correct size.
6497
6498 * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6499
6500 * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6501 flag bits.
6502 (__vfscanf): Fix checking of extra type modifiers.
6503
6504 * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6505
6506Tue Jan 30 12:17:26 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
6507
6508 * stdlib/strtod.c: Only negate exponent when there really is one.
6509
6510 * stdio-common/vfscanf.c: Accept type modifiers on %n.
6511 Fix FP number parsing.
6512
f0b11018
RM
6513Mon Jan 29 21:53:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6514
6515 * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6516
6517 * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6518
6519Mon Jan 29 16:29:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
6520
6521 * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6522 include an increment for each operation allowed on each fd.
6523
6524Mon Jan 29 11:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6525
6526 * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6527
6528 * Makefile: Use -include for sysd-dirs.
6529
6530 * configure.in (uname): Check for uname in syscalls.list files.
6531 * sysdeps/unix/sysv/syscalls.list: Remove uname.
6532 * sysdeps/unix/syscalls.list: Add uname.
6533
6534 * stdlib/strtol.c (weak1): New macro, to get the right name declared
6535 weak.
6536
6537 * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6538
6539 * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6540 (dbm_open): Use dynamic allocation for file name buffer, instead of
6541 limitting its size to MAXPATHLEN.
6542
6543 * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6544 buffer, instead of limitting its size to MAXPATHLEN.
6545
6546 * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6547 * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6548
429ed67b
RM
6549Sun Jan 28 19:42:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6550
6551 * time/Makefile: Fix check for cross compiling.
6552
19c3f208
RM
6553Thu Jan 25 21:10:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6554
6555 * db/Makefile (subdir-dirs): Renamed from dbdirs.
6556
6557 * Makerules (distinfo-vars): Add subdir-dirs.
6558
6559 * MakeTAGS: Remove vpath directives.
6560 (all-dirs): Prepend $(subdir-dirs).
6561 (all-sources, all-headers): Use wildcard to find sources.
6562
6563Mon Jan 29 10:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6564
6565 * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6566 variables.
6567
6568 * mach/msgserver.c: Declare DEMUX arg with prototype.
6569
dc825f85
RM
6570Sun Jan 28 17:25:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6571
6572 * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6573 make C++ happy.
6574 * alpha/jmp_buf.h: Likewise.
6575 * m68k/jmp_buf.h: Likewise.
6576 * mips/jmp_buf.h: Likewise.
6577 * sparc/jmp_buf.h: Likewise.
6578 * vax/jmp_buf.h: Likewise.
6579
6580 * sysdeps/generic/memmem.c: Fix return value in case where
6581 NEEDLE_LEN==0.
6582
6583 * hurd/hurdlookup.c (__file_name_lookup_under,
6584 __file_name_lookup): Restrict mode with umask.
6585 * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6586 * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6587
eb8c0f2d
RM
6588Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6589
6590 * stdlib/strtol.c: Undo last change. ANSI C changed since the
6591 draft I checked yesterday. Sigh.
6592
8dad333d
RM
6593Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6594
6595 * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6596
a66067be
RM
6597Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6598
ebc53fbe
RM
6599 * malloc/mcheck.c (mabort): Declare prototype.
6600
555f3a39
RM
6601 * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6602
6603 * Makerules: Use -include for generated makefiles.
6604
6605 * errno.h: Don't declare errno if it's defined as a macro.
6606
914d9d7b
RM
6607 * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6608
a66067be
RM
6609 * stdio-common/Makefile (tests): Add scanf[1-9].
6610 * stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
6611
0793d348
RM
6612Wed Jan 24 04:18:36 1996 Paul Eggert <eggert@twinsun.com>
6613
6614 * strftime.c (strftime):
6615 When invoking self, check whether the subsidiary invocation failed.
6616 Use "???" (not "") to denote unknown time zone information.
6617
6618 Make this source file portable to standalone contexts (e.g. GNU Emacs).
6619 <config.h>: Include if HAVE_CONFIG_H is defined.
6620 (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6621 defined if _LIBC or if <config.h> defines them.
6622 <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6623 <sys/types.h>: New include; some hosts require it for `time_t'.
6624 <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6625 <limits.h>: Include only if HAVE_LIMITS_H.
6626 <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6627 (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6628 (__P, PTR): Define if not already defined.
6629 (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6630 (add, strftime): Don't use NULL, for portability to some weird hosts.
6631 (fmt): If !_LIBC, don't assume sprintf returns a count.
6632 (week, strftime): Use old-style function declarations.
6633 (weekday_name, month_name): New constants.
6634 (strftime): Use traditional C values if locale support isn't available.
6635 Use `const' instead of CONST. For time zones, use tm_zone if
6636 possible, then fall back on tzname. Don't check for multibyte
6637 characters unless mblen is supported. Use formats like %02d instead
6638 of %.2d, for portability to older hosts.
6639
6640Wed Jan 24 00:07:52 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6641
6642 * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6643 (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6644 Fix bug in recognition of %ll flag for long long.
6645 Fix overeager checks for conflicting type modifiers.
6646 With ' flag, match thousands separators for decimal numbers.
6647
6648Tue Jan 23 22:02:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6649
6650 * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6651
6652 * resolv/Makefile (CFLAGS): Disable some warnings.
6653
6654 * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6655 (+gccwarn): Set with override.
6656
6657 * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6658
6659 * posix/Makefile (CFLAGS-regex.c): New variable.
6660
6661 * malloc/Makefile (CFLAGS-obstack.c): New variable.
6662
6663 * io/Makefile (CFLAGS-fts.c): New variable.
6664 * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6665
6666Tue Jan 23 21:35:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
6667
6668 * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6669 case is '\0'-terminated.
6670
6671Tue Jan 23 19:49:54 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6672
6673 * elf/rtld.c (dl_main): Support additional args in --list mode for
6674 debugging: look them up as symbol names and print values.
6675
6676 * misc/getttyent.c (skip, value): Declare with prototypes in file
6677 scope.
6678
6679 * csu/initfini.c (_init): Explicitly set a variable that is
6680 pointer to volatile with the address of __gmon_start__, to avoid
6681 the test being optimized out.
6682
1d8dc429
RM
6683Mon Jan 22 10:40:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6684
6685 * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6686
6687 * io/fts.h (FTSENT): Define fts_compar member with prototype.
6688
6689 * hurd/hurd.h: Use prototype in getcttyid decl.
6690
6691 * stdlib/l64a.c: Fix typo in last change.
6692
6693 * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6694 for determining size of types.
6695 * stdlib/srand48_r.c: Likewise.
6696
6697 * misc/utmp.h: Declare login, logout, logwtmp.
6698 * misc/logout.c: Declare argument as pointer to const.
6699 * misc/login.c: Likewise.
6700 * misc/logwtmp.c: Likewise.
6701 Include time.h, string.h.
6702
6703 * misc/efgcvt_r.c: Include stdlib.h.
6704
6705 * io/mknod.c: Include sys/types.h.
6706
6707 * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6708
6709 * csu/gmon-start.c (_start, etext): Declare with prototypes.
6710
6711 * stdio-common/vfscanf.c (%[): Fix range handling.
6712
bbed653c
RM
6713Sun Jan 21 00:55:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6714
f2f7f9e6
RM
6715 * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6716 * misc/queue.h: Moved to misc/sys/queue.h.
6717
bbed653c
RM
6718 * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6719 sys/sem.h.
6720
6721 * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6722
6723 * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6724 literal byte values.
6725
6726 * misc/bsd-compat.c (getpgrp): Define with prototype.
6727
6728 * misc/init-misc.c (__progname_full): New variable.
6729 (program_invocation_name, program_invocation_short_name): New aliases.
6730 (__init_misc): Define with prototype. Set __progname_full.
6731 * misc/progname.c: File removed.
6732 * misc/Makefile (aux): Remove progname.
6733
6734 * misc/hsearch_r.c (isprime): Define with prototype.
6735
6736 * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6737 * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6738 * sysdeps/unix/bsd/setegid.c: Likewise.
6739
522548fb
RM
6740Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6741
eb63bdd0
RM
6742 * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6743 __tcdrain.
6744
6745 * posix/glob.c (glob): Use prototype in getlogin decl.
6746
6747 * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6748 * db/db/db.c (__dberr): Define with prototype.
6749 (__dbpanic): Use prototypes in casts.
6750 * db/hash/hash_log2.c: Add prototype decl.
6751
6752 * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6753 prototype.
6754
522548fb
RM
6755 * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6756 They will be overridden with syscalls if extant by unix/syscalls.list.
6757
6758 * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6759
6760 * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6761 * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6762
aeb72b16
RM
6763Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6764
97aa195c
RM
6765 * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6766
6767 * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6768 get args.
6769
6770 * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6771 defines GNU extensions.
6772 * posix/fnmatch.c: Likewise.
6773
9b29e6f7
RM
6774 Replaced all simple system call files *.S throughout sysdeps/unix
6775 with syscalls.list files to be processed by make-syscalls.sh.
6776 * sysdeps/unix/s-proto.S: New file.
6777 * sysdeps/unix/syscalls.list: New file.
6778 * sysdeps/unix/bsd/syscalls.list: New file.
6779 * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6780 * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6781 * sysdeps/unix/bsd/osf/syscalls.list: New file.
6782 * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6783 * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6784 * sysdeps/unix/bsd/sun/syscalls.list: New file.
6785 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6786 * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6787 * sysdeps/unix/common/syscalls.list: New file.
6788 * sysdeps/unix/inet/syscalls.list: New file.
6789 * sysdeps/unix/mman/syscalls.list: New file.
6790 * sysdeps/unix/sysv/syscalls.list: New file.
6791 * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6792 * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6793 * sysdeps/unix/sysv/linux/syscalls.list: New file.
6794 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6795 * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6796 * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6797 * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6798 * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6799 * sysdeps/unix/acct.S: File removed.
6800 * sysdeps/unix/chdir.S: File removed.
6801 * sysdeps/unix/chmod.S: File removed.
6802 * sysdeps/unix/chown.S: File removed.
6803 * sysdeps/unix/chroot.S: File removed.
6804 * sysdeps/unix/close.S: File removed.
6805 * sysdeps/unix/configure: File removed.
6806 * sysdeps/unix/configure.in: File removed.
6807 * sysdeps/unix/dup.S: File removed.
6808 * sysdeps/unix/fcntl.S: File removed.
6809 * sysdeps/unix/fsync.S: File removed.
6810 * sysdeps/unix/getgid.S: File removed.
6811 * sysdeps/unix/getpid.S: File removed.
6812 * sysdeps/unix/getuid.S: File removed.
6813 * sysdeps/unix/ioctl.S: File removed.
6814 * sysdeps/unix/kill.S: File removed.
6815 * sysdeps/unix/link.S: File removed.
6816 * sysdeps/unix/lseek.S: File removed.
6817 * sysdeps/unix/open.S: File removed.
6818 * sysdeps/unix/ptrace.S: File removed.
6819 * sysdeps/unix/read.S: File removed.
6820 * sysdeps/unix/reboot.S: File removed.
6821 * sysdeps/unix/setgid.S: File removed.
6822 * sysdeps/unix/setuid.S: File removed.
6823 * sysdeps/unix/sync.S: File removed.
6824 * sysdeps/unix/umask.S: File removed.
6825 * sysdeps/unix/unlink.S: File removed.
6826 * sysdeps/unix/write.S: File removed.
6827 * sysdeps/unix/bsd/flock.S: File removed.
6828 * sysdeps/unix/bsd/getdtsz.S: File removed.
6829 * sysdeps/unix/bsd/getpagesize.S: File removed.
6830 * sysdeps/unix/bsd/killpg.S: File removed.
6831 * sysdeps/unix/bsd/profil.S: File removed.
6832 * sysdeps/unix/bsd/readv.S: File removed.
6833 * sysdeps/unix/bsd/settimeofday.S: File removed.
6834 * sysdeps/unix/bsd/sigblock.S: File removed.
6835 * sysdeps/unix/bsd/sigpause.S: File removed.
6836 * sysdeps/unix/bsd/sigsetmask.S: File removed.
6837 * sysdeps/unix/bsd/sigstack.S: File removed.
6838 * sysdeps/unix/bsd/sigvec.S: File removed.
6839 * sysdeps/unix/bsd/utimes.S: File removed.
6840 * sysdeps/unix/bsd/writev.S: File removed.
6841 * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6842 * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6843 * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6844 * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6845 * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6846 * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6847 * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6848 * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6849 * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6850 * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6851 * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6852 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6853 * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6854 * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6855 * sysdeps/unix/bsd/osf/msync.S: File removed.
6856 * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6857 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6858 * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6859 * sysdeps/unix/bsd/sun/getdents.S: File removed.
6860 * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6861 * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6862 * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6863 * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6864 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6865 * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6866 * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6867 * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6868 * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6869 * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6870 * sysdeps/unix/common/access.S: File removed.
6871 * sysdeps/unix/common/adjtime.S: File removed.
6872 * sysdeps/unix/common/dup2.S: File removed.
6873 * sysdeps/unix/common/fchmod.S: File removed.
6874 * sysdeps/unix/common/fchown.S: File removed.
6875 * sysdeps/unix/common/ftruncate.S: File removed.
6876 * sysdeps/unix/common/getgroups.S: File removed.
6877 * sysdeps/unix/common/getitimer.S: File removed.
6878 * sysdeps/unix/common/getpgid.S: File removed.
6879 * sysdeps/unix/common/getpriority.S: File removed.
6880 * sysdeps/unix/common/getrlimit.S: File removed.
6881 * sysdeps/unix/common/getrusage.S: File removed.
6882 * sysdeps/unix/common/gettimeofday.S: File removed.
6883 * sysdeps/unix/common/mkdir.S: File removed.
6884 * sysdeps/unix/common/readlink.S: File removed.
6885 * sysdeps/unix/common/rename.S: File removed.
6886 * sysdeps/unix/common/rmdir.S: File removed.
6887 * sysdeps/unix/common/select.S: File removed.
6888 * sysdeps/unix/common/setgroups.S: File removed.
6889 * sysdeps/unix/common/setitimer.S: File removed.
6890 * sysdeps/unix/common/setpgid.S: File removed.
6891 * sysdeps/unix/common/setpriority.S: File removed.
6892 * sysdeps/unix/common/setregid.S: File removed.
6893 * sysdeps/unix/common/setreuid.S: File removed.
6894 * sysdeps/unix/common/setrlimit.S: File removed.
6895 * sysdeps/unix/common/swapon.S: File removed.
6896 * sysdeps/unix/common/symlink.S: File removed.
6897 * sysdeps/unix/common/truncate.S: File removed.
6898 * sysdeps/unix/common/vhangup.S: File removed.
6899 * sysdeps/unix/inet/accept.S: File removed.
6900 * sysdeps/unix/inet/bind.S: File removed.
6901 * sysdeps/unix/inet/connect.S: File removed.
6902 * sysdeps/unix/inet/gethostid.S: File removed.
6903 * sysdeps/unix/inet/gethostname.S: File removed.
6904 * sysdeps/unix/inet/getpeername.S: File removed.
6905 * sysdeps/unix/inet/getsockname.S: File removed.
6906 * sysdeps/unix/inet/getsockopt.S: File removed.
6907 * sysdeps/unix/inet/listen.S: File removed.
6908 * sysdeps/unix/inet/recv.S: File removed.
6909 * sysdeps/unix/inet/recvfrom.S: File removed.
6910 * sysdeps/unix/inet/recvmsg.S: File removed.
6911 * sysdeps/unix/inet/send.S: File removed.
6912 * sysdeps/unix/inet/sendmsg.S: File removed.
6913 * sysdeps/unix/inet/sendto.S: File removed.
6914 * sysdeps/unix/inet/sethostid.S: File removed.
6915 * sysdeps/unix/inet/sethostname.S: File removed.
6916 * sysdeps/unix/inet/setsockopt.S: File removed.
6917 * sysdeps/unix/inet/shutdown.S: File removed.
6918 * sysdeps/unix/inet/socket.S: File removed.
6919 * sysdeps/unix/inet/socketpair.S: File removed.
6920 * sysdeps/unix/mman/madvise.S: File removed.
6921 * sysdeps/unix/mman/mmap.S: File removed.
6922 * sysdeps/unix/mman/mprotect.S: File removed.
6923 * sysdeps/unix/mman/msync.S: File removed.
6924 * sysdeps/unix/mman/munmap.S: File removed.
6925 * sysdeps/unix/sysv/alarm.S: File removed.
6926 * sysdeps/unix/sysv/ftime.S: File removed.
6927 * sysdeps/unix/sysv/nice.S: File removed.
6928 * sysdeps/unix/sysv/pause.S: File removed.
6929 * sysdeps/unix/sysv/poll.S: File removed.
6930 * sysdeps/unix/sysv/s_getdents.S: File removed.
6931 * sysdeps/unix/sysv/signal.S: File removed.
6932 * sysdeps/unix/sysv/stime.S: File removed.
6933 * sysdeps/unix/sysv/time.S: File removed.
6934 * sysdeps/unix/sysv/times.S: File removed.
6935 * sysdeps/unix/sysv/ulimit.S: File removed.
6936 * sysdeps/unix/sysv/uname.S: File removed.
6937 * sysdeps/unix/sysv/utime.S: File removed.
6938 * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6939 * sysdeps/unix/sysv/irix4/msync.S: File removed.
6940 * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6941 * sysdeps/unix/sysv/irix4/signal.S: File removed.
6942 * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6943 * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6944 * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6945 * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6946 * sysdeps/unix/sysv/linux/fork.S: File removed.
6947 * sysdeps/unix/sysv/linux/getpgid.S: File removed.
6948 * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
6949 * sysdeps/unix/sysv/linux/getsid.S: File removed.
6950 * sysdeps/unix/sysv/linux/gtty.S: File removed.
6951 * sysdeps/unix/sysv/linux/mlock.S: File removed.
6952 * sysdeps/unix/sysv/linux/mlockall.S: File removed.
6953 * sysdeps/unix/sysv/linux/mount.S: File removed.
6954 * sysdeps/unix/sysv/linux/munlock.S: File removed.
6955 * sysdeps/unix/sysv/linux/munlockall.S: File removed.
6956 * sysdeps/unix/sysv/linux/pipe.S: File removed.
6957 * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
6958 * sysdeps/unix/sysv/linux/setpgid.S: File removed.
6959 * sysdeps/unix/sysv/linux/setsid.S: File removed.
6960 * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
6961 * sysdeps/unix/sysv/linux/sigpending.S: File removed.
6962 * sysdeps/unix/sysv/linux/stty.S: File removed.
6963 * sysdeps/unix/sysv/linux/umount.S: File removed.
6964 * sysdeps/unix/sysv/linux/wait4.S: File removed.
6965 * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
6966 * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
6967 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
6968 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
6969 * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
6970 * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
6971 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
6972 * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
6973 * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
6974 * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
6975 * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
6976 * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
6977 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
6978
6979 * io/mknod.c: New file.
6980
aeb72b16
RM
6981 * Makerules (COMPILE.s): New variable.
6982
6983 * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
6984 make-syscalls.sh and include it.
6985 [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
6986 sysd-syscalls.
6987 * sysdeps/unix/make-syscalls.sh: New file.
6988
6989 * Makerules (COMPILE.S): New variable.
6990
6f0017d1
RM
6991Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6992
285a3eee
RM
6993 * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
6994 _STAT_VER_SVR4, _STAT_VER): New macros.
6995 (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
6996
6997 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
6998 New macros.
6999
c43b8c4b
RM
7000 * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
7001 (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
7002 [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
7003 as `extern inline's calling the `x' functions.
7004 * io/fstat.c: New file.
7005 * io/lstat.c: New file.
7006 * io/stat.c: New file.
7007 * sysdeps/generic/lstat.c: File removed.
7008 * sysdeps/generic/lxstat.c: New file.
7009 * sysdeps/mach/hurd/fstat.c: File removed.
7010 * sysdeps/mach/hurd/fxstat.c: New file.
7011 * sysdeps/mach/hurd/lstat.c: File removed.
7012 * sysdeps/mach/hurd/lxstat.c: New file.
7013 * sysdeps/mach/hurd/mknod.c: File removed.
7014 * sysdeps/mach/hurd/stat.c: File removed.
7015 * sysdeps/mach/hurd/xmknod.c: New file.
7016 * sysdeps/mach/hurd/xstat.c: New file.
7017 * sysdeps/stub/fstat.c: File removed.
7018 * sysdeps/stub/fxstat.c: New file.
7019 * sysdeps/stub/lstat.c: File removed.
7020 * sysdeps/stub/lxstat.c: New file.
7021 * sysdeps/stub/mknod.c: File removed.
7022 * sysdeps/stub/stat.c: File removed.
7023 * sysdeps/stub/xmknod.c: New file.
7024 * sysdeps/stub/xstat.c: New file.
7025 * sysdeps/unix/common/lstat.S: File removed.
7026 * sysdeps/unix/common/lxstat.c: New file.
7027 * sysdeps/unix/fstat.S: File removed.
7028 * sysdeps/unix/fxstat.c: New file.
7029 * sysdeps/unix/mknod.S: File removed.
7030 * sysdeps/unix/stat.S: File removed.
7031 * sysdeps/unix/sysv/linux/fstat.c: File removed.
7032 * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
7033 * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
7034 * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
7035 * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
7036 * sysdeps/unix/sysv/linux/lstat.c: File removed.
7037 * sysdeps/unix/sysv/linux/mknod.c: File removed.
7038 * sysdeps/unix/sysv/linux/stat.c: File removed.
7039 * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
7040 * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
7041 * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
7042 * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
7043 * sysdeps/unix/xmknod.c: New file.
7044 * sysdeps/unix/xstat.c: New file.
7045 * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
7046 * misc/Makefile (routines): Remove mknod.
7047
7048 * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
7049 Add missing ; in little-endian case.
7050
44534645
RM
7051 * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
7052 Define this instead of ELF_DYNAMIC_DO_RELA.
7053
6f0017d1
RM
7054 * sysdeps/unix/sysv/time.S: Moved from sysv4.
7055 * sysdeps/unix/sysv/irix4/time.S: File removed.
7056
7057 * sysdeps/unix/sysv/linux/signum.h: Moved from
7058 sysdeps/unix/sysv/linux/i386.
7059 (_NSIG): Move inside #ifdef _SIGNAL_H.
7060
b17178fc
RM
7061Tue Jan 16 17:37:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7062
b6e9b25b
RM
7063 * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
7064 * sysdeps/unix/telldir.c: Fix position calculation to account for
7065 buffered data properly.
7066
13bc775d
RM
7067 * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
7068 library.
7069
5f3d5c2b
RM
7070 * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
7071 * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
7072 global.
7073 [! HAVE_INITFINI]: Only make it a constructor in this case.
7074
d99d7e26
RM
7075 * gmon/Makefile (CFLAGS-mcount.c): New variable.
7076 (mcount.po): New target.
7077
7078 * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
7079
b17178fc
RM
7080 * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
7081 (initfini): Compile initfini.c with -fPIC.
7082
93995795
RM
7083Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7084
7085 * sysdeps/mips/bytesex.h: Add default byte sex. By Ralf Baechle.
7086
7087 * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
7088 member of `struct timex' instead of `modes'. From Andreas Schwab.
7089
7090 * sysdeps/unix/sysv/linux/mknod.c: New file. Generic C version.
7091 * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
7092
7093 * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
7094 [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
7095 [$(subdir) = misc] (headers): Append sys/mount.h.
7096
7097 * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
7098 New files. Implement system calls.
7099 * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
7100
7101 * sysdeps/unix/sysv/linux/ptrace.c: New file. Wrapper around
7102 ptrace system call.
7103 * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
7104
7105 * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
7106 types for i386/Linux.
7107
b17178fc
RM
7108Sun Jan 14 17:51:09 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7109
b8aec9fa
RM
7110 * MakeTAGS (all-sources, all-headers): Always search the
7111 current directory first.
7112
7113 * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
7114 found.
7115
b17178fc
RM
7116 * stdio-common/vfscanf.c (inchar, conv_error, input_error,
7117 memory_error): Add cast to void to avoid gcc warning.
7118 (vfscanf): Rewrite character class parsing to make it more efficient.
7119
7176f4e4
RM
7120 * misc/efgcvt_r.c (ecvt_r): Handle negative values.
7121
7122 * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
7123 * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
7124 sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
7125
7126 * stdio-common/printf_fp.c (__printf_fp): Fix parameter
7127 declaration.
7128
7129 * sysdeps/generic/putenv.c (putenv): Fix second argument of
7130 setenv.
7131
7132 * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
7133 * sysdeps/ieee754/cabs.c: Don't define hypot here.
7134
7135 * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
7136 definition of ieee_nan alternative.
7137
7138 * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
7139 prefix spec.
7140
7141 * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
7142
7143 * sysdeps/m68k/fpu/__math.h: Include <errno.h>. Replace obsolete
7144 __CONSTVALUE by attribute.
7145 (floor): Round to negative infinity.
7146 (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
7147 clash when compiling source.
7148 (pow): Handle x == 0 and x < 0.
7149 (ceil, __isinf, __isnan): Fix register constraints.
7150 (__isinfl, __isnanl): Added.
7151 * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
7152 sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
7153 sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
7154
7155 * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
7156 assembler syntax.
7157
7158 * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
7159 argument.
7160
7161 * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
7162 clock_t conversion.
7163 (clock): Don't multiply by CLOCKS_PER_SEC.
7164
7165 * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
7166
7167 * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
7168 __end.
7169
7170 * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
7171
7172 * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
7173
7174 * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
7175
da128169
RM
7176Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7177
7178 * stdlib/strtol.c: Return correct pointer for strings
7179 like "0xyz" and base 0 or 16.
7180
7181 * string/strxfrm.c: Handle case for LENGTH == 0 correct.
7182
7183 * sunrpc/etc.rpc: Add some more known protocols.
7184
02ac66c5
RM
7185Fri Jan 12 13:40:01 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7186
7187 * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
7188
7189 * posix/glob.c (glob): Add parens in glob call flags arg for
7190 GLOB_BRACE case.
7191
7192 * string/string.h (strdupa): New macro.
7193
7194 * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
7195 terminator on empty set. From drepper.
7196
d94d8f2a
RM
7197Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7198
7199 * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
7200 referent for STB_LOCAL.
7201
72d8cdf0
RM
7202Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7203
7204 * time/africa, time/antarctica, time/asia, time/australasia,
7205 time/europe, time/northamerica, time/pacificnew, time/solar87,
7206 time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7207
22930c9b
RM
7208Tue Jan 9 16:10:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7209
7210 * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7211 segment to find location, mprotect excess region to no access,
7212 don't munmap it.
7213
7214 * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7215 KERN_NO_SPACE for fixed location, deallocate it and try again.
7216
7410183b
RM
7217Mon Jan 8 17:43:23 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7218
7219 * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7220 * locale/hash.c: Renamed to locale/locfile-hash.c.
7221
a2e1b046
RM
7222Sat Jan 6 16:39:14 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7223
7224 * Makefile (subdirs): Added db.
7225
7226 * resolv/Makefile (routines): Add res_data.
7227 * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7228 Updated from BIND 4.9.3 final release.
7229
7230 * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7231 processor-specific tags.
7232 (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7233
7234 * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7235 * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7236
7237 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7238 arg LAZY. Only do our work if LAZY and there is a DT_JMPREL record.
7239 * elf/dl-reloc.c (_dl_relocate_object): Call
7240 elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7241
7242 * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7243 Align end of load segment only to page size, not to segment alignment.
7244
7974fe21
RM
7245Thu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7246
7247 * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7248 preemption interface.
7249
7250 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7251 Use _hurdsig_catch_memory_fault.
7252
7253 * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7254 (sig): Add catch-signal.
7255
7256 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7257 Rewritten using a preempter in new interface.
7258 * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7259 (_hurdsig_catch_memory_fault): New macro.
7260
fb8e70d6
RM
7261Wed Jan 3 20:23:42 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7262
7263 * hurd/catch-signal.c: New file.
7264
7265 * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7266
7267 * hurd/hurdsig.c: Use new hurdfault.h interface.
7268 (abort_all_rpcs): Mutate return value to EINTR in threads whose
7269 replies we will wait for.
7270
7271 * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7272 do ourselves last.
7273
7274Wed Jan 3 19:17:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
7275
7276 * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7277 to auth_makeauth() in the right order.
7278
7279Wed Jan 3 17:19:04 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7280
7281 * sysdeps/generic/strsep.c: Rewritten.
7282
7283 * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7284 suspended page fault deadlock kernel bug: thread_abort our signal
7285 thread first thing after proc_dostop.
7286
7287 * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7288 recognize rootness properly.
7289
fc4026d8
RM
7290Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7291
71733723
RM
7292 * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7293 (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7294 * hurd/hurd/sigpreempt.h: New file.
7295 * hurd/preempt-sig.c: Rewritten with new interface.
7296 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7297 preempters being unwound past.
fb8e70d6 7298 * hurd/hurdsig.c: Use new signal preemption interface.
71733723
RM
7299
7300 * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7301 release.
7302
7303 * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7304 compatibility.
7305
fc4026d8
RM
7306 * misc/queue.h: New file, incorporated from 4.4BSD.
7307 * misc/Makefile (headers): Add queue.h.
7308
7309 * posix/sys/types.h [__USE_BSD]: Include endian.h.
7310
7311 * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7312 New macros.
7313
0a95f04d
RM
7314Thu Dec 28 10:21:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7315
7316 * sysdeps/generic/confname.h: Define all names as self-referential
7317 macros so #ifdef works.
7318
7319 * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7320 of _hurd_signal_preempters[SIGNO].
7321
be7e3b7e
RM
7322Mon Dec 25 20:56:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7323
7324 * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7325 EADDRINUSE. If translated node doesn't grok ifsock protocol,
7326 return EADDRINUSE.
7327
7328 * sysdeps/mach/hurd/connect.c: Make address arg
7329 `const struct sockaddr_un *'.
7330 The redecl is kosher and avoids another variable for AF_LOCAL case.
7331 * sysdeps/mach/hurd/sendto.c: Likewise.
7332 * sysdeps/mach/hurd/bind.c: Likewise.
7333
7334 * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7335 code for GCC >= 2.7; use __transparent_union__ for name safety;
7336 add several sockaddr flavors.
7337 (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7338 constructing the transparent union declarations.
7339 (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7340 (bind, connect, sendto): Make the sockaddr argument use that.
7341
97532098
RM
7342Fri Dec 22 00:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7343
e0f09b6b
RM
7344 * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7345 old vector.
7346 * sysdeps/mach/hurd/setuid.c: Likewise.
7347
97532098
RM
7348 * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7349 right thing.
7350 * sysdeps/mach/hurd/setgid.c: Likewise.
7351 * sysdeps/mach/hurd/setreuid.c: Likewise.
7352 * sysdeps/mach/hurd/setregid.c: Likewise.
7353 * sysdeps/mach/hurd/setegid.c: Likewise.
7354 * sysdeps/mach/hurd/seteuid.c: Likewise.
7355
7356 * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7357 proc_dostop call to work around kernel paging bug.
7358
2114e10a
RM
7359Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
7360
7361 * stdio-common/vfscanf.c: Correctly handle white space skipping.
7362 * stdio-common/Makefile (tests): Add bug11.
7363 * stdio-common/bug11.c: New file.
7364
97532098
RM
7365Thu Dec 21 12:19:32 1995 Miles Bader <miles@gnu.ai.mit.edu>
7366
7367 * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7368 instead of putting it (and other uids) in the gids and leaving the
7369 old uids as is.
7370
8ef76445
RM
7371Wed Dec 20 18:23:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7372
7373 * stdio/internals.c (flushbuf): If the target is -1, always
7374 discard the buffer of read data.
7375 Only set TWIDDLED flag in !ALIGNED case.
7376 Never increment target or offset when old value is -1.
7377
f94a3574
RM
7378Tue Dec 19 17:00:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7379
7380 * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7381 pgrp changes.
7382
755f55b0
RM
7383Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7384
7385 * stdio/fread.c: Don't increment __offset when it's -1.
7386
7387 * elf/rtld.c (dl_main): Prepend tab to "statically linked". Exit
7388 0 in that case.
7389
7390 * misc/err.c (vwarnx, vwarn): Fix major brainos.
7391
7392 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7393 inheritance.
7394
8882961f
RM
7395Sun Dec 17 15:56:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
7396
7397 * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7398
102800e0
RM
7399Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7400
7401 * Makerules: Use $(do-install-so) for installing shared objects.
7402 (do-install-so): New canned sequence. Make a symlink LIB.so after
7403 installing LIB.so.VERSION.
7404
7405 * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7406
05be689b
RM
7407Fri Dec 15 04:41:22 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7408
7409 * stdio-common/Makefile (tests): Add bug10.
7410 * stdio-common/bug10.c: New file. From HJ Lu.
7411
7412 * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7413 status tells about successful run.
7414
7415 * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7416 format correctness.
7417 Correct handling of trailing white spaces in format + EOF.
7418
7419Fri Dec 15 01:31:56 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7420
7421 * stdio-common/Makefile (tests): Add bug8 and bug9.
7422 * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7423
7424 * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7425
7426 * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7427 Thanks to Jim Meyering.
7428
7429Sat Nov 25 06:05:12 1995 H.J. Lu <hjl@nynexst.com>
7430
7431 * stdio-common/vfscanf.c: Always check width !=0.
7432 Correctly handle %%.
4984f343 7433
faf92f2a
RM
7434Thu Dec 14 02:28:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7435
7436 * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7437 and cast STREAM to DIR * before passing to readdir and closedir.
7438
7439Wed Dec 13 22:06:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7440
7441 * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7442 after aborting RPCs but before calling proc_mark_stop.
7443
3be01400
RM
7444Mon Dec 11 20:07:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7445
7446 * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7447 (glob): Avoid using function as value.
7448
7449 * elf/rtld.c (dl_main): When mapping argument executable, set
7450 l_name to "", not l_libname.
7451 After loading DT_NEEDED library, set its l_type to lt_library.
7452
7453 * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7454 VM_INHERIT. We can't handle MAP_INHERIT easily.
7455 Handle non-page-aligned addresses if congruent to offset.
7456
7457 * elf/dl-init.c: Skip the initializer for l_type lt_executable
7458 with l_name "". Start at _dl_loaded; don't skip the first element.
7459
7460 * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7461 (MAP_COPY): Define to MAP_PRIVATE if undefined.
7462 (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7463 If file it ET_EXEC, set its l_type to lt_executable.
7464
25b86c05
RM
7465Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7466
7467 * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7468
787e4db9
RM
7469Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7470
7471 * locale/error.c, locale/error.h: Files removed.
7472 * locale/Makefile (distribute): Remove error.h.
7473 (lib-modules): Remove error.
7474
7475 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7476 magic, return ENXIO if no ctty.
7477
7478 * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7479 mapping if vm_map fails for that reason.
7480
7481 * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7482 GLOB_TILDE, GLOB_NOMAGIC.
7483 (glob): Use stat instead of lstat to determine directoriness.
7484 * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7485 New flag bits.
7486 (__GLOB_FLAGS): Include them.
7487 (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7488 gl_stat.
7489
7490 * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7491
7492 * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7493 define all the bit values.
7494 (MAP_*, MCL_*): Macros removed.
7495
c994299d
RM
7496Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7497
7498 * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7499 Updated from BIND 4.9.3-BETA27.
7500
7501Wed Dec 6 18:44:01 1995 Miles Bader <miles@gnu.ai.mit.edu>
7502
7503 * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7504
7505 * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7506 we get a delayed reply.
7507 Only grab values out of entries in TYPES that have SELECT_RETURNED
7508 turned on, and turn it on whenever an rpc returns.
7509 Only clear bits in the user's fdsets -- those needing to be set
7510 should be already.
7511 Use SELECT_ALL in appropiate places.
7512 (SELECT_RETURNED, SELECT_ALL): New macros.
7513
7514Wed Dec 6 09:10:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7515
7516 * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7517
7518 * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7519
edbba60a
RM
7520Tue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7521
7522 * misc/Makefile (headers): Add error.h, err.h.
7523 (routines): Add error, err.
7524 (gpl2lgpl): New variable.
7525 * misc/err.c: New file.
7526 * misc/err.h: New file.
7527 * misc/error.c, misc/error.h: New files.
7528
7529 * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7530
7531 * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7532 (link-libc): Append $(libc.so-version) to libc.so.
7533 (built-program-cmd): Fix comma usage.
7534 * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7535 symlink to libc.so in the build directory.
7536 * Rules ($(others) $(tests)): Depend on the library that appears
7537 in $(link-libc).
7538 (%.out): Use $(built-program-cmd) in commands.
7539
7540 * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7541
7542 * sysdeps/generic/setenv.c: Added canonical portability cruft.
7543 (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7544 (unsetenv): New function.
7545 * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7546 * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7547
77a58cad
RM
7548Tue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7549
edbba60a 7550 * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
77a58cad
RM
7551
7552 * libio/iofscanf.c: Remove file.
7553
7554 * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7555 termination.
7556
7557 * libio/iopopen.c: New file from GNU libio.
7558
7559 * libio/memstream.c: Fixed bug in fclose handling. Instead of
7560 providing a close callback we need a finish callback.
7561
7562 * libio/pclose.c: New file. Derived from popen.c in GNU libio.
7563
7564 * posix/gnu/types.h: Fixed typo.
7565
7566 * stdio-common/errnobug.c: fputs returns EOF in error case. Do
7567 not test for != 0.
7568
7569 * stdio-common/printf-parse.h (parse_one_spec): Do not force
7570 padding with ' ' if precision is given. Fix by HJ Lu.
7571
7572 * stdio-common/printf_fp.c: Fix comment.
7573
7574 * stdio-common/tfformat.c, stdio-common/tiformat.c,
7575 stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7576
7577 * stdio-common/tstgetln.c: Provide ssize_t type when testing
7578 libio.
7579
7580 * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7581 (vfprintf): Cleasr args_type array before using it.
7582 When printing 0 as an integer with precision 0 nothing must be
7583 written for the number.
7584 Based on patch by HJ Lu.
7585
7586 * stdio-common/vfscanf.c: Remove fixed input buffer. Now we
7587 have a dynamically extended buffer.
7588
7589 * stdlib/strtod.c: Merge with version in Linux libc. This fixes
7590 some bugs with handling of very small numbers and has different
7591 solution for formaer patches.
7592
7593 * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7594 macros r1 and r2 to t1, and t2 resp. This is necessary because
7595 glibc headers also define r1.
7596
b5a08c5a
RM
7597Mon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7598
7599 * stdlib/gen-mpn-copy (translations): Updated for new layout in
7600 GMP 1.910.
7601
7602 * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7603 made global.
7604 (malloc): Caller changed.
7605 * malloc/realloc.c (realloc): Call __malloc_initialize if
7606 necessary, before checking hook.
7607 * malloc/malloc.h: Declare __malloc_initialize.
7608
7609 * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7610 as integer_t arg in RPC.
7611
0fe4e552
RM
7612Sat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7613
683158e0
RM
7614 * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7615 (_hurd_set_brk): Try to allocate more space when we run out.
0fe4e552 7616
683158e0
RM
7617 * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7618 zero and examine it again.
7619 * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7620 * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7621 * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7622 * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
0fe4e552
RM
7623 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7624 Invoke this macro before calling DL_MAIN.
7625
7626 * malloc/malloc.c (malloc): Do initialization here, before
7627 checking the hook.
7628 (_malloc_internal): Don't do it here.
7629
b2518f55
RM
7630Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7631
7632 * libio/vsnprintf.c (__vsnprintf): Define as alias.
7633 * libio/iovsscanf.c (__vsscanf): Define as alias.
7634 * asprintf.c: Remove libio adaptation code added by drepper.
7635 * dprintf.c: Likewise.
7636 * printf.c: Likewise.
7637 * scanf.c: Likewise.
7638 * snprintf.c: Likewise.
7639 * sprintf.c: Likewise.
7640 * sscanf.c: Likewise.
7641 * vprintf.c: Likewise.
7642 * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7643 function.
7644 (vfscanf): Define unconditionally.
7645
7646 * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7647 zero for value.
7648
7649 * misc/getpass.c: Write a newline after reading the unechoed
7650 password.
7651
b7843ea9
RM
7652Mon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7653
7654 * posix/Makefile (routines): Add getsid.
7655 * sysdeps/unix/sysv/linux/getsid.S: New file.
7656 * sysdeps/mach/hurd/getsid.c: New file.
7657 * sysdeps/stub/getsid.c: New file.
7658 * posix/unistd.h [__USE_GNU]: Declare getsid.
7659
f45e34fc
RM
7660Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7661
7662 * libc-symbols.h (N_): New macro.
7663
cbd3dceb
RM
7664Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7665
7666 * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7667 malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7668 resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7669 sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7670 sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7671 sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7672 sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7673 sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7674 strings.
7675
fbaad149
RM
7676Sun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7677
7678 * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7679
7680Thu Nov 23 02:21:55 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7681
7682 * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7683 New files.
1ed0083c 7684 * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
fbaad149
RM
7685 mlock, munlock, mlockall, and munlockall.
7686
f4482045
RM
7687Thu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7688
7689 * configure.in (--enable-libio): Set $stdio based on $enableval,
7690 not always to libio.
7691
7692Thu Nov 23 18:06:48 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7693
7694 * malloc/malloc.c (_malloc_internal): Can't use
7695 get_contiguous_space when the heap info table
7696 will be growing. Account for new contiguous space in _heaplimit.
7697
42d2676e
RM
7698Wed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7699
7700 * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7701 for errno.
7702
7703 * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7704 alias for _IO_vfprintf.
7705
7706 * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7707
7708 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7709 __fpu_control instead of ___fpu_control.
7710 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7711 (___fpu_control): Renamed to __fpu_control.
7712 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7713 * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7714
7715 * elf/dl-minimal.c: New file.
7716 * elf/Makefile (rtld-routines): Add dl-minimal.
7717 * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7718 Functions moved to dl-minimal.c.
7719 * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7720 sigjmp_save, longjmp): Likewise.
7721
7722 * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7723 to &_end, regardless of PIC.
7724
7725 * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7726
1a3a58fd
RM
7727Tue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7728
7729 * malloc/malloc.c (align): Don't check contiguity and call abort.
7730
7731 * hurd/hurdsig.c (post_reply): Function removed.
7732 (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7733 Take single callback fn arg instead of reply port and type.
7734 (_hurd_internal_post_signal): Callers changed.
7735 Cache reply stub fn ptr in local var before UNTRACED might be changed.
7736
7737 * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7738 PROT_READ|PROT_WRITE copy mapping. Pass a proper vm_inherit_t to
7739 vm_map.
7740
7741 * elf/rtld.c (_dl_start): For --list, do output and exit before
7742 relocating.
7743
91c7b85d
RM
7744Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7745
7746 * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7747 get .c and .h files.
7748
7749 * malloc/malloc.c (align): Use abort instead of assert.
7750
054cc4cc
RM
7751Sun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7752
7753 * Makeconfig (+includes): Add $($(stdio)-include).
7754 (libio-include): New variable.
7755
7756 * stdlib/strtod.c: Put weak_symbol after function defn.
7757 * stdlib/strtol.c: Likewise.
7758
7759 * configure.in (--enable-libio): If not present, set $stdio to
7760 "default". Move stdio/libio check to end, so sysdeps fragments
7761 can affect it. Reset $stdio to "stdio" if it's "default".
7762 * sysdeps/unix/sysv/linux/configure: New file.
7763
96aa2d94
RM
7764Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7765
7766 * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7767 libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7768 libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7769 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7770 libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7771 libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7772 libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7773 libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7774 libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7775 libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7776 libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7777 libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7778 libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7779 libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7780 libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7781 New files. Slightly modified version from Linux libc.
7782
7783 * libio/memstream.c, libio/vdprintf.c: New files for functions not
7784 (yet) part of GNU libio.
7785
7786 * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7787 by Per Bothner.
7788
7789 * stdio-common/getline.c: Adapted to libio.
7790 * stdio-common/snprintf.c: Adapted to libio.
7791 * stdio-common/vfprintf.c: Adapted to libio.
7792 * stdio-common/vfscanf.c: Adapted to libio.
7793 * sysdeps/posix/tempname.c: Adapted to libio.
7794
a5a81fec
RM
7795Fri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7796
7797 * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7798
7799 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7800 function.
7801
7802 * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7803 (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7804 Insert send right for SIGEXC before thread_set_special_port.
7805 * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7806 (_hurdsig_init): Remove #if 0 from setting exception port.
7807
7808 * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7809 HURD_MSGPORT_RPC macro.
7810
4cb20290
RM
7811Thu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7812
7813 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7814 function.
7815 (_dl_sysdep_start): Move cleanup code there.
7816
7817 * Makeconfig (default-rpath): New variable.
7818 (link-libc): Use it.
7819 * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7820 * elf/rtld.c (_dl_rpath): New variable.
7821 (_dl_start): Set it from rtld_map's DT_RPATH.
7822 Call _dl_setup_hash on rtld_map.
7823 (dl_main): Cache address of _exit in variable before relocating,
7824 and use that in later calls. Call _dl_sysdep_start_cleanup before
7825 relocating. Keep track of dependency order while loading; remove
7826 rtld_map from chain, and reinsert in proper order if there is a
7827 dependency on it.
7828
7829 * sysdeps/generic/Makefile (make_siglist): Pass
7830 -DSIGNUM_H=... with config's signum.h location.
7831 * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7832 signal numbers.
7833 (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7834 (main): Deansideclize output.
7835
7836 * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7837 of DEFAULT_RPATH macro.
7838 * elf/Makefile: Undo last change.
7839
7840 * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7841
ec967c06
RM
7842Wed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7843
8738e7f8
RM
7844 * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7845 error if weak.
7846
7847 * elf/Makefile (default-rpath): New variable.
7848 (CPPFLAGS): Append -DDEFAULT_RPATH=....
7849 * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7850 hard-coded "/lib:/usr/lib".
7851
ec967c06
RM
7852 * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7853 instead of stdio.
7854 (_dl_sysdep_start): If passed user entry is zero and
7855 EXEC_STACK_ARGS flag set, reset user entry to &_start.
7856
7857 * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7858 DT_HASH element.
7859
7860 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7861 repeat weak decl using weak_symbol macro, in case using broken GCC
7862 (<2.8).
7863
7864Wed Nov 15 18:49:55 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7865
7866 * sysdeps/i386/isnanl.c: New file.
7867 * sysdeps/i386/isinfl.c: New file.
7868
2ede96c9
RM
7869Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7870
7871 * malloc/free.c (free): Moved null and aligned_blocks checks
7872 inside _free_internal.
7873
9199ec6e
RM
7874Mon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7875
7876 * malloc/malloc.c (morecore): Fix inverted test in allocating new
7877 info table.
7878
7879 * malloc/malloc.c (align): Fix assertion.
7880
7881 * malloc/malloc.c: Include assert.h.
7882
7883 * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7884
7885 * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7886 (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7887
75914335
RM
7888Fri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7889
accc07a9
RM
7890 * malloc/malloc.c (align): Assert that space for alignment
7891 adjustment is same original space.
7892
7893 * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7894 arg to vm_address_t.
7895
75914335
RM
7896 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7897 skip straight to pending check. When UNTRACED, resume process
7898 from suspension first.
7899
7900 * intl/Makefile (headers): New variable, libintl.h.
7901 [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7902 * configure.in: Check for --with-gettext arg.
7903
7904Fri Nov 10 13:51:30 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7905
7906 * malloc/malloc.c (get_contiguous_space): New function.
7907 (morecore): Rewrite allocating new malloc info table.
7908 (_malloc_internal): Use get_contiguous_space.
7909
7910Fri Nov 10 13:03:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7911
7912 * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7913 _hurd_msgport to be destroyed.
7914
7915 * Makerules (installed-libcs): Filter out %_pic.a.
7916
7917 * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7918 to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7919
7920 * hurd/Makefile (user-interfaces): Add hurd/process_request.
7921
d7435cd8
RM
7922Wed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7923
7924 * termios/Makefile (headers): Add sys/ttychars.h.
7925 * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7926 for compatibility.
7927
7928 * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7929
7930Wed Nov 8 15:12:47 1995 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7931
7932 * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7933 proc server that we are now traced.
7934
86d2c878
RM
7935Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7936
094bacdb
RM
7937 * elf/Makefile (ldd): Make it executable.
7938
7939 * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7940
7941 * Makeconfig (slibdir): New variable.
7942 * Makerules (install): Install libc.so in $(slibdir).
7943 * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7944 in $(slibdir).
7945
86d2c878
RM
7946 * elf/linux-compat.c: New file.
7947 * elf/Makefile (distribute): Add linux-compat.c.
7948 (generated): Add librtld.so.
7949 [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
7950 [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
7951 (librtld.so): New target.
7952 (ld.so, ld-linux.so.1): Make from librtld.so.
7953
7954 * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
7955 call our own DT_INIT if we have one (and then clear it).
7956 (__dgettext): New weak function.
7957
7958 * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
7959 by hand instead.
7960
7961 * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
7962 instead of snprintf.
7963
7964 * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
7965 BUF[BUFLEN].
7966
7967 * elf/rtld.c (rtld_map): New static variable.
7968 (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
7969 bootstrapping. Then copy data into `rtld_map'.
7970 (dl_main): Finish filling in rtld_map and link it into the chain,
7971 instead of allocating a new structure.
7972 (dl_main): Call _dl_compat_init if it is defined (use weak ref).
7973
7974 * elf/dlsym.c: Fix last change: move REF out of `doit'.
7975
51093422
RM
7976Mon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7977
7978 * elf/dlsym.c: Return the proper value, not just the defining
7979 object's loadbase.
7980
e380bf62
RM
7981Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7982
f797c383
RM
7983 * stdio-common/vfprintf.c (%c): Count the character itself towards
7984 the field width in all cases.
7985
e380bf62
RM
7986 * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
7987 __vm_deallocate arg to vm_address_t.
7988
853f0eea
RM
7989Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7990
7991 * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
7992 socket_create_address.
7993 * sysdeps/mach/hurd/connect.c: Likewise.
7994 * sysdeps/mach/hurd/bind.c: Likewise.
7995
7996 * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
7997 args to proc_getprocinfo.
7998 * sysdeps/mach/hurd/getpriority.c: Likewise.
7999
8000 * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
8001
27cc33c3
RM
8002Thu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8003
8004 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
8005
3bbceb12
RM
8006Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8007
80b55d32
RM
8008 * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
8009 PI_FETCH_TASKINFO to proc_getprocinfo and through
8010 _hurd_priority_which_map.
8011
8012 * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
8013 _hurd_priority_which_map.
8014 * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
8015 passed through to proc_getprocinfo RPC.
8016 * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
8017
3bbceb12
RM
8018 * sysdeps/mach/hurd/group_member.c: New file.
8019 * sysdeps/generic/group_member.c: New file.
8020
8021 * Makerules (lib-noranlib): Don't depend on $(install-lib).
8022 (others): Do.
8023 * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
8024
8025Mon Oct 30 12:33:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8026
8027 * Rules (others): Depend on $(extra-objs).
8028
8029 * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
8030 * posix/Makefile (routines): Add group_member.
8031
8032 * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
8033
8034 * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
8035 SIG operand in asm so it must be a register.
8036 Add dead return to quiet gcc warning.
8037
8038 * Makerules (sysd-rules): Write a defn for sysd-rules-done.
8039 [! sysd-rules-done]: Inhibit deps.
8040
3e2ee727
RM
8041Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8042
8043 * sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use
8044 simulation of system call using select.
8045
8046 * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
8047
8048 * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
8049
8050 * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
8051 name usage (new->act, old->oact).
8052 Correct asm statement because of gcc strangeness.
86d2c878 8053
3e2ee727
RM
8054 * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
8055
8056 * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They
8057 conflict with the ones in stdio.h.
8058
8059 * string/tester.c: %Z is no complete format. Change to %Zd.
8060
f094496c
RM
8061Thu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu>
8062
8063 * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
8064 * sysdeps/mach/hurd/link.c (__link): Ditto.
3e2ee727 8065 * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
f094496c
RM
8066 * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
8067 Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
8068
efc755b2
RM
8069Thu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8070
8071 * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
8072
8073 * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
8074 on syscall_error. For PIC, it is a local label;
8075 for non-PIC, JUMPTARGET expands to the unadorned name anyway.
8076 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8077 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8078 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8079 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8080 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8081 * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
8082
41334987
RM
8083Thu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8084
8085 * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
8086 comment to the necessary ones. Add _readv and _writev.
8087
8088 * sysdeps/unix/configure.in: Change syntax for system call test
8089 candidates and adapt sed script for this. Now use : to separate
8090 syscall name and file name.
8091
8092 * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
8093 number is now set is DO_CALL. So call with additional argument.
8094 (DO_CALL): Takes an additional argument. Load system call
8095 number according to new argument.
8096 (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
8097 * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
8098 locally using SYSCALL_ERROR_HANDLER macro.
8099 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8100 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8101 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8102 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8103 * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
8104 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8105 Don't use DO_CALL macro; instead use lower level macros for better
86d2c878 8106 control.
41334987
RM
8107
8108 * sysdeps/unix/sysv/linux/sigaction.h: New file.
8109 * sysdeps/unix/sysv/linux/sigaction.S: File removed.
8110 * sysdeps/unix/sysv/linux/signal.S: File removed.
8111
ff9bef7f
RM
8112Wed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8113
c14e4c32
RM
8114 * hurd/hurdstartup.c (_hurd_startup): Use new
8115 exec_startup_get_info RPC from exec_startup.defs
8116 in place of old exec_startup from exec.defs. Remove kludge to
8117 guess user entry and phdr locations, since the new RPC gives us
8118 that info.
8119
f44f9c33 8120 * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
c14e4c32 8121 * sysdeps/generic/_strerror.c: Undo last change.
f44f9c33 8122
ff9bef7f
RM
8123 * sysdeps/unix/sysv/linux/stat.c: New file.
8124 * sysdeps/unix/sysv/linux/fstat.c: New file.
8125 * sysdeps/unix/sysv/linux/lstat.c: New file.
8126 * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
8127 * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
8128 * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
8129
21ee7166
RM
8130Tue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8131
03a75825
RM
8132 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8133 New macro.
8134 (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
8135
8136 * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
8137 only #ifndef PIC.
8138
8139 * Makeconfig (built-program-cmd): New variable.
8140 * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
8141 * time/Makefile (zic-cmd): Likewise.
8142
8143 * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
8144
e97ec51d
RM
8145 * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
8146 * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
8147 make `others' rather than `lib-noranlib' depend on the libraries.
8148
21ee7166
RM
8149 * sysdeps/unix/configure.in: Check for fchdir syscall.
8150 Improve sed script to allow / on rhs without / on lhs.
8151
8152Thu Oct 19 03:47:32 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8153
8154 * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
8155
8156 * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
8157
8158 * sysdeps/unix/sysv/linux/select.S: New file.
8159
4d049a8b
RM
8160Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8161
1d234146
RM
8162 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
8163 SYSCALL_PIC_SETUP before jumping to syscall_error.
8164 * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
8165 (PSEUDO): Use it before jumping to syscall_error.
8166 * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
8167 expect it in %ebx on entry. Pop old %ebx value off stack after
86d2c878 8168 using it.
1d234146 8169
580c1888
RM
8170 * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
8171 them.
8172
4d049a8b
RM
8173 * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
8174
8175 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
8176 `fd/', pass the right pointer to strtol to parse the number.
8177
cabcc273
RM
8178Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8179
8180 * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
8181 of stdio/_itoa.h.
8182
8183Tue Oct 17 19:51:17 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8184
8185 * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
8186 register %ebx before calling __xstat through PLT.
8187
8188 * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
8189
8190 * sysdeps/unix/sysv/linux/sigset.h: Remove file.
8191
b3a59f40
RM
8192Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8193
cabcc273
RM
8194 * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
8195 stdio/_itoa.h.
8196 * hurd/hurdlookup.c: Likewise.
86d2c878 8197
f2149f69
RM
8198 * hurd/hurd/signal.h: Declare hurd_preempt_signals and
8199 hurd_unpreempt_signals.
8200
8201 * stdio/stdio.h: Declare __snprintf and __vsnprintf.
8202
b3a59f40
RM
8203 * stdio-common/psignal.c: Translate signal description strings.
8204 * string/strsignal.c: Likewise.
8205 * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8206 error strings.
8207 * sysdeps/mach/_strerror.c: Likewise.
8208
8209 * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8210 call __vsnprintf.
8211 (snprintf): Define as weak alias.
8212 * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8213 (vsnprintf): Define as weak alias.
8214
924b9ff6
RM
8215Mon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8216
0700dfa1
RM
8217 * Makerules (install-lib): Filter out %_pic.a; install only the
8218 linked shared objects.
8219
cb2f05ed
RM
8220 * locale/Makefile (aux): Add SYS_libc.
8221 * locale/SYS_libc.c: New file.
b3a59f40 8222 * libc-symbols.h [! ASSEMBLER] (_): New macro.
cb2f05ed
RM
8223
8224 * configure.in (libc_cv_asm_set_directive): Link program into
8225 conftest instead of letting it default to a.out.
8226
d17e960c
RM
8227 * elf/Makefile (install-others): Add missing slash.
8228
8229 * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8230 won't search LD_LIBRARY_PATH.
8231
deab9dea
RM
8232 * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8233 * configure.in: Grok arg --enable-libio.
8234 ($stdio = libio): Define USE_IN_LIBIO.
8235 * config.h.in (USE_IN_LIBIO): Add #undef.
8236 * config.make.in (stdio): New variable, set by configure.
8237 * Makeconfig (stdio): New variable.
8238 * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8239 stdio/stdio.h.
8240 * stdio-common/Makefile: New file.
8241 * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8242 * stdio/_itoa.c: Moved to stdio-common.
8243 * stdio/_itoa.h: Moved to stdio-common.
8244 * stdio/asprintf.c: Moved to stdio-common.
8245 * stdio/bug1.c: Moved to stdio-common.
8246 * stdio/bug1.input: Moved to stdio-common.
8247 * stdio/bug2.c: Moved to stdio-common.
8248 * stdio/bug3.c: Moved to stdio-common.
8249 * stdio/bug4.c: Moved to stdio-common.
8250 * stdio/bug5.c: Moved to stdio-common.
8251 * stdio/bug6.c: Moved to stdio-common.
8252 * stdio/bug6.input: Moved to stdio-common.
8253 * stdio/bug7.c: Moved to stdio-common.
8254 * stdio/dprintf.c: Moved to stdio-common.
8255 * stdio/errnobug.c: Moved to stdio-common.
8256 * stdio/getline.c: Moved to stdio-common.
8257 * stdio/getw.c: Moved to stdio-common.
8258 * stdio/perror.c: Moved to stdio-common.
8259 * stdio/printf-parse.h: Moved to stdio-common.
8260 * stdio/printf-prs.c: Moved to stdio-common.
8261 * stdio/printf.c: Moved to stdio-common.
8262 * stdio/printf.h: Moved to stdio-common.
8263 * stdio/printf_fp.c: Moved to stdio-common.
8264 * stdio/psignal.c: Moved to stdio-common.
8265 * stdio/putw.c: Moved to stdio-common.
8266 * stdio/reg-printf.c: Moved to stdio-common.
8267 * stdio/scanf.c: Moved to stdio-common.
8268 * stdio/snprintf.c: Moved to stdio-common.
8269 * stdio/sprintf.c: Moved to stdio-common.
8270 * stdio/sscanf.c: Moved to stdio-common.
8271 * stdio/tempnam.c: Moved to stdio-common.
8272 * stdio/temptest.c: Moved to stdio-common.
8273 * stdio/test-fseek.c: Moved to stdio-common.
8274 * stdio/test-fwrite.c: Moved to stdio-common.
8275 * stdio/test-popen.c: Moved to stdio-common.
8276 * stdio/test_rdwr.c: Moved to stdio-common.
8277 * stdio/tmpfile.c: Moved to stdio-common.
8278 * stdio/tmpnam.c: Moved to stdio-common.
8279 * stdio/tst-fileno.c: Moved to stdio-common.
8280 * stdio/tst-printf.c: Moved to stdio-common.
8281 * stdio/tstgetln.c: Moved to stdio-common.
8282 * stdio/tstgetln.input: Moved to stdio-common.
8283 * stdio/tstscanf.c: Moved to stdio-common.
8284 * stdio/tstscanf.input: Moved to stdio-common.
8285 * stdio/vfprintf.c: Moved to stdio-common.
8286 * stdio/vfscanf.c: Moved to stdio-common.
8287 * stdio/vprintf.c: Moved to stdio-common.
8288 * stdio/xbug.c: Moved to stdio-common.
8289 * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8290 stdio-common instead of stdio.
8291 * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8292 * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8293 function.
8294 * stdio-common/dprintf.c: Likewise.
8295 * stdio-common/printf.c: Likewise.
8296 * stdio-common/scanf.c: Likewise.
8297 * stdio-common/snprintf.c: Likewise.
8298 * stdio-common/sprintf.c: Likewise.
8299 * stdio-common/sscanf.c: Likewise.
8300 * stdio-common/vprintf.c: Likewise.
8301
8302 * Makerules: Include $(+depfiles) directly instead of generating
8303 depend-$(subdir).
8304 (depend-$(subdir)): Target removed.
8305 (common-clean): Don't remove depend-$(subdir).
8306
32a392b6
RM
8307 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8308 (config-LDFLAGS): Variable removed.
8309
924b9ff6
RM
8310 * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8311 * sysdeps/mach/hurd/bind.c: Likewise.
8312 * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8313 calling convention.
8314
8315 * hurd/hurdexec.c: Undo last change (10 Oct 95).
8316
6cab5056
RM
8317Sun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8318
2948fc64
RM
8319 * hurd/hurd/lookup.h: New file.
8320 * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8321 (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8322 __hurd_file_name_split): Rewritten to take callback functions for
8323 using any needed init or dtable port, instead of passing in crdir
86d2c878 8324 and cwdir ports.
2948fc64
RM
8325 (__file_name_lookup, __file_name_split): Use new calling
8326 convention; pass _hurd_ports_use and __getdport as the callback
86d2c878 8327 functions.
2948fc64
RM
8328
8329 * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8330 of __hurd_file_name_lookup.
8331 * sysdeps/mach/hurd/chdir.c: Likewise.
8332 * sysdeps/mach/hurd/fchdir.c: Likewise.
8333 * hurd/fchroot.c: Likewise.
8334
6cab5056
RM
8335 * stdlib/Makefile (mpn-found): Don't omit %.s.
8336 (mpn-copy-sysdep): Omit files in nonexistent directories.
8337 (copy-mpn): Commit files to CVS.
8338 * stdlib/gen-mpn-copy (translations): Update translations for GMP
8339 1.906.7.
8340
8341 * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8342
8f5ca04b
RM
8343Sat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8344
8345 * malloc/malloc.c (_malloc_internal): Performance fix. Move
8346 if statement out of loop.
8347
8348 * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite. Much faster
8349 implementation using GMP functions. Contributed by
8350 Torbjorn Granlund and Ulrich Drepper.
8351
8352 * stdio/test_rdwr.c: Include <errno.h>.
8353
8354 * sysdeps/i386/i586/Implies: New file.
8355
8356 New highly optimized string functions for i[345]86.
8357 * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8358 * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8359 * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8360 * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8361 * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8362 * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8363 * sysdeps/i386/i586/strlen.S: New file.
8364 * sysdeps/i386/memchr.c: Removed. There is now an assembler version.
8365
8366 * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8367 not correspond to used values.
8368
8369 * sysdeps/unix/sysv/linux/nfs/nfs.h: New file. Simply a wrapper
8370 around a kernel header file.
8371 * sysdeps/unix/sysv/linux/Dist: Add it.
8372 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8373 Likewise.
8374
8375 * sysdeps/unix/sysv/linux/local_lim.h: Rewrite. Instead of
8376 defining ourself we use a kernel header file.
8377
8378 * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8379 call handler for i586.
8380
8381 * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8382
6cab5056
RM
8383Thu Oct 12 15:45:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8384
8385 * hurd/hurd.h (file_name_lookup_under): Declare it.
8386 * hurd/Makefile (headers): Add hurd/lookup.h.
8387
8388 * hurd/hurdinit.c (_hurd_ports_use): New function.
8389 * hurd/hurd.h (_hurd_ports_use): Declare it.
8390 (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8391 hurd_file_name_lookup_retry): Remove these decls.
8392 * hurd/Makefile (routines): Remove invoke-trans.
8393
db65048b
RM
8394Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8395
5d82cf5c
RM
8396 * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8397 apply R_386_PC32 reloc.
8398
db65048b
RM
8399 * Makeconfig (config-LDFLAGS): Add missing slash.
8400
8401 * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8402 update_waiter if profiling was enabled in the parent.
8403
8404 * csu/initfini.c: Don't pass -f flag to cp.
8405
8e3cc80f
RM
8406Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8407
8408 * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8409 (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8410 * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8411 (link-libc): Pass -rpath and -rpath-link options.
8412
8413 * MakeTAGS (all-dirs): Omit CVS directories.
8414 Specify vpath directives to find source files in $(all-dirs).
8415 (sources, headers): Append sources and headers from $(all-dist) to
86d2c878 8416 these.
8e3cc80f
RM
8417 (all-dist): Filter them out of this.
8418 (all-headers, all-sources): Use $(shell find ...) instead of
8419 $(wildcard ...).
8420
8421 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8422 -rpath-link.
8423
8424 * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8425
8426 * elf/Makefile (install-others): Add missing $.
8427
b122c703
RM
8428Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8429
8e3cc80f
RM
8430 * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8431
b122c703
RM
8432 * Makeconfig (config-LDFLAGS): Define to
8433 -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8434 (rtld-installed-name): New variable.
8435 * elf/Makefile (install-lib): Variable removed.
8436 (install-others): Define this instead, to
86d2c878 8437 $(libdir)(rtld-installed-name).
b122c703
RM
8438 ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8439
8440 * elf/ldd.sh.in: New file.
8441 * elf/Makefile (distribute): Add ldd.sh.in.
8442 (install-bin): Add ldd.
8443 ($(objpfx)ldd: ldd.sh.in): New rule.
8444
8445 * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8446 * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8447 Translate some Mach errors to Hurd errors.
8448
8449 * elf/rtld.c (dl_main): Under --list, print msg if executable is
8450 statically linked.
8451
8452 * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8453 table processing.
8454
8455Sat Oct 7 01:25:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8456
8457 * sysdeps/stub/machine-gmon.h: Add #error.
8458
8459Fri Oct 6 01:49:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8460
8461 * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8462 examine it.
8463
80fd7387
RM
8464Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
8465
8466 Rewrite mktime from scratch for performance, and for correctness
8467 in the presence of leap seconds.
8468
8469 * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8470 New functions.
8471 (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8472 TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8473 <limits.h>, <stdlib.h>: New #includes.
8474 (main): Support tests with given broken-down value; support benchmarks.
8475 (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8476 do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8477 <ctype.h>): Remove.
8478
8479 * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8480 * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8481
8482 * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8483 time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
86d2c878 8484
80fd7387
RM
8485 * time/offtime.c (__offtime): Remove useless assignment
8486 `tp->tm_isdst = -1'.
8487
8488 * manual/maint.texi: Update credits.
8489
8490Fri Oct 6 00:28:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8491
8492 * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8493 * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8494 * sysdeps/unix/sysv/linux/readv.c: File removed.
8495 * sysdeps/unix/sysv/linux/writev.c: File removed.
8496 * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8497
8498 * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8499 set it to $unix_syscall instead of $unix_function.
8500
6a76c115
RM
8501Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8502
8503 * elf/rtld.c (dl_main): Grok --list flag.
8504 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8505
5f770861
RM
8506Wed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8507
6a76c115
RM
8508 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8509 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8510 * elf/link.h (_dl_sysdep_message): Declare it.
8511
57aefafe
RM
8512 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8513 the list.
8514
8515 * time/northamerica: Corrections to Canada data from ADO 95i.
8516
8517 * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8518 unconditionally. In socket subdir, append sys/socketcall.h; in
8519 time subdir, append sys/timex.h.
8520 (config-LDFLAGS): New variable.
8521 * sysdeps/unix/sysv/linux/Dist: New file.
8522 * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8523
5f770861
RM
8524 * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8525
8526 * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8527
41cfadd6
RM
8528Sat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8529
879bf2e6
RM
8530 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8531 kernel with args on stack, point _dl_hurd_data at zero data
8532 instead of garbage. When ld.so run as program, grok args
8533 -LIB=MEMOBJ and pre-load shared object files found in memory
8534 objects loaded by the boot loader.
8535
8536 * elf/link.h (struct link_map): New member `l_entry'.
8537 (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8538 * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8539 last arg ENTRY_POINT. Store the entry point location in the
8540 `l_entry' member of the new map.
8541 * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8542 _dl_map_object. When run as program, set *USER_ENTRY to L->l_entry.
8543 * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8544 _dl_map_object.
8545
41cfadd6
RM
8546 * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8547
8548 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8549 restore %ebx by hand for personality syscall.
8550 GCC cannot deal with spilling the dedicated GOT register.
8551
8552 * misc/Makefile (routines): Add mntent, which was somehow omitted.
8553
8554Fri Sep 29 15:07:10 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8555
8556 * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8557 Change name of field `mode' in `struct timex' to `modes'.
8558 Linux-1.3.28 updates this name according to RFC 1489.
8559
24906b43
RM
8560Thu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8561
8562 Merge new message handling code from GNU gettext, by Drepper.
8563 * intl: New directory.
8564 * Makefile (subdirs): Add intl.
8565
8566 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8567 USER_ENTRY instead of storing it on our stack.
8568
8569 * elf/rtld.c (rtld_command): Variable removed.
8570 (_dl_skip_args): New variable.
8571 (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8572 If the link_map for the executable itself is not first in the chain,
8573 make it so.
8574 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8575 count of args to skip.
8576
8577Thu Sep 28 09:20:04 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8578
8579 * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
86d2c878
RM
8580 leading zeroes.
8581
ea03559a
RM
8582Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8583
3ec41e03
RM
8584 * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8585 (getcwd): Define as weak alias.
8586 * sysdeps/posix/getcwd.c: Likewise.
8587 * sysdeps/stub/getcwd.c: Likewise.
8588 * posix/unistd.h: Declare __getcwd.
8589
8590 * string/string.h: Declare __strcasecmp.
8591 * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8592 strcasecmp.
8593 (strcasecmp): Define as weak alias.
8594
8595 * string/string.h: Declare __stpcpy.
8596 * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8597 (stpcpy): Define as weak alias.
8598
f94f8067
RM
8599 * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8600
3f33a4ce
RM
8601 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8602 Don't use `type' for arg name, since we are using it as a keyword
86d2c878 8603 in the rhs.
3f33a4ce
RM
8604
8605 * sysdeps/unix/configure.in: Check for syscalls getpriority,
8606 setpriority, getrlimit, setrlimit.
8607
8608 * sysdeps/posix/truncate.c: Include fcntl.h.
8609
8610 * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8611
8612 * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8613 use new stub_warning syntax.
8614 * sysdeps/stub/setpriority.c: Likewise.
8615 * sysdeps/stub/__longjmp.c: Likewise.
8616 * sysdeps/stub/_exit.c: Likewise.
8617 * sysdeps/stub/accept.c: Likewise.
8618 * sysdeps/stub/acos.c: Likewise.
8619 * sysdeps/stub/alarm.c: Likewise.
8620 * sysdeps/stub/asin.c: Likewise.
8621 * sysdeps/stub/atan2.c: Likewise.
8622 * sysdeps/stub/bind.c: Likewise.
8623 * sysdeps/stub/cbrt.c: Likewise.
8624 * sysdeps/stub/chroot.c: Likewise.
8625 * sysdeps/stub/closedir.c: Likewise.
8626 * sysdeps/stub/connect.c: Likewise.
8627 * sysdeps/stub/cos.c: Likewise.
8628 * sysdeps/stub/cosh.c: Likewise.
8629 * sysdeps/stub/ctermid.c: Likewise.
8630 * sysdeps/stub/cuserid.c: Likewise.
8631 * sysdeps/stub/defs.c: Likewise.
8632 * sysdeps/stub/exp.c: Likewise.
8633 * sysdeps/stub/fmod.c: Likewise.
8634 * sysdeps/stub/frexp.c: Likewise.
8635 * sysdeps/stub/fsync.c: Likewise.
8636 * sysdeps/stub/getcwd.c: Likewise.
8637 * sysdeps/stub/getenv.c: Likewise.
8638 * sysdeps/stub/gethostid.c: Likewise.
8639 * sysdeps/stub/getlogin.c: Likewise.
8640 * sysdeps/stub/getpeername.c: Likewise.
8641 * sysdeps/stub/getrlimit.c: Likewise.
8642 * sysdeps/stub/getsockname.c: Likewise.
8643 * sysdeps/stub/getsockopt.c: Likewise.
8644 * sysdeps/stub/listen.c: Likewise.
8645 * sysdeps/stub/log.c: Likewise.
8646 * sysdeps/stub/log10.c: Likewise.
8647 * sysdeps/stub/mkfifo.c: Likewise.
8648 * sysdeps/stub/morecore.c: Likewise.
8649 * sysdeps/stub/nice.c: Likewise.
8650 * sysdeps/stub/nlist.c: Likewise.
8651 * sysdeps/stub/opendir.c: Likewise.
8652 * sysdeps/stub/pipestream.c: Likewise.
8653 * sysdeps/stub/ptrace.c: Likewise.
8654 * sysdeps/stub/putenv.c: Likewise.
8655 * sysdeps/stub/readdir.c: Likewise.
8656 * sysdeps/stub/reboot.c: Likewise.
8657 * sysdeps/stub/recv.c: Likewise.
8658 * sysdeps/stub/recvfrom.c: Likewise.
8659 * sysdeps/stub/rename.c: Likewise.
8660 * sysdeps/stub/rewinddir.c: Likewise.
8661 * sysdeps/stub/seekdir.c: Likewise.
8662 * sysdeps/stub/send.c: Likewise.
8663 * sysdeps/stub/sendto.c: Likewise.
8664 * sysdeps/stub/setegid.c: Likewise.
8665 * sysdeps/stub/seteuid.c: Likewise.
8666 * sysdeps/stub/setgroups.c: Likewise.
8667 * sysdeps/stub/sethostid.c: Likewise.
8668 * sysdeps/stub/sethostname.c: Likewise.
8669 * sysdeps/stub/setjmp.c: Likewise.
8670 * sysdeps/stub/setrlimit.c: Likewise.
8671 * sysdeps/stub/setsockopt.c: Likewise.
8672 * sysdeps/stub/shutdown.c: Likewise.
8673 * sysdeps/stub/signal.c: Likewise.
8674 * sysdeps/stub/sigsuspend.c: Likewise.
8675 * sysdeps/stub/sin.c: Likewise.
8676 * sysdeps/stub/sinh.c: Likewise.
8677 * sysdeps/stub/socket.c: Likewise.
8678 * sysdeps/stub/socketpair.c: Likewise.
8679 * sysdeps/stub/sqrt.c: Likewise.
8680 * sysdeps/stub/sync.c: Likewise.
3f33a4ce
RM
8681 * sysdeps/stub/system.c: Likewise.
8682 * sysdeps/stub/tan.c: Likewise.
8683 * sysdeps/stub/tanh.c: Likewise.
8684 * sysdeps/stub/tcdrain.c: Likewise.
8685 * sysdeps/stub/tcflow.c: Likewise.
8686 * sysdeps/stub/tcgetpgrp.c: Likewise.
8687 * sysdeps/stub/tcsendbrk.c: Likewise.
8688 * sysdeps/stub/tcsetattr.c: Likewise.
8689 * sysdeps/stub/tcsetpgrp.c: Likewise.
8690 * sysdeps/stub/telldir.c: Likewise.
8691 * sysdeps/stub/tempname.c: Likewise.
8692 * sysdeps/stub/ttyname.c: Likewise.
8693 * sysdeps/stub/ttyname_r.c: Likewise.
8694 * sysdeps/stub/utime.c: Likewise.
8695
8696 * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8697
8698 * time/mktime.c (localtime_r): Use 0 instead of NULL.
8699
ea03559a
RM
8700 * config.make.in (AS): New variable; set to `$(CC) -c'.
8701
8702 * posix/unistd.h [__USE_BSD]: Declare profil.
8703
8704 * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8705 of _dl_map_object.
8706 (_dl_map_object): Call it.
8707 * elf/link.h (_dl_map_object_from_fd): Declare it.
8708
11c981a9
RM
8709Tue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8710
c709e372
RM
8711 * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8712 gettext code.
8713
8714 * sysdeps/unix/sysv/linux/sys/param.h: New file.
8715 * sysdeps/unix/sysv/linux/Subdirs: File removed.
8716
8717 * libc-symbols.h (_LIBC): Define to 1, not just empty.
8718
11c981a9
RM
8719 * gmon: New directory of profiling code, incorporated from
8720 4.4BSD-Lite and modified.
8721 * sysdeps/i386/machine-gmon.h: New file.
8722 * sysdeps/stub/machine-gmon.h: New file.
8723 * sysdeps/mach/hurd/profil.c: New file.
8724 * sysdeps/stub/profil.c: New file.
8725 * sysdeps/unix/bsd/profil.S: New file.
8726 * Makefile (subdirs): Add gmon.
8727 * csu/gmon-start.c: New file.
8728 * csu/Makefile (extra-objs): Add gmon-start.o,
8729 g$(start-installed-name).
8730 (install-lib, omit-deps): Add g$(start-installed-name).
8731 ($(objpfx)g$(start-installed-name)): New target.
8732
969705cc
RM
8733Fri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8734
8735 * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8736 time being.
8737
0324daa0
RM
8738Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8739
969705cc
RM
8740 * sysdeps/unix/configure.in: Check for `profil' syscall.
8741
c12d1df0
RM
8742 * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8743 removed.
8744
a5570f62
RM
8745 * time/africa, time/asia, time/europe, time/northamerica,
8746 time/yearistype: New data from ADO 95h.
8747
193bd2ce
RM
8748 * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8749 $(notdir $*), so it wins for the explicit libc.so rule as well as the
86d2c878 8750 pattern rule.
10b40b11 8751
0324daa0
RM
8752 * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8753
8754 * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8755 __libc_global_ctors.
8756 * sysdeps/i386/init-first.c: Rewritten.
8757 * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8758 * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8759
8760 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8761 ___fpu_control.
8762
8763 * Makerules (build-shlib): New canned sequence, broken out of
8764 lib%.so rule. Link in $^ instead of just $<.
8765 (lib%.so: lib%_pic.a): Use it.
8766 (libc.so): New target; use $(build-shlib) for cmds, but also depend
8767 on soinit.so first and sofini.so last.
8768
8769 * elf/soinit.c: New file.
8770 * elf/sofini.c: New file.
8771 * elf/Makefile (distribute): Add soinit.c and sofini.c.
8772 (extra-objs): Add soinit.so and sofini.so.
8773
8774 * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8775 * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8776
8777 * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8778 dynamically allocate buffers.
8779
8780 * Makerules (install-lib-nosubdir): Make this, rather than
8781 install-no-libc.a, depend on the installed shared libraries.
8782
60092701
RM
8783Wed Sep 20 18:02:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8784
8785 * locale/locale.c: Include errno.h.
8786 * locale/localedef.c: Likewise.
8787
8788Tue Sep 19 00:02:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8789
8790 * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8791 (parent-mostlyclean): Remove all flavors of the parent library.
8792
8793 * misc/mntent.c (getmntent): Skip multiple whitespace chars
8794 between fields.
8795
8796 * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8797 EXEC_STACK_ARGS flag, get args from stack.
8798 If args on stack but have info from RPC, relocate args on stack to make
8799 space for struct hurd_startup_data.
8800
bf40c56f
RM
8801Mon Sep 18 15:06:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8802
60092701
RM
8803 * elf/dl-object.c: Include errno.h.
8804 * posix/execvp.c: Likewise.
8805 * dirent/scandir.c: Likewise.
8806 * sysdeps/posix/system.c: Likewise.
8807 * sysdeps/generic/setenv.c: Likewise.
8808 * stdlib/msort.c: Likewise.
8809 * stdio/memstream.c: Likewise.
8810 * stdio/fclose.c: Likewise.
8811 * stdio/getdelim.c: Likewise.
8812 * stdio/setvbuf.c: Likewise.
8813 * sysdeps/ieee754/ldexp.c: Likewise.
8814 * locale/locfile-parse.c: Likewise.
8815
8816 * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8817 * stdlib/seed48_r.c: Likewise.
8818 * stdlib/srand48_r.c: Likewise.
8819 * stdlib/jrand48_r.c: Likewise.
8820 * stdlib/nrand48_r.c: Likewise.
8821
bf40c56f
RM
8822 * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8823 to be useless.
8824
c2216480
RM
8825Mon Sep 18 12:39:22 1995 Paul Eggert <eggert@twinsun.com>
8826
8827 * mktime.c (localtime_r): Add substitute if the system doesn't
8828 provide one.
8829
8830Mon Sep 18 14:39:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8831
8832 * time/gmtime.c (gmtime_r): Define as weak alias.
8833 * time/localtime.c (localtime_r): Define as weak alias.
8834 * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8835
8836 * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8837 #undef __need_Emath after including errnos.h.
8838 [_ERRNO_H]: Protect decls with this.
8839
8840Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
8841
8842 Fix mktime so that it does not write over localtime's returned value.
8843 * localtime.c (__localtime_r): New function, with extra arg
8844 specifying where to store result.
8845 (localtime): Use it.
8846 (_tmbuf): New var.
8847 * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8848 * mktime.c (__mktime_internal): Conversion function is now
8849 __localtime_r style, not localtime style.
8850 (mktime): Pass __localtime_r, not localtime.
8851 * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8852 * offtime.c (__offtime): New arg specifying where to store result.
8853 * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8854 (__gmtime_r, __localtime_r): New decls.
8855
8856 * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8857 <stdlib.h>, <string.h>: Remove includes.
8858 <errno.h>: Add include.
8859
8860 * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8861 Renamed from _mktime_internal to avoid namespace pollution.
8862
8863 * time/gmtime.c: Clear tm_isdst.
8864
aa910907
RM
8865Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8866
c2216480
RM
8867 * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8868 * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8869 size_t.
8870
8871 * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8872 __file_pathconf.
8873 * sysdeps/mach/hurd/pathconf.c: Likewise.
8874
aa910907
RM
8875 * Makefile (subdirs): Add sysvipc.
8876
8877 * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8878 * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8879
e537c55e
RM
8880Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8881
aa910907
RM
8882 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8883 __file_set_size instead of __file_truncate.
8884
8885 * features.h (__USE_REENTRANT): New macro.
8886
e537c55e
RM
8887 * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8888 __file_truncate.
8889 * sysdeps/mach/hurd/ftruncate.c: Likewise.
8890
8891 * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8892
60478656
RM
8893Sat Sep 16 17:47:19 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8894
8895 * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8896
8897 * misc/efgvt_r.c: New file. Reentrant version of [efg]cvt functions.
8898 * misc/efgcvt.c: Rewrite to use reentrant functions.
60092701 8899 * misc/search.h: Many decls for hsearch functions.
60478656
RM
8900 * misc/hsearch_r.c: New file. Reentrant version of functions from
8901 hsearch family.
8902 * misc/hsearch.c, misc/tsearch.c: New files.
8903 * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8904
8905 * posix/unistd.h (ttyname_r): Add prototype for new function.
8906
8907 * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8908 stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8909 stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8910 stdlib/drand48-iter.c: New files implementing reentrant versions
8911 of functions from drand48 family.
8912 * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8913 stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8914 stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8915 Rewrite to use reentrant versions.
8916 * stdlib/a64l.c, stdlib/l64a.c: New files. Implement a64l()
8917 and l64a() functions from SysV library.
8918 * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8919 nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8920 drand48-iter, a64l, l64a.
8921 * stdlib/stdlib.h: Declare them.
8922
8923 * stdlib/random_r.c: New file. Reentrant version of functions
8924 from random family.
8925 * stdlib/stdlib.h: Declare them.
8926 * stdlib/random.c: Rewrite to use reentrant functions.
8927
8928 * string/strerror_r.c: New file. Reentrant version.
8929 * string/strerror.c: Change for new _strerror_internal form.
8930 * string/Makefile (routines): Add strerror_r.
8931
8932 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8933 value of user_entry to `_start'.
8934 Close AT_ENTRY case with `break'.
8935
8936 * sysdeps/generic/strstr.c: New and much faster implementation
8937 by Stephen R. van den Berg.
8938
8939 * sysdeps/generic/_strerror.c: _strerror_internal now takes
8940 three argument and has and explicit buffer length.
8941 * sysdeps/mach/_strerror.c: Change for new interface with three
8942 arguments.
8943 * stdio/perror.c, stdio/vfprintf.c: Callers changed.
86d2c878 8944
60478656
RM
8945 * sysdeps/mach/hurd/ttyname_r.c: New file. Reentrant version.
8946 * sysdeps/posix/ttyname_r.c: New file. Reentrant version.
8947 * sysdeps/stub/ttyname_r: New file. Define as dummy function.
8948
8949 * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
8950 (utimes): First parameter to utime must be file, not path.
8951
8952 * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
8953 _SC_CLK_TCK and return it when available.
8954 Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
8955 available.
8956 Add case for _SC_2_LOCALEDEF which is now available.
8957
8958 * posix/sys/types.h [__USE_SVID] (key_t): New type.
8959 * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
8960 sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
8961 sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
8962 sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
8963 sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
8964 sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
8965 sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
8966 sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
8967 Add implementation of System V IPC.
e11c3949 8968
9fd18b6c
RM
8969Fri Sep 15 21:34:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8970
8971 * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
8972 (write_corefile): Call __crash_dump_task instead of __core_dump_task.
8973 Use envariable CRASHSERVER instead of CORESERVER.
8974 * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
8975
7a770247
RM
8976Tue Sep 12 14:30:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8977
8978 * misc/mntent.c: New file.
8979 * misc/mntent.h: New file.
8980 * misc/Makefile (headers): Added mntent.h.
8981 (routines): Added mntent.
8982 * misc/fstab.c: Rewritten using mntent functions.
8983
8984Mon Sep 11 14:00:14 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
8985
8986 * posix/glob.c (glob): Comment fix.
8987
c64908b0
RM
8988Fri Sep 8 16:25:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8989
f87cd5a2
RM
8990 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
8991 symbols weak.
8992
c64908b0
RM
8993 * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
8994 not empty.
8995
d2f5be2a
UD
8996Fri Sep 8 16:32:12 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8997
8998 * sysdeps/unix/sysv/linux/Implies,
8999 sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
9000 sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
9001 sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
9002 sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
9003 sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
9004 sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
9005 sysdeps/unix/sysv/linux/gethostname.C,
9006 sysdeps/unix/sysv/linux/getpeername.S,
9007 sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
9008 sysdeps/unix/sysv/linux/getsockname.S,
9009 sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
9010 sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
9011 sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
9012 sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
9013 sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
9014 sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
9015 sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
9016 sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
9017 sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
9018 sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
9019 sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
9020 sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
9021 sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
9022 sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
9023 sysdeps/unix/sysv/linux/settimeofday.S,
9024 sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
9025 sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
9026 sysdeps/unix/sysv/linux/shutdown.S,
9027 sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
9028 sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
9029 sysdeps/unix/sysv/linux/sockaddrcom.h,
9030 sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
9031 sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
9032 sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
9033 sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
9034 sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
9035 sysdeps/unix/sysv/linux/tcsetattr.c,
9036 sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
9037 sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
9038 sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
9039 sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
9040 sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
9041 New Linux/ELF specific, architecture independent files.
c64908b0 9042 * sysdeps/unix/sysv/linux/i386/Dist,
d2f5be2a
UD
9043 sysdeps/unix/sysv/linux/i386/Makefile,
9044 sysdeps/unix/sysv/linux/i386/brk.S,
9045 sysdeps/unix/sysv/linux/i386/fcntlbits.h,
9046 sysdeps/unix/sysv/linux/i386/fpu_control.c,
9047 sysdeps/unix/sysv/linux/i386/fpu_control.h,
9048 sysdeps/unix/sysv/linux/i386/fstat.S,
9049 sysdeps/unix/sysv/linux/i386/fxstat.S,
9050 sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
9051 sysdeps/unix/sysv/linux/i386/init-first.S,
9052 sysdeps/unix/sysv/linux/i386/ipc.S,
9053 sysdeps/unix/sysv/linux/i386/lstat.S,
9054 sysdeps/unix/sysv/linux/i386/lxstat.S,
9055 sysdeps/unix/sysv/linux/i386/mknod.S,
9056 sysdeps/unix/sysv/linux/i386/mmap.S,
9057 sysdeps/unix/sysv/linux/i386/sbrk.S,
9058 sysdeps/unix/sysv/linux/i386/setfpucw.c,
9059 sysdeps/unix/sysv/linux/i386/signum.h,
9060 sysdeps/unix/sysv/linux/i386/socket.S,
9061 sysdeps/unix/sysv/linux/i386/stat.S,
9062 sysdeps/unix/sysv/linux/i386/syscall.S,
9063 sysdeps/unix/sysv/linux/i386/sysdep.S,
9064 sysdeps/unix/sysv/linux/i386/sysdep.h,
9065 sysdeps/unix/sysv/linux/i386/xmknod.S,
9066 sysdeps/unix/sysv/linux/i386/xstat.S:
9067 New Linux i386/ELF specific files.
c64908b0 9068 * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
d2f5be2a
UD
9069 sysdeps/unix/sysv/linux/sys/mman.h,
9070 sysdeps/unix/sysv/linux/sys/msq_buf.h,
9071 sysdeps/unix/sysv/linux/sys/sem_buf.h,
9072 sysdeps/unix/sysv/linux/sys/shm_buf.h,
9073 sysdeps/unix/sysv/linux/sys/socketcall.h,
9074 sysdeps/unix/sysv/linux/sys/timex.h:
9075 New Linux/ELF specific, architecture independent header files.
c64908b0 9076 * sysdeps/unix/sysv/sysv4/linux: Tree removed.
86d2c878 9077
c64908b0
RM
9078Thu Sep 7 17:05:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9079
9080 * stdlib/msort.c (msort_with_tmp): Fixed alignment test. B1 and
e11c3949 9081 B2 are always congruent; just test that B1 is aligned.
d2f5be2a 9082
1571a016
RM
9083Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9084
9085 * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
9086 than WEAK_VALUE.a to see if a weak value has been set. A valid
9087 weak value may set WEAK_VALUE.a to 0.
9088
44c8d1a2
RM
9089Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9090
f405bed5
RM
9091 * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
9092 jmp_buf.
9093
44c8d1a2
RM
9094 * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
9095 for a warning on references to that specific symbol, not the
9096 entire containing object file.
9097 (stub_warning): Pass symbol name to link_warning.
9098 * stdio/gets.c: Pass function name in link_warning invocation.
9099
9100 * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
9101 MACH_SEND_INTERRUPTED. That indicates interrupt_operation was
9102 sent, but failed.
9103
9104 * stdlib/msort.c: Include memcopy.h.
9105 (msort_with_tmp): If operating on aligned op_t words, use direct word
9106 fetches and stores.
9107
9108 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
9109 missing backslash.
9110
e3726b05
RM
9111Thu Aug 31 13:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9112
9113 * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
9114
9115 Rewrote i386 setjmp code in assembly, so as to avoid fighting
9116 with the compiler for the register values.
9117 * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
9118 * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
9119 * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
9120 [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
9121 (_JMPBUF_UNWINDS): Use JB_SP.
9122
a993273c
RM
9123Wed Aug 30 16:44:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9124
9125 * sysdeps/mach/hurd/select.c: Deal with out of order replies
9126 during io_select request loop.
9127 Handle MACH_RCV_TIMED_OUT error from requests.
9128 * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
9129 distinguish MACH_RCV_TIMED_OUT from EINTR.
9130
9131 * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
9132 slash.
9133 (glob_in_dir): Don't allocate extra byte here.
9134
9135 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9136 Decrement the DT_RELSZ value for the skipped reloc.
9137
18926cf4
RM
9138Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9139
9140 * time/australasia: Updated data from ADO.
9141
9142Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9143
9144 * dirent/dirent.h: Don't include <dirstream.h>.
9145 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9146
7752137a
RM
9147Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9148
9e865ade
RM
9149 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
9150 instead of `DIR'.
9151 * sysdeps/unix/bsd/dirstream.h: Likewise.
9152 * sysdeps/stub/dirstream.h: Likewise.
9153 * sysdeps/unix/dirstream.h: Likewise.
9154 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
9155 * sysdeps/mach/hurd/seekdir.c: Likewise.
9156 * sysdeps/mach/hurd/opendir.c: Likewise.
9157 * sysdeps/mach/hurd/closedir.c: Likewise.
9158 * sysdeps/mach/hurd/readdir.c: Likewise.
9159 * sysdeps/unix/telldir.c: Likewise.
9160 * sysdeps/unix/seekdir.c: Likewise.
9161 * sysdeps/unix/rewinddir.c: Likewise.
9162 * sysdeps/unix/readdir.c: Likewise.
9163 * sysdeps/unix/opendir.c: Likewise.
9164 * sysdeps/unix/closedir.c: Likewise.
9165 * sysdeps/unix/bsd/telldir.c: Likewise.
9166 * sysdeps/unix/bsd/readdir.c: Likewise.
9167 * dirent/Makefile (headers): Remove dirstream.h.
9168 (distribute): Put it here instead.
9169
7752137a
RM
9170 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
9171
9172 * stdio/vfscanf.c (number): Allow field width to inhibit first
9173 digit after base detection.
9174
9175 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
9176 specified by the precision.
9177
9178 * grp/grpread.c (__grpscan): New function.
9179 * grp/grp.h (__grpscan): Declare it.
9180 * grp/getgrgid.c: Use __grpscan.
9181 * grp/getgrnam.c: Likewise.
9182 * pwd/pwdread.c (__pwdscan): New function.
9183 * pwd/pwd.h (__pwdscan): Declare it.
9184 * pwd/getpwnam.c: Use __pwdscan.
9185 * pwd/getpwuid.c: Likewise.
9186
9187Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9188
9189 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
9190 MAP_FILE.
9191
9192 * hurd/thread-cancel.c: Return EINTR when called on self.
9193 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
9194 __data_start.
9195
3cf595e5
RM
9196Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9197
9198 * inet/netdb.h: Moved to resolv.
9199 * inet/Makefile (headers): Remove netdb.h.
9200 * resolv/Makefile (headers): Add netdb.h.
9201 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
9202 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
9203
9204 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9205 resuming the thread.
9206 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9207
9208 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9209
9210Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9211
9212 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9213 relocs, and do nothing. Why the linker generates them we may
86d2c878 9214 never know.
3cf595e5 9215
3fe9de0d
RM
9216Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9217
a4bb2589
RM
9218 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9219 `subdirs' variable.
9220
3cf595e5 9221 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3fe9de0d
RM
9222 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9223 "intr-msg.h" for special syscall code, instead of i386-specific asm.
9224 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9225 machine-dependent "intr-msg.h" before mutating thread state to
9226 skip RPC.
9227
9228 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9229 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9230 %ecx.
9231
9232 * Makeconfig (link-libc): New variable; use shared library if
9233 available.
9234 (+link): Use it.
9235
9236 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9237 Instead, declare with `symbol_set_declare'.
86d2c878 9238 (fork): Use symbol_set_* macros for _hurd_fork_locks.
3fe9de0d
RM
9239 Use SS->thread instead of __mach_thread_self (). Suspend all
9240 other threads during task_create and port copying.
9241
191abc51
RM
9242Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9243
9244 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9245
9246Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9247
9248 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9249
9250 * hurd/Makefile (sig): Add intr-msg.
9251
54da5be3
RM
9252Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9253
9254 * hurd/thread-cancel.c: New file.
9255 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9256 rpc_wait case, frob mach_msg args to set timeout on receive.
9257 (_hurdsig_rcv_interrupted_p): Function removed.
9258 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9259 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9260 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9261 * hurd/intr-msg.c: New file.
9262 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9263 (_hurdsig_rcv_interrupted_p): Declaration removed.
9264 (HURD_EINTR_RPC): Macro removed.
9265 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9266 these.
9267 * hurd/intr-rpc.h: New file.
9268 * hurd/intr-rpc.defs: Just import intr-rpc.h.
9269 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9270 (interrupted_reply_port_location): Take new flag arg; only catch
9271 faults if it's set.
9272 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9273 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9274 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
9275 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
9276 callers changed.
9277 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9278 * hurd/Makefile (distribute): Remove intr-rpc.awk.
9279 (sig): Add thread-cancel.
9280 (transform-user-stub, transform-user-stub-output): Variables removed.
9281 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9282 `__hurd_intr_rpc_*' to `__*'.
9283 (_hurd_intr_rpc_mach_msg): New function.
9284 (_hurd_thread_sigstate): Function removed.
9285 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9286 instead of __mach_msg inside HURD_EINTR_RPC macro.
9287
9288 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9289 to take ptrdiff_t arg.
9290
9291 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9292
9293 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9294
9295 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9296 weak_alias): Use `extern' storage class.
9297
76894e2e
RM
9298Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
9299
9300 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9301 port-count parameters to __auth_makeauth.
9302 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9303
9304Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9305
9306 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9307
9308 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9309
9310Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
9311
9312 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9313 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9314 layer socket options.
9315 (IPPROTO_GGP): Delete obsolote protocol.
9316 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9317 (struct ip_mreq): New type.
9318
99a9e88e
RM
9319Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9320
b25c5d66
RM
9321 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9322
9323 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9324 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9325
99a9e88e
RM
9326 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9327 when __stdio_open fails with a code other than ENFILE or EMFILE.
9328
5e98d83c 9329Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507fcb75 9330
5e98d83c
RM
9331 * Makefile (headers): Added gnu-versions.h.
9332
9333Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
9334
9335 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9336 equality, not assignment, to test bitfields.
9337
9338Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9339
9340 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9341 resolve AF_LOCAL addresses.
9342
9343 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9344 can't tell us what an address means, just return a zero-length
9345 buffer instead.
9346 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9347
9348Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9349
9350 * sysdeps/mach/hurd/bind.c (bind): Don't use
9351 file_invoke_translator, as it doesn't work. Instead just lookup
9352 the translated node again, and hope we're not hit by any race
9353 conditions.
507fcb75 9354
958f803f
RM
9355Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9356
b8dc6a10
RM
9357 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9358 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9359 [start-installed-name-rule]: If this is defined, elide rule for
9360 $(objpfx)$(start-installed-name).
99a9e88e
RM
9361 * csu/initfini.c (SECTION): New macro, different definitions for
9362 #ifdef HAVE_ELF and not.
9363 (_init, _fini): Use that macro.
b8dc6a10
RM
9364 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9365 (start-installed-rule, start-installed-name-rule): New variables;
9366 specify crt1.o, created by our own rule.
9367 ($(objpfx)crt1.o): New rule.
9368 * configure.in: Require autoconf 2.4.2 or later. Change all
9369 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9370 prettify some messages.
9371 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9372 sections.
9373 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9374 this case rather than #ifdef HAVE_ELF.
9375 * config.h.in (HAVE_INITFINI): New macro.
99a9e88e 9376 * config.make.in (have-initfini): New variable, set by configure.
b8dc6a10 9377
4e1bac76
RM
9378 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9379 "value computed is not used" warning.
9380
9381 * Makeconfig (+gccwarn): Removed -Wconversion.
9382
9383 * csu/initfini.c (GLOBAL): Macro removed.
9384 (_init, _fini): Always define globally.
9385 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9386
3d61b63c
RM
9387 * asia, backward, europe, leapseconds, southamerica: New data from
9388 ADO's 95e.
9389
9390 * inet/Makefile (routines): Removed inet_addr.
9391 * inet/inet_addr.c: Moved to resolv/ subdirectory.
9392 * resolv/Makefile (routines): Added inet_addr.
9393 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9394 * resolv/gethnamaddr.c: Likewise.
9395 * resolv/getnetbyaddr.c: Likewise.
9396 * resolv/getnetbyname.c: Likewise.
9397 * resolv/getnetent.c: Likewise.
9398 * resolv/getnetnamadr.c: Likewise.
9399 * resolv/herror.c: Likewise.
9400 * resolv/nsap_addr.c: Likewise.
9401 * resolv/res_comp.c: Likewise.
9402 * resolv/res_debug.c: Likewise.
9403 * resolv/res_init.c: Likewise.
9404 * resolv/res_mkquery.c: Likewise.
9405 * resolv/res_query.c: Likewise.
9406 * resolv/res_send.c: Likewise.
9407 * resolv/resolv.h: Likewise.
9408 * resolv/sethostent.c: Likewise.
9409 * resolv/arpa/nameser.h: Likewise.
9410 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9411 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9412 its declarations (and doing so only #ifdef sun!).
99a9e88e 9413 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
3d61b63c
RM
9414
9415 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9416 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9417
958f803f
RM
9418 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9419 if possible.
9420
9421 * mach/shortcut.awk: Emit decls for RPC.
9422
9423 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9424 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9425
9426 * Makerules ($(installed-libcs)): Depend on `lib' (only).
9427
874f1b9b
RM
9428Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9429
ff48a63c
RM
9430 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9431
4356cfd7
RM
9432 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9433
9434 * sysdeps/unix/sysv/ftime.S: New file.
9435
9436 * locale/locfile-parse.c (categories_write): Cast "" to char *.
9437
9438 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9439
9440 * time/strftime.c: Use year modulo 100 for %y.
9441
9442 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9443
9444 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9445 of one, to work around bug in sunos4.1.2 sed.
9446
874f1b9b
RM
9447 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9448 memchr instead of strlen to limit search for NUL by precision.
9449
51813e80
RM
9450Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9451
9452 * sysdeps/posix/pathconf.c: New file.
9453
d7e16e9e
RM
9454Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9455
9456 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9457 before @PLT.
9458 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9459 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9460 * sysdeps/i386/bsd-setjmp.S: Likewise.
9461
9c9022dd
TBB
9462Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9463
9464 * inet/Makefile (routines): Added `ruserpass'.
9465 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9466 client. Modified to remove the fourth arg AACCT. Do nothing for
9467 the `account' and `macdef' keywords. Other incidental changes
9468 because we are not in the FTP source tree.
9469
439d1d45
RM
9470Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9471
9c9022dd
TBB
9472 * sysdeps/stub/init-posix.c: Removed stub warning.
9473
587dbc6f
RM
9474 * Makefile (autoconf-it): Make it executable and unwritable.
9475
9476 * configure.in (sysnames): Under --enable-debug-configure, spew
9477 potential sysnames.
9478
439d1d45
RM
9479 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9480 #ifdef PIC.
9481 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9482 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9483 jump insn.
9484
9485 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9486 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9487 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9488 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
9489 stack. Use JUMPTARGET(syscall_error) in jump insn.
9490
9491 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9492
9493 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9494 ASM_TYPE_DIRECTIVE.
9495 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9496
86d2c878 9497 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
439d1d45
RM
9498 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9499 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9500
439d1d45 9501 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
86d2c878 9502 instead of unix/sysv.
439d1d45
RM
9503 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9504 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9505 to new directory sysdeps/unix/sysv/sysv4/linux.
9506 * sysdeps/unix/sysv/linux: Directory removed.
9507 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9508 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9509 * sysdeps/unix/sysv/linux/i386: Directory removed.
9510
9c9022dd
TBB
9511 Fixes to help Linux, inspired by drepper's work:
9512 * sysdeps/posix/utimes.c: New file.
9513 * sysdeps/generic/getdomain.c: New file.
9514 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9515 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9516 externals _dl_argc, _dl_argc, and _environ.
9517
584de3b9
TBB
9518Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9519
9520 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9521 EOPNOTSUPP as indications that the server has died.
9522 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9523 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9524
ac00263e
JM
9525Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
9526
9527 * strtol.c: Portability changes from Uli Drepper.
9528 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9529
d819080c
RM
9530Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9531
9532 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9533 DATA for the entry SP; DATA[-1] is always the return address
9534 location. In both cthreads and non-cthreads cases, use asm to
9535 force parameters into %eax and %ecx before return, and mutate
9536 DATA[-1] to return to specific asm code to set up the user from
9537 %eax and %ecx.
9538 [PIC] (_init): Caller changed.
9539 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9540 with SP unwound to argument data ptr.
9541
9542Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9543
9544 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9545 when 0x08000000 and up are not mapped.
9546
9547 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9548 before touching it.
9549 (lib%.so): Use -Wl to get -soname to ld.
9550
9551 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9552
9553 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9554
487253ea
RM
9555Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9556
9557 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9558 library's name including $(libprefix) and major version number.
9559
9560 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9561 in place of xcalloc.
9562
9563 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9564 `ifndef', use the $(origin) function to only set these if they are
9565 undefined, and not if they are defined to empty.
9566
9567 * gnu-versions.h: New file.
9568 * features.h (__GNU_LIBRARY__): Increase value to 5.
9569
d6e2f671
RM
9570Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9571
9572 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9573 expression, to avoid gcc's "value computed is not used" warning.
9574
9575 * libc-symbols.h (_elf_set_element): Give the set-element variable
9576 an `unused' attribute.
9577
9578 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9579 __attribute__ ((__const__)).
9580 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9581
9582 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9583 LINK->resource.next->resource.prevp when appropriate, not
9584 LINK->resource.next->thread.prevp!!!
9585
882087b9
RM
9586Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9587
df2a0c93
RM
9588 * configure.in (libc_cv_asm_set_directive): Make sure that the
9589 `.set' directive really worked by linking against a reference to
9590 the alias.
9591
882087b9
RM
9592 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9593 [PIC] (soinit): Renamed to (global) _init.
9594
1a2df358
RM
9595Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9596
882087b9
RM
9597 * malloc/Makefile (gmalloc-routines): Remove valloc.
9598 (dist-routines): Add it here.
9599
9600 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9601 emacs_loser_valloc to inhibit valloc declaration below.
9602
1a2df358
RM
9603 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9604 installation rules.
9605
9606 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9607 it uses the `.type' directive, which is necessary for shared
9608 libraries to work properly.
9609
5bf62f2d
RM
9610Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9611
f2b0f935
RM
9612 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9613 from zero fill.
9614
9615 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9616 if nonzero, don't let *REF satisfy the reference itself.
9617 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9618 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9619 _dl_lookup_symbol.
9620 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9621 R->r_offset to RESOLVE callback.
9622 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9623 satisfy the reference itself if its value equals the reloc's
9624 offset.
9625
9626 * elf/rtld.c (dl_main): Write a newline in fatal msg.
9627
9628 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9629
5bf62f2d
RM
9630 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9631
9632 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9633 and user entry point addresses.
9634
9635 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9636 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9637
9638 * Makerules (install-lib.so): Don't include libc.so.
9639 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9640 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9641 install, depend on the installed $(install-lib.so) files.
9642 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9643
9644 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9645 allocate high addresses to avoid random mappings appearing there.
9646 (mmap): Comment out mask; always pass zero.
9647
9648Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9649
9650 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9651 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9652
9653 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9654 when successful.
9655
9656 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9657 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9658 variables, using the `threadvars' buffer.
9659
9660 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9661 * sysdeps/i386/dl-runtime.c: Likewise.
9662
9663 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9664 _dl_sysdep_fatal call.
9665 (__assert_fail): Likewise.
9666
9667 * locale/Makefile (localedef-modules): Renamed ctype to
9668 locale-ctype so as not to conflict with the object file for
9669 ctype/ctype.c in the build directory.
9670
75598ca6
RM
9671Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9672
9673 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
9674 insists on seeing the following E as part of hex 7FE, and
9675 complaining that is wider than a byte.
9676
ded29119
RM
9677Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9678
9679 * hurd/Makefile (sig): Added thread-self.
9680 * hurd/hurd.h: Declare hurd_thread_self.
9681 * hurd/thread-self.c: New file.
9682
9683Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9684
9685 * elf/rtld.c: Initialize RTLD_MAP.l_type.
9686 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9687 the dynamic linker itself.
5bf62f2d
RM
9688 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9689 lt_interpreter, first undo relocation done during bootstrapping.
ded29119 9690
a1a9d215
RM
9691Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9692
9693 * mach/Makefile (server-interfaces): Removed notify and
9694 device_reply. For shlibs with eager binding, libmachuser.so must
9695 not refer to any functions not defined in libc.
9696
6f6ce652
JM
9697Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
9698
9699 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9700 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
9701
7cc645ed
RM
9702Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9703
9704 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9705 pending signals if the thread is in a critical section. It will
9706 send us a msg when it finishes.
9707
9708 * sysdeps/mach/hurd/pathconf.c: New file.
9709 * sysdeps/mach/hurd/fpathconf.c: New file.
9710
9711 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9712 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9713
a692d003
RM
9714Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9715
9716 * elf/Makefile (ld.so): Use -nostartfiles in addition to
9717 -nostdlib.
9718
3b5a8107
JM
9719Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
9720
9721 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9722 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9723 memchr unless one manually arranges for them to define __STDC__.
9724
a2fe9c76
RM
9725Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9726
9727 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9728 args on stack from kernel.
9729
9730 * posix/Makefile, sysdeps/alpha/Makefile,
9731 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9732 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9733 in the absence of CVS dirs.
9734
9735 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
9736 kernel on the stack properly.
9737
9738 * set-init.c: Never call _init/_fini; just run __libc_subinit.
9739
9740 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9741 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9742
9743 * configure.in: Move defaulting of --with-elf and --with-gnu-*
9744 based on host os outside the AC_CACHE_VAL for the sysdirs
9745 calculation.
9746
9747 * Makeconfig (localedir, nlsdir): New variables.
9748
9749 * values.h: New file.
9750 * Makefile (headers): Add values.h.
9751
9752 * locale/Makefile (distribute): Add error.h.
9753 * locale/localedef.c: Include "error.h".
9754 (main): Use error_message_count instead of warning_cntr.
9755
2b83a2a4
RM
9756Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9757
9758 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9759 * locale/charmap.c: New file.
9760 * locale/collate.c: New file.
9761 * locale/config.h: New file.
9762 * locale/ctype.c: New file.
9763 * locale/ctypedump.c: New file.
9764 * locale/hash.c: New file.
9765 * locale/hash.h: New file.
9766 * locale/iso-4217.def: New file.
9767 * locale/keyword.gperf: New file.
9768 * locale/keyword.h: New file.
9769 * locale/libintl.h: New file.
9770 * locale/locale.c: New file.
9771 * locale/localedef.c: New file.
9772 * locale/localedef.h: New file.
9773 * locale/locfile-lex.c: New file.
9774 * locale/locfile-parse.c: New file.
9775 * locale/messages.c: New file.
9776 * locale/monetary.c: New file.
9777 * locale/numeric.c: New file.
9778 * locale/token.h: New file.
9779
9780 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9781 * posix/Makefile (headers): Add regex.h.
9782 (routines): Add regex.
9783 (gpl2lgpl): Add regex.c and regex.h.
9784
9785Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9786
9787 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9788 instead of hard-coding "/share/locale".
9789
74aa5ce5
RM
9790Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9791
9792 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9793
9794Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9795
9796 * elf/elf.h (ELFMAG, SELFMAG): New macros.
9797
9798Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
9799
9800 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9801 the case where it starts out less than _hurd_dtablesize.
9802
9803Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9804
9805 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9806 make sure the new size exceeds FIRST_FD.
9807
99b306dc
RM
9808Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9809
9810 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9811
1d26b22c
RM
9812Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9813
99b306dc
RM
9814 * Makerules (install-lib.so): Add %.so for each %_pic.a.
9815
1d26b22c
RM
9816 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9817 the first thing in .data.
9818
9819 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9820
9821 * hurd/hurdstartup.h: New file.
9822
9823 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9824 are the same. Use `jz' instead of `jeq'.
9825
9826 * Makeconfig (config.make): Depend on config.status, and run it to
9827 update.
9828 (config.status): New target; depend on configure.
9829 If target (config.status) exists, run it with --recheck to update;
9830 if not, give error msg saying to run confiugre by hand.
9831 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9832 (sysd-Makefile-force): Set this variable to FORCE in this case, to
9833 force a rebuild of sysd-Makefile.
9834 (sysd-Makefile): Depend on $(sysd-Makefile-force).
9835 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9836 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9837 variable to FORCE in this case, to force a rebuild of sysd-rules.
9838 (sysd-rules): Depend on $(sysd-rules-force).
9839 Write into the file sysd-rules-sysdirs:=$(sysdirs).
86d2c878 9840
1d26b22c 9841 * Makerules (LDFLAGS-c.so): Change ld option -interp to
86d2c878 9842 -dynamic-linker.
1d26b22c
RM
9843
9844 * Makerules (do-install-program): New canned sequence.
9845 (install-bin, install-sbin): Use it.
9846 (install for lib*.so): Use it instead of $(do-install).
9847 Fix .so installation rules to handle lib*.so and *.so, deal with
9848 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9849 i.e. "libc.so-version = .1".
9850
9851Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9852
9853 * elf/do-rel.h: New file, split out of dynamic-link.h.
9854 * elf/Makefile (distribute): Add do-rel.h.
9855
421f82e5
RM
9856Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9857
9858 * Makeconfig (+gccwarn): Add -Winline.
9859
9860 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9861 set, avoid abort_rpcs, and use reply and intr ports saved in
9862 SS->context.
9863 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9864 from SS->context. Don't clear SS->context.
9865 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9866 setting SS->context. If msg_sig_post returns, re-lock and clear
9867 SS->context.
9868
9869Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9870
9871 * mach/Makefile (errsystems.c): Comment out generation rule.
9872
9873 * sysdeps/mach/_strerror.c: Consider a system unknown if its
9874 bad_sub member is null.
9875
9876 * mach/mig-alloc.c: Add weak alias to non-__ name.
9877
e4448b6f
RM
9878Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9879
9880 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9881
08162fa8
RM
9882Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9883
e4448b6f
RM
9884 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9885 function. Duh.
9886
9887 * hurd/Makefile (distribute): Added hurdstartup.h.
9888 * hurd/hurd.h: Remove _hurd_startup decl.
9889
9890 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9891 ((__unused__)) instead of gratuitous self reference.
9892
9893 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9894 table if FD2 doesn't fit.
9895
9896 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9897 not the current table size.
9898
d66e34cd
RM
9899 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9900
08162fa8
RM
9901 Implemented runtime dynamic linker to support ELF shared libraries.
9902 * elf/Makefile: Added rules to make ld.so and libdl.
9903 * elf/dl-error.c: New file.
9904 * elf/dl-fini.c: New file.
9905 * elf/dl-init.c: New file.
9906 * elf/dl-load.c: New file.
9907 * elf/dl-lookup.c: New file.
9908 * elf/dl-object.c: New file.
9909 * elf/dl-reloc.c: New file.
9910 * elf/dlclose.c: New file.
9911 * elf/dlerror.c: New file.
9912 * elf/dlopen.c: New file.
9913 * elf/dlsym.c: New file.
9914 * elf/dynamic-link.h: New file.
9915 * elf/link.h: New file.
9916 * elf/rtld.c: New file.
d66e34cd
RM
9917 * sysdeps/i386/dl-machine.h: New file.
9918 * sysdeps/stub/dl-machine.h: New file.
9919 * sysdeps/i386/dl-runtime.c: New file.
9920 * sysdeps/stub/dl-runtime.c: New file.
9921 * sysdeps/i386/elf/start.S: New file.
9922 * sysdeps/generic/dl-sysdep.c: New file.
9923 * sysdeps/mach/hurd/dl-sysdep.c: New file.
99b306dc 9924 * sysdeps/mach/hurd/i386/init-first.c: New file.
e4448b6f
RM
9925 * sysdeps/i386/init-first.c: New file.
9926 * sysdeps/stub/init-first.c: New file.
86d2c878 9927
08162fa8
RM
9928Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9929
9930 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9931 libc.so runnable.
9932 * version.c (__libc_print_version): Add "et al" and missing NL to
9933 author credit.
9934
b7eb8445
RM
9935Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9936
9937 * posix/glob.c (S_ISDIR): Define if undefined.
9938
10ceac89
RM
9939Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9940
9941 * configure.in: Unless --without-fp, prepend */fpu before each
9942 machine dir in $mach; don't prepend FPU dirs at end. If
9943 --with-elf, prepend MACHINE/elf directories at end; don't insert
9944 them into $mach.
9945
9946 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
9947
9948 * sysdeps/stub/clock.c: Added stub warning.
9949 * sysdeps/stub/dirfd.c: Likewise.
9950 * sysdeps/stub/exc2signal.c: Likewise.
9951 * sysdeps/stub/fdopen.c: Likewise.
9952 * sysdeps/stub/flock.c: Likewise.
9953 * sysdeps/stub/fpathconf.c: Likewise.
9954 * sysdeps/stub/ftruncate.c: Likewise.
9955 * sysdeps/stub/gtty.c: Likewise.
9956 * sysdeps/stub/isatty.c: Likewise.
9957 * sysdeps/stub/killpg.c: Likewise.
9958 * sysdeps/stub/madvise.c: Likewise.
9959 * sysdeps/stub/mkstemp.c: Likewise.
9960 * sysdeps/stub/mktemp.c: Likewise.
9961 * sysdeps/stub/mprotect.c: Likewise.
9962 * sysdeps/stub/msync.c: Likewise.
9963 * sysdeps/stub/pathconf.c: Likewise.
9964 * sysdeps/stub/poll.c: Likewise.
9965 * sysdeps/stub/raise.c: Likewise.
9966 * sysdeps/stub/readv.c: Likewise.
9967 * sysdeps/stub/setenv.c: Likewise.
9968 * sysdeps/stub/setlogin.c: Likewise.
9969 * sysdeps/stub/sigaltstack.c: Likewise.
9970 * sysdeps/stub/sigintr.c: Likewise.
9971 * sysdeps/stub/sigstack.c: Likewise.
9972 * sysdeps/stub/sleep.c: Likewise.
9973 * sysdeps/stub/sstk.c: Likewise.
9974 * sysdeps/stub/stime.c: Likewise.
9975 * sysdeps/stub/stty.c: Likewise.
9976 * sysdeps/stub/syscall.c: Likewise.
9977 * sysdeps/stub/sysconf.c: Likewise.
9978 * sysdeps/stub/truncate.c: Likewise.
9979 * sysdeps/stub/ualarm.c: Likewise.
9980 * sysdeps/stub/usleep.c: Likewise.
9981 * sysdeps/stub/utimes.c: Likewise.
9982 * sysdeps/stub/writev.c: Likewise.
9983
9984 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
9985
9986Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9987
9988 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
9989
9990Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9991
9992 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
9993 directories and append slashes to them in final pass before
9994 sorting.
9995 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
9996 slash; never append it here.
9997
11872325
RM
9998Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9999
10000 * mach/Machrules [interface-library]
10001 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
10002 -nostdlib.
10003
10004 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
10005 _hurd_siglock only around initial task creation in parent. Use
10006 _hurd_critical_section_unlock at end. Handle dead name rights
10007 properly, and deal with a send right dying while we try to copy
10008 it. For the time being, use assert_perror for kernel and proc RPC
10009 failures.
10010
10011Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10012
10013 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
10014 using $(object-suffixes-$(lib)) instead.
10015
10016 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
10017
10018 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
10019 (LDFLAGS-c.so): New variable.
10020
10021 * resolv/res_init.c (res_init): Don't clobber _res.options with
10022 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
10023
10024 * hurd/hurd.h: Declare _hurd_startup.
10025 * hurd/hurdstartup.c: New file.
10026 * hurd/Makefile (routines): Add hurdstartup.
10027
11d90def
RM
10028Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10029
b96bdcd7
RM
10030 * hurd/hurdsig.c: Use assert_perror for many calls which should
10031 never fail and previously were not checked.
10032
11d90def
RM
10033 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10034 Point the return address for sigreturn's frame at a "hlt" insn so
10035 it will definitely crash if sigreturn returns.
10036
0ac2e7d8
BK
10037Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
10038
10039 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
11d90def 10040 HAVE_WEAK_SYMBOLS for doing weak_alias.
0ac2e7d8 10041
f4153e13
RM
10042Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10043
10044 * configure.in: Move $os tests to set $elf et al earlier, before
10045 construction of $sysnames. Instead of prepending MACHINE/elf to
10046 $sysnames, append &/elf after each elt appended to $mach.
65b3cbcb 10047
f4153e13 10048Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
67be1ecf 10049
65b3cbcb
RM
10050 * configure.in (libc_cv_asm_global_directive): New check to define
10051 ASM_GLOBAL_DIRECTIVE.
10052 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
d02907df
RM
10053 * libc-symbols.h (strong_alias_asm, strong_alias): Use
10054 ASM_GLOBAL_DIRECTIVE on the alias.
65b3cbcb
RM
10055
10056 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
10057 HAVE_WEAK_SYMBOLS" #defns.
10058
5fa25886
BK
10059Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
10060
10061 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
10062 of the byte that was zero, so we return a valid number.
10063
e0585da1
BK
10064Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
10065
5fa25886 10066 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
e0585da1
BK
10067 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
10068
dce38123
BK
10069Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
10070
fc40c039
BK
10071 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
10072 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
10073 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
10074 [BITS_PER_MP_LIMB == 64]: Likewise.
10075
d619f2a8
BK
10076 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
10077 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
10078 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
10079 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
10080 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
10081 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
10082 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
10083 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
10084 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
10085 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
10086 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
10087
10088 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
77162807
BK
10089 * sysdeps/unix/mips/fork.S (fork): Likewise.
10090 * sysdeps/unix/mips/pipe.S (fork): Likewise.
10091 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
10092 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
10093 * sysdeps/unix/mips/wait.S (__handler): Likewise.
10094 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
10095 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
10096 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
10097 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
10098 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
10099 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
10100 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
10101 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
10102 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
10103 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
10104 instead of `zero' for the li instruction.
10105
dfd5ddb7
BK
10106 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
10107 preprocessor comments, not assembler comments.
fa21d693 10108 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
dce38123
BK
10109 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
10110
eb712cf1
RM
10111Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10112
10113 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
10114 in place of inline.
10115
6e33fad3
RM
10116Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10117
e215c478 10118 * Makefile (distribute): Add ChangeLog.[0-9].
335aa320 10119
e215c478
RM
10120 * configure.in: Add check for .set directive.
10121 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
335aa320
RM
10122 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
10123 strong_alias_asm): Use `foo = bar' syntax instead.
e215c478
RM
10124
10125 * Makerules [! subdir] (O%-lib): Don't prepend ../.
10126
10127 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
10128
335aa320
RM
10129 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
10130 $host_os checks to set gnu_ld/as and elf before sysdirs
10131 generation. Fix $with_fp test.
10132 [$elf=yes]: Prepend MACHINE/elf directory.
10133
6e33fad3
RM
10134 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
10135 being cleared are already known to be set. Thanks Ulrich.
10136
6432a779
RM
10137Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10138
10139 * posix/environ.c: Add weak alias `_environ'.
10140
53afa8d9
RM
10141Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10142
10143 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
10144 * sysdeps/i386/sub_n.S [PIC]: Likewise.
10145
217d85b9
RM
10146Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10147
53afa8d9
RM
10148 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
10149 word `const'.
10150
10151 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
10152 $(foo-$(suffix $@)).
10153
10154 * manual/Makefile (chapters-incl): Filter out summary.texi.
10155
217d85b9
RM
10156 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
10157 a weak symbol instead of literal "STRTOF".
10158
10159 * locale/setlocale.c: Work around ld bug: don't weakify refs to
10160 _nl_{current,C}_*.
10161
8c0dc19c
RM
10162Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10163
10164 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
10165
10166 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
10167 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
10168
10169 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
10170 #ifdef emacs, but only #ifndef memmove.
10171 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
10172 safe_bcopy.
10173 (memmove): Define only if undefined.
10174
73fbb9a5
RM
10175Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10176
6aa8372e
RM
10177 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
10178 sure these are simply-expanded variables.
10179
883bc19b
RM
10180 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
10181 mmap call.
10182
10183 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
10184 for these too.
10185
10186 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
10187 set c_oflag value.
10188
10189 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
10190
10191 * locale/Makefile (categories): Uncomment collate.
10192 * locale/lc-collate.c: New file.
10193
8ab69eb3
RM
10194 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
10195 #ifdef emacs.
10196 * malloc/realloc.c: Likewise.
10197
8c0dc19c
RM
10198 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
10199 (_itoa): Use it in defn.
8ab69eb3
RM
10200 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
10201 "_itoa.h".
10202 (_itoa): Function removed.
10203
73fbb9a5
RM
10204 * malloc/free.c: Remove use of `assert'.
10205
10206 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10207 __malloc_safe_bcopy; #define safe_bcopy.
10208 * malloc/free.c: Cope with systems lacking `memmove'.
10209 (_free_internal): Cast result of _malloc_internal.
10210
4bca5a35
RM
10211Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10212
e627021e
RM
10213 * hurd/hurdinline.c: Include signal.h first, so we don't define
10214 its inlines too.
10215
10216 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10217 of -1 to avoid compiler warning.
10218
10219 * configure.in (host_os=linux*): Set elf=yes for this, not just
10220 linux*elf*.
10221
c0fef53b
RM
10222 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10223 and open.
10224
4bca5a35
RM
10225 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10226
45b28a8f
RM
10227Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10228
fa0ad204
RM
10229 * sysdeps/unix/start.c: Remove spurious decl and #endif.
10230
45b28a8f
RM
10231 * misc/progname.c (program_invocation_name,
10232 program_invocation_short_name): Make these initialized data
10233 definitions.
10234
10235 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10236 so gcc doesn't optimize out the function entirely.
10237
e607b492
RM
10238Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10239
c4bf5a3e
RM
10240 * posix/execvp.c: Don't use stat to search path; just try execv
10241 until it works.
10242
e607b492
RM
10243 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10244 SS->active_resources, so that _hurdsig_longjmp_from_handler will
10245 be called when a longjmp unwinds the signal frame.
10246 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10247 SS->active_resources chain added by _hurd_setup_sighandler.
10248 * hurd/sigunwind.c: New file.
10249 * hurd/Makefile (sig): Add sigunwind.
10250
10251 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10252
10253 * MakeTAGS (tags-sources): Include $(all-dist).
10254 [subdir] (all-dist): Define to $(distribute).
10255
2f8033d6
RM
10256Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10257
193ce8dc
RM
10258 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10259 parent objdirs.
10260
10261 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10262 filtering out $($(lib)-inhibit-o); use that instead of
10263 $(object-suffixes) in all the other variables.
10264
2f8033d6
RM
10265 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10266 if undefined.
10267
10268 * string/strxfrm.c: Just copy the string (for now).
10269 * string/strcoll.c: Just call strcmp (for now).
10270
10271 * mach/Makefile (lock): Add mutex-init.
10272 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10273 _cthread_mutex_unlock_routine): Variables removed.
10274 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10275 (__mutex_init): Function moved to new file mutex-init.c.
10276 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10277
67188fe6
BK
10278Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
10279
10280 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
0a648051 10281 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
67188fe6 10282
b1f11361
RM
10283Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10284
10285 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10286 both are zero).
10287
a9df8829
RM
10288Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10289
b1f11361
RM
10290 * elf/dlfcn.h: New file.
10291
ea7d9938
RM
10292 * Make-dist (README): Commit it to CVS if there is a CVS directory.
10293
a9df8829
RM
10294 More changes from Germano Caronni <caronni@tik.ethz.ch>:
10295 * malloc/free.c: Relocate _heapinfo when that allows us to return
10296 core to the system.
10297
10298 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10299 _MALLOC_INTERNAL.
10300
1474b80f
RM
10301Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10302
c316b486
RM
10303 * mach/Makefile (headers): Add mach/mach_traps.h.
10304
10305 * Makerules ($(installed-libcs) rule): Fix typos.
10306
342414a6
RM
10307 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10308 * sysdeps/stub/revoke.c: New file.
10309 * misc/Makefile (routines): Add revoke.
10310 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10311 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10312 (forkpty): Declare login_tty.
10313 * misc/logwtmp.c (logwtmp): Declare to return void.
10314 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
10315
1474b80f
RM
10316 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10317
10318 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10319 unless L_SET already defined.
10320 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10321 already defined.
10322
10323 Incorporated -lutil library from 4.4-Lite.
10324 * misc/Makefile (extra-libs, libutil-routines): New variables.
10325 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10326 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10327
10328 Support simple, light-weight unwind-protect mechanism for longjmp.
10329 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10330 * sysdeps/mach/hurd/jmp-unwind.c: New file.
10331 * sysdeps/stub/jmp-unwind.c: New file.
10332 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10333 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10334 * setjmp/Makefile (routines): Add jmp-unwind.
10335 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10336 `prevp' members into new substructure `resource'; add another such
10337 substructure `thread' and members `cleanup' (function ptr) and
10338 `cleanup_data' (generic ptr).
10339 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10340 into the `_hurd_self_sigstate ()->active_resources' list via the
10341 `thread' substructure.
10342 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10343 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10344 LINK->cleanup_data' to the port extracted.
10345 * hurd/hurd/signal.h (struct hurd_sigstate): New member
10346 `active_resources'.
10347 * hurd/port-cleanup.c: New file.
10348 * hurd/Makefile (routines): Add port-cleanup.
10349
10350 * malloc/malloc.c: Include errno.h.
10351
10352Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10353
10354 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10355
a04e7405
RM
10356Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10357
d365fd2c
RM
10358 * misc/Makefile (headers): Add utmp.h.
10359 * misc/utmp.h: New file, incorporated from 4.4-Lite.
10360
a04e7405
RM
10361 * stdio/printf-parse.h: New file, mostly written by drepper.
10362 * stdio/vfprintf.c: Rewritten, mostly by drepper.
10363 * stdio/printf-prs.c: Rewritten.
10364 * stdio/Makefile (distribute): Add printf-parse.h.
10365
10366Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10367
10368 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10369 with asm name. Just do a ".set start, __start".
10370
10371 * malloc/realloc.c: Call _free_internal instead of free.
10372
49e522bf
RM
10373Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10374
10375 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10376 directory, open LOCALE/LC_*/SYS_LC_* instead.
10377
1e9dc039
RM
10378Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10379
49e522bf
RM
10380 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10381 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10382 stdio/gen-mpn-copy: Files moved to stdlib.
10383 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
a04e7405 10384 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
49e522bf
RM
10385 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10386 headers.
10387 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10388 headers.
10389
6bf02878
RM
10390 * Makefile (parent-mostlyclean): Don't use $(libc.a).
10391 (parent-clean): Use $(objpfx) to find sysd-*.
10392 * Rules (generated): Append dummy.o dummy.c.
4788ab46
RM
10393 * Makerules (lib): Depend on lib-noranlib.
10394 (lib-noranlib): Depend on $(install-lib) in objdir.
10395 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10396 from objdir. Don't remove TAGS; it comes in the distribution.
10397
10398 * malloc/malloc.c (morecore): Save errno around call to
10399 _realloc_internal. Don't account for the additional new blocks of
10400 the info table itself when choosing the new table size for the
10401 first crack; if it succeeds, the new blocks will have been found
10402 in existing free space already described by the existing info
10403 table.
10404
1e9dc039
RM
10405 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10406 read-ahead character.
10407
be69ea41
RM
10408Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10409
1e9dc039
RM
10410 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10411 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10412 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10413 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10414 Get anal with unsigned to pacify compiler.
10415
be69ea41
RM
10416 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10417 means %d from 3rd arg).
10418
10419 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10420
10421 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
10422 END, not GROUP.
10423
693e7b96
RM
10424Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10425
a38f13ba
RM
10426 * Makefile (subdirs): Put elf last.
10427
693e7b96
RM
10428 * sunrpc/Makefile (install-lib): Variable removed.
10429 (rpcsvc-objs): Variable removed.
10430 (extra-objs): Don't include $(rpcsvc-objs).
10431 (extra-libs): New variable, contains librpcsvc.
10432 (librpcsvc-routines): New variable.
10433 (librpcsvc-inhibit-o): New variable, contains .so.
10434 (omit-deps): Set this to $(librpcsvc-routines).
10435 ($(objpfx)rpcgen): Don't use $(libc.a).
10436 (lib, $(objpfx)librpcsvc.a): Targets removed.
10437
10438 * o-iterator.mk, extra-lib.mk: New files.
10439 * Makerules (o-iterator): New variable.
10440 [extra-libs]: Include extra-lib.mk to generate rules for each word
10441 of $(extra-libs).
10442 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10443
b3fe1350
UD
10444Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10445
10446 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
68b3ef49 10447 Handle 80-bit denormalized numbers correctly.
b3fe1350 10448
68b3ef49 10449 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
693e7b96 10450 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
68b3ef49
RM
10451 * stdlib/strtod.c (RETURN): Add parentheses around return value.
10452 (round_and_return): Correct handling of denormalized numbers.
b3fe1350 10453
693e7b96
RM
10454 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10455 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10456 exponent.
b3fe1350 10457
f0bf9cb9
RM
10458Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10459
10460 * locale/C-ctype.c: New correct data generated by drepper.
10461
10462 * Rules: Don't use $(libc.a).
10463
10464 Parsing of grouped numbers contributed by Ulrich Drepper.
10465 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
10466 new flag arg; if nonzero, parse locale-dependent thousands
10467 grouping and interpret only the prefix that is correctly grouped.
10468 (strtol): Define this to call _strtol_internal with zero for the flag.
10469 Use a weak symbol for the definition.
10470 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10471 Check for the exponent of the number overflowing the float format.
10472 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10473 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10474 [__OPTIMIZE__]: Define inline functions calling those.
c45e5aa9
RM
10475 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10476 (strtold): Remove weak alias.
10477 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10478 (strtof): Remove weak alias.
f0bf9cb9
RM
10479 * stdlib/grouping.h: New file, written by drepper.
10480 * stdlib/Makefile (distribute): Add grouping.h.
10481 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
10482 __strtoX_internal with the grouping flag set iff the modifier is
10483 present.
10484
10485Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10486
10487 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10488
10489 * mach/Machrules: Produce static deps for all object flavors.
10490 [interface-library]: Remove all these variables and rules.
10491 ($(interface-library)-routines): Define this variable.
10492 (extra-libs): Append $(interface-library) to this.
10493 * mach/Makefile (interface-library): Omit .a suffix.
10494 * hurd/Makefile: Likewise.
10495
10496Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10497
10498 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10499 early if no new data in buffer after priming.
10500
01a36ad3
RM
10501Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10502
f0bf9cb9
RM
10503 * Makerules (object-suffixes, libtypes): Move all these variables
10504 to Makeconfig.
10505 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10506
10507 * Makerules (build-extra-lib): New canned sequence.
10508
10509 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
10510 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
10511
10512 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10513 Add missing semicolon.
10514 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
10515 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10516 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10517
10518 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10519 locale data format is implemented.
10520
10521 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10522 Pass &__sigreturn on the stack to the trampoline code, so it is
10523 not position-dependent.
10524
10525 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10526 Don't include <stdarg.h>.
86d2c878 10527 (__printf_fp): Last arg ARGS is now `const void **const';
f0bf9cb9
RM
10528 dereference ARGS[0] instead of using va_arg.
10529
10530 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10531 loop to install data.
10532
10533 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10534 to extract number from item code.
10535 (_nl_load_locale): Close the descriptor when finished.
10536
10537 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10538 place of malloc.
10539
10540 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10541
67a3a8ac
RM
10542 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10543 to avoid warning.
10544 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10545 int to avoid warning.
10546
51f75302
RM
10547 Support building several flavors of objects and libraries.
10548 * Makerules (libtypes, object-suffixes): New variables.
10549 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10550 suffix.
10551 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10552 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10553 (close-check-inhibit-asm): Append a semicolon.
10554 (sysd-rules): Generate rules for each object suffix.
10555 (compile.S, compile.c): Always assume gcc.
10556 (OUTPUT_OPTION): Define unconditionally.
10557 (+make-deps): In generated rule, produce a dependent for each
10558 object suffix.
10559 (.SUFFIXES): Add $(object-suffixes) in place of .o.
10560 (.PRECIOUS): Make all suffix flavors precious.
10561 ($(libc.a)): Target removed.
10562 (lib): Depend on each enabled libtype.
10563 (libobjs, objects, objs): Depend on all the enabled object flavors.
10564 (lib%.a): New pattern rule.
10565 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10566 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10567 to make one for each flavor; library dep rule likewise rewritten.
10568 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10569 flavor.
10570 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10571 (installed-libcs): New variable.
10572 (install): Depend on that instead of
10573 $(libdir)/lib$(libprefix)$(libc-name).a;
10574 that file's rule rewritten to make each enabled libtype.
10575 (install-lib.so): New variable, filters lib%.so from $(install-lib).
10576 (install-lib): Filter out lib%.so after setting install-lib.so.
10577 [$(build-shared)=yes] (install): Install $(install-lib.so).
10578 (common-mostlyclean): Remove all flavors of objects.
01a36ad3
RM
10579 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10580 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10581
424f8c09
RM
10582Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10583
01a36ad3
RM
10584 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10585 * sysdeps/stub/pause.c: Likewise.
10586 * sysdeps/stub/time.c: Likewise.
10587
10588 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10589 locale data format is implemented.
10590 * stdlib/wctomb.c: Likewise.
10591
10592 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10593 gcc bug is fixed.
10594 * mach/errsystems.c: File removed.
10595
10596 * Makeconfig (libc.a): Variable removed.
10597 (+link): Don't use it.
10598
10599 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10600 assuming `yes'.
10601
424f8c09
RM
10602 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10603 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10604 don't use __realloc_hook.
10605 (realloc): New function; call __realloc_hook ?: _realloc_internal.
10606 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10607 don't use __malloc_hook.
10608 (malloc): New function; call __malloc_hook ?: _malloc_internal.
4788ab46 10609 Changes from Germano Caronni <caronni@tik.ethz.ch>:
424f8c09
RM
10610 (initialize): Set up _heaplimit to cover the _heapinfo table.
10611 (morecore_recursing): New static variable.
10612 (morecore): If that is set, return null immediately.
10613 When growing the info table, before getting new core from the
10614 system for it, set morecore_recursing and try moving _heapinfo
10615 with _realloc_internal. When that fails and we get new core, set
10616 _heaplimit to cover the core for the new _heapinfo table.
10617 (register_heapinfo): New function. Record the _heapinfo table's
10618 own blocks in that table and in the statistics variables.
10619 (initialize, _malloc_internal): Use it after allocating new table.
10620
10621Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
10622
10623 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10624 by other packages.
10625 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10626
cfe33fd9
RM
10627Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10628
424f8c09
RM
10629 * mach/errorlib.h (errors): Use const for decl.
10630
10631 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10632 (decode): New inline function; decode signed 32-bit integers, and
10633 sign-extend properly when long is longer than 32 bits.
10634 (__tzfile_read): Changed all uses of uc2ul to decode.
10635 Decode the transition times properly when sizeof (time_t) > 4.
10636
cfe33fd9
RM
10637 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
10638 (printf_function): Make last arg ARGS a vector of pointers instead of a
10639 pointer to va_list.
10640
10641Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10642
424f8c09
RM
10643 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10644 (buffered_vfprintf): Remove line buffer when flush failed.
cfe33fd9
RM
10645
10646Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10647
10648 * time/tzfile.c (struct ttinfo): New member `isgmt'.
10649 (__tzfile_read): Read isgmt flags for each type.
10650 (__tzfile_default): When using TZDEFRULES DST rules, adjust
10651 transition times according to the isstd and isgmt flags for the
10652 types of each transition, and adjust each transition to point to
10653 type index either 0 or 1. Reset type indices 0 and 1 to describe
10654 the user's settings.
10655
d8cc5f0c
RM
10656Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10657
40deae08
RM
10658 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10659 into just CLASS. Add standard/optional flag to all items.
10660
10661 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10662
10663 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10664 Rearrange defn to satisfy compiler.
10665
10666 * locale/localeinfo.h: Declare _nl_current.
10667
ff3d7ed3
RM
10668 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
10669 --enable-shared, --enable-profile, --enable-omitfp; pass settings
10670 through to config.make.
10671 * config.make.in (build-shared, build-profile, build-omitfp): New
10672 config vars.
10673
d8cc5f0c
RM
10674 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10675 (DT_NUM): New macro.
10676
10677 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
10678
10679 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10680
10681 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10682 MAP_COPY to MAP_PRIVATE.
10683
222c4e71
BK
10684Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
10685
06c48879
BK
10686 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10687 that's used inside the alpha sysdep.h.
10688
5638ea42
BK
10689 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10690 keyword.
eded85e0 10691 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
127b3c35 10692
222c4e71
BK
10693 * configure.in: Match `osf*', not `osf1*'.
10694 * configure: Likewise.
134c1236 10695 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
222c4e71 10696
6c2f0507
RM
10697Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10698
10699 * posix/glob/configure.bat: Fixes from DJ.
10700
10701 * time/backward, time/europe, time/northamerica, time/pacificnew,
10702 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10703 time/ialloc.c: Code and data updated from ADO's 95b.
10704 * time/emkdir.c: File removed.
10705 * time/Makefile (distribute, extra-objs, zic): Omit it.
86d2c878 10706
6c2f0507
RM
10707 * time/localtime.c: Deansideclized. Never #define __tzname et al
10708 to non-__ names.
10709
10710 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10711 instead of short int *.
10712 * ctype/ctype-info.c: Likewise.
10713 * ctype/ctype.h: Likewise.
10714
10715 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10716 of EB and EL versions.
10717
28635115
RM
10718Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10719
10720 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10721 (_IS* enum): Use _ISbit to produce values.
10722
933e73fa
RM
10723Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10724
10725 * locale/localeinfo.h: Rewritten for new locale system, using
10726 locale data files and with <langinfo.h> interface.
10727 * locale/setlocale.c: Rewritten to use locale data files.
10728 * langinfo.h: New file.
10729 * locale/langinfo.h: New file.
10730 * locale/nl_langinfo.c: New file.
10731 * locale/loadlocale.c: New file.
10732 * locale/lc-ctype.c: New file.
10733 * locale/lc-messages.c: New file.
10734 * locale/lc-monetary.c: New file.
10735 * locale/lc-numeric.c: New file.
10736 * locale/lc-time.c: New file.
10737 * locale/categories.def: New file.
10738 * locale/Makefile (headers): Remove localeinfo.h.
10739 (distribute): New variable; put localeinfo.h here, and categories.def.
10740 (routines): Add loadlocale.
10741 (categories): New variable.
10742 (aux): Use that to get C-category and lc-category.
10743 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
797fa620
RM
10744 * ctype/ctype-info.c: For initial tables, use
10745 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
86d2c878 10746 locale/C-ctype.c.
933e73fa
RM
10747 * locale/C-ctype.c, locale/C-messages.c: New files.
10748 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10749 Default "C" locale data updated for new locale system.
10750 * locale/C-collate.c: File removed.
10751 * locale/C-ctype_ct.c: File removed.
10752 * locale/C-ctype_mb.c: File removed.
10753 * locale/C-response.c: File removed.
10754 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10755 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10756 stdlib/strtod.c, time/asctime.c, time/strftime.c:
10757 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10758 locale data.
10759 * time/localtime.c: Don't include <localeinfo.h>.
10760 * time/tzset.c: Don't use locale items for default TZ value or
10761 "GMT" string (use "UTC").
10762
10763 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10764 WIDTH>0; update DONE.
10765
10766 * malloc/malloc.c (morecore): Fix last change to calculate by
10767 blocks instead of bytes.
10768
6408bdde
RM
10769Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10770
10771 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10772 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10773 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10774 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10775 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10776 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10777 alias munmap.
10778 * sysdeps/unix/mman/munmap.S: Likewise.
10779 * sysdeps/mach/munmap.c: Likewise.
10780 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10781 alias mmap.
10782 * sysdeps/unix/mman/mmap.S: Likewise.
10783 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10784 * sysdeps/stub/mmap.c: Likewise.
10785
10786 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10787
10788 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10789
10790Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10791
10792 * misc/search.h: Add missing semicolon.
10793
10794 * sysdeps/unix/dirfd.c: Fix typo.
10795
10796 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10797 in decl.
10798
10799 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10800 WIDTH before test.
10801
30e77772
RM
10802Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10803
4933a099
RM
10804 * stdlib/strtod.c: Fixes from drepper.
10805 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10806 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10807 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10808
10809 * stdio/vfprintf.c: Correctly notice Z modifier.
10810
30e77772
RM
10811 * misc/search.h: New file.
10812 * misc/Makefile (headers): Add search.h.
10813 * misc/insremque.c: Include search.h.
10814 (struct qelem): Type removed.
10815
e32a7957
RM
10816Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10817
10818 * elf/libelf.h: New file.
10819 * elf/elf_hash.c: New file.
10820
24b76949
RM
10821Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10822
4788ab46 10823 Changes from Germano Caronni <caronni@tik.ethz.ch>:
24b76949
RM
10824 * malloc/malloc.c (morecore): Account in NEWSIZE for the
10825 malloc_info structures for each new block.
10826
3c46a92d
RM
10827Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10828
10829 * sysdeps/mach/hurd/kill.c: When the process has no message port
10830 registered and we have its task port, translate a few signals to
10831 task_suspend/task_resume/task_terminate.
10832
e66f63fb
RM
10833Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10834
22a1292a
RM
10835 * io/Makefile (routines): Add euidaccess.
10836 * sysdeps/mach/hurd/euidaccess.c: New file.
10837 * sysdeps/stub/euidaccess.c: New file.
10838 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10839
10840 * dirent/Makefile (routines): Add dirfd.
10841 * sysdeps/stub/dirfd.c: New file.
10842 * sysdeps/unix/dirfd.c: New file.
10843 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10844 * dirent/dirent.h (dirfd): Declare new function. Define as macro
10845 _DIR_dirfd if that is defined.
10846 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10847 with `void *__fd'.
10848 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10849 Open the file with `open'; set FD_CLOEXEC on the fd.
10850 * sysdeps/mach/hurd/closedir.c: Likewise.
10851 * sysdeps/mach/hurd/readdir.c: Likewise.
10852 * sysdeps/mach/hurd/dirfd.c: New file.
10853
10854 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10855 directory.
10856 (glob/ChangeLog): Likewise.
10857
10858 * locale/locale.h (LC_*): Use small integers instead of bit masks.
10859
e66f63fb
RM
10860 * stdio/bug4.c: Put temporary files in /tmp.
10861 * stdio/bug3.c: Likewise.
10862 * stdio/bug5.c: Likewise.
10863 * stdio/test-fseek.c: Likewise.
10864 * stdio/test-popen.c: Likewise.
10865
50843ff0
RM
10866Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10867
b5388cb6
RM
10868 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10869
10870 * libc-symbols.h (weak_symbol): New macro.
10871
0677a80c
RM
10872 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10873 elts with null handlers.
10874
50843ff0
RM
10875 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10876
23ad311d
RM
10877Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10878
50843ff0
RM
10879 * stdlib/random.c (__srandom): Change algorithm used to populate
10880 the state array.
10881 (randtbl): Recomputed with new algorithm.
10882
23ad311d
RM
10883 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10884 to original value of `crypt'.
10885 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10886 (crypt): New variable, set to crypt.solar.
10887
daf12887
BK
10888Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
10889
d53f392b
BK
10890 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10891
daf12887
BK
10892 * config.h.in: Put comment around ^L to pacify Solaris as here too.
10893
37f91d33
RM
10894Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10895
67a87b93
RM
10896 * string/Makefile (distribute): Add pagecopy.h.
10897 * sysdeps/mach/pagecopy.h: New file.
10898 * sysdeps/generic/pagecopy.h: New file.
10899 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10900 PAGE_COPY_FWD_MAYBE first when word aligned.
10901 * sysdeps/generic/memmove.c: Likewise.
10902
787126fe
RM
10903 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10904 (getpgrp): Call __getpgid instead of __getpgrp.
10905
01cc0be6
RM
10906 * Makefile (subdirs): Add elf first.
10907 * elf/Makefile: New file.
10908 * elf/elf.h: New file.
10909
8b60020b
RM
10910 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10911 as a macro.
10912 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10913 indirection.
10914
37f91d33
RM
10915 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10916 add crti_s, crtn_s.
10917 (install-lib, extra-objs, generated-, omit-deps): Use that.
10918 (initfini): New canned sequence, broken out of crt[in].s rule.
10919 (crt[in].s rule): Use it.
10920 (crt[in]_s.s): New rule.
10921 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10922 (_init, _fini): Use GLOBAL as storage class.
10923 Add self reference to avoid GCC optimizing out the functions.
10924
10925 * Makefile (headers): Remove $(stddef.h).
10926 * Makeconfig (stddef.h): Variable removed; now require gcc version
10927 >= 2.2.
10928 * stddef.h: File removed.
10929
10930Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10931
10932 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10933 definition.
10934 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10935
10936 * stdlib/strtod.c: Allow the string to start with a decimal point
10937 without a leading zero.
10938
0923c7a5
RM
10939Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10940
41d43dbc
RM
10941 * Makefile (subdirs): Put csu first.
10942
10943 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10944
96f873b9
RM
10945 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10946 to crt[in].o.
10947 (csu-objpfx): New variable.
10948 (+link): Use it to find start.o and $(+preinit), $(+postinit).
10949
10950 * Rules (subdir_lib, all): Depend on objs.
10951
0923c7a5
RM
10952 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
10953
10954 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
10955 access to float.h macros.
10956
10957 * misc/efgcvt.c: New file.
10958 * misc/Makefile (routines): Add efgcvt.
10959
5ace96c8
BK
10960Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
10961
10962 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
10963 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
10964 to avoid a misreference that would override sysdeps/generic/mul.c.
10965 * sysdeps/sparc/Dist: Likewise.
10966
5f9e57ba
RM
10967Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10968
10969 * posix/Makefile (aux): Add environ.
10970 * posix/environ.c: New file.
10971 * sysdeps/unix/sparc/start.c: Remove __environ definition.
10972 * sysdeps/unix/start.c: Likewise.
10973 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10974 * sysdeps/mach/hurd/start.c: Likewise.
10975 * sysdeps/mach/start.c: Likewise.
10976 * sysdeps/stub/start.c: Likewise.
10977
10978 * sysdeps/unix/make_errlist.c: In produced program, test
10979 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
10980 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
10981 Remove extra weak alias.
10982
10983 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
10984 in #include.
10985
10986 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
10987
10988 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
10989 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
10990 $(CPPFLAGS).
10991 (mk-stdiolim): Use it instead.
10992
28f540f4
RM
10993Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10994
5f9e57ba
RM
10995 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
10996 not work to make a weak alias to a bss symbol.
10997
10998 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
10999 (tests): Add test-fwrite.
11000 * stdio/test-fwrite.c: New file.
11001
11002 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
11003 __strtold.
11004
11005 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
11006 there is a CVS directory.
11007 (configure, %/configure): Use $(autoconf-it) for cmds.
11008 * Make-dist: Likewise.
28f540f4
RM
11009 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
11010 if there is a CVS directory.
11011 * sysdeps/sparc/Makefile (divrem output): Likewise.
11012 * sysdeps/alpha/Makefile (divrem output): Likewise.
5f9e57ba 11013 * Makerules ($(gpl2lgpl)): Likewise.
28f540f4
RM
11014
11015 * Makerules (rule to install lib%.a from $(install-lib)): Fix
11016 patsubst to elide ranlib for $(non-lib.a).
11017
11018 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
11019
11020Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11021
11022 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
11023 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
11024
11025Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11026
11027 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
11028 DEALLOC_REFPORT; deallocate the refport after use only if it
11029 evaluates to nonzero.
11030 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
11031 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
11032
11033 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
11034 *STATE_CHANGE to indicate whether or not we changed *STATE and it
11035 should be committed to the thread.
11036 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
11037 state for a thread, do thread_set_state on that thread. Don't use
11038 SS->intr_port for collecting reply ports, it is not safe to
11039 clobber that when suspending; instead, alloca a temporary array.
11040 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
11041 zero when dying, one when suspending. Pass new arg to abort_rpcs.
11042
11043 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
11044 HURD_FD_PORT_USE will. Don't use critical sections around
11045 HURD_FD_PORT_USE invocations.
11046
11047 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
11048 * sysdeps/posix/stdio_init.c: Likewise.
11049
11050Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11051
11052 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
11053 locking; don't leave the descriptor locked on return.
11054 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
11055 Use a critical section around locking the descriptor.
11056 Check for an empty descriptor and return EBADF.
11057 * sysdeps/mach/hurd/dup2.c: Likewise.
11058 * sysdeps/mach/hurd/fcntl.c: Likewise.
11059 Use HURD_FD_PORT_USE macro for RPCs.
11060 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
11061 using HURD_FD_PORT_USE.
11062 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
11063 to lock the descriptor.
11064 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
11065 locking the descriptor.
11066 * sysdeps/mach/hurd/fdopen.c: Likewise.
11067 * hurd/fd-close.c: Likewise.
11068 Don't expect the descriptor to be locked on entry.
11069 Check for empty descriptor and return EBADF.
11070
11071 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
11072 new functions _hurd_ctty_input and _hurd_ctty_output, each
11073 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
11074 * hurd/ctty-input.c: New file.
11075 * hurd/ctty-output.c: New file.
11076 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
11077 * hurd/fd-read.c: Use _hurd_ctty_input.
11078 * hurd/fd-write.c: Use _hurd_ctty_output.
11079 * sysdeps/mach/hurd/ioctl.c: Likewise.
11080 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
11081
11082Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11083
11084 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
11085 as appropriate to the type.
11086
11087 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
11088 repeating the union.
11089 (HUGE_VAL, __huge_val): Use it.
11090 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
11091 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
11092 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
11093 (STRTOF): Set to __strtold; define strtold as weak alias.
11094 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
11095 (STRTOF): Set to __strtof; define strtof as weak alias.
11096
11097 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
11098 (IEEE754_FLOAT_BIAS): New macro.
11099
11100 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
11101
11102 * stdlib/testmb.c: Add tests from rfg for using normal chars as
11103 multibyte chars.
11104
11105 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
11106 only the `defined but not used' warning, but also to avoid GCC
11107 optimizing out the entire function (!).
11108
11109 * stdlib/wctomb.c: Include ctype.h.
11110
11111 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
11112
11113 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
11114
11115Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11116
11117 * stdio/printf_fp.c: Include "fpioconst.h".
11118 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
11119 (__printf_fp): All references changed.
11120 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
11121 (group_number): Use memmove instead of memcpy, since operands overlap.
11122 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
11123 * stdio/fpioconst.h: New file, header declaring the table data.
11124 * stdio/Makefile (aux): Add fpioconst.
11125 (distribute): Add fpioconst.h.
11126 * stdlib/strtod.c: Complete rewrite from drepper.
11127 * stdlib/strtof.c: New file.
11128 * stdlib/strtold.c: New file.
11129 * stdlib/Makefile (routines): Add strtof, strtold.
11130 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
11131 * sysdeps/stub/mpn2flt.c: New file.
11132 * sysdeps/stub/mpn2dbl.c: New file.
11133 * sysdeps/stub/mpn2ldbl.c: New file.
11134 * sysdeps/ieee754/mpn2flt.c: New file.
11135 * sysdeps/ieee754/mpn2dbl.c: New file.
11136 * sysdeps/ieee754/mpn2ldbl.c: New file.
11137
11138 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
11139 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
11140 appears in $(non-lib.a).
11141
11142Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11143
11144 * stdlib/wctomb.c: A normal ASCII character translates to itself.
11145 * stdlib/mbtowc.c: Likewise.
11146
11147Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11148
11149 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
11150 Remove `const' from prototypes.
11151 * sysdeps/m68k/__longjmp.c: Likewise.
11152 * setjmp/longjmp.c: Likewise.
11153 * sysdeps/i386/__longjmp.c: Likewise.
11154
11155 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
11156 so when we return a name, it is incremented past the value that
11157 produces that same name.
11158
11159 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
11160 * stdio/stdio.h (fgets): Likewise.
11161
11162 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
11163
11164 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
11165 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
11166 and retry the RPC.
11167 * hurd/fd-read.c: Likewise.
11168
11169Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11170
11171 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
11172 <mach/mig_support.h>.
11173 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
11174 * assert/assert.c: Likewise.
11175 * sysdeps/posix/libc_fatal.c: Likewise.
11176
11177Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11178
11179 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
11180 as macros, to satisfy ANSI pedants.
11181
11182 * stdio/internals.c (flushbuf): When there is no new data after
11183 priming the stream, return without writing out the buffer.
11184 * stdio/Makefile (tests): Add bug7.
11185 * stdio/bug7.c: New file.
11186
11187 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
11188 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
11189 is defined.
11190
11191 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
11192
11193 * stdio/Makefile (tests): Add errnobug.
11194 * stdio/errnobug.c: New file.
11195
11196 * mach/mig_strncpy.c: Include string.h.
11197
11198 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
5f9e57ba 11199 inlines cause trouble for files defining global register variables.
28f540f4
RM
11200
11201 * stdio/vfprintf.c: Use _strerror_internal for %m.
11202
11203 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11204
11205 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11206 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11207 * stdio/vfprintf.c (group_number): New function.
11208 (vfprintf): Support %' flag for integer formats, by calling
11209 group_number after formatting the number in WORK.
11210 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11211 (__printf_fp): Implement `group' flag using them.
11212
11213 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11214 (parent-clean): Remove sysd-rules, not sysdirs.
11215 (distclean): Pass avoid-generated=yes to submake.
11216 (distclean-1): Remove $(sysdep-$(distclean-1)).
11217
11218 * Makerules (objects, objs): Depend on $(extra-objs) too.
11219 (include sysd-Makefile): Protect with ifndef avoid-generated.
11220
11221 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11222 (CPPFLAGS): Use $(defines) in place of $(+defines).
11223 Replace -D_LIBC with -include $(..)libc-symbols.h.
11224
11225 * stdio/freopen.c: Set seen bit before calling fclose.
11226
11227Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11228
11229 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11230 successes and each kind of failure. Return EPERM or EACCES only
11231 if every task failed that way.
11232
11233 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11234 correctly.
11235
11236 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11237 or resume the process after frobbing.
11238
11239 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11240 throughout.
11241 (_hurd_thread_sigstate): Don't lock the sigstate lock.
11242 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11243 repeated sequences with calls to it. Don't expect the sigstate
11244 lock to be held on entry; lock it just before examining sigaction.
11245 In handler case, check SS->critical_section after calling
11246 abort_rpcs; if set, mark the signal pending and resume the thread.
11247 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11248 (_hurd_self_sigstate): Don't lock the sigstate lock.
11249 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11250 _hurd_self_sigstate_unlocked.
11251 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11252 the sigstate lock.
11253 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11254 Don't expect _hurd_self_sigstate to lock it. Fix critical section
11255 locking.
11256 * hurd/hurd-raise.c: Likewise.
86d2c878 11257 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
28f540f4
RM
11258 * sysdeps/mach/hurd/sigpending.c: Likewise.
11259 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11260 * sysdeps/mach/hurd/sigaction.c: Likewise.
11261 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11262 * hurd/fd-write.c: Likewise.
11263 * hurd/fd-read.c: Likewise.
11264 * sysdeps/mach/hurd/ioctl.c: Likewise.
11265 * sysdeps/mach/hurd/fork.c: Likewise.
11266 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
86d2c878 11267 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
28f540f4
RM
11268 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11269 * hurd/hurdmsg.c (get_int): Likewise.
11270
11271 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
11272
11273 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11274 global.
11275 (PAD): Caller changed.
11276 * stdio/printf_fp.c (__pad): Function removed.
11277 (PAD): Use __printf_pad instead.
11278
11279Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11280
11281 Merged new FP printer by Ulrich Drepper.
11282 * stdio/printf_fp.c: Rewrite by drepper.
11283 * stdio/Makefile (routines): Add ldbl2mpn.
11284 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11285 member.
11286 (union ieee854_long_double): New type, from drepper.
11287 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11288 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11289 * sysdeps/stub/ldbl2mpn.c: New file.
11290 * math/Makefile (routines): Add isinfl and isnanl.
11291 * sysdeps/ieee754/isinfl.c: New file.
11292 * sysdeps/stub/isinfl.c: New file.
11293 * sysdeps/ieee754/isnanl.c: New file.
11294 * sysdeps/stub/isnanl.c: New file.
11295
11296 * malloc/malloc.c (__malloc_extra_blocks): New variable.
11297 (malloc): When getting more core, get __malloc_extra_blocks extra;
11298 put the new block at the end of the free list and let the next loop
11299 iteration use the initial portion of it.
11300 * malloc/free.c (_free_internal): Account for twice
11301 __malloc_extra_blocks in deciding if we have so much extra memory
11302 we should return it to the system.
11303 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11304 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11305 const in parameter decl.
11306
11307 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11308
11309Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11310
11311 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11312
11313 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11314 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11315 * sysdeps/mips/bsd-setjmp.S: Likewise.
11316 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11317 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11318 Use `long int' for sigcode. Use explicit register numbers instead
11319 of names.
11320 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11321 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11322
11323Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11324
11325 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11326
11327 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
11328 using __stpncpy.
11329
11330 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11331
5f9e57ba 11332 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
28f540f4
RM
11333
11334Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11335
11336 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
11337 vm_size_t instead of size_t for arg and return types.
11338
11339 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11340 already does.
11341
11342Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11343
11344 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11345
11346 * configure.in (friendly stddef.h check): Write override defn for
11347 `stddef.h' Make variable.
11348 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11349
11350 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11351
11352 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11353 empty file.
11354
11355 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11356
11357Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11358
11359 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11360
11361 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11362 mach/machine/syscall_sw.h with this.
11363
11364Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11365
11366 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11367 instead of <lock-intern.h>.
11368 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11369 (_hurd_critical_section_lock): Use spin lock operators.
11370 Don't hold the sigstate lock, unlock it after setting the flag.
11371 (_hurd_critical_section_unlock): Take the sigstate lock
11372 to clear the flag; while holding it, check pending signals. After
11373 unlocking, sig_post ourselves if there were pending signals.
11374
11375 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11376 sigstate lock. If it is locked, clear SS->critical_section and
11377 SS->context, and unlock it.
11378
11379 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11380
11381 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11382 * munch-tmpl.c: Likewise.
11383
11384 * mach/Makefile (routines): Don't filter out syscall_% from
11385 $(mach-syscalls).
11386
11387Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
11388
11389 * posix/fnmatch.c: Declare errno if it's not defined.
11390 That's simpler than testing #if !defined(__GNU_LIBRARY__)
11391 && !defined(STDC_HEADERS).
11392
11393Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11394
11395 * csu/Makefile: New file.
11396 * csu/initfini.c: New file.
11397 * Makefile (+other_dirs): Add csu.
11398 (+init): Variable renamed to libc-init. All references changed.
11399 (aux): Remove start.
11400 (install-lib): Variable removed.
11401 (crt0.o, Mcrt1.o crt1.o): Targets removed.
11402
11403 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11404 and $(objpfx)config.h.
11405 (static deps of RPC alias *.o): Removed.
11406
11407 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11408 Protect macros with this.
11409 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11410 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11411 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11412 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11413 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11414 * sysdeps/unix/mips/sysdep.h: Likewise.
11415
11416Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11417
11418 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11419 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11420
11421 * hurd/intr-rpc.awk: Emit weak alias.
11422
11423 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11424 __getpgrp.
11425
11426 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11427 this.
11428 * sysdeps/unix/i386/sysdep.h: Likewise.
11429 * sysdeps/unix/sparc/sysdep.h: Likewise.
11430
11431 * io/ftw.c: Avoid `ret' as variable name.
11432 * posix/glob.c: Likewise.
11433
11434 * ctype/ctype.h (_ISalpha): Define as its own bit.
11435 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11436
11437 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11438 DEFINE_HOOK with this.
11439
11440Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11441
11442 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11443 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11444 * mach/shortcut.awk: Emit weak alias.
11445 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11446 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11447 __ names.
11448 * mach/Makefile (lock): Remove spin-syms.
11449 (routines): Remove __ names, vm_page_size, msgserver_t.
11450 ($(mach-syscalls) rule): Generate files without __, add weak alias.
11451 Remove symbol alias file rule.
11452 ($(mach-shortcuts) rule): Likewise.
11453 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11454 * mach/Machrules (if-calls.c): Variable and rule removed.
11455 (interface-headers): Don't add $($(if)-calls).
11456 (transform-user-stub): Define to add weak alias.
11457 * set-hooks.h: Use new libc-symbols.h set access macros.
11458 * time/Makefile (routines): Remove __ names.
11459 (aux): Variable removed.
11460 * hurd/Makefile: Likewise.
11461 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11462 (data_start): Define as weak alias for __data_start.
11463 * sysdeps/mach/hurd/start.c: Likewise.
11464 * sysdeps/unix/sparc/start.c: Likewise.
11465 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11466 sys_errlist.
11467 * sysdeps/mach/hurd/errlist.awk: Likewise.
11468 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11469 alias for __environ.
11470 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11471 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11472 * sysdeps/stub/getdomain.c: Likewise.
11473 * sysdeps/stub/vhangup.c: Likewise.
11474 * sysdeps/stub/swapon.c: Likewise.
11475 * sysdeps/stub/sendmsg.c: Likewise.
11476 * sysdeps/stub/recvmsg.c: Likewise.
11477 * sysdeps/stub/acct.c: Likewise.
11478 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
11479 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11480 * sysdeps/posix/libc_fatal.c: Likewise.
11481 * sysdeps/i386/abort.c: Likewise.
11482 * sysdeps/i386/__longjmp.c: Likewise.
11483 * sysdeps/generic/make_siglist.c: Emit defn always for
11484 _sys_siglist. Emit weak alias to sys_siglist.
11485 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11486 * sysdeps/ieee754/log10.c: Likewise.
11487 * time/difftime.c: Likewise.
11488 * stdlib/random.c (srand): Define as weak alias for __srandom.
11489 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
11490 macros for __libc_atexit.
11491 * stdlib/Makefile (routines): Remove __random, srand.
11492 * stdio/gets.c: Use new link_warning macro instead of old
11493 warn_references.
11494 * stdio/Makefile (routines): Remove __ names.
11495 (aux): Remove syms-stdio.
11496 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11497 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11498 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11499 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11500 * stdio/stdio.h: Likewise.
11501 * misc/Makefile (routines): Remove __ names.
11502 (aux): Remove data_start.
11503 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11504 * sysdeps/mach/hurd/brk.c: Likewise.
11505 * hurd/hurdid.c: Likewise.
11506 * hurd/hurdpid.c: Likewise.
11507 * hurd/openport.c: Likewise.
11508 * hurd/hurdsock.c: Likewise.
11509 * hurd/hurdsig.c: Likewise.
11510 * hurd/hurdrlimit.c: Likewise.
11511 * hurd/hurdmalloc.c: Likewise.
11512 * hurd/dtable.c: Likewise.
11513 * hurd/setauth.c: Likewise.
11514 * misc/progname.c: Likewise.
11515 * misc/init-misc.c: Likewise.
11516 * sysdeps/generic/vfork.c: Likewise.
11517 * sysdeps/unix/bsd/init-posix.c: Likewise.
11518 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11519 * time/time.h: Likewise.
11520 * math/Makefile (routines): Remove __ names.
11521 * io/Makefile: Likewise.
11522 * termios/Makefile: Likewise.
11523 * resource/Makefile: Likewise.
11524 * signal/Makefile: Likewise.
11525 * dirent/Makefile: Likewise.
11526 * assert/assert.h: Replace __NORETURN keyword with __attribute__
11527 uses. Functions return void and macros deal with this.
11528 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11529 Return void. Don't include gnu-stabs.h.
11530 * assert/assert.c: Likewise.
11531 * posix/Makefile (routines): Remove __ names, setpgrp. Add
11532 getpgid.
11533 (aux): Remove environ.
11534 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11535 __attribute__ use.
11536 * posix/unistd.h (_exit): Likewise.
11537 (__getpgrp, __setpgrp): Declarations removed.
11538 (__getpgid, getpid): Declare these.
11539
11540 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
11541 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
11542 $libc_link_{sources,dests}.
11543 * sysdeps/unix/configure.in: Remove __ from file names. Don't
11544 create files, just add to libc_link_{dests,sources}.
11545
11546 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11547
11548 * config.h.in: Add #undefs used by sysdeps configures.
11549
11550 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11551 __setpgid, __getpgid.
11552 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11553 from setpgrp.c.
11554 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11555 from __getpgrp.c.
11556 * sysdeps/unix/bsd/getpgrp.c: File removed.
11557 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11558 Call __getpgid with zero.
11559 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11560 weak aliases setpgid and setpgrp.
11561 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11562 * sysdeps/unix/common/setpgid.S: Likewise.
11563 * sysdeps/mach/hurd/setpgid.c: Likewise.
11564 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11565 Use subcall 5 to __pgrpsys.
11566 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11567 weak alias getpgid.
11568 * sysdeps/mach/hurd/getpgid.c: Likewise.
11569 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11570 * sysdeps/unix/common/getpgid.S: Likewise.
11571 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11572 Use subcall 4 to __pgrpsys.
11573 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11574 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11575 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11576 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11577 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11578 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11579 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11580 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11581 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11582 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11583 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11584 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11585
11586 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11587 from __getdents.S.
11588
11589 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11590 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11591 warning.
11592 * sysdeps/stub/fexecve.c: Likewise.
11593 * sysdeps/stub/fchdir.c: Likewise.
11594 * sysdeps/stub/fchflags.c: Likewise.
11595 * sysdeps/stub/chflags.c: Likewise.
11596
11597 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11598 * sysdeps/generic/abort.c: Likewise.
11599 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11600
11601 * hurd/hurdioctl.c: Include hurd/ioctl.h.
11602 (_hurd_ioctl_handler_lists): Define this set.
11603 (_hurd_lookup_ioctl_handler): New function.
11604 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11605 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11606 (_hurd_lookup_ioctl_handler): Declare it.
11607 (ioctl_handler_t): New typedef. Use it throughout.
11608 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11609 (_hurd_ioctl_handler_lists): Don't define.
11610 (__ioctl): Call _hurd_lookup_ioctl_handler.
11611
11612 * stdlib/strtol.c (maxquad): Make this const.
11613 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11614
11615 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11616 any compile tests.
11617
11618 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11619 __msg_sig_post_request, not __sig_post_request.
11620
11621 * misc/getusersh.c: Renamed to getusershell.c.
11622 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11623 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11624 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11625 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11626
11627Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11628
11629 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11630 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11631 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11632 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11633 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11634 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11635 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11636 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11637 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11638 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11639 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11640 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11641 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11642 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11643 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11644 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11645 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11646 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11647 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11648 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11649 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11650 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11651 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11652 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11653 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11654 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11655 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11656 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11657 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11658 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11659
11660 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11661 of __sig_post.
11662 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11663 * sysdeps/mach/hurd/kill.c: Likewise.
11664 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11665
11666 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11667 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11668
11669 * sysdeps/stub/remove.c: New file.
11670 * sysdeps/posix/remove.c: New file.
11671
11672Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11673
11674 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11675 mktime.
11676 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11677 __mig_strncpy.
11678 * mach/msg-destroy.c: Renamed from __msg_dest.c.
11679 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11680 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11681 * time/tzset.c (tzname, daylight, timezone): Define as weak
11682 aliases for __ names.
11683 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11684 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11685 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11686 being defined.
11687
11688Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11689
11690 * string/Makefile (routines): Remove __ names, index, rindex, and
11691 bcmp.
11692 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11693 alias for strchr.
11694 * sysdeps/generic/strchr.c: Likewise.
11695 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11696 alias for strrchr.
11697 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11698 alias for memcmp.
11699
11700 * malloc/free.c (cfree): Define this function, with weak_alias if
11701 available, otherwise a C function.
11702 * malloc/Makefile (gmalloc-routines): Remove cfree.
11703
11704Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11705
11706 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11707 get_limit. This has the effect of no-op'ing properly for zero.
11708
11709 * configure.in: Add AC_CONFIG_HEADER(config.h).
11710 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11711 * config.h.in: New file.
11712
11713 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11714 All code converted to use weak symbols, defined in the files which
11715 define the real code (with the __ names, the non-__ names are weak).
11716 All old symbol alias files removed.
11717 Many files renamed to remove __ prefix since there is now just
11718 the one file for both the __ and non-__ name for each function.
11719 * libc-symbols.h: New file.
11720 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11721 sets.
11722 * gnu-stabs.h: Prepend #error this file is obsolete.
11723 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11724 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11725 access.
11726 * sysdeps/unix/common/__access.S: Likewise.
11727 * sysdeps/mach/hurd/__access.c: Likewise.
11728 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11729 adjtime.
11730 * sysdeps/unix/common/__adjtime.S: Likewise.
11731 * sysdeps/mach/__adjtime.c: Likewise.
11732 * sysdeps/mach/hurd/__adjtime.c: Likewise.
11733 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11734 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11735 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11736 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11737 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11738 * sysdeps/unix/i386/__brk.S: Likewise.
11739 * sysdeps/unix/sparc/__brk.S: Likewise.
11740 * sysdeps/unix/mips/__brk.S: Likewise.
11741 * sysdeps/mach/hurd/__brk.c: Likewise.
11742 * sysdeps/standalone/__brk.c: Likewise.
11743 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11744 * sysdeps/unix/__chdir.S: Likewise.
11745 * sysdeps/mach/hurd/__chdir.c: Likewise.
11746 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11747 * sysdeps/unix/__chmod.S: Likewise.
11748 * sysdeps/mach/hurd/__chmod.c: Likewise.
11749 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11750 * sysdeps/unix/__chown.S: Likewise.
11751 * sysdeps/mach/hurd/__chown.c: Likewise.
11752 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11753 * sysdeps/unix/__close.S: Likewise.
11754 * sysdeps/mach/hurd/__close.c: Likewise.
11755 * sysdeps/standalone/__close.c: Likewise.
11756 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11757 alias copysign.
11758 * sysdeps/ieee754/__copysign.c: Likewise.
11759 * sysdeps/alpha/__copysign.c: Likewise.
11760 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11761 * sysdeps/m68k/fpu/__drem.c: Likewise.
11762 * sysdeps/stub/__drem.c: Likewise.
11763 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11764 * sysdeps/stub/__dup.c: Likewise.
11765 * sysdeps/unix/__dup.S: Likewise.
11766 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11767 * sysdeps/stub/__dup2.c: Likewise.
11768 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11769 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11770 * sysdeps/unix/common/__dup2.S: Likewise.
11771 * sysdeps/mach/hurd/__dup2.c: Likewise.
11772 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11773 execve.
11774 * sysdeps/unix/__execve.S: Likewise.
11775 * sysdeps/mach/hurd/__execve.c: Likewise.
11776 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11777 expm1.
11778 * sysdeps/m68k/fpu/__expm1.c: Likewise.
11779 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11780 fchmod.
11781 * sysdeps/unix/common/__fchmod.S: Likewise.
11782 * sysdeps/mach/hurd/__fchmod.c: Likewise.
11783 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11784 fchown.
11785 * sysdeps/unix/common/__fchown.S: Likewise.
11786 * sysdeps/mach/hurd/__fchown.c: Likewise.
11787 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11788 * sysdeps/unix/__fcntl.S: Likewise.
11789 * sysdeps/mach/hurd/__fcntl.c: Likewise.
11790 * math/__finite.c: Renamed to finite.c; added weak alias finite.
11791 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11792 * sysdeps/stub/__flock.c: Likewise.
11793 * sysdeps/unix/bsd/__flock.S: Likewise.
11794 * sysdeps/mach/hurd/__flock.c: Likewise.
11795 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11796 fopenport.
11797 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11798 * sysdeps/unix/__fork.S: Likewise.
11799 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11800 * sysdeps/unix/i386/__fork.S: Likewise.
11801 * sysdeps/unix/sparc/__fork.S: Likewise.
11802 * sysdeps/unix/mips/__fork.S: Likewise.
11803 * sysdeps/mach/hurd/__fork.c: Likewise.
11804 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11805 alias fpathconf.
11806 * sysdeps/stub/__fpathcon.c: Likewise.
11807 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11808 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11809 * sysdeps/unix/__fstat.S: Likewise.
11810 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11811 * sysdeps/mach/hurd/__fstat.c: Likewise.
11812 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11813 getdelim.
11814 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11815 alias getdents.
11816 * sysdeps/unix/__getdents.c: Likewise.
11817 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11818 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11819 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11820 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11821 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11822 * sysdeps/unix/sysv/__getdents.c: Likewise.
11823 * sysdeps/mach/hurd/__getdents.c: Likewise.
11824 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11825 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11826 alias getdtablesize.
11827 * sysdeps/stub/__getdtsz.c: Likewise.
11828 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11829 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11830 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11831 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11832 getegid.
11833 * sysdeps/unix/__getegid.S: Likewise.
11834 * sysdeps/mach/hurd/__getegid.c: Likewise.
11835 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11836 geteuid.
11837 * sysdeps/unix/__geteuid.S: Likewise.
11838 * sysdeps/mach/hurd/__geteuid.c: Likewise.
11839 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11840 getgid.
11841 * sysdeps/unix/__getgid.S: Likewise.
11842 * sysdeps/mach/hurd/__getgid.c: Likewise.
11843 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11844 alias getgroups.
11845 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11846 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11847 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11848 * sysdeps/unix/common/__getgrps.S: Likewise.
11849 * sysdeps/mach/hurd/__getgrps.c: Likewise.
11850 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
86d2c878 11851 alias gethostname.
28f540f4
RM
11852 * sysdeps/unix/inet/__gethstnm.S: Likewise.
11853 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11854 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11855 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11856 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11857 alias getitimer.
11858 * sysdeps/unix/common/__getitmr.S: Likewise.
11859 * sysdeps/mach/hurd/__getitmr.c: Likewise.
11860 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11861 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11862 alias getpagesize.
11863 * sysdeps/stub/__getpgsz.c: Likewise.
11864 * sysdeps/unix/__getpgsz.c: Likewise.
11865 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11866 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11867 * sysdeps/mach/__getpgsz.c: Likewise.
11868 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11869 getpid.
11870 * sysdeps/unix/__getpid.S: Likewise.
11871 * sysdeps/mach/hurd/__getpid.c: Likewise.
11872 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11873 getppid.
11874 * sysdeps/unix/__getppid.S: Likewise.
11875 * sysdeps/mach/hurd/__getppid.c: Likewise.
11876 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11877 alias gettimeofday.
11878 * sysdeps/stub/__gettod.c: Likewise.
11879 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11880 * sysdeps/unix/common/__gettod.S: Likewise.
11881 * sysdeps/mach/__gettod.c: Likewise.
11882 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11883 getuid.
11884 * sysdeps/unix/__getuid.S: Likewise.
11885 * sysdeps/mach/hurd/__getuid.c: Likewise.
11886 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11887 alias infnan.
11888 * sysdeps/ieee754/__infnan.c: Likewise.
11889 * sysdeps/vax/__infnan.c: Likewise.
11890 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11891 * sysdeps/unix/__ioctl.S: Likewise.
11892 * sysdeps/mach/hurd/__ioctl.c: Likewise.
11893 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11894 isatty.
11895 * sysdeps/stub/__isatty.c: Likewise.
11896 * sysdeps/unix/bsd/__isatty.c: Likewise.
11897 * sysdeps/mach/hurd/__isatty.c: Likewise.
11898 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11899 isinf.
11900 * sysdeps/m68k/fpu/__isinf.c: Likewise.
11901 * sysdeps/stub/__isinf.c: Likewise.
11902 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11903 isnan.
11904 * sysdeps/ieee754/__isnan.c: Likewise.
11905 * sysdeps/m68k/fpu/__isnan.c: Likewise.
11906 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11907 * sysdeps/unix/__kill.S: Likewise.
11908 * sysdeps/mach/hurd/__kill.c: Likewise.
11909 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11910 * sysdeps/unix/__link.S: Likewise.
11911 * sysdeps/mach/hurd/__link.c: Likewise.
11912 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11913 * sysdeps/m68k/fpu/__logb.c: Likewise.
11914 * sysdeps/stub/__logb.c: Likewise.
11915 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11916 * sysdeps/unix/__lseek.S: Likewise.
11917 * sysdeps/mach/hurd/__lseek.c: Likewise.
11918 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11919 lstat.
11920 * sysdeps/stub/__lstat.c: Likewise.
11921 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11922 * sysdeps/unix/common/__lstat.S: Likewise.
11923 * sysdeps/mach/hurd/__lstat.c: Likewise.
11924 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11925 alias memccpy.
11926 * sysdeps/vax/__memccpy.c: Likewise.
11927 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11928 * sysdeps/unix/sysv/__mkdir.c: Likewise.
11929 * sysdeps/unix/common/__mkdir.S: Likewise.
11930 * sysdeps/mach/hurd/__mkdir.c: Likewise.
11931 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11932 * sysdeps/unix/__mknod.S: Likewise.
11933 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11934 * sysdeps/mach/hurd/__mknod.c: Likewise.
11935 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11936 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11937 mach_msg_server.
11938 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11939 * sysdeps/unix/__open.S: Likewise.
11940 * sysdeps/mach/hurd/__open.c: Likewise.
11941 * sysdeps/standalone/__open.c: Likewise.
11942 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11943 alias pathconf.
11944 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11945 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11946 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11947 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
11948 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
11949 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
11950 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
11951 * sysdeps/unix/i386/__pipe.S: Likewise.
11952 * sysdeps/unix/sparc/__pipe.S: Likewise.
11953 * sysdeps/unix/mips/__pipe.S: Likewise.
11954 * sysdeps/mach/hurd/__pipe.c: Likewise.
11955 * stdlib/__random.c: Renamed to random.c; added weak alias random.
11956 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
11957 * sysdeps/unix/__read.S: Likewise.
11958 * sysdeps/mach/hurd/__read.c: Likewise.
11959 * sysdeps/standalone/__read.c: Likewise.
11960 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
11961 alias readlink.
11962 * sysdeps/unix/common/__readlink.S: Likewise.
11963 * sysdeps/mach/hurd/__readlink.c: Likewise.
11964 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
11965 * sysdeps/m68k/fpu/__rint.c: Likewise.
11966 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
11967 * sysdeps/unix/sysv/__rmdir.c: Likewise.
11968 * sysdeps/unix/common/__rmdir.S: Likewise.
11969 * sysdeps/mach/hurd/__rmdir.c: Likewise.
11970 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
11971 * sysdeps/stub/__sbrk.c: Likewise.
11972 * sysdeps/mach/hurd/__sbrk.c: Likewise.
11973 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
11974 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
11975 select.
11976 * sysdeps/unix/common/__select.S: Likewise.
11977 * sysdeps/mach/hurd/__select.c: Likewise.
11978 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
11979 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
11980 setgid.
11981 * sysdeps/unix/__setgid.S: Likewise.
11982 * sysdeps/unix/bsd/__setgid.c: Likewise.
11983 * sysdeps/mach/hurd/__setgid.c: Likewise.
11984 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
86d2c878 11985 setitmr
28f540f4
RM
11986 * sysdeps/unix/common/__setitmr.S: Likewise.
11987 * sysdeps/mach/hurd/__setitmr.c: Likewise.
11988 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
86d2c878 11989 setpgrp
28f540f4
RM
11990 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
11991 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
11992 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
11993 * sysdeps/unix/common/__setpgrp.S: Likewise.
11994 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
11995 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
11996 alias setregid.
11997 * sysdeps/unix/common/__setregid.S: Likewise.
11998 * sysdeps/mach/hurd/__setregid.c: Likewise.
11999 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
12000 alias setreuid.
12001 * sysdeps/unix/common/__setreuid.S: Likewise.
12002 * sysdeps/mach/hurd/__setreuid.c: Likewise.
12003 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
12004 setsid.
12005 * sysdeps/unix/bsd/__setsid.c: Likewise.
12006 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
12007 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
12008 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
12009 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
12010 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
12011 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
12012 * sysdeps/mach/hurd/__setsid.c: Likewise.
12013 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
12014 settimeofday.
12015 * sysdeps/unix/bsd/__settod.S: Likewise.
12016 * sysdeps/unix/sysv/__settod.c: Likewise.
12017 * sysdeps/mach/hurd/__settod.c: Likewise.
12018 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
12019 setuid.
12020 * sysdeps/unix/__setuid.S: Likewise.
12021 * sysdeps/unix/bsd/__setuid.c: Likewise.
12022 * sysdeps/mach/hurd/__setuid.c: Likewise.
12023 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
12024 alias sigblock.
12025 * sysdeps/stub/__sigblock.c: Likewise.
12026 * sysdeps/unix/bsd/__sigblock.S: Likewise.
12027 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
12028 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
12029 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
12030 alias sigpause.
12031 * sysdeps/stub/__sigpause.c: Likewise.
12032 * sysdeps/unix/bsd/__sigpause.S: Likewise.
12033 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
12034 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
12035 alias sigprocmask.
12036 * sysdeps/unix/bsd/__sigproc.c: Likewise.
12037 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
12038 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
12039 * sysdeps/mach/hurd/__sigproc.c: Likewise.
12040 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
12041 alias sigreturn.
12042 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
12043 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
12044 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
12045 * sysdeps/unix/i386/__sigret.S: Likewise.
12046 * sysdeps/unix/mips/__sigret.S: Likewise.
12047 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
12048 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
12049 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
12050 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
12051 sigvec.
12052 * sysdeps/stub/__sigvec.c: Likewise.
12053 * sysdeps/unix/bsd/__sigvec.S: Likewise.
12054 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
12055 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
12056 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
12057 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
12058 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
12059 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
12060 * sysdeps/unix/__stat.S: Likewise.
12061 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
12062 * sysdeps/mach/hurd/__stat.c: Likewise.
12063 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
12064 alias stpncpy.
12065 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
12066 symlink.
12067 * sysdeps/unix/common/__symlink.S: Likewise.
12068 * sysdeps/mach/hurd/__symlink.c: Likewise.
12069 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
12070 alias sysconf.
12071 * sysdeps/stub/__sysconf.c: Likewise.
12072 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
12073 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
12074 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
12075 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
12076 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
12077 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
12078 * sysdeps/unix/bsd/__times.c: Likewise.
12079 * sysdeps/unix/sysv/__times.S: Likewise.
12080 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
12081 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
12082 * sysdeps/unix/__umask.S: Likewise.
12083 * sysdeps/mach/hurd/__umask.c: Likewise.
12084 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
12085 unlink.
12086 * sysdeps/unix/__unlink.S: Likewise.
12087 * sysdeps/mach/hurd/__unlink.c: Likewise.
12088 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
12089 utimes.
12090 * sysdeps/unix/bsd/__utimes.S: Likewise.
12091 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
12092 * sysdeps/mach/hurd/__utimes.c: Likewise.
12093 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
12094 vfork.
12095 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
12096 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
12097 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
12098 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
12099 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
12100 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
12101 * sysdeps/unix/sparc/__vfork.S: Likewise.
12102 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
12103 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
12104 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
12105 * sysdeps/stub/__wait.c: Likewise.
12106 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
12107 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
12108 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
12109 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
12110 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
12111 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
12112 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
12113 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
12114 * sysdeps/unix/i386/__wait.S: Likewise.
12115 * sysdeps/unix/mips/__wait.S: Likewise.
12116 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
12117 * sysdeps/stub/__wait3.c: Likewise.
12118 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
12119 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
12120 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
12121 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
12122 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
12123 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
12124 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
12125 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
12126 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
12127 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
12128 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
12129 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
12130 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
12131 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
12132 * sysdeps/mach/hurd/__wait4.c: Likewise.
12133 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
12134 waitpid.
12135 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
12136 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
12137 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
12138 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
12139 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
12140 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
12141 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
12142 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
12143 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
12144 * sysdeps/unix/__write.S: Likewise.
12145 * sysdeps/mach/hurd/__write.c: Likewise.
12146 * sysdeps/standalone/__write.c: Likewise.
12147 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
12148 alias tcgetattr.
12149 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
12150 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
12151 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
12152 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
12153 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
12154 alias sigaction.
12155 * sysdeps/unix/bsd/__sigact.c: Likewise.
12156 * sysdeps/unix/sysv/__sigact.c: Likewise.
12157 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
12158 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
12159 * sysdeps/mach/hurd/__sigact.c: Likewise.
12160 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
12161 alias sigsetmask.
12162 * sysdeps/stub/__sigstmsk.c: Likewise.
12163 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
12164 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
12165 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
12166 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
12167 alias getrusage.
12168 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
12169 * sysdeps/unix/common/__getrusag.S: Likewise.
12170 * hurd/task2pid.c: File removed.
12171 * hurd/setauth.c: File removed.
12172 * hurd/pid2task.c: File removed.
12173 * hurd/hurdsyms.c: File removed.
12174 * hurd/getdport.c: File removed.
12175 * hurd/fopenport.c: File removed.
12176 * mach/thread-sym.c: File removed.
12177 * mach/spin-syms.c: File removed.
12178 * mach/msgserver_t.c: File removed.
12179 * mach/msgserver.c: File removed.
12180 * mach/msg.c: File removed.
12181 * mach/mig_syms.c: File removed.
12182 * malloc/mcheck-init.c: File removed.
12183 * malloc/cfree.c: File removed.
12184 * io/flock.c: File removed.
12185 * io/write.c: File removed.
12186 * io/unlink.c: File removed.
12187 * io/umask.c: File removed.
12188 * io/symlink.c: File removed.
12189 * io/rmdir.c: File removed.
12190 * io/readlink.c: File removed.
12191 * io/read.c: File removed.
12192 * io/pipe.c: File removed.
12193 * io/open.c: File removed.
12194 * io/mkdir.c: File removed.
12195 * io/lstat.c: File removed.
12196 * io/lseek.c: File removed.
12197 * io/link.c: File removed.
12198 * io/isatty.c: File removed.
12199 * io/stat.c: File removed.
12200 * io/fstat.c: File removed.
12201 * io/fchown.c: File removed.
12202 * io/fchmod.c: File removed.
12203 * io/dup2.c: File removed.
12204 * io/dup.c: File removed.
12205 * io/close.c: File removed.
12206 * io/fcntl.c: File removed.
12207 * io/chmod.c: File removed.
12208 * io/chdir.c: File removed.
12209 * io/access.c: File removed.
12210 * io/chown.c: File removed.
12211 * time/tzset.c: File removed.
12212 * time/timelocal.c: File removed.
12213 * time/syms-time.c: File removed.
12214 * time/settod.c: File removed.
12215 * time/setitmr.c: File removed.
12216 * time/gettod.c: File removed.
12217 * time/getitmr.c: File removed.
12218 * time/adjtime.c: File removed.
12219 * termios/tcgetattr.c: File removed.
12220 * string/stpncpy.c: File removed.
12221 * string/rindex.c: File removed.
12222 * string/memccpy.c: File removed.
12223 * string/index.c: File removed.
12224 * string/bcmp.c: File removed.
12225 * stdlib/srand.c: File removed.
12226 * stdlib/random.c: File removed.
12227 * stdio/vsscanf.c: File removed.
12228 * stdio/vfscanf.c: File removed.
12229 * stdio/syms-stdio.c: File removed.
12230 * stdio/remove.c: File removed.
12231 * stdio/getline.c: File removed.
12232 * stdio/getdelim.c: File removed.
12233 * signal/ssignal.c: File removed.
12234 * signal/sigvec.c: File removed.
12235 * signal/sigsetmask.c: File removed.
12236 * signal/sigret.c: File removed.
12237 * signal/sigproc.c: File removed.
12238 * signal/sigpause.c: File removed.
12239 * signal/sigblock.c: File removed.
12240 * signal/sigaction.c: File removed.
12241 * signal/kill.c: File removed.
12242 * signal/gsignal.c: File removed.
12243 * setjmp/siglongjmp.c: File removed.
12244 * setjmp/_longjmp.c: File removed.
12245 * resource/getrusage.c: File removed.
12246 * posix/waitpid.c: File removed.
12247 * posix/wait4.c: File removed.
12248 * posix/wait3.c: File removed.
12249 * posix/wait.c: File removed.
12250 * posix/times.c: File removed.
12251 * posix/sysconf.c: File removed.
12252 * posix/setuid.c: File removed.
12253 * posix/setsid.c: File removed.
12254 * posix/setpgrp.c: File removed.
12255 * posix/setpgid.c: File removed.
12256 * posix/setgid.c: File removed.
12257 * posix/pathconf.c: File removed.
12258 * posix/getuid.c: File removed.
12259 * posix/getppid.c: File removed.
12260 * posix/getpid.c: File removed.
12261 * posix/getgrps.c: File removed.
12262 * posix/getgid.c: File removed.
12263 * posix/geteuid.c: File removed.
12264 * posix/getegid.c: File removed.
12265 * posix/fpathcon.c: File removed.
12266 * posix/fork.c: File removed.
12267 * posix/execve.c: File removed.
12268 * posix/environ.c: File removed.
12269 * misc/utimes.c: File removed.
12270 * misc/setreuid.c: File removed.
12271 * misc/setregid.c: File removed.
12272 * misc/select.c: File removed.
12273 * misc/sbrk.c: File removed.
12274 * misc/mknod.c: File removed.
12275 * misc/ioctl.c: File removed.
12276 * misc/getpgsz.c: File removed.
12277 * misc/gethstnm.c: File removed.
12278 * misc/getdtsz.c: File removed.
12279 * misc/data_start.c: File removed.
12280 * misc/brk.c: File removed.
12281 * math/scalb.c: File removed.
12282 * math/rint.c: File removed.
12283 * math/logb.c: File removed.
12284 * math/isnan.c: File removed.
12285 * math/isinf.c: File removed.
12286 * math/infnan.c: File removed.
12287 * math/finite.c: File removed.
12288 * math/expm1.c: File removed.
12289 * math/drem.c: File removed.
12290 * math/copysign.c: File removed.
12291 * math/__scalb.c: File removed.
12292 * dirent/getdents.c: File removed.
12293
12294Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12295
12296 * sysdeps/generic/morecore.c (__default_morecore): Use
12297 __malloc_ptrdiff_t; don't cast arg to int.
12298
12299 * resolv/getnetnamadr.c: Include "conf/portability.h".
12300
12301Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12302
12303 * stdlib/strtol.c: Include errno.h.
12304 [QUAD] (ULONG_MAX): Define to a static variable initialized to
12305 ULONG_LONG_MAX. This is to work around a GCC bug in using the
12306 constant in arithmetic.
12307
12308 * posix/unistd.h (daemon): Declare it.
12309
12310 * malloc/mcheck-init.c: Remove GNU ld hacks.
12311 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12312 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12313 (initialize): Call the hook if set.
12314 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12315 (__malloc_initialize_hook): Declare new hook variable.
12316
12317Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12318
12319 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12320 * hurd/hurdpid.c: Likewise.
12321 * hurd/hurdauth.c: Likewise.
12322
12323Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12324
12325 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12326 if any are successful.
12327
12328 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
86d2c878 12329 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
28f540f4
RM
12330 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12331 functions.
12332 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12333
12334 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12335 * hurd/hurd-raise.c: Likewise.
12336 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12337
12338 * sysdeps/mach/hurd/ptrace.c: New file.
12339
12340 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12341 interface, which has normal EINTR semantics. Instead of waiting
12342 for io_select_done notification messages, send io_select messages
12343 with short reply timeout and then wait for io_select_reply
12344 messages.
12345
12346 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12347 EXEC_INHERITED) to file_exec.
12348
12349 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12350 use sig_post_untraced_reply. All callers changed.
86d2c878 12351 (abort_thread, abort_rpcs): Take same new arg and pass it through.
28f540f4
RM
12352 All callers changed.
12353 (_hurd_internal_post_signal): Take new arg UNTRACED.
12354 If zero and process is traced, stop with SIGNO as stop signal. If
12355 nonzero, resume process before delivering signal (unless
12356 ACT==stop). Expand local fn sigwakeup into block at end taken iff
12357 SIGNO!=0.
12358 (signal_allowed): New function, broken out of _S_sig_post.
12359 (_S_sig_post): Call it. Pass UNTRACED arg of false to
12360 _hurd_internal_post_signal.
12361 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
12362 pass true for UNTRACED.
12363 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12364 UNTRACED.
12365 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12366 to _hurd_internal_post_signal (value zero).
12367
12368Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12369
12370 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12371 (_hurd_init): Initialize it from FLAGS arg.
12372 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12373 raise a SIGTRAP signal (with a sigcode of zero).
12374 * hurd/hurd.h (_hurd_exec_flags): Declare it.
12375
12376 * Version 1.09.5.
12377
12378Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12379
12380 * malloc/malloc.c (malloc): Fix 1-off in previous change.
12381
12382Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12383
12384 * posix/glob/Makefile.in: Remove config.h and config.log.
12385
12386Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12387
12388 * posix/glob/configure.in: Add AC_CONST check.
12389
12390 * conf/portability.h: #undef sun.
12391 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12392 * resolv/getnetnamadr.c: Likewise.
12393
12394 * socket/Makefile (headers): Add sockaddrcom.h.
12395 * inet/netinet/in.h: Include <sockaddrcom.h>.
12396 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12397 * socket/sys/un.h (struct sockaddr_in): Likewise.
12398 * socket/sys/socket.h (struct sockaddr): Likewise.
12399 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12400 * sysdeps/generic/sockaddrcom.h: New file.
12401
12402 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12403 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12404 F_FREESP): New macros.
12405 * sysdeps/posix/truncate.c: New file.
12406
12407 * malloc/malloc.c (malloc): Fix typos in RMS's change.
12408
12409 * malloc/Makefile (dist-routines): Add malloc-find.
12410 * malloc/malloc.h (malloc_find_object_address): Declare it.
12411 * malloc/malloc-find.c: New file.
12412
12413 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12414 __malloc_size_t.
12415 (malloc_info): Use that type for member `busy.info.size'.
12416
12417 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12418 `LONG' macro.
12419 [! QUAD] (LONG): Define as long.
12420 [QUAD] (LONG): Define as long long.
12421 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12422 versions.
12423 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12424 * stdlib/Makefile (routines): Add strtoq and strtouq.
12425 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12426 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12427 Declare them.
12428
12429 * stdio/vfprintf.c: If there was a precision specified, ignore the
12430 0 flag and always pad with spaces.
12431
12432 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12433 Use a loop and also stop on first !isascii char.
12434
12435Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12436
12437 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12438
12439 * malloc/malloc.c (malloc): For a multi-block object, store a
12440 negative number into the busy.info.size of all but the first block.
12441
12442Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
12443
12444 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12445 instead of t0, t1, and t2.
12446
12447Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12448
12449 * malloc/memalign.c (__memalign_hook): New variable.
12450 (memalign): Call it if set.
12451 * malloc/malloc.h (__memalign_hook): Declare new variable.
12452
12453Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12454
12455 * conf/portability.h: Include string.h and stdlib.h.
12456 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12457 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12458 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12459 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12460 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12461
12462 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
12463 all uses of `extern __inline' with `__m81_inline'.
12464
12465 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12466 * sysdeps/unix/__fork.S: Swap args in subl.
12467
12468 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12469 compatibility.
12470
12471Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
12472
12473 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12474 of swtch.
12475 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12476 * mach/spin-solid.c (__spin_lock_solid): Likewise.
12477
12478Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12479
12480 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12481 for PBUF.
12482 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12483
12484 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12485
12486Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12487
12488 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12489 in `bis' insn; immediate must be second.
12490
12491 * sysdeps/unix/__fork.S: Use subl instead of decl.
12492 * sysdeps/unix/i386/__fork.S: New file.
12493
12494 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12495 Remove A macro; just use `asm volatile' with proper quotes in each
12496 line.
12497 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12498 jmp target register.
12499
12500 * time/africa, time/asia, time/australasia, time/emkdir.c,
12501 time/europe, time/ialloc.c, time/northamerica, time/private.h,
12502 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12503 and data from ADO 94h distribution.
12504
12505 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12506 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
12507 absolute pointer. Put second store in jmp delay slot.
12508
12509Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12510
12511 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12512 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
12513 absolute pointer.
12514 * sysdeps/sparc/bsd-setjmp.S: Likewise.
12515
12516 * configure.in: Use ; before } in { ... } exprs.
12517
e215c478 12518\f
28f540f4 12519
e215c478 12520See ChangeLog.4 for earlier changes.
This page took 1.527679 seconds and 5 git commands to generate.