]> sourceware.org Git - glibc.git/blame - ChangeLog
Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
CommitLineData
cf725107
RM
1Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2
3 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
4
87e4c1ba
RM
5Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
6
7 * crypt/Makefile (lib-noranlib): Depend on
8 $(objpfx)libcrypt.so$(libcrypt.so-version).
cf725107 9 (subdir): Fix name.
87e4c1ba 10
49b98627
RM
11Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
12
13 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
14 check. mib's clueless hacking broke it.
15
16Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
17
18 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
19
20Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
21
49b98627
RM
22 * misc/sys/ustat.h: New file.
23 * misc/ustat.h: Ditto.
24 * sysdeps/generic/ustatbits.h: Ditto.
87e4c1ba 25 * sysdeps/stub/ustat.c: Ditto.
49b98627
RM
26 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
27 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
28 ustatbits.h.
29 (routines): Mention ustat.
30
87e4c1ba
RM
31 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
32 * sysdeps/alpha/elf/start.S: here.
33
49b98627
RM
34 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
35 alphabetically correct place. Mention ustat.
36
37 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
38 common symbol (makes errno accessible from gdb).
39
40 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
41 test, not ut_type.
42
43 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
44 record always gets appended at end of file (wtmp is a log file,
45 after all). Set ut_type to DEAD_PROCESS if name is empty.
46
47 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
48 separate loop from search for UT_ID. Fix code so it is in
49 sync with Unix man page.
50
51 * login/getutline_r.c (getutline_r): Stop searching only if
52 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
53
54Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
55
56 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
57 avoid duplicate declarations.
58
59Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
60
61 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
62 and alpha-gnu-linuxecoff targets.
63
64Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
65
66 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
67
68Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
69
70 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
71 of int.
72
73 * resolv/res_comp.c (res_hnok): Use empty statement in place
74 of NULL (which generates a "useless expression" warning in
75 gcc).
76
d7bca0d3
RM
77Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
78
79 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
80 with $(..) in output.
81
f18edac3
RM
82Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
83
84 * elf/Makefile (dl-routines): Add dl-cache.
85 * elf/dl-cache.c: New file.
86 * elf/dl-load.c (_dl_map_object): Check cache before default path.
87
3867ee64
RM
88Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
89
90 * stdio-common/vfscanf.c: Major change. Now read character
91 from stream only if needed. Before it was read after the
92 previous character was used.
93 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
94
95 * stdio-common/tstscanf.c: Change test program so that return
96 value is != 0 if one test failed.
97
ec2ac6d5
RM
98Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
99
3867ee64
RM
100 * sysdeps/m68k/Makefile (crypt): Variable removed.
101 * sysdeps/sparc/Makefile: Likewise.
102
ec2ac6d5
RM
103 * version.h (VERSION): Update to 1.93.
104
105 * Makerules ($(libdir)/libc.so): Depend on
106 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
107
108 * crypt/nocrypt.c: New file.
109 * Makefile (subdirs): Add crypt.
110 * crypt/Makefile: New file.
111
112 * Makerules (soversions.mk): Move this target, include of it, and
113 include of version.mk to ...
114 * Makeconfig: ... here.
115 (soversions.mk): Depend on Makeconfig instead of Makerules.
116
117 * shlib-versions (*-*-*): Set libcrypt=0.
118
8a5776e6
MB
119Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
120
121 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
122 word extends right up to rmargin.
123
124 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
125 output the wrap margin, set point_col to wmargin.
126 Use negative point_col to deal with a wmargin of 0.
127 (line_wrap_point): Return 0 for a negative point_col.
128 (line_wrap_stream): Make wmargin ssize_t.
129 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
130 point_col ssize_t.
131 (line_wrap_stream): Make wmargin ssize_t.
132 (line_wrap_point): Return 0 for a negative point_col.
133
ec2ac6d5
RM
134Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
135
136 * shlib-versions (*-*-gnu*): Set libc=0.0
137
138Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
139
140 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
141 sysdeps/i386/dl-machine.h.
142
8a5776e6
MB
143Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
144
145 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
146 to fiddle __put_limit in conjunction with __linebuf_active.
147
ec2ac6d5
RM
148Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
149
150 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
151 to the strong name, not the file name.
152
f36f8dcf
RM
153Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
154
ec2ac6d5
RM
155 * csu/initfini.c: More magic. Detect if .end is produced and put it
156 in the output iff the compiler does.
157
184b7b46
RM
158 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
159 because that is broken on alpha.
160
f36f8dcf
RM
161 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
162 call as in first.
163
164 * Makerules (make-link): Install the new link with atomic mv -f in
165 case ln itself requires the library being installed.
166
ec42724d
RM
167Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
168
169 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
170 i386/dl-machine.h of 960713.
171
172 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
173 (_dl_sysdep_read_whole_file): Fix result variable declaration.
174
175Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
176
177 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
178 `nodename' member.
179
180Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
181
182 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
183 with pointer to local variable instead of NULL.
184
1851996-07-15 Paul Eggert <eggert@twinsun.com>
186
187 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
188
189Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
190
191 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
192 that are already added by other means.
193
194 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
195 caller column to get those syscalls added automagically.
196
05a6a9d6
MB
197Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
198
199 * login/logout.c (logout): Initialize DATA to a state that will
200 make setutent_r happy.
201
2064087b
RM
202Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
203
ec42724d
RM
204 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
205 instead of setting the DT_DEBUG pointer.
206
207 * csu/initfini.c (_init, _fini): Generate .end directives after
208 standalone prologues and filter them out from epilogues.
209
391763e7
RM
210 * Makeconfig (rtld-installed-name): Set to ld.so.1.
211 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
212 removed.
213
214 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
215
216 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
217
a78b0f18
RM
218 * MakeTAGS (extract): Pass --add-comments=TRANS.
219 * sysdeps/gnu/errlist.awk: Write comments into the output with the
220 descriptive paragraphs from the manual preceded by TRANS.
221
b1dbbaa4
RM
222 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
223 (_dl_start): Move RESOLVE defn inside this function and #include
224 "dynamic-link.h" a second time there.
225 [RTLD_START]: Move use of this after _dl_start function.
226
f51d1dfd
RM
227 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
228
229 * elf/rtld.c: Include <string.h>.
230
231 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
232 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
233 Conditionalize defns on [RESOLVE].
234 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
235 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
236 Instead use RESOLVE macro with same args.
237 (elf_machine_rel): Conditionalize defn on [RESOLVE].
238 * elf/dl-reloc.c (RESOLVE): New macro, define before including
239 "dynamic-link.h". It replaces `resolve' local function.
240 * elf/dl-runtime.c: Likewise.
241 * elf/rtld.c: Likewise.
242
c928de79
RM
243 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
244
245 * elf/dl-open.c (_dl_open): Force an indirect call for
246 _dl_relocate_object so there is no chance a PLT fixup will be done
247 and clobber _dl_global_scope before our call happens.
248
249 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
250 to =t; must operate on top of fp reg stack, not second from top.
251 Correct input constraint to 0 from t; must be explicit when input and
252 output are the same register.
253 (floor): Use __volatile instead of volatile.
254 (ceil): Likewise.
255
256 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
257 other targets.
2064087b
RM
258
259Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
260
261 * manual/Makefile (lib): New phony target. Depend on stamp files.
262 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
263
2641996-07-13 Paul Eggert <eggert@twinsun.com>
265
266 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
267 to match Emacs format-time-string specification.
268 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
269
270Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
271
272 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
273 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
274 between MAP and its deps.
275 * elf/link.h: Fix decl.
276 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
277 colon-separated list of names, map those and pass vector of ptrs as
278 PRELOADS list to _dl_map_object_deps.
279 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
280 _dl_map_object_deps with empty preload list.
281 * elf/dl-open.c (_dl_open): Likewise.
282
283 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
284 removed.
285 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
286 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
287 Conditionalize defn on [! MAP_ANON].
288 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
289 on [! MAP_ANON].
290 * elf/rtld.c (dl_main): Likewise.
291 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
292 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
293
294 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
295
296Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
297
298 * stdlib/random.c (__random): Declare as int32_t to be in sync
299 with declaration.
300
301 * socket/Makefile (headers): Add socketbits.h.
302
303 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
304 it that way.
305
306 * grp/initgroups.c (initgroups): Add groups that user is a member
307 of, not the ones he is _not_ a member of.
308
309 * nss/nsswitch.c (known_compare): Make known_compare() a static
310 instead of a local function. The latter are difficult to debug
311 and slow to execute on certain platforms.
312
313 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
314 place of sizeof (dev). The size of a literal string includes the
315 NUL byte.
316
317 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
318
319Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
320
321 * misc/mntent.c (addmntent): Seek to end of file before writing
322 entry. Return 1 on error, not -1.
323
324Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
325
326 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
327 syscall.
328
329Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
330
331 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
332 shift amount for Jensen must be 5 not 4.
333
334Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
335
336 * socket/sys/socket.h (struct osockaddr): New type.
337
338Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
339
340 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
341 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
342 and `long double' versions can be generated.
343 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
344 so that included efgcvt{,_r}.c file generate `long double'
345 versions.
346 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
347 functions.
348
349 * manual/startup.texi: Document new getsubopt function.
350 * manual/examples/subopt.c: New example program for documenting
351 getsubopt function.
352
353Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
354
355 * stdlib/Makefile (routines): Add getsubopt.
356 * stdlib/stdlib.h: Add prototype for getsubopt.
357 * stdlib/getsubopt.c: New file. Implement getsubopt function
358 to handle suboption parsing.
359
adc6ff7f
RM
360Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
361
842907c6
RM
362 * inet/getnetent_r.c: Define NEED_H_ERRNO.
363 * inet/getnetbynm_r.c: Likewise.
364 * inet/getnetent.c: Likewise.
365 * inet/getnetbyad_r.c: Likewise.
366 * inet/getnetbyad.c: Likewise.
367 * inet/getnetbynm.c: Likewise.
368
369 * sysdeps/generic/pselect.c: Include <sys/time.h>.
370
371 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
372 `struct timespec'.
373
e6c9a67a
RM
374 * math/Makefile (calls): Add s_frexp, s_ldexp.
375 (routines): Remove them and &f from here.
376
377 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
378
adc6ff7f
RM
379 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
380 and check it.
381
382 * nss/nss_files/files-XXX.c: Comment fix.
383
384Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
385
386 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
387 of reentrant function.
388 (setup): Pass additional argument with function name we are
389 looking for.
390 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
391 new argument {SET,END,GET}FUNC_NAME_STRING.
392
393 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
394 we return a pointer.
395
396Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
397
398 * nss/nss_files/files-parse.c: Add comment about things to #define.
399
400 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
401
402 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
403 terminator char as an error.
404
405 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
406
407Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
408
409 * catgets/gencat.c (write_out): Move code to determine new
410 best size out of inner loop.
411
e6c9a67a
RM
412Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
413
414 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
415 implementation of frexp() function.
416 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
417 implementation of ldexp() function.
418
419 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
420 out before or'ing.
421
adc6ff7f
RM
422Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
423
424 * misc/mntent.c: Include <sys/types.h>.
425 (endmntent): Return 1 one success, 0 on failure.
426 (getmntent): Chop newline and ignore empty lines.
427
428Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
429
430 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
431 differently based on [RTLD_BOOTSTRAP].
432 (elf_machine_rela): Use it instead of the fn ptr arg directly.
433
c1509239
RM
434Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
435
07a4742f
RM
436 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
437 __glob_closedir_hook): Remove decls.
438
439 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
440
441 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
442 for send and connect syscalls.
443
444 * socket/sys/socket.h: New file, taken from non-sysdep parts of
445 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
446 Declare __ names for send and connect.
447 * sysdeps/generic/socketbits.h: New file.
448 * sysdeps/unix/sysv/linux/socketbits.h: New file.
449 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
450 * sysdeps/generic/sys/socket.h: File removed.
451
452 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
453 * sysdeps/mach/hurd/send.c: Likewise.
454
c1509239
RM
455 * sysdeps/mach/libc-lock.h: New file.
456 * sysdeps/unix/readdir.c: Do locking.
457 * sysdeps/unix/seekdir.c: Likewise.
458 * sysdeps/unix/rewinddir.c: Likewise.
459 * sysdeps/unix/closedir.c: Likewise.
460 * sysdeps/unix/bsd/telldir.c: Likewise.
461 * sysdeps/mach/hurd/seekdir.c: Likewise.
462 * sysdeps/mach/hurd/readdir.c: Likewise.
463 * sysdeps/mach/hurd/closedir.c: Likewise.
464 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
465 * sysdeps/unix/opendir.c: Likewise.
466 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
467 (struct __dirstream): Add lock member using __libc_lock_define.
468 * sysdeps/unix/dirstream.h: Likewise.
469
470 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
471
472 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
473
474 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
475
476Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
477
478 * locale/programs/stringtrans.c: Fix typo in copyright.
479
480 * stdio-common/printf-prs.c: Add casts to prevent
481 signed<->unsigned warnings.
482
483 * stdio-common/printf-parse.h: Initialize state variable before
484 calling mbrlen.
485 * stdio-common/printf-prs.c: Don't initialize state variable here.
486 * stdio-common/vfprintf.c: Don't initialize state variable.
487 (vfprintf): While determining length of multibyte string don't
488 try to be clever in determining characters to use for first
489 call.
490
491 Add real implementation of multibyte<->wide char conversion
492 functions. The functions always convert between the fixed wide
493 char format (ISO 10646 in UCS4) and the UTF8 representation of
494 this character set. Conversion between the currently used
495 8bit character set and ISO 10646 will not take place. This is
496 what iconv() is for.
497 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
498 dummy definition.
499 Add optimized version of `mbrlen' function.
500 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
501 to 0...0x7f.
502 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
503 to 0..0x7f.
504 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
505 This is needed in the wchar.h header.
506 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
507 encoded character to UCS4.
508 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
509 element of `mbstate_t' for initial state.
510 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
511 encoded string to UCS4 string.
512 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
513 character to UTF8 encoded form.
514 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
515 encoded string to UTF8 encoded form.
516
3dbe1581
RM
517Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
518
089b2b8a
RM
519 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
520 variable name, so new a libc with new requirements won't fail to
521 notice an insufficient Linux version.
522
99c57951
RM
523 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
524
525 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
526 instead of 2.0 headers.
527
20121a6a
RM
528 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
529
530 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
531 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
532
3dbe1581
RM
533 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
534 before using it in lhs of weak_alias.
535
536 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
537 Call __nss_lookup when not setting STARTP.
538 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
539 function-calling loop.
540
18c75117
TBB
541Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
542
543 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
544 PENDIN, NOFLSH): Undefine these at start if they are already
545 defined to avoid collision with termbits.h.
546 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
547 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
548
999493cb
RM
549Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
550
551 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
552 already defined to float, long double. Use those macros for _Mdouble_
553 defns when including mathcalls.h.
554 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
555 -D_Mlong_double_=double.
556
557 Add more -lm functions to -lc because ldexp uses them.
558 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
559 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
560 ldexp have both f and l code, and those have f though not l code.
561
18c75117
TBB
562Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
563
564 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
d33f2ad4 565 error is 0. The "placeholder" entries recently added to
18c75117
TBB
566 errno.texi convert to zero since `???/' is at the front of them.
567 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
568
d33f2ad4 569 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
18c75117
TBB
570 __const to conform with unistd.h.
571
18c75117 572 * stdlib/stdlib.h (random): Declare return type to be int32_t.
53163ad0
TBB
573
574 * string/argz-delete.c (argz_delete): Use memmove instead of
999493cb 575 memcpy for possibly overlapping strings.
53163ad0 576
af5b3bc3
RM
577Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
578
579 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
580 storage class. GCC gives an error for non-extern data defns with the
581 alias attribute.
582
467ab247
TBB
583Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
584
585 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
586 memmove instead of memcpy for possible overlapping strings.
587
af5b3bc3
RM
588Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
589
590 * libc-symbols.h (weak_function): New macro.
591 For GCC 2.7+ define as __attribute__ ((weak)).
592 * elf/dl-minimal.c: Use weak_function as keyword in function defns
593 instead of weak_symbol (NAME) after the defn.
594 * stdlib/strtol.c: Likewise.
7702f9b5 595 * stdlib/strtod.c: Likewise.
af5b3bc3
RM
596 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
597
598 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
599 If this is defined, don't declare _dl_rtld_map as weak, and
600 don't check for MAP pointing to it. RESOLVE is always null in this
601 case, so test with #ifdef instead of if.
602
603 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
604 weak_symbol.
605 * csu/initfini.c (_init): Likewise.
606 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
607 * misc/efgcvt_r.c: Likewise.
608 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
609 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
610
611 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
612 It was not used in any assembler code.
613 (weak_symbol_asm): Renamed to weak_extern_asm.
614 (weak_extern): New macro replaces weak_symbol for weak extern refs;
615 define to weak_extern_asm for [!ASSEMBLER].
616
edb8e1d9
RM
617Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
618
af5b3bc3
RM
619 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
620 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
621 define those now as aliases.
622 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
623 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
624 after GCC weak attribute decl.
625
28160ffb
RM
626 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
627 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
628 (element printer): Check for elt in ALIAS, instead of special case
629 for EWOULDBLOCK.
630
faf85e08
RM
631 * io/Makefile (headers): Add sys/vfs.h.
632 * io/sys/vfs.h: New file.
633
edb8e1d9
RM
634 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
635 critical section lock before unlinking dying active resources.
636 The unlock just before return is right (i.e. old code unlocked twice).
637
99ed3e39
MB
638Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
639
edb8e1d9 640 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
99ed3e39
MB
641 Use memmove instead of memcpy where overlap is possible (not
642 necessary using current implementation of memcpy, but...).
643 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
644
645Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
646
e851d072
RM
647 * stdio/linewrap.c (lwupdate): New function, mostly was
648 __line_wrap_update. Use POINT_COL field instead of POINT.
99ed3e39
MB
649 (__line_wrap_output): Use lwupdate.
650 (__line_wrap_update): New function.
651 (ensure_unwrapped, ensure_wrapped): New functions.
652 (line_wrap_set_lmargin, line_wrap_set_rmargin,
653 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
654
e851d072 655 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
467ab247 656 POINT_COL. Add POINT_OFFS field.
99ed3e39
MB
657 (__line_wrap_update): New decl.
658 (line_wrap_set_lmargin, line_wrap_set_rmargin,
659 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
660
2549e758
MB
661Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
662
663 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
664
665 * login/pututline_r.c (pututline_r): Since we assign RESULT from
666 lseek now, check that it's >= 0, not == 0.
667
668Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
669
670 * login/login.c (login): Make a copy of *UT, fill in various
671 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
672 in place of UT.
673
674 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
675 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
676
4c3e8a9e 677Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
f5348425 678
7f4e9608
RM
679 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
680 signal during critical section doing interruptible RPC, if
681 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
682 before thread_resume. If in critical section, pass 0 for SIGNO to
683 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
684
685 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
686
39d69079
RM
687 * sysdeps/unix/sysv/linux/sys/user.h: New file.
688 * sysdeps/unix/sysv/linux/Dist: Add it.
689 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
690
dbe31b9a
RM
691 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
692 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
693 itself, no need to skip past a NUL.
694
695 * nss/nsswitch.h (known_function): Comment fix.
696 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
697 directly. Do the lookup and insertion with a single call, and fill in
698 the tree node afterwards if new.
699 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
700
701 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
702 (struct timeval): Add bodiless decl for scope.
703
704 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
705 Move struct timespec defn outside [_TIME_H] so it can be got with
706 #define __need_timespec.
707
708 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
709 for `struct timespec' member names.
710 (TIMESPEC_TO_TIMEVAL): Likewise.
711
712 * nss/Makefile (extra-libs-others): New variable.
713
714 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
715 $(lib) in $(extra-libs-others).
716 * sunrpc/Makefile (extra-libs-others): New variable.
717 (librpcsvc-no-lib-dep): Variable removed.
718
f5348425
RM
719 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
720 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
721 _dl_rtld_map.
722 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
723 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
724 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
725 _dl_rtld_map weak only here.
726
727 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
728
dbe31b9a
RM
729Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
730
731 * login/utmp.h: Fix typos.
732
733 * misc/syslog.c (vsyslog): Use __send instead of send and
734 __connect instead of connect to avoid name-space collisions (e.g.,
735 with psgetty).
736
503054c0
RM
737Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
738
739 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
740
741 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
742
743 * malloc/malloc-size.c (malloc_usable_size): Renamed from
744 malloc_object_allocation_size.
745 * malloc/malloc.h: Fix decl.
746
747 * sys/select.h: New file, wrapper header.
748
749 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
750 fd_set, associated macros, and select decl.
751
752 * sysdeps/posix/isfdtype.c: New file.
753
754Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
755
756 The latest Japanese proposal for POSIX locales renames the
757 CHARMAP keyword in locale definition files to CHARCONV.
758 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
759 function ctype_is_charmap to ctype_is_charconv.
760 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
761 charconv.
762 * locale/programs/locfile-token.h: Add definition of token
763 charconv.
764 * locale/programs/locfile.c: Recognize charconv keyword. Rename
765 lables according to this.
766
767 * locale/weight.h (get_weight): Cast constants to prevent
768 warnings.
769
770 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
771 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
772 warnings.
773
774 New stuff described in P1003.1g.
775 * misc/Makefile (headers): Add sys/select.h.
776 (routines): Add pselect.
777 * misc/sys/select.h: New file. Declare select functions and
778 needed data types and macros.
779 * sysdeps/generic/pselect.c: New file. Add generic implementation
780 of pselect() function which uses select().
781
782 * posix/getconf.c: Recognize new variables from P1003.1g.
783 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
784 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
785 * posix/unistd.h: Add description of the P1003.1g variables.
786 * sysdeps/generic/confname.h: Define _SC_* values for new
787 variables.
788 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
789 _PC_SOCK_MAXBUF.
790 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
791 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
792 P1003.1g variables.
793 * sysdeps/stub/sysconf.c (sysconf): Ditto.
794 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
795 _POSIX_SELECT since Linux has this.
796
797 * socket/Makefile (routines): Add isfdtype.
798 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
799 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
800 isfdtype.
801
802 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
803
8a594e3c
RM
804Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
805
175b633d
RM
806 * elf/Makefile (LDFLAGS-dl.so): New variable.
807 (libdl.so): Depend on eval.so.
808 (distribute): Add eval.c.
809 * elf/eval.c: New file.
810
8a594e3c
RM
811 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
812 in case it wrote fewer than MAXDIGITS chars.
813
814 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
815 newline from flushing full buffer in loop, fix test so no fflush is
816 done when last byte written exactly fills the buffer.
817
818 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
819
820 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
821 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
822
823 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
824 extracting _dl_rtld_map.l_addr.
825
826 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
827 weak.
828 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
829
830 * shlib-versions (*-*-*): Set libnss_db=1.
831
ffee1316
RM
832Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
833
8a594e3c
RM
834 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
835
66da789f
RM
836 * rpm/template (%build): Use @prefix@ instead of always /usr.
837 Set up configparms only if @prefix@ is in fact /usr.
838 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
839
f49bc43f
RM
840 * elf/Makefile: Add missing endif.
841
54955962
RM
842 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
843
96bda0ea
RM
844 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
845 (DATABASE): Define this instead of DATAFILE.
846 * nss/nss_files/files-hosts.c: Likewise.
847 (hostbyname): Use LOOKUP_NAME macro.
848
849 * nss/nss_db/db-XXX.c: New file.
850 * nss/Makefile (services): Add db.
851 (libnss_db-inhibit-o): New variable.
852 (libnss_db-routines): New variable.
853 (distribute): Append db-XXX.c.
854 (libnss_db.so): Depend on libdb.so and libnss_files.so.
855 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
856
857 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
858 args, ignored.
859 (DATAFILE): New macro.
860 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
861 "files-XXX.c".
862 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
863 Pass db key args to DB_LOOKUP.
864 (DATAFILE): Macro removed.
865 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
866 * nss/nss_files/files-service.c: Likewise.
867 * nss/nss_files/files-pwd.c: Likewise.
868 * nss/nss_files/files-proto.c: Likewise.
869 * nss/nss_files/files-grp.c: Likewise.
870 * nss/nss_files/files-ethers.c: Likewise.
871
872 * elf/linux-compat.c: File removed.
873 * elf/Makefile (distribute): Remove linux-compat.c.
874 (ld-linux.so.1): Remove target and associated variables.
875
876 * sunrpc/xdr.c: Remove malloc decl.
877 * sunrpc/portmap.c: Likewise.
878
879 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
880 casting abort to fn returning bool_t.
881
882 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
883 the parser function.
884 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
885 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
886 * nss/nss_files/files-grp.c: Likewise.
887
888 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
889
890 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
891
892 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
893 of ld.so so lookups for that soname find it.
894
895 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
896 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
897
ffee1316
RM
898 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
899 define parse_line function.
900 (parse_line): #define to _nss_files_parse_pwent and
901 add extern decl for that.
902
903 * nss/nss_files/files-XXX.c (internal_getent): Return
904 NSS_STATUS_TRYAGAIN for ERANGE error.
905
906 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
907 of null, so next round returns null again instead of bombing. Fix
908 from drepper.
909
910 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
911 Remove ; after `ENTDATA_DECL (data)'.
912 Truncate line at strpbrk (line, EOLSET "\n").
913 (ENTDATA_DECL): Put ; at end.
914 (MIDLINE_COMMENTS): Macro removed.
915 * nss/nss_files/files-ethers.c: Pass new argument.
916 * nss/nss_files/files-hosts.c: Likewise.
917 * nss/nss_files/files-network.c: Likewise.
918 * nss/nss_files/files-parse.c: Likewise.
919 * nss/nss_files/files-proto.c: Likewise.
920 * nss/nss_files/files-rpc.c: Likewise.
921 * nss/nss_files/files-service.c: Likewise.
922 * grp/fgetgrent.c: Likewise.
923 * pwd/fgetpwent.c: Likewise.
924 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
925 fgetpwent.c already defines it.
926 * nss/nss_files/files-grp.c: Likewise.
927
928 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
929 as well as any matching with l_libname. Fix DT_SONAME lookup to use
930 string table properly.
931
932 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
933 invoked directly, and l_libname from that if PT_INTERP missing.
934 Set l_name from l_libname only if not set from argv.
935
936 * time/europe, time/northamerica: Updated from ADO 96i.
937
eb48c963
RM
938Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
939
ffee1316
RM
940 * stdio-common/tst-ungetc.c: Include unistd.h.
941
eb48c963
RM
942 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
943
6ce16797
MB
944Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
945
25f329f7
MB
946 * hurd/report-wait.c (describe_number): Make I unsigned long.
947
6ce16797
MB
948 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
949 actually found any entry.
950
951 * login/pututline_r.c (pututline_r): If not located after any
952 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
953 Lock the file before stating.
954
eb48c963
RM
955Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
956
957 * nss/Makefile (databases): Change host to hosts.
958 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
959
960 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
961
962 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
963
964 * string/string.h (strndupa): Pass missing arg to strnlen.
965
966 * inet/getnetbypt_r.c: Renamed to ...
967 * inet/getnetbyad_r.c: this; fixed function name.
968 * inet/getnetbypt.c: Renamed to ...
969 * inet/getnetbyad.c: this; fixed function name.
970
971Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
972
973 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
974 struct passwd.
975
2baf7c31
MB
976Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
977
978 * login/login.c (login): Initialize DATA so that setutent_r will
979 actually do something.
980
eb48c963
RM
981Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
982
983 * resolv/res_hconf.c (strndup): Remove function.
984
985 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
986 using ElfW() instead of Elf32_*.
987
988 * sysdeps/unix/sysv/linux/alpha/init-first.h,
989 sysdeps/unix/sysv/linux/m68k/init-first.h,
990 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
991 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
992 init-first.h to make abstract machine dependent parts of
993 initialization.
994
995 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
996 error handling. It's safer that way.
997
998 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
999 Fix by Richard Henderson.
1000
1001 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1002 typo/extraneous whitespace.
1003
1004 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1005 determine what integer sizes we're dealing with.
1006
d7126ae6
RM
1007Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1008
eb48c963
RM
1009 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1010 check for signal zero, repair logical sense of test by
1011 parenthesizing correctly.
1012
d7126ae6
RM
1013 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1014 check-for-pending signals code, release _hurd_siglock before
1015 jumping to deliver_pending.
1016
eb48c963
RM
1017Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1018
1019 * configure.in (config_machine): Make ELF the default even for
1020 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1021 is specified.
1022
de6b0623
RM
1023Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1024
eb48c963
RM
1025 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1026 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1027 member only #ifdef ENTDATA.
1028 (ENTDATA_DECL): New macro.
1029 (LINE_PARSER): Use it for entdata decl.
1030 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1031 from the input LINE, which might not be writable buffer space.
1032 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1033 [ENTDATA] (parser_stclass): #define to `static inline'.
1034 [!ENDATA] (parser_stclass): #define to empty.
1035 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1036 function is exported to -lnss_files users.
1037
1038 * string/strndup.c: Add missing arg.
1039
de6b0623 1040 * string/string.h (strndupa): Likewise.
eb48c963 1041 * string/strndup.c (strndup): Always terminate the string.
de6b0623
RM
1042
1043Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1044
1045 * stdio/Makefile (routines): Add vscanf.
1046 * stdio-common/Makefile (routines): Remove vscanf.
1047 * stdio-common/vscanf.c: Move to ...
1048 * stdio/vscanf.c: here.
1049
1050 * rpm/Makefile (headers, install-lib, install-lib.so,
1051 versioned, install-bin, install-sbin, install-data,
1052 install-others): Add $(-VARIABLE).
1053
6dbe2837
RM
1054Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1055
1056 * nss/Makefile (databases): New variable.
1057 (routines, libnss_files-routines): Use it.
1058 (subdir-dirs): Compute from $(services).
1059
1060 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1061 init_module, klogctl): Use EXTRA in the "caller" column so these get
1062 added to unix-extra-syscalls and thus compiled in misc.
1063
1064 * string/Makefile (routines): Add strndup.
1065 * string/strndup.c: New file.
1066 * string/string.h: Declare strndup.
1067 (strndupa): New macro.
1068
1069 * string/string.h: Declare __strdup.
1070 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1071
1072 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1073
6dbe2837
RM
1074Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1075
1076 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1077
1078 * grp/initgroups.c (initgroups): De-ansi-fy.
1079 Move declaration of NGROUPS and GROUPS outside #if so that
1080 the code compiles for NGROUPS_MAX != 0.
1081
1082 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1083 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1084 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1085 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1086 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1087 inet/ether_ntoh.c: New files. Implementation of functions to
1088 handle Ethernet address to host mapping.
1089 * inet/netinet/ether.h: New file. Declare ether_* functions.
1090 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1091 compilation.
1092 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1093 * nss/Makefile (routines): Add ethers-lookup.
1094 (libnss_files-routines): Add files-ethers.
1095
1096 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1097 with _r suffix.
1098
1099 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1100 KEEP_STREAM every time called.
1101 (_nss_files_end): Reset KEEP_STREAM here instead.
1102 (internal_getent): If STREAM == NULL try to open instead of
1103 signalling error.
1104 Use cast to prevent warning.
1105 Terminate read line in case the buffer is too small.
1106
1107 * nss/nss_files/files-ethers.c: New file. Implementation of
1108 Ethernet adress<->hostname lookup through files interface.
1109
1110 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1111 * stdlib/mbtowc.c: Define based on mbrtowc().
1112 * stdlib/wcstombs.c: Define based on wcsrtombs().
1113 * stdlib/wctomb.c: Define based on wcrtomb().
1114
1115 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1116 unexpected_sizes_in_xdr_u_int.
1117
1118 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1119 of `struct ether_addr'.
1120 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1121 declaration of `struct ether_addr'.
1122
1123 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1124 * wcsmbs/mbsrtowcs.c: Ditto.
1125 * wcsmbs/wcrtomb.c: Ditto.
1126 * wcsmbs/wcsrtombs.c: Ditto.
1127
1128 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1129
f34e0ae3
MB
1130Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1131
a5d96b25
MB
1132 * hurd/get-host.c <fcntl.h>: New include.
1133 * hurd/set-host.c <fcntl.h>: New include.
1134 (_hurd_set_host_config): Include NEW in args to dir_link.
1135 Return NWROTE, not NREAD.
1136
f34e0ae3
MB
1137 * sysdeps/mach/hurd/getcwd.c
1138 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1139 DOTID & DOTDEVID until we're finished with them (we need to keep
1140 them at least until we've fetched the next level of id ports, so
1141 that mach will be able to use the same name if they're the same).
1142 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1143 jumps to errlose, for those places where such cleanup is needed.
1144
bba7bb78
RM
1145Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1146
1147 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1148
1149 Move DB code into separate -ldb library.
1150 * db/Makefile (extra-libs): New variable, list libdb.
1151 (routines): Renamed to libdb-routines.
1152 * shlib-versions: Add libdb=2.
1153
1154 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1155 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1156
1157 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1158 of strncasecmp. Extend syntax to grok [!foo=bar].
1159
1160 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1161 weak alias.
1162 * string/string.h: Declare __strncasecmp.
1163
1164 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1165 (service_alias): Variable removed.
1166 (nss_parse_service_list): New function, broken out of nss_getline.
1167 Remove alias conversion; we will just use symlinks.
1168 (__nss_database_lookup): Take new string arg DEFCONFIG.
1169 If no entry exists, make one with service list parsed from that.
1170 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1171 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1172 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1173
1174 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1175 list size.
1176
1177 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1178
1179Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1180
1181 * locale/programs/locale.c (long_options): Short form of
1182 --version option is `-V'.
1183 (main): Recognize `-V' as option, not `-v'.
1184 Call `usage' instead of printing error message for illegal
1185 option.
1186 (usage): Document `-V'.
1187
23586dcc
MB
1188Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1189
1190 * sysdeps/mach/hurd/getcwd.c
1191 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1192 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1193
622586fb
RM
1194Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1195
1196 * inet/getrpcent.c: Fix macros.
1197 * inet/getrpcent_r.c: Fix macros.
1198
1199 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1200
1201 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1202
a4242e25
RM
1203Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1204
1205 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1206 size_t.
1207 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1208 cast it to (unsigned long) to make it work both on 32 and 64
1209 bit architectures.
1210
1211Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1212
1213 * locale/Makefile (distribute): Add `programs/' prefix to all
1214 files in that directory.
1215
1216 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1217 subdir' works.
1218
1219 * MakeTAGS (sources, headers): Make them simply expanded variables
1220 so that all-dist is expanded before it is changed.
1221
5f0e6fc7
RM
1222Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1223
5325738c 1224 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
748050b3
RM
1225 * Makefile (subdirs): Remove crypt.
1226 * crypt: Directory removed. It will be made an independent library
1227 distribution.
1228
1229 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1230
ad8da79b
RM
1231 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1232
dcea62dd
RM
1233 * inet/getrpcbynumber.c (BUFLEN): New macro.
1234
1235 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1236
3d3ac840
RM
1237 * Makefile (headers): Add libc-lock.h.
1238 * sysdeps/stub/libc-lock.h: New file.
1239
1240 * inet/getrpcbynumber.c: Remove _r typo.
1241
1242 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1243
c66273aa
RM
1244 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1245 after the first!
1246
1247 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1248 or doesn't mention DATABASE, use an internal default equivalent to
1249 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1250 (nss_lookup_function): Call nss_new_service as needed.
1251 (nss_parse_file): Don't bother calling nss_new_service here.
1252
1253 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1254 * pwd/fgetpwent.c: Likewise.
1255
5f0e6fc7
RM
1256 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1257 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1258 * malloc/malloc-size.c: New file.
1259 * malloc/malloc-walk.c: New file.
1260
1261 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1262 PTR is outside the heap.
1263
1264 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1265 soname of a loaded object, use that object.
1266
1267Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1268
1269 * Makefile (subdirs): Add nss.
1270
1271 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1272 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1273 * inet/getrpcbynumber_r.c: New file.
1274 * inet/getrpcbynumber.c: New file.
1275 * inet/getrpcbyname.c: New file.
1276 * inet/getrpcbyname_r.c: New file.
1277 * inet/getrpcent_r.c: New file.
1278 * inet/getrpcent.c: New file.
1279 * nss/rpc-lookup.c: New file.
1280 * nss/nss_files/files-rpc.c: New file.
1281 * nss/Makefile (routines): Add rpc-lookup.
1282 (libnss_files-routines): Add files-rpc.
1283 * sunrpc/Makefile (routines): Remove getrpcent.
1284 * sunrpc/getrpcent.c: File removed.
1285
1286 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1287 non-null on entry.
1288
1289 * Makeconfig (rpath-link): Add $(nssobjdir).
1290 (nssobjdir): New variable.
1291
1292 * Makerules: Move shared library building before objects rules, so
1293 versions are known before extra-lib.mk gets included.
1294 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1295
1296 * pwd/getpwuid.c: Rewritten using nss.
1297 * pwd/getpwnam.c: Likewise.
1298 * pwd/getpwent.c: Likewise.
1299 * grp/getgrnam.c: Likewise.
1300 * grp/getgrgid.c: Likewise.
1301 * grp/getgrent.c: Likewise.
1302 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1303 * pwd/getpwent_r.c: New file.
1304 * pwd/getpwnam_r.c: New file.
1305 * pwd/getpwuid_r.c: New file.
1306 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1307 * grp/getgrnam_r.c: New file.
1308 * grp/getgrgid_r.c: New file.
1309 * grp/getgrent_r.c: New file.
1310 * grp/Makefile (routines): Remove grpopen, grpread.
1311 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1312 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1313
1314 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1315 * grp/fgetgrent.c: Likewise.
1316
1317 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1318 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1319 * nss/nss_files/files-grp.c: New file.
1320 * nss/nss_files/files-pwd.c: New file.
1321
1322 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1323
1324 * nss/nss_files/files-parse.c: New file.
1325 * nss/nss_files/files-XXX.c: New file.
1326 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1327 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1328 Rewritten using them.
1329
1330 * nss/Makefile (libnss_files-routines): Remove files-host.
1331 Add files-hosts, files-grp, files-pwd.
1332
1333 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1334
1335Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1336
1337 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1338 A .plt entry now loads the .rela.plt offset directly rather
1339 than making us calculate it.
1340
1341Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1342
1343 * time/Makefile ($(installed-localtime-file) rule): Do
1344 $(make-target-directory) first.
1345
1346 * resolv.h: Fix wrapper for resolv/resolv.h.
1347
1348 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1349 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1350 require installed libraries.
1351
1352 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1353 libnss_dns=1.
1354
1355Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1356
282d8743
RM
1357 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1358 and mapv4v6hostent.h.
1359 (routines): Move res* and gethnamaddr into libresolv-routines.
1360 (libresolv-routines): New variable, put them there.
1361 (extra-libs): New variable, list libresolv.
1362 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1363
5f0e6fc7
RM
1364 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1365
1366 * inet/herrno.c: New file.
1367
1368 * resolv/res_init.c: Remove res_hconf calls.
1369
1370 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1371 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1372 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1373 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1374 nss/service-lookup.c: New files. Implementation of name
1375 service switch, following the approach in Solaris.
1376 Interface specification and general structure inspired by Peter
1377 Eriksson <pen@lysator.liu.se>.
1378 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1379 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1380 Implementation of libnss_files.so module for file based databases
1381 in NSS service.
1382 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1383 if libnss_dns.so module for DNS name lookup in NSS service.
1384
1385 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1386 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1387 Changed to serve as interface to NSS.
1388 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1389 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1390 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1391 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1392 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1393 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1394 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1395 interfaces to NSS, including reentrant functions.
1396
1397 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1398 resolv/sethostent.c: Removed: Obsoleted by NSS.
1399
1400 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1401 gethnamaddr.c. These private functions are now used in more
1402 than one file.
1403
1404 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1405
1406Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1407
1408 * rpm/Makefile ($(config)): Make sure the word list in the for
1409 loop is syntactically non-empty.
1410
7f811679
RM
1411Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1412
1413 * Version 1.92 test release.
1414
1415Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1416
1417 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1418 to klogctl to match prototype in sys/klog.h.
1419
1420 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1421 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1422
1423 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1424 Remove. Code is now part of __getcwd again. The old function
1425 never really worked for anything but THISDIR==".".
1426
1427 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1428 only when building ELF version of library.
1429
1430 * libio/libioP.h (_IO_vscanf): Add prototype.
1431
1432 * posix/unistd.h (syscall): Change sysno arg and return value
1433 to int long.
1434
78b5ba3e
RM
1435Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1436
7f811679 1437 * version.h (VERSION): Updated to 1.92.
072ebcef
RM
1438
1439 * misc/Makefile (headers): Add ar.h.
1440 * misc/ar.h: New file.
1441
1442 * config.make.in (BUILD_CC): New variable.
1443 * configure.in: Check for BUILD_CC if $host != $build.
1444
1445 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1446
1447 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1448 (stamp$o files): New targets, create them empty, no deps.
1449
78b5ba3e
RM
1450 * rpm/template (Source): New field.
1451 (%prep, %build, %install): New sections.
1452 (%files): Add %doc FAQ NEWS NOTES README.
1453 * rpm/rpmrc (builddir): Removed.
1454
51fbd1f6
RM
1455Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1456
0d3726c3
RM
1457 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1458 guessing to not assume p_vaddr of first load cmd is zero.
1459
4f54cdb1
RM
1460 * sysdeps/sparc/elf/start.S: New file.
1461 * sysdeps/sparc/dl-machine.h: New file.
1462
1463 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1464 only for ?s, not for *s. Fix from Chet Ramey.
1465
1466 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1467 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1468 Use __{BEGIN,END}_DECLS.
1469 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1470 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1471 New macros, moved here from sysdeps/gnu/utmpbits.h.
1472 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1473 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1474 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1475 Use sizeof instead of UT_*SIZE.
1476 * login/logwtmp.c: Likewise.
1477
1478 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1479
1480 * version.c (banner): Add trailing newline.
1481
51fbd1f6
RM
1482 * login/utmp.h: Declare login_tty.
1483
1484Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1485
1486 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1487 Changed to a 12-byte PLT entry to remove dependency on $gp.
1488 Take a new got_addr parameter.
1489 (elf_machine_rela): Pass the new parameter.
1490 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1491 (RTLD_START): Do normal linkage with program entry.
1492
51ec5cb2
MB
1493Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1494
1495 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1496
1497 * hurd/getuids.c (getuids): New weak link to __getuids.
1498
bf0f4720
MB
1499Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1500
1501 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
51fbd1f6
RM
1502 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1503 argument.
bf0f4720
MB
1504 Rename nested function lookup to lookup_op.
1505 (__file_name_lookup, __file_name_lookup_under):
1506 Pass 0 for lookup arg to __hurd_file_name_lookup.
1507 (__file_name_split): Likewise for __hurd_file_name_split.
1508 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1509 Rename nested function lookup to scan_lookup.
1510 (file_name_path_lookup): Pass 0 for lookup arg to
1511 hurd_file_name_path_lookup.
1512 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
51fbd1f6 1513 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
bf0f4720
MB
1514 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1515 Add LOOKUP argument.
1516 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1517 __hurd_file_name_lookup.
1518
e50ec9f9
RM
1519Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1520
1521 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1522 up a huge list just to discard most of it.
1523
1524 * configure.in (sysnames): Avoid fgrep by using the case shell
1525 builtin.
1526
1527 * Makeconfig (config.status): Fix dependency on Implies files.
1528
6990326c
RM
1529Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1530
1531 * math/Makefile (distribute): Add ieee-math.c.
1532
1533Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1534
1535 * locale/codeset_name.c: New file. Provide function for information
1536 about currently used character set.
1537 * locale/Makefile (routines): Add codeset_name.
1538 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1539 * locale/localeinfo.h: Change magic number because of incompatible
1540 change.
1541 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1542 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1543
1544 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1545 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1546
1547 * locale/setlocale.c (setlocale): Initialize local variables to
1548 prevent warnings.
1549
a1470b6f
RM
1550Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1551
1552 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1553
1554 * locale/programs/locale.c: Include string.h.
1555
1556 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1557 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1558 appropriate sign-extension is performed on machines with
1559 sizeof(long) > 4.
1560
1561 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1562 sizeof(int)<sizeof(long), we need to go through a temporary
1563 variable.
1564
1565 * locale/programs/ld-numeric.c: Include <alloca.h>
1566
1567 * libio/stdio.h (__libc_fatal): Add prototype.
1568
1569 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1570 in efect.
1571
1572 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1573 volatile to avoid "might get clobbered by longjmp" warning.
1574
1575 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1576 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1577 probability is a sure loser).
1578 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1579
1580 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1581 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1582
1583 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1584 to be Linux FSSTND compliant.
1585
1586Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1587
1588 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1589
1590 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1591 sysdeps/unix/sysv/linux/alpha/brk.S,
1592 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1593 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1594 sysdeps/unix/sysv/linux/alpha/llseek.S,
1595 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1596 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1597 __syscall_error to avoid intruding application name space.
1598
1599 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1600 to SYS_get?id so that syscall stubs in sysdeps/unix define
1601 these syscalls in terms of getxpid/getxuid/getxgid.
1602
1603 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1604 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1605 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1606 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1607
1608 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1609 (PSEUDO_END): Rename END() to PSEUDO_END().
1610
1611 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1612 to PSEUDO_END to improve branch-prediction. Include .frame
1613 directive to make syscalls debugabble.
1614 (PSEUDO_END): New macro.
1615
1616 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1617 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1618 latter is illegal under DEC Unix.
1619
1620 * sysdeps/unix/alpha/sysdep.S: Renamed from
1621 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1622 as well.
1623 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1624 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1625 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1626
1627 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1628 address register in the .frame directive.
1629
1630 * sysdeps/alpha/copysign.c: Remove.
1631
1632 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1633 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1634
1635 * errno.h: Move __END_DECLS to correct place to make file
1636 compilable under c++.
1637
1638 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1639 d_ino only if <direntry.h> hasn't defined d_fileno.
1640
1641 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1642 arguments to weakext to make .weakext detection work on ECOFF systems.
1643
1644 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1645 that _validuser() has been replaced by __ivaliduser().
1646
1647Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1648
1649 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1650 as unsigned long, not as int (to avoid incorrect int->long
1651 promotion).
1652
96383fc7
RM
1653Tue Jun 18 17:56:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1654
bd1be8ec
RM
1655 * Version 1.91 test release.
1656
36dbcbc9
RM
1657 * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1658 distinfo to this.
1659 (distinfo): Make phony target depending on that.
1660 (TAGS, po/%.pot, dist): Change deps.
1661 (common-clean): Remove that file.
1662 * rpm/Makefile (distinfo): Change names.
1663
96383fc7
RM
1664 * rpm/Makefile (clean): New target.
1665
1666 * stdlib/test-canon.c: New test program contributed by David Mosberger.
1667 * stdlib/Makefile (tests): Add test-canon.
1668 * stdlib/canonicalize.c: Rewritten by David Mosberger.
1669
2cc7dc4d
RM
1670Mon Jun 17 17:53:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1671
96383fc7
RM
1672 * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1673 mention of $< in mig cmd. Thanks to Shantanu Goel.
1674
2cc7dc4d
RM
1675 * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1676 _hurd_brk.
1677
1678 * libio/stdio.h [__USE_SVID]: Declare tempnam.
1679
1680Fri Jun 14 19:28:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1681
1682 * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1683 parameters.
1684
1685Wed Jun 12 20:40:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1686
1687 * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1688 _dl_default_scope.
1689
3433189e
RM
1690Sun Jun 16 03:22:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1691
2cc7dc4d
RM
1692 * sysdeps/stub/elfclass.h: New file.
1693
61ee476c
RM
1694 * Make-dist (subdir): Make empty value really empty.
1695
4c904bd4
RM
1696 * version.h (VERSION): Update to 1.91.
1697
26da047f
RM
1698 * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1699
1700 * shlib-versions (*-*-*): Add libutil=1.
1701
1702 * rpm/Makefile (install-lib): Add libc.a et al.
1703 (install-others): Only add libc.so if $(build-shared) is yes.
1704
1705 * math/Makefile (install-lib): New variable, list libieee.a.
1706 (non-lib.a): Likewise.
1707 (extra-objs): Likewise, and ieee-math.o.
1708 ($(objpfx)libieee.a): New target, link to ieee-math.o.
1709 * math/ieee-math.c: New file.
1710 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1711 and libieee.a stuff.
1712 * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1713 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1714
3433189e
RM
1715 * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1716 and rule for it conditional on termio.h not already being in
1717 sysdep_headers.
1718
1719 * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1720 $(libdir), only the versioned named from $(slibdir).
1721 (instfiles): New variable.
1722 (glibc-$(version).$(config).rpm): New target. Run rpm -bb.
1723 * rpm/rpmrc: New file. A third of the options controlling rpm can
1724 only be given here (another third is on the command line, and a third
1725 cannot be specified in any way shape or form).
1726
6a441471
RM
1727Sun Jun 16 02:44:22 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1728
1729 * rpm/template: New file.
1730 * rpm/Makefile: New file.
1731
1732 * Makeconfig (sysdep-configures): Remove empty variable.
1733
1734 * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1735 $(versioned).
1736
1737 * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1738 to rule w/dep on %, with no-op commands.
1739
1740 * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1741 * Makefile (rpm/%): New rule.
1742 (+subdir_targets): Add subdir_distinfo.
1743
a3b58440
RM
1744Sun Jun 16 00:40:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1745
6a441471
RM
1746 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1747 fpu_control.h here.
1748
a3b58440
RM
1749 * time/Makefile ($(installed-localtime-file)): If target exists, do
1750 nothing but print a message; if not, make it an absolute symlink.
1751
1752 * time/tzset.c (__tzset): After stripping leading :, call
1753 __tzfile_read on TZ even if it's empty or null.
1754 * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1755
a23db8e4
RM
1756Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1757
5fbef188
RM
1758 * hurd/Makefile (routines): Add get-host, set-host.
1759 (distribute): Add hurdhost.h.
1760 * hurd/hurdhost.h: New file.
1761 * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1762 * sysdeps/mach/hurd/gethostid.c: Likewise.
1763 * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1764 * sysdeps/mach/hurd/sethostid.c: Likewise.
1765 * hurd/get-host.c: New file.
1766 * hurd/set-host.c: New file.
1767
1768 * math/Makefile (headers): Add fpu_control.h.
1769 (aux): New variable, list fpu_control and setfpucw.
1770 * sysdeps/generic/fpu_control.c: New file.
1771 * sysdeps/stub/fpu_control.h: New file.
1772 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1773 * sysdeps/m68k/fpu_control.h: here.
1774 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1775 * sysdeps/i386/fpu_control.h: here.
1776 * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1777 * sysdeps/alpha/fpu/fpu_control.h: here. Fixed copyright.
1778 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1779 setfpucw, fpu_control.
1780 * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1781 * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1782 * sysdeps/generic/setfpucw.c: here.
1783 (__fpu_control): Variable removed.
1784 (__setfpucw): Use SET even if zero.
1785
f9496a7b
RM
1786 * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1787 Set mark bits of deps as opened, instead of as scanned.
1788
1789 * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1790 Then if it has a nonzero l_opencount, add it back in search order.
1791
1792 * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1793 it ain't got one!
1794
a23db8e4
RM
1795 * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1796
1797 * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1798 * elf/link.h: Update prototype.
1799 * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1800 NAME, try the DT_RPATH of the executable itself if dynamic.
1801 * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1802
1803 * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1804 open succeeds.
1805
1806 * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1807
1808 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1809 (rpath-link): Append to this instead.
1810
f332db02
RM
1811Fri Jun 14 01:51:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1812
1813 * version.c (banner): New static const variable, complete version
1814 banner text.
1815 (__libc_print_version): Use it, and use __write instead of printf.
1816
1817 * configure.in (sysnames): Don't cache the value, because it
1818 depends only on libc sources. Merge uniquifying third pass into
1819 Implies/parent expansion second pass. Report each unique name as
1820 it is added in partial report string, terminated when finished.
1821
1822 * Makeconfig (sysdep_dir): Move defn before config.status rule that
1823 expands it.
1824 (sysdep-configures): Variable removed.
1825 (config.status): Use its contents directly, tighten up a bit, and
1826 include Implies files.
1827
1828 * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1829
1830 * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1831
5c5ae36f
MB
1832Thu Jun 13 14:29:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
1833
1834 * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1835 label to `deliver_pending:' to match goto.
1836
4d6acc61
RM
1837Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1838
f332db02
RM
1839 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1840 Add comment.
1841
1842 * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1843
1844 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1845 weak alias for _mcount.
1846 * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1847
4d6acc61
RM
1848 * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1849 null, consider it a strong reference and give the error.
1850
1851Wed Jun 12 15:52:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1852
1853 * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1854 after relocating NEW when it's the only new object.
1855
1856 * elf/dl-init.c (_dl_init_next): When out of initializers, set
1857 _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1858 before return.
1859
1860 * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1861 relocation. Call it unconditionally and only fill in DT_DEBUG
1862 if it's present. Then call _dl_debug_state with r_state RT_ADD
1863 before running initializers.
1864
1865 * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1866 _dl_debug_state with r_state RT_ADD before running initializers
1867 * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1868 RT_DELETE before running finalizers and with RT_CONSISTENT just
1869 before return.
1870
1871 * elf/Makefile (dl-routines): Add dl-debug.
1872 * elf/dl-debug.c: New file.
1873 * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1874 (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1875 (dl_main): Use _dl_debug_initialize.
1876 * elf/link.h: Fix name to _dl_debug_state in decl.
1877 (_dl_debug_initialize): Declare new function from dl-debug.c.
1878 (_r_debug): Declare it.
1879
1880 * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1881 In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1882
1883 * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1884 (default-rpath): Use it.
1885 (built-program-cmd): Use it in LD_LIBRARY_PATH.
1886
1887 * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1888
1889 * sysdeps/unix/Dist: Add make-syscalls.sh.
1890
1891 * misc/Makefile (headers): Add sys/swap.h.
1892 * posix/unistd.h: Remove decls for swapon, swapoff.
1893 * sysdeps/generic/sys/swap.h: New file.
1894 * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1895
1896 * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1897 of __kernel_fsid_t. It is correctly defines in <linux/types.h> now.
1898
463e148b
RM
1899Tue Jun 11 23:23:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1900
1901 * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1902 __libc_print_version as entry point for shared object.
1903 * version.c [HAVE_ELF] (__libc_main): New function.
1904
1905 * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1906 load address.
1907
8d6468d0
RM
1908Tue Jun 11 19:13:04 1996 Richard Henderson <rth@tamu.edu>
1909
4d5da9a6
RM
1910 * sysdeps/alpha/dl-machine.h: New file.
1911
8d6468d0
RM
1912 * elf/dl-close.c: Include <string.h> for memcpy.
1913 * elf/dl-lookup.c: Same.
1914
1915 * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1916 * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1917 (_dl_setup_hash): Use it.
1918 * elf/link.h (struct link_map): Use it.
1919
1920 * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1921 for getting the argc/argv/envp block. Instead, make it the argument.
1922 sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1923 sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1924
1925 * shlib-versions: Add version numbers for alpha-linux. To avoid
1926 user confusion, make them the same as i386-linux.
1927
1928 * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1929 sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1930 Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1931 without using literal data.
1932
1933 * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1934 Finish Elf32 -> ElfW migration.
1935
6ba35316
RM
1936Tue Jun 11 15:09:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1937
6e86a7c2
RM
1938 * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1939
1940 * elf/Makefile (routines): Remove init-first.
1941 * csu/Makefile (routines): New variable; put it here instead.
1942
1943 * config.make.in (CFLAGS): New variable.
1944
1945 * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1946 not __USE_GNU.
1947 * string/string.h (strncasecmp): Likewise.
1948
a89d30d4
RM
1949 * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1950 to after `include ../Rules', so $(rtld-installed-name) is defined.
1951
d8c7ef98
RM
1952 * string/basename.c (basename): Cast FILENAME to char * for return.
1953
1954 * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1955 libc.so and libc.a in the deps.
1956
852fc4b9
RM
1957 * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
1958 link to ld.so if that is not the installed name.
1959 (lib-noranlib): Depend on the installed name in the build directory
1960 instead of on ld.so.
1961
1962 * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
1963 between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
1964 ld searches libc.a before ld.so (is that an ld bug?).
1965 Add $(elfobjdir) to -rpath-link.
1966
1967 * Makerules (elfobjdir): Define as . when $(subdir) is elf.
1968
1969 * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
1970 relocating _dl_rtld_map, subtract SYM's value from final reloc value,
1971 but don't change *RELOC_ADDR before calling *RESOLVE, because it might
1972 call the function we are relocating!
1973
6ba35316
RM
1974 * string/basename.c: New file.
1975 * string/Makefile (routines): Add basename.
1976
266180eb
RM
1977Mon Jun 10 06:14:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1978
ba79d61b
RM
1979 * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
1980
1981 * elf/dl-close.c: New file.
1982 * elf/link.h: Declare _dl_close.
1983 * elf/Makefile (routines): Add dl-close.
1984 * elf/dlclose.c (dlclose): Use _dl_close.
1985
1986 * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
1987
1988 * elf/dl-runtime.c (_dl_global_scope): New variable.
1989 (_dl_object_relocation_scope): New function.
1990 (fixup): Use it.
1991 * elf/rtld.c (dl_main): Use it.
1992 * elf/dl-open.c (_dl_open): Use it. If (MODE & RTLD_GLOBAL), set the
1993 l_global bit and append the new map to _dl_global_scope.
1994 * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
1995 and _dl_object_relocation_scope.
1996
1997 * elf/link.h (struct link_map): Add l_loader member.
1998 Remove _dl_map_object_from_fd decl.
1999 * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
2000 (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
2001 (_dl_map_object): Try DT_RPATH from all loaders up the chain.
2002
2003 * elf/dl-object.c (_dl_loaded): Variable removed.
2004 (_dl_default_scope): New variable replaces it.
2005 * elf/link.h (_dl_loaded): Remove variable decl; instead define as
2006 macro for _dl_default_scope[2].
2007 (_dl_default_scope): Declare it.
2008 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
2009 instead of _dl_loaded.
2010 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2011 * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
2012
2013 * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
2014 * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
2015
2016 * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
2017 (struct link_map): Add new flag member l_global.
2018
2019 * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
2020 directly instead of looking for lt_interpreter.
2021 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2022 * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
2023 (dl_main): Set _dl_rtld_map.l_type to lt_library.
2024
2025 * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
2026 dependencies loaded, downgrading lt_executable -> lt_library.
2027
2028 * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
2029 l_type from that, translating lt_library->lt_executable based on the
2030 file's ELF type.
2031 (_dl_map_object): Likewise.
2032 * elf/link.h: Update prototypes.
2033 * elf/dl-open.c: Pass type lt_loaded.
2034 * elf/rtld.c: Pass type lt_library.
2035
2036 * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
2037 _dl_new_object.
2038 (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
2039 Free REALNAME, and just use NAME in error message.
2040 * elf/dl-object.c (_dl_new_object): If malloc fails, return null
2041 instead of calling _dl_signal_error.
2042
2043 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
2044 error for _dl_zerofd setup failure.
2045
2046 * elf/dl-object.c (_dl_startup_loaded): Variable removed.
2047 * elf/link.h: Remove its decl.
2048
2049 * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
2050 through to _dl_lookup_symbol.
2051 * elf/link.h (_dl_relocate_object): Update comment and prototype.
2052 * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
2053
2054 * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
2055 null-terminated vector of pointers, no longer a vector of exactly two.
2056 * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
2057
2058 * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
2059 done in _dl_relocate_object.
2060
2061 * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
2062
567c63af
RM
2063 * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
2064 (ElfW, ELFW): Use it.
2065 * elf/Makefile (headers): Add elfclass.h.
2066 * sysdeps/wordsize-32/elfclass.h: New file.
2067 * sysdeps/wordsize-64/elfclass.h: New file.
2068 * sysdeps/alpha/Implies: Add wordsize-64.
2069 * sysdeps/i386/Implies: Add wordsize-32.
2070 * sysdeps/m68k/Implies: Add wordsize-32.
2071 * sysdeps/mips/Implies: Add wordsize-32.
2072 * sysdeps/sparc/Implies: Add wordsize-32.
2073
266180eb
RM
2074 * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
2075 (__close, __mmap): Likewise define with __ names now.
2076
2077Mon Jun 10 05:13:18 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2078
2079 * elf/dl-support.c: New file.
2080 * elf/Makefile (CFLAGS-dl-support.c): New variable.
2081 (routines, elide-routines.so): Add dl-support.
2082
2083 * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
2084 * elf/dl-load.c (_dl_pagesize): Define it here.
2085 (_dl_map_object_from_fd): Initialize it if zero.
2086 * elf/link.h (_dl_pagesize): Remove const.
2087
2088Sun Jun 9 04:04:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2089
2090 * elf/Makefile (routines): Add dl-symbol.
2091 * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
2092 * elf/dl-symbol.c: New file.
2093
2094 * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
2095 (Elf32_Section, Elf64_Section): New types, 16 bits.
2096 (Elf32_Sym, Elf64_Sym): Use it.
2097
2098 * elf/dl-deps.c (_dl_open): Moved to ...
2099 * elf/dl-open.c: New file.
2100 * Makefile (routines): Add dl-open.
2101
2102 * elf/Makefile (dl-routines): New variable.
2103 (routines): Add $(dl-routines).
2104 (elide-routines.so): New variable, set to $(dl-routines).
2105 (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
2106 (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
2107 $(dl-routines).
2108
2109 * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
2110
2111 * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
2112
2113 * elf/dl-load.c (open_path): Use __ names for open and close. Avoid
2114 using strdup.
2115 (_dl_map_object): Likewise.
2116 (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
2117 * elf/dl-minimal.c (malloc): Likewise.
2118 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2119
2120 * elf/dl-minimal.c (_dl_pagesize): New variable.
2121 (malloc): Use that instead of a static variable.
2122 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
2123 calling getpagesize.
2124 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2125 * elf/link.h: Declare _dl_pagesize.
2126
2127 * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
2128
2129 * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
2130 * elf/rtld.c (dl_main): Use Half for phdr count arg.
2131 (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
2132
2133 * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
2134 extract 4-byte magic number, not ElfW(Word). Match EI_CLASS against
2135 native wordsize, either 32 or 64.
2136
2137 * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed. In C a
2138 char is always a byte, no need for a typedef. Section indices are
2139 16-bit quantities in elf64, which already have a typedef Elf64_Half.
2140
2141 Remove partial -lelf implementation. There is now a
2142 separately-distributed `libelf' package that implements it.
2143 * elf/dl-lookup.c: Don't #include <libelf.h> any more.
2144 (_dl_elf_hash): New function, moved from
2145 libelf.h:elf_hash.
2146 (_dl_lookup_symbol): Use it instead of elf_hash.
2147 * elf/libelf.h: File removed.
2148 * elf/elf_hash.c: File removed.
2149 * elf/Makefile (headers): Remove libelf.h.
2150 (extra-libs): Remove libelf.
2151 (libelf-routines): Variable removed.
2152
2153 * elf/Makefile (libdl.so): Remove commands from this target. The
2154 implicit rule commands are correct, this explicit rule just serves to
2155 add some dependencies.
2156
2157 * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
2158 ELF32_ST_TYPE. Likewise ST_BIND.
2159 * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
2160
2161 * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
2162 naming.
2163 (ELFW): New macro, likewise for ELFXX_* macro naming.
2164 (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
2165
2166Sat Jun 8 20:52:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2167
2168 * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
2169 elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
2170 elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
2171 elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
2172 `ElfW(XXX)' for wordsize-independence.
2173
2174Sat Jun 8 20:50:42 1996 Richard Henderson <rth@tamu.edu>
2175
2176 * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
2177 (Elf64_auxv_t): New type.
2178 (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
2179
564210fe
RM
2180Mon Jun 10 02:22:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2181
2182 * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
2183 Add check for installed <linux/version.h> being v2.0 or later.
2184
2185 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
2186 instead of open.
2187 (_dl_sysdep_fatal): Call __write instead of write.
2188 (_dl_sysdep_message): Likewise.
2189
2190Sun Jun 9 20:40:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2191
2192 * sysdeps/m68k/fpu/e_acosl.c: New file.
2193
dcfb26a7
RM
2194Sun Jun 9 01:11:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2195
564210fe
RM
2196 * Makerules (o-objects): New variable. Use it in place of
2197 $(objects:.o=$o); it filters out $(elide-routines$o).
2198 Use o-iterator for ar and ranlib rules so they use the per-type object
2199 list.
2200
6d9756c9
RM
2201 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
2202
2203 * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
2204 * sysdeps/stub/mprotect.c: Likewise.
2205 * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
2206 * sysdeps/generic/sys/mman.h: Declare __mprotect.
2207 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2208 * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2209 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2210 * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
564210fe 2211 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
6d9756c9 2212
9dd2fc5d
RM
2213 * Make-dist ($(tardir).tar): Use sed to check for file names longer
2214 than 14 chars, instead of doschk which checks for other things we
2215 don't care about.
2216
780b91d9
RM
2217 * Version 1.90 test release.
2218
dcfb26a7
RM
2219 * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2220 assume . is in PATH.
2221
2222Sat Jun 8 22:05:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2223
2224 * math/Makefile (distribute): Comment out addition of
2225 $(long-m-routines) sources until they are all written.
2226
2227 * math/Makefile (distribute): Append long double source names to this
2228 instead of using elided-routines.
2229
2230Sat Jun 8 15:15:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2231
2232 * mach/mach_shortcuts.c: Obsolete file removed.
2233 * mach/mach_syscalls.h: Likewise.
2234
2235 * hurd/Makefile (distribute): Consolidate defns into one.
2236
2237 * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2238
bf668fc8
RM
2239Fri Jun 7 16:48:13 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2240
2241 * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2242 sys/vm86.h.
2243
2244 Removed old math code no longer used since the fdlibm integration.
2245 * sysdeps/stub/acos.c: File removed.
2246 * sysdeps/stub/asin.c: File removed.
2247 * sysdeps/stub/atan2.c: File removed.
2248 * sysdeps/stub/cosh.c: File removed.
2249 * sysdeps/stub/exp.c: File removed.
2250 * sysdeps/stub/fmod.c: File removed.
2251 * sysdeps/stub/frexp.c: File removed.
2252 * sysdeps/stub/log.c: File removed.
2253 * sysdeps/stub/log10.c: File removed.
2254 * sysdeps/stub/sinh.c: File removed.
2255 * sysdeps/stub/tan.c: File removed.
2256 * sysdeps/stub/tanh.c: File removed.
2257 * sysdeps/generic/acos.c: File removed.
2258 * sysdeps/generic/acosh.c: File removed.
2259 * sysdeps/generic/asin.c: File removed.
2260 * sysdeps/generic/asinh.c: File removed.
2261 * sysdeps/generic/atan.c: File removed.
2262 * sysdeps/generic/atan2.c: File removed.
2263 * sysdeps/generic/atanh.c: File removed.
2264 * sysdeps/generic/cabs.c: File removed.
2265 * sysdeps/generic/ceil.c: File removed.
2266 * sysdeps/generic/copysign.c: File removed.
2267 * sysdeps/generic/cosh.c: File removed.
2268 * sysdeps/generic/exp.c: File removed.
2269 * sysdeps/generic/expm1.c: File removed.
2270 * sysdeps/generic/fabs.c: File removed.
2271 * sysdeps/generic/floor.c: File removed.
2272 * sysdeps/generic/fmod.c: File removed.
2273 * sysdeps/generic/frexp.c: File removed.
2274 * sysdeps/generic/hypot.c: File removed.
2275 * sysdeps/generic/infnan.c: File removed.
2276 * sysdeps/generic/isnan.c: File removed.
2277 * sysdeps/generic/ldexp.c: File removed.
2278 * sysdeps/generic/log.c: File removed.
2279 * sysdeps/generic/log10.c: File removed.
2280 * sysdeps/generic/log1p.c: File removed.
2281 * sysdeps/generic/modf.c: File removed.
2282 * sysdeps/generic/pow.c: File removed.
2283 * sysdeps/generic/rint.c: File removed.
2284 * sysdeps/generic/sinh.c: File removed.
2285 * sysdeps/generic/tan.c: File removed.
2286 * sysdeps/generic/tanh.c: File removed.
2287 * sysdeps/ieee754/cabs.c: File removed.
2288 * sysdeps/ieee754/copysign.c: File removed.
2289 * sysdeps/ieee754/frexp.c: File removed.
2290 * sysdeps/ieee754/hypot.c: File removed.
2291 * sysdeps/ieee754/infnan.c: File removed.
2292 * sysdeps/ieee754/ldexp.c: File removed.
2293 * sysdeps/ieee754/log10.c: File removed.
2294
2295 * posix/Makefile (headers): Add schedbits.h.
2296
2297 * math/Makefile (elided-routines): Add long double routines.
dcfb26a7 2298
268eb642
MB
2299Fri Jun 7 11:02:22 1996 Miles Bader <miles@gnu.ai.mit.edu>
2300
9646d934
MB
2301 * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2302 to __proc_getprocinfo.
2303
268eb642
MB
2304 * login/login.c (tty_name): New function.
2305 (login): Use it.
2306 (PATH_MAX): MACRO removed.
2307 <stdlib.h>: New include.
2308
bf668fc8
RM
2309Fri Jun 7 09:11:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2310
2311 * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2312 sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2313
2314 * gmon/Makefile (distribute): Add profil-counter.h.
2315
2316 * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2317
2318 * sysdeps/unix/Dist: Add s-proto.S.
2319
2320 * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2321
2322 * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2323
2324 * csu/Makefile (distribute): Add start.c.
2325
2326 * elf/Makefile (distribute): Add dl-machine.h.
2327
2328 * sysdeps/alpha/Dist: Add _mcount.S.
2329
2330 * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2331 resetting; don't add bb_init_func.
2332
2333 * string/Makefile (routines): Add strerror_r.
2334 * string/string.h (strerror_r): Use int for BUFLEN arg.
2335
2336 * Makefile (distribute): Add shlib-versions.
2337
2338 * po/Makefile (distribute): Add SYS_libc.pot.
2339
2340 * misc/Makefile (routines): Add lsearch.
2341
2342 * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2343 and other changes inadvertently made to the obsolete assert.texi.
2344 * manual/assert.texi: File removed.
2345
2346 * mach/mach_syscalls.c: Obsolete file removed.
2347 * mach/mach_syscalls.h: Likewise.
2348 * mach/mach_traps.S: Likewise.
2349 * mach/msg_destroy.c: Likewise.
2350 * mach/vm_page_size.c: Likewise.
2351
2352 * locale/Makefile (distribute): Add weight.h, charset.h.
2353
2354 * Makefile (distribute): Add version.h.
2355
2356 * hurd/Makefile (headers): Add hurd/ioctl.h.
2357 (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2358
2359 * csu/Makefile (distribute): Add gmon-start.c.
2360
2361 * Makefile (distribute): Add config.h.in.
2362
1c2f546b
RM
2363Wed Jun 5 22:06:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2364
2365 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2366 argument.
2367 [case R_68K_32]: Check for resolve being null.
2368 (RTLD_START): Add missing label.
2369
1be6ec30
RM
2370Fri Jun 7 1996 05:29:32 Ulrich Drepper <drepper@cygnus.com>
2371
2372 * misc/lsearch.c: New file. Implementation of lfind and
2373 lsearch functions.
2374
2375 * misc/search.h: Add prototype for functions from tsearch
2376 family with __ prefix.
2377 Correct prototype for lsearch: BASE parameter must not be
2378 const.
2379
2380 * misc/tsearch.c: prepend all global function names with __
2381 and make normal names weak aliases.
2382
2383Fri Jun 7 00:15:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2384
2385 * Make-dist (sysdep_dirs): Skip CVS dirs.
2386
4d02a5b1
RM
2387Thu Jun 6 16:12:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2388
c035afc9
RM
2389 * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2390 gmalloc-head.c.
2391 (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2392 (malloc/Makefile): Do $(make-target-directory) first.
2393 * malloc/gmalloc-head.c: New file.
2394
2395 * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2396
4d02a5b1
RM
2397 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2398 check, deliver a pending blocked signal if its action might be to
2399 ignore.
2400 * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2401 and SIG is pending, wake up signal thread to check us.
2402
2403 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2404 pending while blocked or stopped when the action is to ignore it.
2405
e60062b7
RM
2406Thu Jun 6 12:56:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2407
4d02a5b1
RM
2408 * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2409 SS_SUSPENDED when the thread is really suspended.
2410
2411 * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2412
e60062b7
RM
2413 * Makerules (headers): Move append of $(sysdep_headers) after include
2414 of sysdep makefiles.
2415
2416 * sysdeps/mach/hurd/errlist.c: File removed.
2417
02eec644
MB
2418Thu Jun 6 07:32:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
2419
2420 * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2421 (_gethtbyname2): Remove ALIAS variable.
2422 Initialize NAME field of SELF and TARGET to 0.
2423 Add SELF_NAME_SIZE static variable.
2424 Add loop to call gethostname until the space we allocated is enough.
2425 Use malloced strings instead of fixed size buffers.
2426 <stdlib.h>, <unistd.h>: New includes.
2427 * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2428
2429 * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2430 (_sys_nerr): Initialize to 107.
2431 Update _HURD_ERRNOS consistency check.
2432
2433 * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2434 not sysconf.
2435
2436 * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2437 already defined.
2438
2439 * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2440 argument to __msg_sig_post_request.
2441
2442 * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2443 libthreads/malloc.c:
2444 (more_memory): Use assert_perror instead of MACH_CALL.
2445 "cthread_internals.h": Include removed.
2446 (realloc): Use LOG2_MIN_SIZE.
2447 (LOG2_MIN_SIZE): New macro.
2448 (realloc): Don't bother allocating a new block if the
2449 new size request fits in the old one and doesn't waste any space.
2450 Only free the old block if we successfully got a new one.
2451 [MCHECK] (struct header): New type.
2452 (union header): Only define if !MCHECK.
2453 (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2454 [MCHECK] (MIN_SIZE): Add correct definition for this case.
2455 (more_memory, malloc, free, realloc): Use above macros, and add
2456 appropiate checks & frobs in MCHECK case.
2457
92f3773b
RM
2458Thu Jun 6 02:00:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2459
2460 * Makerules (distinfo-vars): Don't write constant line to frob sources.
2461 * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2462 routines.
2463
8f30ca23
RM
2464Tue Jun 4 22:03:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2465
2466 * sysdeps/m68k/fpu/__math.h: Define long double versions of
2467 the inline functions.
8f30ca23
RM
2468 * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2469 sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2470 sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2471 sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2472 sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2473 sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2474 sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2475 sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2476 sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2477 sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2478 sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2479 sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2480 sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2481 sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2482 sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2483 sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2484 sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
bf668fc8 2485 sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
8f30ca23
RM
2486
2487 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2488 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2489 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2490 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2491 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2492 sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2493 float_type with appropriate defaults.
2494
2495 * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2496 sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2497 sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2498 sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2499 sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2500 sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2501 versions with appropriate definitions to get float functions,
2502 instead of defining them directly.
2503
2504 * sysdeps/m68k/fpu/acos.c: File removed.
2505 * sysdeps/m68k/fpu/asin.c: File removed.
2506 * sysdeps/m68k/fpu/atan.c: File removed.
2507 * sysdeps/m68k/fpu/atan2.c: File removed.
2508 * sysdeps/m68k/fpu/atanh.c: File removed.
2509 * sysdeps/m68k/fpu/ceil.c: File removed.
2510 * sysdeps/m68k/fpu/cos.c: File removed.
2511 * sysdeps/m68k/fpu/cosh.c: File removed.
2512 * sysdeps/m68k/fpu/drem.c: File removed.
2513 * sysdeps/m68k/fpu/exp.c: File removed.
2514 * sysdeps/m68k/fpu/expm1.c: File removed.
2515 * sysdeps/m68k/fpu/fabs.c: File removed.
2516 * sysdeps/m68k/fpu/fl.h: File removed.
2517 * sysdeps/m68k/fpu/floor.c: File removed.
2518 * sysdeps/m68k/fpu/fmod.c: File removed.
2519 * sysdeps/m68k/fpu/frexp.c: File removed.
2520 * sysdeps/m68k/fpu/isinf.c: File removed.
2521 * sysdeps/m68k/fpu/isinfl.c: File removed.
2522 * sysdeps/m68k/fpu/isnan.c: File removed.
2523 * sysdeps/m68k/fpu/isnanl.c: File removed.
2524 * sysdeps/m68k/fpu/ldexp.c: File removed.
2525 * sysdeps/m68k/fpu/log.c: File removed.
2526 * sysdeps/m68k/fpu/log10.c: File removed.
2527 * sysdeps/m68k/fpu/log1p.c: File removed.
2528 * sysdeps/m68k/fpu/logb.c: File removed.
2529 * sysdeps/m68k/fpu/pow.c: File removed.
2530 * sysdeps/m68k/fpu/rint.c: File removed.
2531 * sysdeps/m68k/fpu/sin.c: File removed.
2532 * sysdeps/m68k/fpu/sinh.c: File removed.
2533 * sysdeps/m68k/fpu/sqrt.c: File removed.
2534 * sysdeps/m68k/fpu/tan.c: File removed.
2535 * sysdeps/m68k/fpu/tanh.c: File removed.
2536
f127cd28
RM
2537Thu Jun 6 00:02:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2538
8f30ca23
RM
2539 * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2540 is _newselect).
2541 * sysdeps/unix/sysv/linux/select.S: File removed.
2542
2543 * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2544 current kernels, generic linux version is fine.
2545
f127cd28
RM
2546 * locale/Makefile: Add vpath for %.gperf to programs.
2547
2548 * Make-dist (+tsrcs): Variable removed.
2549 (dist): Process $^ here instead of using $(+tsrcs).
2550
2551 * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2552 ($(includedir)/sys/syscall.h): Target removed.
2553 (sysdep_headers): Add syscall-list.h.
2554 ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2555 (generated): Add those.
2556 * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2557
92702b91
RM
2558Wed Jun 5 15:57:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2559
f127cd28
RM
2560 * misc/sys/syscall.h: New file.
2561 * misc/Makefile (headers): Add sys/syscall.h.
2562
dfe1754a
RM
2563 * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2564 time/africa, time/asia, time/australasia, time/europe,
2565 time/northamerica, time/southamerica: Updated from ADO 96h.
2566
2567 * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2568 (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2569
2570 * Makerules (distinfo-vars): Add sysdep_headers.
2571 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2572 this instead of $(headers).
2573 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
f127cd28 2574 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
dfe1754a
RM
2575
2576 * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2577 $(subdir); we are already there.
2578
2579 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2580
92702b91
RM
2581 * mach/Machrules: Undo last change.
2582 (mach-generated): List .uh and .__h files only for $(user-interfaces),
2583 not for each .h in $(interface-headers); server-interfaces have no .uh
2584 or .__h files.
2585
b13aa0b8
MB
2586Wed Jun 5 15:42:51 1996 Miles Bader <miles@gnu.ai.mit.edu>
2587
2588 * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2589 corrsponding .defs file with without the `_server' will be used.
92702b91
RM
2590
2591 * mach/Makefile (mach/mach_interface.defs): Renamed from
2592 mach_interface.defs.
b13aa0b8
MB
2593 (mach/memory_object_user.defs): New variable.
2594
92702b91
RM
2595Wed Jun 5 15:10:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2596
2597 * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2598
2599 * locale/Makefile (subdir-dirs): New variable.
2600
1c384dcd
RM
2601Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2602
aa592a63
RM
2603 * Makerules (distinfo-vars): Add sysdep_routines.
2604
2605 * mach/Machrules (include-%.defs): New canned sequence.
2606 Change all uses of `#include <$*.defs>' in cmds to use it.
2607 * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2608
2609 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2610 null in all cases but R_386_COPY.
2611 (elf_machine_rel):
2612
92702b91
RM
2613Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2614
aa592a63
RM
2615 * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2616 * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2617 * sysdeps/unix/sysv/sysv4/Dist: Updated.
2618 * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2619 * sysdeps/unix/sysv/irix4/Dist: Updated.
2620 * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2621 * sysdeps/unix/sysv/Dist: Updated.
2622 * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2623 * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2624 * sysdeps/gnu/Dist: New file.
2625 * sysdeps/alpha/Dist: Updated.
2626 * sysdeps/mach/hurd/Dist: Updated.
2627
2628 * Make-dist [subdir-dirs]: Set a vpath for %.c.
2629
2630 * Make-dist (README): Fix typo in cvs cmd.
2631
1c384dcd
RM
2632 * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2633 Comment out ref to nonexistent _dl_close.
2634
ee188d55
RM
2635Tue Jun 4 21:01:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2636
58e07151
RM
2637 * math/Makefile (libm-support, libm-calls): New variables.
2638 (libm-routines): Construct this from those.
2639 (calls): New variable.
2640 (routines): Construct this from it.
2641
2642 * resolv/res_debug.c: Add missing #include <ctype.h>.
2643
2644 * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2645 * sysdeps/unix/getlogin_r.c: Likewise.
2646
2647 * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2648
2649 * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2650
2651 * math/Makefile (long-m-routines): Define recursive variable as
2652 $(long-m-$(long-double-fcts)).
2653 (long-m-yes): Put list of routines here.
2654 (long-c-routines, long-c-yes): Likewise.
2655
2656 * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2657
2658 * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2659 * sysdeps/m68k/Makefile: Likewise.
2660
2661 * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2662 -DNO_LONG_DOUBLE.
2663
ee188d55
RM
2664 * sysdeps/mach/hurd/getlogin_r.c: New file.
2665
2666Wed Jun 5 02:11:30 1996 Ulrich Drepper <drepper@cygnus.com>
2667
2668 * io/Makefile (routines): Add ttyname_r.
2669
2670 * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2671
2672 * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2673 sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2674 sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2675 sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2676 sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2677 sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2678 sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2679 sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2680 sysdeps/libm-i387/s_tanl.S: New files. i387 assembler versions
2681 of `long double' math functions.
2682
2683 * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2684 in long double functions.
2685
2686 * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2687 sysdeps/libm-ieee754/s_modfl.c: New files. Generic versions
2688 of `long double' math functions.
2689
2690 * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2691 alias for __isinfl.
2692
2693 * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2694 sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2695 sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2696 sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2697 sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2698 sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2699 sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2700 sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2701 sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2702 sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2703 sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2704 sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2705 sysdeps/libm-ieee754/w_sqrtl.c: New files. Wrapper functions
2706 around long double function implementations.
2707
2708 * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2709 to determine length of directory entry name.
2710
2711 * posix/Makefile (routines): Add getlogin_r.
2712 * posix/unistd.h: Add prototype for getlogin_r.
2713 * sysdeps/stub/getlogin_r.c: New file. Reentrant version of
2714 getlogin function, specified in P1003.1c/D6. Stub version.
2715 * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2716 ttyname. This avoids saving and restoring the old content.
2717 Also use setutent_r, getutline_r and endutent_r instead of
2718 accing UTMP file directly.
2719 * sysdeps/unix/getlogin_r.c: New file. Reentrant version of
2720 getlogin function, specified in P1003.1c/D6.
2721
2722Tue Jun 4 20:10:09 1996 J.T. Conklin <jtc@cygnus.com>
2723
2724 * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2725
f68b86cc
RM
2726Tue Jun 4 18:57:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2727
ee188d55
RM
2728 * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2729 _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2730
2731 * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2732 * elf/link.h: Declare _dl_rtld_map.
2733
2734 * elf/dl-lookup.c (_dl_symbol_value): New function.
2735 * elf/link.h: Declare it.
2736
f68b86cc
RM
2737 * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2738
2739 * shlib-versions: Set libdl=2.
2740
2741 * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2742 elements and then scan it to fill the single malloc'd array, instead
2743 of using realloc to grow the array in the first pass. _dl_map_object
2744 may do some mallocs that break our stream of reallocs, and the minimal
2745 realloc can't handle that.
2746
2747 * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2748 searchlist describes the piece of the DT_NEEDED graph to be
2749 initialized.
2750 * elf/link.h: Update prototype.
2751 * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2752 to _dl_init_next.
2753 * sysdeps/m68k/dl-machine.h: Likewise.
2754 * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2755
2756 * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2757 extra bits in last byte.
2758 * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2759 putting dup elts in search list.
2760
2761 * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2762
2763 * elf/dlsym.c: Don't tweak linked list. Scope array given to
2764 _dl_lookup_symbol does the right thing.
efec1d0c 2765
14d898ae
RM
2766 * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2767 (lib-noranlib): Depend on on $(extra-objs).
2768
2769 * errno.h: Move __END_DECLS out of #ifdef's so it matches
2770 __BEGIN_DECLS.
2771
f68b86cc
RM
2772Tue Jun 4 02:25:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2773
a2b934be
RM
2774 * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2775 macro. _IO_size_t is just an alias for the real size_t anyway.
2776
2777 * elf/Makefile (libdl-routines): Add dladdr.
2778 * elf/dladdr.c: New file.
2779 * elf/dlfcn.h (Dl_info): New typedef.
2780 (dladdr): Declare it.
2781
55f3aaff 2782 * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
fa00327f
RM
2783
2784 * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2785
2786 * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2787 removed. Instead, include <stdio_lim.h>.
2788
2789 * libio/_G_config.h: New file.
2790 * libio/Makefile (headers): Add _G_config.h.
2791
2792 * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2793
bf18dbd7
RM
2794 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2795 this macro too; current Linux kernels test that instead of
2796 _LINUX_TYPES_DONT_EXPORT.
2797
efec1d0c
RM
2798 * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2799
2800 * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2801
2802 * elf/dl-deps.c: New file.
2803 * elf/Makefile (rtld-routines): Add dl-deps.
2804 * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2805 * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2806 * elf/dlopen.c: Use _dl_open.
2807
2808 * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2809 frobnication based on its value. Detach RTLD_MAP from the chain if
2810 its l_opencount is zero after loading deps.
2811
2812 * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2813
2814 * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2815 `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2816 * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2817 of two link_map ptrs. Search the maps in the l_searchlist of each
2818 elt that is not null.
2819 * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2820 * elf/dl-runtime.c: Likewise.
2821 * elf/dlsym.c: Likewise.
2822 * elf/rtld.c (dl_main): Likewise.
2823
2824 * elf/dl-minimal.c (realloc): Support realloc of the block most
2825 recently returned by the minimal malloc.
2826
b25ae9c6
RM
2827Tue Jun 4 00:16:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2828
2829 * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2830
2831 * intl: Updated from gettext-0.10.13.
efec1d0c 2832 * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
b25ae9c6
RM
2833
2834 * signal/siggetmask.c: New file. Wrapper around sigblock with
2835 link_warning about obsolescence.
2836 * signal/Makefile (routines): Add siggetmask.
2837
2838 * sysdeps/gnu/errlist.awk: New file, adapted from ...
2839 * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2840 * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2841 * sysdeps/gnu/Makefile: New file.
2842 (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2843
5f2eab42
RM
2844Mon Jun 3 21:03:54 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2845
b25ae9c6
RM
2846 * manual/errno.texi (Error Codes): Add placeholder items for missing
2847 Linux/i386 errno codes, with perror text but no documentation.
2848 Some existing perror texts changed.
2849
5f2eab42
RM
2850 * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2851
2852 * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2853 `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2854
2855Sun Jun 2 20:14:30 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2856
2857 * locale/programs/linereader.c (lr_open): Don't pass NULL to
2858 xstrdup; fix memory leak.
2859 (lr_close): Fix memory leak.
2860
9f195df2
TBB
2861Mon Jun 3 15:58:22 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2862
5f2eab42 2863 * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
9f195df2
TBB
2864 for a HANDLE signal to IGNORE because the signal is blocked, clean
2865 up any pending suspension left over from a call to resume.
2866
710f7bab
RM
2867Mon Jun 3 00:30:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2868
2869 * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2870 don't allow a defn resolving to that address.
5f2eab42 2871
710f7bab
RM
2872 * elf/link.h: Update prototype and comment.
2873 * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2874 it to elf_machine_relplt.
2875 * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2876 RELOC_ADDR and pass it through to _dl_lookup_symbol.
2877 * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2878 instead of calling it ourselves and passing its results.
2879 (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2880 * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2881 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2882 arg. Add RESOLVE function ptr arg. Call *RESOLVE as necessary.
2883 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2884 * sysdeps/stub/dl-machine.h: Likewise.
2885
9004bc20
RM
2886Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2887
710f7bab
RM
2888 * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2889
2890 * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2891 (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2892 (RTLD_GLOBAL): New macro.
2893 (dlopen): Take arg of type int instead of dl_open_mode.
2894 * elf/dlopen.c: Likewise.
2895
2896 * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2897 (M_*): Use it for these constants.
2898
6c03c2cf
RM
2899 * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2900 Reject SHN_UNDEF defns iff NOPLT is nonzero.
2901 * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2902 * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2903 * elf/dlsym.c (dlsym): Pass 0.
2904 * elf/rtld.c (dl_main): Likewise.
2905 * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2906 replaced with NOPLT flag. Pass it through to _dl_lookup_symbol.
2907 * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2908 Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2909 * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2910 * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2911 * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2912
9004bc20
RM
2913 * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2914
2915 * sysdeps/generic/gnu/types.h (__clock_t): New type.
2916
84724245
RM
2917Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2918
9004bc20
RM
2919 * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2920 using kernel types.
2921 * time/time.h (clock_t): Include <gnu/types.h> and define using
2922 __clock_t.
2923
84724245
RM
2924 * time/Makefile (tests): Add test-tz.
2925
2926 * time/test-tz.c: New test.
2927
2928 * time/clocktest.c: Rewrite to test more meaningfully.
2929
2930 * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2931 create_module, delete_module, get_kernel_syms, init_module,
2932 klogctl.
2933
2934 * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2935 instead of SYMLOOP_MAX, which is nowhere to be found.
2936
2937 * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2938 sysdeps/unix/sysv/linux/sys/sem_buf.h,
2939 sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2940 control ops and datastructures.
2941
2942 * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2943 I/O related functions.
2944
2945 * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2946 daemon related functions/operations.
2947
2948 * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2949 logging related functions/operations.
2950
2951 * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2952 module related functions/operations.
2953
2954 * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2955 for non-Alpha based Linux systems.
2956
2957 * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
2958
2959 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
2960 sys/io.h, sys/klog.h, and sys/kdaemon.h.
2961
2962 * sysdeps/unix/sysdep.h (END): Define empty END macro for
2963 platforms that don't need some sort of end directive at the
2964 end of functions.
2965
2966 * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
2967 syscall wrapper to allow correct generation of debugging
2968 information.
2969
2970 * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
2971 directive for both ELF and ECOFF.
2972 (ret): Delete macro. It was a dangerous macro and unnecessary
2973 since the Alpha assemblers recognizes "ret" as a macro themselves.
2974
2975 * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
2976 ut_session to guarantee long alignment. This is important for
2977 Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
2978 This will all get cleaned up as programs start to use ut_tv
2979 instead ut_time.
2980
2981 * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
2982
2983 * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
2984 _setjmp.
2985
2986 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
2987 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
2988 sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
2989 sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
2990 sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
2991 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
2992 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2993 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2994 sysdeps/unix/sysv/linux/alpha/llseek.S,
2995 sysdeps/unix/sysv/linux/alpha/pipe.S,
2996 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2997 sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
2998 .end directive.
2999
3000 * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
3001 function by having it contain a dummy function call.
3002
3003 * configure.in (config_machine): Don't make ELF the default for
3004 Linux/Alpha just yet (use --with-elf instead).
3005 (.init/.fini check): Generate .text to ensure function start and
3006 end are in same section.
3007
3008 * sysdeps/unix/bsd/osf/alpha/brk.S,
3009 sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
3010 break value, not just the low 32 bits to accomodate large
3011 memories.
3012
3013Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
3014
3015 * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
3016 dynamically resolve _end for initializing __curbrk, support the
3017 brk(0) query idiom.
3018
3019 * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
3020
3021 * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
3022
3023Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
3024
3025 * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
3026 stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
3027
3028Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
3029
3030 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
3031 sys/klog.h, and sys/kdaemon.h.
3032
3033 * sysdeps/unix/sysv/linux/sys/io.h: New file.
3034 * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
3035 * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
3036
3037 * sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
3038 dangerous and unnecessary since both OSF/1 as and gas define "ret"
3039 as a pseudo-instruction.
3040
3041Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3042
3043 * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
3044 them. Bug found by David Mosberger-Tang.
3045
3046 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
3047 of PTR.
3048
3049 * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
3050 to work around Make bug when A contains var ref.
3051
3052Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3053
3054 * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
3055
3056 * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
3057 strong names and [gs]etpgid as weak aliases.
3058
76060ec0
RM
3059Thu May 30 11:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3060
84724245
RM
3061 * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
3062
76060ec0
RM
3063 * po/header.pot: Replace with exact boilerplate pinard dictates.
3064
3065 * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
3066 errno and the check that jumped to it.
3067
3068 * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
3069
3070Thu May 30 03:21:57 1996 Ulrich Drepper <drepper@cygnus.com>
3071
3072 * FAQ: Document need of gperf program for developers.
3073
3074 * elf/elf.h: Fix typos in comments.
3075
3076 * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
3077 prototypes for `ctermid' and `cuserid'.
3078
3079 * locale/programs/locale.c: Switch to user selected locale
3080 before printing variables.
3081
3082 * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
3083 and long-c-routines. Only if the `long double' data type is
3084 available we need to compile the functions.
3085 (libm-routines): Add $(long-m-routines).
3086 (routines): Remove isinfl, isnanl. Use new file s_isinfl and
3087 s_isnanl instead if `long double' is available.
3088
3089 * math/math.h: Include <mathcalls.h> again to define `long double'
3090 functions.
3091
3092 * math/math_private.h: Define data types, prototypes and access
3093 macros for `long double'.
3094
3095 * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
3096 [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
3097 calls __strto{,u}q_internal.
3098
3099 * stdlib/strfmon.c: Replace PTR by `void *'.
3100
3101 * stdlib/strtoq.c: Define strtoll as weak alias.
3102 * stdlib/strtouq.c: Define strtoull as weak alias.
3103
3104 * string/tester.c: Correct `strsep' test.
3105
3106 * sysdeps/generic/strsep.c: Make compatible with BSD version.
3107 Trailing characters of skip set are not skipped. In this case
3108 empty tokens are returned.
3109
3110 * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
3111 sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
3112 sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed. We
3113 now use the versions part of libm.
3114
3115 * sysdeps/i386/strsep.S: Removed. Generic C version is of
3116 similar speed.
3117 * sysdeps/i386/strtok.S: Remove support for `strsep'.
3118
3119 * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
3120 sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
3121 sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
3122 sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
3123 sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
3124 New i387 specific math functions implementing `long double'
3125 versions.
3126
3127 * sysdeps/libm-ieee754/s_ceill.c,
3128 sysdeps/libm-ieee754/s_copysignl.c,
3129 sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
3130 sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
3131 sysdeps/libm-ieee754/s_isnanl.c,
3132 sysdeps/libm-ieee754/s_nextafterl.c,
3133 sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
3134 sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
3135 versions of libm functions.
3136
3137 * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
3138 Intel FPU nonsense.
3139
3140 * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
3141 sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
3142 handling of local variables. The old version created a stack
3143 frame but stored the values outside.
3144
3145 * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
3146 [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
3147
c3352e62
RM
3148Wed May 29 12:53:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3149
76060ec0
RM
3150 * login/pututline_r.c: Include sys/stat.h. Fix typos.
3151
c3352e62
RM
3152 * version.h (VERSION): Set to 1.90.
3153
3154 * Makerules (distinfo-vars): Write extra-libs and *-routines for each
3155 of its elts.
3156 * MakeTAGS (sources): Add those sources.
3157
3158 * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
3159
3160Wed May 29 08:53:08 1996 Miles Bader <miles@gnu.ai.mit.edu>
3161
3162 * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
3163 itimer thread.
3164
3165 * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
3166 _hurd_proc_init.
3167
d06b536d
RM
3168Wed May 29 00:52:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3169
c3352e62
RM
3170 * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
3171 token instead of it being implicitly skipped.
3172
77aae366
RM
3173 * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
3174 Must operate on top of fp reg stack, not second from top.
3175
d06b536d
RM
3176 * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
3177 (others): Instead, make this depend on it.
3178
0200214b
RM
3179Tue May 28 04:38:10 1996 Ulrich Drepper <drepper@cygnus.com>
3180
3181 * limits.h: Change MB_LEN_MAX to 6. A 31-bit ISO 10646
3182 character in UTF-8 encoding has that many bytes.
3183
3184 * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
3185 * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
3186 * locale/Makefile (routines): Add mb_cur_max.
3187 * locale/mb_cur_max.c: New file. This function gets called
3188 when the macro MB_CUR_MAX is used.
3189 * locale/C-ctype.c: Initialize new mb_cur_max field.
3190 * locale/localeinfo.h: Change magic value because of incompatible
3191 change.
3192 * locale/programs/ld-ctype.c: Determine value of mb_cur_max
3193 according to current character set and write it out with the rest.
3194 * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore. Get value
76060ec0 3195 according to currently used locale for category LC_CTYPE by
0200214b
RM
3196 calling the function __ctype_get_mb_cur_max.
3197
3198Tue May 28 03:27:46 1996 Ulrich Drepper <drepper@cygnus.com>
3199
3200 * FAQ: Fix some typos.
3201 Tell that for Linux the kernel header files are necessary.
3202
3203 * PROJECTS: New file. List of open jobs for glibc.
3204 * Makefile (distribute): Add PROJECTS.
3205
3206 * crypt/GNUmakefile (headers): New variable. Mention crypt.h.
3207 * crypt/crypt.h: Header for crypt functions.
3208
3209 * elf/elf.h: Add some new constants from recent Cygnus ELF
3210 header files.
3211
3212 * login/getutid_r.c: Test for correct type.
3213 Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
3214 _HAVE_UT_ID resp. are defined.
3215 Make really compliant with specification.
3216
3217 * login/getutline_r.c, login/pututline_r.c: Don't depend on
3218 ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3219 defined.
3220 Make really compliant with specification.
3221
3222 * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3223 _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3224
3225 * login/login.c, login/logout.c, login/logwtmp.c: Complete
3226 rewrite. Now based on getut*/setut* functions.
3227
3228 * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3229 This prevented using this file in other GNU packages.
3230
3231 * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3232 and _HAVE_UT_TV because struct utmp has these members.
3233
3234 * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3235
3236 * utmp.h: New file. Wrapper around login/utmp.h.
3237
215dbbb1
RM
3238Tue May 28 13:11:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3239
0200214b
RM
3240 * elf/dl-error.c (struct catch): New type.
3241 (catch): New static variable, struct catch *.
3242 (catch_env, signalled_errstring, signalled_objname): Variables removed.
3243 (_dl_signal_error): If CATCH is non-null, set its errstring and
3244 objname members and jump to CATCH->env. If it is null, call
3245 _dl_sysdep_fatal with a standard message.
3246 * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3247 No longer use _dl_catch_error.
3248
215dbbb1
RM
3249 * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3250 continuation line.
3251
3252 * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3253 setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3254 args are found at 4(%esp), not 8(%esp).
3255
4e395306
RM
3256Mon May 27 10:10:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3257
13a0be88
RM
3258 * Makefile ($(includedir)/stubs.h): Add missing backslash.
3259
2a4dcf76
RM
3260 * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3261 can be aliased.
3262
80791291
RM
3263 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3264 Append termio.h.
3265
3266 * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3267
3268 * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3269 defined.
3270
3271 * sysdeps/unix/sysv/linux/termio.h: New file.
3272 * sysdeps/unix/sysv/linux/Dist: Add it.
3273
3274 * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3275 kernel header <asm/termios.h>.
3276
3277 * misc/Makefile (headers): Add ioctl-types.h.
3278 * sysdeps/generic/ioctl-types.h: New file.
3279 * misc/sys/ioctl.h: Include <ioctl-types.h>.
3280 (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3281 struct ttysize): Types moved there.
3282
d36e7692
RM
3283 * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3284 identical.
3285
4e395306
RM
3286 * time/Makefile (z.% rule): Generate generic zone%/ rule after
3287 zone%/right/ and zone%/posix/ rules so they match first.
3288
59dd8641
RM
3289Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3290
5f160cde
RM
3291 * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3292 _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
e463fcfb 3293
71a40c74
RM
3294 * time/Makefile (tzcompile): Add missing backslash.
3295
59dd8641
RM
3296 * stdlib/ldiv.c: Deansideclized.
3297
71a40c74
RM
3298 * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3299 [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3300 stddef.h doesn't define it.
3301 * wcsmbs/wchar.h: Likewise.
3302 * stdlib/strtod.c: Likewise.
3303
3304 * wcsmbs/wcstok.c: Fix argument name typo.
3305
59dd8641
RM
3306Sun May 26 19:39:53 1996 Ulrich Drepper <drepper@cygnus.com>
3307
3308 * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3309 after malloc.
3310
3311 * string/Makefile (tester-ENV): New variable to suppress message
3312 translation in test.
3313
3314 * string/tester.c: Add tests for strtok_r and strsep.
3315
3316 * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3317 <-> 32 bit operand conflicts.
3318
3319 * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3320 to produce strsep function.
3321 * sysdeps/i386/strtok.S: Optimized implementation of strtok
3322 function.
3323 * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3324 to produce strtok_r function.
3325
3326 * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3327 Corrected example in comment.
3328
3329 * string/Makefile (routines): Add strtok_r.
3330 * sysdeps/generic/strtok_r.c: New file. Implement reentrant version
3331 of strtok_r.
3332 * string/string.h: Add prototype for strtok_r.
3333 * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3334 as in strtok_r.
3335
3336Sun May 26 13:28:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3337
3338 * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3339 first and fall back to 1003.1 syntax only if it fails.
3340
3341 * time/Makefile (install-others): Also install posix/ZONE and
3342 right/ZONE for each ZONE in $(zonenames).
3343 (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3344 the difference begin leapseconds vs /dev/null as 3rd dep. For
3345 original ZONE targets use $(leapseconds), to be set in Makeconfig.
3346 (target-zone-flavor): New variable.
3347 (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3348 * Makeconfig (leapseconds): New variable.
3349
3350 * mach/Machrules (%.udeps rule): Depend on Machrules.
3351 Emit deps for .uh and .__h files.
3352 (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3353 instead.
3354
3355Sun May 26 01:06:47 1996 Ulrich Drepper <drepper@cygnus.com>
3356
3357 * stdlib/Makefile (routines): Add llabs, lldiv.
3358 * stdlib/llabs.c: New file. Implementation of return
3359 absolute value of long long argument.
3360 * stdlib/lldiv.c: New file. Implementation of division with remainder
3361 of long long argument.
3362 * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3363 function.
3364 Define prototypes for lldiv and llabs functions.
3365
3366 * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3367
3368 * stdlib/strtod.c: Replace wchar_t with wint_t. The later is
3369 really the type for a single wide character.
3370
3371 * string/strxfrm.c (print_val): Define separate version for
3372 use as wcsxfrm. Here we don't need UTF8 encoding.
3373
3374 * wcsmbs/wchar.h: gcc-2.7.2-960517 finally introduces wint_t
3375 in <stddef.h>. Use this value and only for older gcc version
3376 define in place.
3377 (uwchar_t): Remove definition.
3378
3379 * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3380 wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3381 type. wint_t is intended for this.
3382
3383Sat May 25 14:10:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3384
3385 * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3386 quiet -ansi -pedantic.
3387 * sysdeps/unix/common/direntry.h: Likewise.
3388
3389 * login/Makefile (headers): Add lastlog.h.
3390 * login/lastlog.h: New file.
3391
3392 * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3393 * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3394 with #ifdef __USE_REENTRANT.
3395
3396 * features.h (__GNU_LIBRARY__): Set to 6.
3397 [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3398 _SVID_SOURCE): Make sure they are all defined.
3399
3400 * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3401 <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3402 include <linux/types.h>.
3403
3404 * resource/sys/resource.h: Remove trailing commas from enums.
3405
41f27456
RM
3406Fri May 24 17:30:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3407
59dd8641
RM
3408 * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3409 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3410
27a11070
RM
3411 * login/getutline_r.c: Include string.h.
3412
5790c439
RM
3413 * Rules (static-only-routines): Restore the rule to make these .so's
3414 empty objects.
3415
41f27456
RM
3416 * login/pututline_r.c: Use struct assignment instead of memcpy.
3417
3418 * login/getutline_r.c: Use strncmp instead of comparing two pointers
3419 that will only be equal if you are overwriting the data and screwing
3420 yourself anyway.
3421
613a76ff
RM
3422Fri May 24 02:31:36 1996 Ulrich Drepper <drepper@cygnus.com>
3423
3424 * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3425
3426Thu May 23 23:09:33 1996 Ulrich Drepper <drepper@cygnus.com>
3427
3428 * FAQ: Add answer for 100% source code compatibility to Linux
3429 libc by David Mosberger-Tang.
3430
072ebcef 3431 Update from bind-4.9.4-T3B.
613a76ff
RM
3432 * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3433 inet_nsap_addr, and inet_nsap_ntoa.
3434 * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3435 remove fourth argument to inet_pton and correct handling of
3436 host_addr passing.
3437 * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3438 * resolv/inet_pton.c: Remove fourth argument.
3439 * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
76060ec0 3440 inet_nsap_ntoa. Now in <arpa/inet.h>.
613a76ff
RM
3441
3442 * stdlib/gmp-impl.h: Add prototypes for internal functions.
3443
3444Thu May 23 22:49:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3445
3446 * Rules (subdir_install): Remove dep on sor-$(subdir).
3447 (static-only-routines): Removed variable and associated rules.
3448
510ca033
RM
3449Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
3450
3451 * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3452 460800 baud.
3453
3454 * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3455
613a76ff 3456 * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
510ca033
RM
3457 alpha/ptrace.h.
3458 * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3459
3460 * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3461 scalbnf.
3462
3463 * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3464 __sigdelset): Add declaration to keep ANSI compilers quiet.
3465
3466 * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3467 __cabs_complex member names in call to __hypot().
3468
3469 * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3470
3471 * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3472 name collision with math library.
3473
3474 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3475 sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3476 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3477 of divrem.S.
3478
3479 * sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
3480 to simplify declaration of leaf functions.
3481
3482 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
613a76ff 3483 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
510ca033
RM
3484 sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3485 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3486 sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3487 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3488 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3489 sysdeps/unix/sysv/linux/alpha/pipe.S,
613a76ff 3490 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
510ca033 3491 sysdeps/unix/sysv/linux/alpha/syscall.S,
613a76ff 3492 sysdeps/unix/sysv/linux/alpha/start.S,
510ca033
RM
3493 sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3494 sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3495 framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
3496
3497 * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3498 define.
3499
3500 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3501 ptrace, and sysctl.
3502
3503 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3504
3505 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3506 dynamic recognition of platform type.
3507 (_bus_base): New function.
3508
3509 * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3510
3511 * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3512 they produce ugly warnings by gcc.
3513
3514 * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3515
3516Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
3517
3518 * sysdeps/alpha/setjmp.S: Must establish global pointer before
3519 address of __sigsetjmp_aux can be loaded.
3520
fa0bc87c
RM
3521Wed May 22 22:10:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3522
3523 * stdlib/canonicalize.c: New file.
3524 * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3525 * stdlib/Makefile (routines): Add canonicalize.
3526
3527 * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3528
3529Thu May 23 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
3530
3531 * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3532 same #if condition as in the other db files.
3533
3534 * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3535 bindtextdom.c, finddomain.c, and localealias.c.
3536
3537 * intl/dcgettext.c: Don't define prototype for getcwd() when
3538 compiling in glibc.
3539
3540 * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3541
3542 * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3543 define _POSIX_SOURCE unconditionally.
3544
3545 * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3546 compiling in glibc.
3547
3548 * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3549 flush instead. This relaxes the rules from POSIX.1 about
3550 changing the active handle a bit.
3551
3552 * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3553 into <libio.h>.
3554 Add prototypes for local functions to prevent warnings.
3555
3556 * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
76060ec0 3557 _IO_dup2 to contain complete parameter list.
fa0bc87c
RM
3558
3559 * libio/libio.h: Add definition of struct _IO_cookie_file.
3560
3561 * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3562 and _IO_vsnprintf.
3563
3564 * libio/memstream.c: Include <stdio.h>.
3565
3566 * libio/stdio.h: Add prototypes for fopencookie,
3567 __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3568
3569 * libio/strops.c: Avoid useless expression in `for' initializer.
3570
3571 * locale/findlocale.c: Add some casts to prevent warnings.
3572
3573 * locale/programs/locfile.c (write_locale_data): Don't use
3574 double `/' in locale binary file.
3575
3576 * posix/unistd.h: Remove prototype for `reboot'.
3577
3578 Update from bind-4.9.4-T1A.
3579 * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3580 * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3581 * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3582 resolv/res_debug.c, resolv/res_init.c
3583
3584 * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3585
3586 * resolv/resolv.h: Add RES_USE_INET6 flag.
3587 (__dn_isvalid): Renamed to __res_dnok.
3588 Add prototypes for __res_ownok and __res_mailok.
3589
3590 * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3591
3592 * stdio-common/getline.c, stdio-common/vfscanf.c,
3593 sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3594
3595 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3596 (sysdep_routines): Add s_reboot.
3597 (install-others): Add $(includedir)/sys/syscall.h.
3598 New rule for $(includedir)/sys/syscall.h to produce from
3599 <asm/unistd.h>.
3600
3601 * sysdeps/unix/sysv/linux/reboot.c: New file. Make single
3602 argument function call 3 argument system call.
3603
3604 * sysdeps/unix/sysv/linux/sys/reboot.h: New file. Linux specific
3605 definition for reboot function.
3606
3607 * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3608 comment.
3609
3610 * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3611 reboot syscall to __syscall_reboot.
3612
3613 * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3614 __USE_GNU, not USE_GNU.
3615
3616Tue May 21 21:55:49 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3617
3618 * locale/programs/charset.c, locale/programs/ld-collate.c:
3619 Add casts to prevent warnings on 64-bit machines.
3620
3621 * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3622 int_frac_digits and frac_digits which only produce warnings.
3623
3624Mon May 13 23:45:29 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3625
3626 * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3627 * resolv/inet_addr.c: Likewise.
3628
3629 * resolv/Makefile (distribute): Add res_hconf.h
3630 (routines): Add res_hconf.
3631
3632 * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3633
3634 * resolv/res_init.c: Initialize /etc/host.conf reader.
3635
3636 * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3637 Implementation of reading /etc/host.conf.
3638
3639Wed May 22 21:21:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3640
3641 * Rules (%.out rules): Prepend $($*-ENV) to the command.
3642
3643 * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3644 alias for __curbrk.
3645
3646Wed May 22 19:37:27 1996 Miles Bader <miles@gnu.ai.mit.edu>
3647
3648 * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3649 * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3650
3651Wed May 22 18:47:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3652
3653 * sysdeps/mach/hurd/getcwd.c
3654 (_hurd_canonicalize_directory_name_internal): New function, broken out
3655 of __getcwd.
3656 (__getcwd): Use it.
3657 (__canonicalize_directory_name_internal): New function using it.
3658
3659 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3660 function, broken out of __getcwd.
3661 (__getcwd): Use it.
3662
3663Wed May 22 18:14:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3664
3665 * string/argz-create.c (__argz_create): Correctly calculate length.
3666
3667 * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3668 * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3669
0b0fc9d3
RM
3670Wed May 22 17:22:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3671
3672 * posix/glob.c [VMS]: Don't include <pwd.h>.
fa0bc87c
RM
3673 [HAVE_VMSDIR_H]: Include "vmsdir.h".
3674 (glob) [VMS]: Don't grok ~.
0b0fc9d3 3675
a8fd3594
RM
3676Wed May 22 14:46:53 1996 Miles Bader <miles@gnu.ai.mit.edu>
3677
0b0fc9d3
RM
3678 * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3679 back from argz_extract.
a8fd3594
RM
3680
3681Wed May 22 13:56:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3682
3683 * configure.in: Remove checks for objdump, objcopy, and awk.
3684 * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3685 * Makefile (distribute): Remove extract-dynsym.
3686 * extract-dynsym: File removed.
3687
3688Tue May 21 22:17:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3689
3690 * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3691
b8fe19fa
RM
3692Wed May 22 01:48:54 1996 Ulrich Drepper <drepper@cygnus.com>
3693
3694 * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3695 macros if they are not available.
3696 (WEAKNAME): New macro to declare argument as weak.
3697 Define function with __ prefix and add normal name as weak alias.
3698
3699 * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3700 these macros if not already available based on R_OK, W_OK, and
3701 X_OK.
3702
3703Tue May 21 18:48:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3704
3705 * misc/sys/syslog.h (__need___va_list): Define this instead of
3706 __need_va_list before including <stdarg.h>.
3707
3708 * Makerules (o-iterator): Use $(object-suffixes-left) instead
3709 of $(object-suffixes) to produce repetitions; this is used for other
3710 lists than just that one.
3711 [versioned]: Use $(o-iterator) properly.
3712
3713 * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3714 * sysdeps/mach/hurd/Implies: Likewise.
3715
3716Sat May 18 02:57:46 1996 Ulrich Drepper <drepper@cygnus.com>
3717
3718 * login/Makefile: New file. This directory contains functions
3719 for user administration.
3720 * Makefile (subdirs): Add login.
3721
3722 * misc/Makefile (headers): Remove utmp.h. Now in login/utmp.h.
3723 (extra-libs, libutil-routines): Ditto.
3724 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3725 misc/utmp.h: Moved to misc/.
3726 * login/login.c, login/login_tty.c, login/logout.c,
3727 login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3728
3729 * login/utmp.h: Split file. Definitions of data structures
3730 and constants are now in the system dependent utmpbits.h file.
3731
3732 * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3733 login/endutent.c, login/getutent_r.c, login/getutent.c,
3734 login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3735 login/getutline.c, login/pututline_r.c, login/pututline.c:
3736 New files. Routines to handle utmp-style files.
3737
3738 * sysdeps/gnu/utmpbits.h: New file. Contains GNU/Linux
3739 specific definitions of utmp data structures and constants.
3740
3741 * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3742
3743 * sysdeps/generic/utmpbits.h: New file. Generic (BSDish) version of
3744 definitions of utmp data structures and constants.
3745
3746Fri May 17 00:01:31 1996 Ulrich Drepper <drepper@cygnus.com>
3747
3748 * locale/C-monetary.c: Default value for mon_decimal_point should be
3749 '.'.
3750
3751 * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3752 Add `extra' flag. Currently used in __printf_fp.
3753
3754 * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3755 `guess_grouping' and extend visibility to extern. This function
3756 is now used in `strfmon'.
3757 (__printf_fp): Recognize new bit flag in info struct. This
3758 triggers to use the grouping information and decimal point from
3759 the LC_MONETARY category instead of the LC_NUMERIC category.
3760
3761 * stdio-common/vfprintf.c (process_arg): Correct major bug. In
3762 `complicated' loop we must not use the varargs because the args
3763 are already available in the ARGS_VALUE array.
3764
3765 * stdlib/Makefile (headers): Add monetary.h.
3766 (routines): Add strfmon.
3767 * stdlib/monetary.h: New file. Header for strfmon function.
3768 * stdlib/strfmon.c: New file. Implement strfmon function to print
3769 monetary amounts according to current locale's rules.
3770
3771 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3772 now (>= Linux-1.3.100) called <asm/vm86.h>.
3773
20c81189
RM
3774Thu May 16 00:31:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3775
3776 * Makerules [versioned]: Make symlinks in the build directory, because
3777 the versioned names might be referenced by a DT_NEEDED in another
3778 library.
3779
46d9215f
RM
3780Wed May 15 18:59:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3781
3782 * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3783
0adc881c
RM
3784Tue May 14 03:36:21 1996 Ulrich Drepper <drepper@cygnus.com>
3785
3786 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3787 Add sys/acct.h and sys/sysctl.h.
3788
f8adc70c
RM
3789Tue May 14 19:42:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3790
3791 * sysdeps/generic/strrchr.c: Deansideclized.
3792
3793 * elf/Makefile (ldd): Depend on Makefile.
3794 Find ld.so in $(slibdir) instead of $(libdir).
3795
3796 * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3797 %esi'; gas misassembles the latter into `testb $3, %dh'.
3798
3799 * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3800
3801Tue May 14 16:38:44 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3802
3803 * sunrpc/getrpcent.c (interpret): Declare args. Rewrite parsing using
3804 strpbrk.
3805
3806Tue May 14 20:18:38 1996 Ulrich Drepper <drepper@cygnus.com>
3807
3808 * time/Makefile (routines): Add strptime.
3809 * time/time.h: Add prototype for strptime.
3810 * time/strptime.c: New file. Implementation according to XPG4.
3811
64166d98
RM
3812Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3813
3814 * libc-symbols.h (lint): Macro removed. The sunrpc code does some
3815 really stupid things #ifdef lint.
3816
3817 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3818 struct member name: sc_eip -> eip.
3819
1796d83f
RM
3820Mon May 13 19:52:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3821
7cdef098
RM
3822 * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3823 output redirect outside it.
3824
1796d83f
RM
3825 * elf/Makefile (subdir_lib): Depend on ld.so.
3826
70c71518
RM
3827Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
3828
3829 * stdio-common/vfprintf.c: Correct handling of unsigned short
3830 values.
3831
7da3079b
RM
3832Mon May 13 12:03:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3833
70c71518
RM
3834 * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3835 $(common-objpfx).
3836 * Makerules [install-lib.a]: Find them there.
3837
7f0d69db
RM
3838 * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3839
a13dab1c
RM
3840 * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3841
3842 * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3843
a5b7bf0e
RM
3844 * configure.in (--with-fp): Note in help string that it's the default.
3845
3846 * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3847 instead of unsigned int for map_collection_max and map_collection_act.
3848
3849 * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3850 Macros removed; they are in <stdio.h>.
3851 * stdio-common/vfscanf.c: Likewise.
3852
9fb16eea
RM
3853 * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3854 (glob): Remove bogus & in call to globfree.
3855 [_AMIGA]: Use AmigaDOS file name conventions.
3856
45086082
RM
3857 * time/Makefile (zonenames): Target removed.
3858 (extra-objs): Remove it from here.
3859 Include the z.* files directly instead of including zonenames; use
a5b7bf0e 3860 `-include' to not complain before they exist.
45086082
RM
3861
3862 * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3863 $(common-objpfx) instead of $(objpfx).
3864
01dbca86
RM
3865 * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3866 names without __.
3867
d929664a
RM
3868 * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3869 instead of $(common-objpfx).
3870
7da3079b
RM
3871 * Makeconfig (sysdep-configures): New variable.
3872 (config.status): Depend on $(sysdep-configures).
3873
3874Fri May 10 20:07:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3875
3876 * sysdeps/unix/sysv/linux/profil.c: New file.
3877
3878Fri May 10 19:59:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3879
3880 * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3881
3882Fri May 10 19:55:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3883
3884 * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3885
aa1075ea
RM
3886Sun May 12 11:16:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3887
7da3079b
RM
3888 * string/envz.c: Fix uses of unsigned to size_t.
3889
0f90ef96
RM
3890 * Makerules ($(libdir)/libc.so): Make the file an ld script.
3891
3892 * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3893
3894 * sysdeps/mach/configure.in: File removed.
3895 * sysdeps/mach/configure: File removed.
3896
aa1075ea
RM
3897 * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3898 (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3899 installed .defs file.
3900
3901 * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3902 nothing for stdio. Fix fUNlockfile -> funlockfile for libio.
3903 * stdio-common/vfscanf.c: Likewise.
3904
3905Sat May 11 13:43:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3906
3907 * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3908
3909 * mach/Machrules (%.ir rule): Don't produce deps for imports.
3910
3911 * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3912
3913 * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3914 [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3915 these targets and install dep on $(libdir)/libc.so with this.
3916
3917 * hurd/Makefile: Removed all rules and defns for using code from Hurd
3918 sources and installing headers from there.
3919
3920 * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3921 set it. In Mach error matching clause, only match if FILENAME is
3922 still the same value.
3923
3924 * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3925 $(mach-srcdir) no longer exists.
3926 (hurd-srcdir): Variable removed.
3927 (includes): Don't append -I$(hurd-srcdir).
3928 (last-includes): Variable removed.
3929 Remove vpath specs using $(hurd-srcdir).
3930 (mach-errno-h): New canned sequence.
3931 ($(common-objpfx)errnos.d): New target, generated included makefile
3932 to determine absolute file names of Mach headers to search for error
3933 codes and set variable mach-errnos-deps.
3934 ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3935 of prior explicit list.
3936 (generated): Add errnos.d, stamp-errnos.
3937
3938 * mach/Machrules (some-if-rtn): New variable and target; compute deps
3939 of some if routine and make all if routines depend on that .d file
3940 instead of static list of .h files.
3941
3942 * mach/Makefile (mach/mach_interface.defs,
3943 mach/memory_object_user.defs): Targets removed.
3944 ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3945 directly on Mach sources.
3946
3947 * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3948 (includes): Don't append -I$(mach-srcdir).
3949 Remove vpath specs using $(mach-srcdir).
3950
3951 * hurd/Makefile (server-interfaces): Add faultexc.
3952 (sig): Remove it from here.
3953 (fault%.[ch]): Rule removed.
3954 (MIGFLAGS-faultexc): New variable.
3955
3956 * hurd/faultexc.defs: New file.
3957
3958 * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
3959 (%_server.[ch] rule): Likewise.
3960
3961 * mach/Makefile: Removed all rules and defns for using code from Mach
3962 sources and installing headers from there.
3963
3964 * Makeconfig [$(build-shared)=yes] (link-libc): Append
3965 $(libc.so-version) to libc.so.
3966
f8cac037
RM
3967Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3968
aa1075ea
RM
3969 * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
3970 (%.udeps): New rule parallel to that one, generating included
3971 makefiles with -M output from `#include <%.defs>'.
3972
3973 * Makerules (sed-remove-objpfx): Remove space before \ at eol.
3974
d617ac4e 3975 * Makefile (distribute): Add FAQ.
f8cac037
RM
3976 * FAQ: New file contributed by drepper.
3977
3978 * time/Makefile (headers): Add timebits.h.
3979 * sysdeps/unix/sysv/linux/timebits.h: New file.
3980 * sysdeps/stub/timebits.h: New file.
3981 * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
3982 (CLOCKS_PER_SEC): Remove this macro. Instead #include <timebits.h>.
3983
4d4b4875
TBB
3984Fri May 10 16:22:44 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3985
3986 * string/argz-create.c (__argz_create): Restore const keyword to
3987 ARGV parm.
3988 * string/argz.h (__argz_create, argz_create): Restore const
3989 keyword.
9635799d 3990 * string/envz.c (envz_get): Don't declare ENTRY const.
f8cac037 3991
4d4b4875
TBB
3992Fri May 10 11:48:03 1996 Miles Bader <miles@gnu.ai.mit.edu>
3993
3994 * string/argz.h (argz_create): Fix param type.
3995 * string/argz-create.c (__argz_create): Remove const from param type.
3996 * string/envz.c (envz_get): Remove const from return type.
3997
7cf6f3e0
TBB
3998Fri May 10 09:41:54 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3999
4000 * string/argz.h (__argz_create, argz_create): Omit const keyword
4001 from declaration of ARGV.
349e97bd
TBB
4002 * string/envz.h (envz_get): Omit const from declaration of return
4003 type.
f8cac037 4004
782e8650
RM
4005Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4006
6e85aaf7
TBB
4007 * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
4008
c28fb3c8
RM
4009 Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
4010 * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
4011 * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
4012 RPC_ANYSOCK.
4013 * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
4014 CLNT_DESTROY already has.
4015 (pmap_unset): Likewise.
4016 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
4017 * sunrpc/pm_getport.c (pmap_getport): Likewise.
4018 * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
4019 * sunrpc/portmap.c (callit): Likewise.
4020
05d4c982
RM
4021 * Makerules (versioned): Strip whitespace.
4022
4023 * Rules (static-only-routines rule): Remove spurious space in dep.
4024
4025 * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
4026 Cast string constants to char *.
4027
4028 * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
4029 New files, AmigaDOS support from Aaron Digulla.
4030 * posix/Makefile (glob.tar): Add AmigaDOS support files.
4031
8942a07a
RM
4032 * sysdeps/unix/sysv/linux/net/if.h: New file.
4033 * sysdeps/unix/sysv/linux/Dist: Add it.
4034 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
4035 net/if.h.
4036
4037 * Makeconfig (link-libc): Add libc.a after libc.so in link.
4038
4039 * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
4040 (empty.o): New target.
4041 (generated): Add empty.c, empty.o.
4042
55707265
RM
4043 * resolv: Code updated from BIND-4.9.3P2C3.
4044
782e8650
RM
4045 * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
4046
7c713e28
RM
4047Wed May 8 20:04:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4048
03d0a7e2
RM
4049 * extract-dynsym: New file.
4050 * Makefile (distribute): Add it.
7c713e28
RM
4051 * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
4052 [! libc.so-version]: Clear static-only-routines.
4053 ($(common-objpfx)sor-$(subdir)): New target.
4054 [static-only-routines]: New static pattern rule for these .so's.
4055 * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
4056 [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
4057 New targets replace it.
4058 (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
4059 $(slibdir)/libc.so.
4060 * io/Makefile (static-only-routines): New variable.
4061 * configure.in: Check for tools objdump and objcopy, and for awk.
4062 * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
4063
4064Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
4065
4066 * locale/programs/config.h: Remove definition of wint_t.
4067
4068 * locale/programs/ld-collate.c: Include <wchar.h> instead of
4069 <wcstr.h>.
4070
4071 * manual/time.texi: Add some more description for %U and %W
4072 format of strftime. Describe new format %V of strftime.
4073
4074 * resolv/gethnamaddr.c: Prevent warning by preventing variable
4075 definition.
4076 * stdio-common/_itoa.c: Ditto.
4077
4078Tue May 7 23:43:07 1996 Ulrich Drepper <drepper@cygnus.com>
4079
4080 * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
4081 libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
4082 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
4083 libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
4084 libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
4085 libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
4086 libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
4087 libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
4088 libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
4089 libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
ee188d55 4090 stdio-common/vfscanf.c: Prepare for reentrant libio.
7c713e28
RM
4091
4092 * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
4093 libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
4094 libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
ee188d55 4095 Used in reentrant libio.
7c713e28
RM
4096
4097 * misc/getusershell.c: Prevent warnings.
4098
c17097f1
RM
4099Wed May 8 12:08:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4100
f0523145
RM
4101 * Makerules (install-lib.so rules): Undouble $s in target and dep
4102 parts of o-iterator-doit defns.
4103 (unversioned libraries install rule): Fix pattern.
4104
4105 * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
4106 $(config-machine).
4107 ($(includedir)/machine): Likewise.
4108
4109 * config.make.in (base-machine): New variable.
4110 * configure.in (machine): Move case stmt to set $machine out of sysdep
4111 dirs AC_CACHE_CHECK.
4112 (base_machine): New variable, set in that switch and AC_SUBST'd.
4113
4114 * Makerules (stub-$(subdir)): Use file name in directory as output,
4115 since cmd is cd'd.
4116
c17097f1
RM
4117 * configure.in (MSGFMT): Use : if none found.
4118
4119 * po/Makefile: Include ../Rules instead of ../Makerules.
4120
ce4d8b66
RM
4121Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4122
4123 * po/Makefile: New file.
4124 * Makefile (subdirs): Add po.
4125
4126 * configure.in: Check for msgfmt.
4127 * config.make.in (MSGFMT): New variable.
4128
4129Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com>
4130
4131 * misc/Makefile (routines): Add swapoff.
4132
4133 * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
4134
4135 * sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around
4136 kernel header file.
4137
0e3426bb
RM
4138Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4139
4140 * string/argz-extract.c: Remove const from decl.
4141 * string/argz.h: Here too.
4142
4143 * Makeconfig (version.mk): Fix regexp in sed cmd.
4144 Depend on $(..)Makeconfig.
4145
4146 * GMP code updated from gmp-2.0 release.
4147 * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
4148 * sysdeps/generic/add_1.c: File removed.
4149 * stdlib/strtod.c: mp_limb is now mp_limb_t.
4150 * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
4151 * stdio-common/_itoa.c: Likewise.
4152 * stdio-common/printf_fp.c: Likewise.
4153 Don't include ansidecl.h.
4154
4155 * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
4156
4157 * shlib-versions: New file.
4158 * Makerules (soversions.mk): New target, include file generated from
4159 shlib-versions. Moved shared library rules before installation rules.
4160 Rewrote shared library installation rules for versioned libraries.
4161 * math/Makefile (libm.so-version): Variable removed.
4162
4163 * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
4164
4165 * hurd/report-wait.c (_S_msg_describe_ports): New function.
4166
4167 * configure.in: Add AC_PROG_LN_S check.
4168 * config.make.in (LN_S): New variable.
4169
4170Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
4171
4172 * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
4173 not know about weak aliases now and optimizes necessary `if'
4174 statement away.
4175
4176 * posix/unistd.h: Add swapoff prototype.
4177
4178 * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
4179
4180 * sysdeps/posix/fpathconf.c (__fpathconf): Get information
4181 for _PC_PATH_MAX from fstatfs function if available.
4182
4183 * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
4184 _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
4185 _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
4186 _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
4187 _SC_TIMER_MAX.
4188 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4189
4190 * sysdeps/stub/swapoff.c: New file. Stub version for swapoff
4191 function.
4192
4193 * sysdeps/unix/syscalls.list: Add swapoff.
4194
4195 * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
4196
4197 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
4198 (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
4199 sysinfo, and uselib.
4200 (headers): Add sys/sysinfo.h.
4201
4202 * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
4203
4204 * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
4205 (sysdep_routines): Add ioperm, iopl, and vm86.
4206 (headers): Add sys/perm.h and sys/vm86.h.
4207
4208 * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
4209 prototypes for iopl and ioperm.
4210
4211 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
4212 prototype for vm86.
4213
4214 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
4215 vm86 system call.
4216
4217 * sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
4218 prototypes for acct function.
4219
4220 * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4221 file with prototypes.
4222
4223 * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
4224 prototype for sysinfo function.
4225
4226 * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4227 llseek, setfsgid, setfsuid, sysinfo, and uselib.
4228
4229 * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4230 posix/sysconf.c now only handle cases different to that
4231 implementation.
4232
4233Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
4234
4235 * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4236 (all references changed). Now exported.
4237
4238 * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4239 (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4240 line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4241 instead of struct data.
4242 (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4243 occurences of `wrap' and `wrapmargin' to `wmargin'.
4244 (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4245 line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4246 line_wrap_set_wmargin, line_wrap_point): New functions.
4247 * stdio/linewrap.h: New file.
4248 * stdio/Makefile (headers): Add linewrap.h.
4249
4250Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4251
4252 * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4253
4254 * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4255
4256 * sysdeps/unix/sysv/linux/schedbits.h: New file.
4257
4258Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4259
4260 * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4261 (lwoutput): Adjust uses acordingly.
4262
93a470c7
RM
4263Tue May 7 10:51:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4264
0e3426bb
RM
4265 * sysdeps/mach/hurd/fdatasync.c: New file.
4266 * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4267
4268 * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4269 * sysdeps/mach/hurd/symlink.c: Likewise.
4270 * sysdeps/mach/hurd/link.c: Likewise.
4271 * sysdeps/mach/hurd/bind.c: Likewise.
4272 * hurd/hurdsig.c (write_corefile): Likewise.
4273
4274 * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4275
4276 * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4277
4278 * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4279 proc_mark_exit.
4280 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4281
4282 * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4283
4284 * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4285
4286 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4287 hurd_signal_detail.
4288 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4289 * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4290 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4291 Likewise.
4292 * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4293
4294 * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4295
4296 * hurd/hurdsig.c (write_corefile): Take const struct
4297 hurd_signal_detail * arg. Pass all details to crash_dump_task.
4298 (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4299 (_hurd_internal_post_signal: suspend): Pass code and error to
4300 proc_mark_stop.
4301
4302 * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4303 proc_getprocinfo by reference.
4304
93a470c7
RM
4305 * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4306
4307 * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4308
4309 * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4310 * sysdeps/stub/sched_sets.c: Likewise.
4311 * sysdeps/stub/sched_setp.c: Likewise.
4312 * sysdeps/stub/sched_rr_gi.c: Likewise.
4313 * sysdeps/stub/sched_gets.c: Likewise.
4314
4315 * hurd/hurdsig.c: Use struct hurd_signal_detail.
4316 * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4317 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4318
4ddc1f9d
RM
4319Mon May 6 09:51:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4320
4321 * stdio/linewrap.c: New file.
4322 * stdio/Makefile (routines): Add linewrap.
4323 * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4324 line_unwrap_stream.
4325
4326Mon May 6 14:53:26 1996 Ulrich Drepper <drepper@cygnus.com>
4327
4328 * time/strftime.c (week): Add third parameter telling how
4329 many days must be in new year so that it is called week 1.
4330 (Following ISO 8601).
4331 Correct computation for %U and %V formats when day was first
4332 day of the week.
4333 (strftime): Implement %V format according to Spec1170.
4334
cee8df03
TBB
4335Mon May 6 17:01:09 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4336
4337 * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4338
8f0c527e
RM
4339Sat May 4 05:44:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4340
4ddc1f9d
RM
4341 * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4342 prototype of `preempter' elt to use struct hurd_signal_detail.
4343
4344 * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4345 (struct hurd_sigstate): Make `pending_data' member an array of that.
4346 Use the new type in several decls.
4347
db2286f6
RM
4348 * locale/setlocale.c (_nl_C_name): Variable removed.
4349 * locale/C_name.c: New file.
4350 (_nl_C_name): Put it here instead.
4351 * locale/Makefile (aux): Add C_name.
4352
4353 * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4354 auth_user_authenticate rpc.
4355 (open): Avoid using strtol in digit conversion for "fd/N" magic.
4356 (_dl_sysdep_start): Likewise for memobj name in magic switches.
4357
4358 * elf/Makefile (reloc-link): New variable.
4359 (dl-allobjs.so): New target, link together $(rtld-routines).
4360 (librtld.so): Depend on that instead of the rtld components.
4361 (generated): Add dl-allobjs.so.
4362
8f0c527e
RM
4363 * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4364 rpc.
4365
4366 * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4367 instead of _hurd_split_args.
4368 (_S_msg_*_exec_flags): Functions removed.
4369 (_S_msg_startup_dosync): Stub removed.
4370
4371Sat May 4 02:11:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4372
4373 * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4374 EXEC_TRACED bit in _hurd_exec_flags.
4375 Pass sigcode arg in msg_sig_post_untraced rpc.
4376
4377 * sysdeps/mach/hurd/access.c: Don't pass io port in
4378 auth_user_authenticate rpc.
4379
4380 * posix/sched.h: Fix typos.
4381
4382 * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4383 Clear _hurdsig_traced instead of EXEC_TRACED.
4384
4385 * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4386
4387 * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4388 * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4389 * wcsmbs/wcstod.c: Likewise.
4390 * wcsmbs/wcstold.c: Likewise.
4391
4392 * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4393
4394 * string/envz.c (envz_entry): Use const.
4395 (envz_get, envz_remove): Likewise.
4396 (envz_entry): Return char *, not const char *.
4397
4398 * string/envz.h: Fix decl.
4399
4400 * string/argz-create.c: Use const in prototype.
4401 * string/argz-next.c: Likewise.
4402
7a12c6bb
RM
4403Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4404
8f0c527e
RM
4405 * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4406 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4407 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4408 * sysdeps/mach/hurd/kill.c: Likewise.
4409
4410 * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4411 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4412 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4413 * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4414 Likewise.
4415 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4416 * sysdeps/mach/hurd/sigaction.c: Likewise.
4417
4418 * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4419 change meaninglessly.
4420
4421 * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4422 flag with a spin lock.
4423 (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4424 get it. No need to take SS->lock at all.
4425 (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4426 instead of clearing the old flag member.
4427 * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4428 test the critical section state.
4429
4430 * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4431
4432 * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4433
4434 * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4435 instead of testing (_hurd_exec_flags & EXEC_TRACED).
4436 (_S_msg_sig_post): Take sigcode arg and pass it through.
4437 (_S_msg_sig_post_untraced): Likewise.
4438 (reauth_proc): Don't pass proc port in auth_user_authenticate.
4439
4440 * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4441 auth_user_authenticate RPCs, just the one-off rendezvous port.
4442 * hurd/dtable.c (reauth_dtable): Likewise.
4443 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4444
4445 * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4446 Pass sigcode arg to msg_sig_post.
4447
4448 * string/argz.h (argz_create): Use const in prototype.
4449
4450 * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4451 testing (_hurd_exec_flags & EXEC_TRACED).
4452 Pass sigcode arg to msg_sig_post.
4453
4454 * hurd/hurd.h: Declare _hurdsig_traced.
4455
4456 * string/argz.h (__argz_next): Cast ENTRY before returning it.
4457
4458 * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4459 to msg_sig_post.
4460
4461 * hurd/path-lookup.c: New file.
4462 * hurd/Makefile (routines): Add path-lookup.
4463 * hurd/hurd/lookup.h: Declare file_name_path_scan,
4464 hurd_file_name_path_lookup.
4465 * hurd/hurd.h: Declare file_name_path_lookup.
4466
4467 * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4468 argument. Instead, use a separate reply port for each RPC and put them
4469 all in a port set to wait for slow replies.
4470
7a12c6bb
RM
4471 * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4472 LOCALE_ALIAS_PATH.
4473
4474Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
4475
4476 * intl/Makefile (routines): Add l10nflist and explodename.
4477 (distribute): Add loadinfo.h and locale.alias.
4478 (install-others): New variable to install locale.alias.
4479
4480 * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4481 intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13. Some code
4482 is now shared with the locale implementation.
4483
4484 * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4485 Extracted from finddomain.c. This is also used in the locale
4486 implementation.
4487
4488 * intl/locale.alias: New file. Locale alias database compatible
4489 with X Window System's locale alias file. Can now be used in
4490 locale and gettext code.
4491
4492 * libio/stdio.h: Add prototypes for asprint and vasprintf.
4493
4494 * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4495 locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4496 field in structure with name of locale ("C" in this case).
4497
4498 * locale/Makefile (routines): Add findlocale.
4499
4500 * locale/findlocale.c: New file. Instead of trying to load the
4501 directly described file we now try to be much smarter when this
4502 fails. Use the same code as gettext does.
4503
4504 * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4505 new loading scheme.
4506
4507 * locale/localeinfo.h: Adapt prototypes and declarations for new
4508 setlocale implementation. Remove definition of u32_t type. We
4509 now use u_int32_t from <sys/types.h>.
4510
4511 * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4512 with constant.
4513
4514 * locale/programs/config.h, locale/lc-collate.c,
4515 locale/localeinfo.h, locale/programs/ld-collate.c,
4516 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4517 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4518 locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4519 Change to use u_int32_t and u_int16_t.
4520
4521 * locale/programs/localedef.c (construct_output_path): Change name
4522 of output locale to contain normalized form of the character set
4523 portion.
4524
4525 * string/Makefile (routines): Add agrz-ctsep and argz-next.
4526 (tests): Add tst-strlen.
4527
4528 * string/argz-ctsep.c: New file. Implement reverse operation
4529 from argz-stringify.
4530
4531 * string/argz-next.c: Non-inline version of function from argz.h.
4532
4533 * string/argz.h, string/envz.h: Make usable as global header file.
4534
4535 * string/envz.c: Fix declarations to use size_t where prototypes
4536 say so.
4537
4538 * string/tst-strlen.c: New file. Another test for critical
4539 situation in strlen implementations.
4540
4541 * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4542 being zero.
4543
4544 * wctype/test_wctype.c: Fix controlling comparison after change to
4545 32 bit character class array.
4546
4547Fri May 3 12:53:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4548
4549 * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4550
4551Thu May 2 22:50:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4552
4553 * sysdeps/unix/sysv/linux/getpriority.c: New file.
4554 * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4555
4556Thu May 2 22:41:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4557
4558 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4559 Disable all exceptions.
4560
4561Thu May 2 22:33:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4562
4563 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4564 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4565 sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4566 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4567 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4568 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4569 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4570 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4571 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4572 define __NO_MATH_INLINES, which is already defined on command
4573 line.
4574
4575Thu May 2 22:18:28 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4576
4577 * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4578 Replace 0x80000000 by 0x48000000.
4579 * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4580
4581Thu May 2 21:30:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4582
4583 * sunrpc/svc_simple.c: Make global variable pl local to
4584 registerrpc.
4585
4586Thu May 2 00:24:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4587
4588 * time/Makefile (tz-cflags): New variable.
4589 (CFLAGS-tzfile.c): New variable.
4590 (CFLAGS-zic.c): Add $(tz-cflags).
4591 (tz-cc): Remove variable.
4592 ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4593
75cd5204
RM
4594Wed May 1 09:10:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4595
7a12c6bb
RM
4596 * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4597 name, instead of checking for reaching end of buffer, which happens
4598 when the match is the last entry in the buffer.
4599
75cd5204
RM
4600 * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4601 include.
4602
4603Mon Apr 29 02:48:26 1996 Ulrich Drepper <drepper@cygnus.com>
4604
4605 * ctype/ctype-info.c: (__ctype_width): New variable.
4606 (__ctype_names): Initialize correctly without offset.
4607
4608 * locale/C-collate.c, locale/C-ctype.c,
4609 locale/C-messages.c, locale/C-monetary.c,
4610 locale/C-numeric.c, locale/C-time.c: Change copyright.
4611
4612 * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4613 endianess for initialization value.
4614
4615 * locale/lc-ctype.c (current): Add parameter for offset.
4616 (__ctype32_b, __ctype_width): Add initialization for these
4617 variables.
4618
4619 * locale/programs/charmap.c: Finish support for WIDTH information.
4620 (new_width): New function.
4621
4622 * locale/programs/charset.h (width_rule): new data structure.
4623 (charset_t): Add elements for width information.
4624
4625 * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4626 for width information.
4627 (allocate_arrays): Add new argument for charset.
4628 (ctype_finish): Make sure all characters named in charset
4629 width table are known to name table.
4630 (ctype_output): Correct handling of class and map name
4631 information and write out width information.
4632 (find_idx): Prepare for being called with NULL pointer as
4633 TABLE argument. This means only allocate name entry.
4634 (allocate_arrays): Correct handling of array element -1.
4635 Because EOF == -1 the value of element 127 must *not* be
4636 mirrored here.
4637 Fill width information from charset tables.
4638
4639 * locale/programs/localedef.c (main): Correct loop over all
4640 categories after change of order from Thu Mar 28 14:22:51 1996.
4641 Add new charset argument to call of `write_all_categories'.
4642
4643 * locale/programs/locales.h (ctype_finish, ctype_output): New
4644 charset argument.
4645
4646 * locale/programs/locfile.c (write_all_categories): Call
4647 `ctype_output' with additional argument charset.
4648
4649 * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4650 and _POSIX_PRIO_IO definitions.
4651
4652 * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4653 and CHARCLASS_NAME_MAX.
4654
4655 * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4656 and _POSIX_PRIO_IO.
4657
4658 * stdlib/grouping.h: Prepare for use in wide string functions.
4659
4660 * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4661 functions.
4662
4663 * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4664
4665 * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4666
4667 * string/strcoll.c: Extend for use as `wcscoll'.
4668
4669 * string/strxfrm.c: Extend for use as `wcsxfrm'.
4670
4671 * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4672 _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4673
4674 * sysdeps/generic/stpncpy.c: Correct return value.
4675
4676 * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4677 _PC_ASYNC_IO, and _PC_PRIO_IO.
4678
4679 * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4680 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4681 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4682 _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4683 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4684 _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4685 * sysdeps/stub/sysconf.c: Ditto.
4686 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4687
4688 * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4689
4690 * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4691 (sysdep_routines): Add s_sysctl and sysctl.
4692
4693 * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4694
4695 * sysdeps/unix/sysv/linux/sys/socket.h: New file. Wrapper
4696 around kernel header.
4697
4698 * sysdeps/unix/sysv/linux/sys/sysctl.h: New file. Define
4699 interface to `sysctl' function.
4700
4701 * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4702
4703 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4704 _SC_CHARCLASS_NAME_MAX.
4705
4706 * sysdeps/unix/sysv/linux/sysctl.c: new file. Implement caller
4707 of _sysctl system call.
4708
4709 * sysvipc/Makefile (routines): Add ftok.
4710
4711 * sysvipc/ftok.c: use variable `proj_id' not `id'. Patch by
4712 David Mosberger-Tang.
4713
4714 * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4715 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4716 wcsxfrm, wcwidth, and wcswidth.
4717
4718 * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4719 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4720 wcsxfrm, wcwidth, and wcswidth.
4721 Declare internal interfaces for wcsto* functions.
4722 [OPTIMIZE]: Define inline functions for wcsto* functions to
4723 call internal interface functions.
4724
4725 * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files. Implement non-
4726 standard function equivalent to stpcpy/stpncpy.
4727
4728 * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4729 `strcoll' implementation.
4730
4731 * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4732 wchar_t.
4733
4734 * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4735 implementation.
4736 * wcsmbs/wcstof.c: Same for `wcstof'.
4737 * wcsmbs/wcstold.c: Same for `strtold'.
4738
4739 * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4740 implementation.
4741 * wcsmbs/wcstoq.c: Same for `wcstoq'.
4742 * wcsmbs/wcstoul.c: Same for `wcstoul'.
4743 * wcsmbs/wcstouq.c: Same for `wcstouq'.
4744
4745 * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4746 CAE.
4747 * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4748 * wcsmbs/wcwidth.h: Common function for definitions of above two
4749 functions.
4750
4751 * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4752 `strxfrm implementation.
4753
4754 * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4755
4756 * wctype/wctype.h (wint_t): Protect against multiple definition.
4757 (wctype_t): Always define as `unsigned long int'.
4758
4759 * wctype.h: New file. Wrapper around wctype/wctype.h.
4760
5bd44955
RM
4761Tue Apr 30 17:30:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
4762
4763 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4764 interrupt_operation call.
4765 (_hurdsig_interrupt_timeout): New variable.
4766
4767 * hurd/report-wait.c (describe_number): Correctly allocate space
4768 in DESCRIPTION for the digits in I.
4769
392d7920
RM
4770Mon Apr 29 00:11:59 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4771
75cd5204
RM
4772 * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4773 (_hurd_startup): Use argz functions.
4774
4775 * hurd/hurdexec.c: Use argz functions.
4776
392d7920
RM
4777 * errno.h [!__error_t_defined] (error_t): New type.
4778 * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4779 typedef in errnos.h.
4780
4781 * string/envz.c, string/envz.h: New files.
4782 * string/argz.h, string/argz-append.c, string/argz-count.c,
4783 string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4784 string/argz-insert.c, string/argz-stringify.c: New files.
4785 * string/Makefile (routines): Add envz, argz-*.
4786 (headers): Add argz.h, envz.h.
4787
7b3547eb
RM
4788Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4789
4790 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4791
4792Wed Apr 24 17:35:30 Ulrich Drepper <drepper@cygnus.com>
4793
4794 * inet/netinet/in.h, socket/sys/socket.h: Move to
4795 sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4796 * netinet/in.h, sys/socket.h: Remove file.
4797
4798 * misc/Makefile (routines): Add fdatasync.
4799
4800 * posix/Makefile (headers): Add sched.h.
4801 (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4802 sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4803
4804 * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4805 _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4806 _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4807 _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4808 _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4809 _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4810
4811 * posix/sched.h: New file. Header for POSIX scheduling interface.
4812
4813 * posix/unistd.h: Describe options from POSIX.4.
4814 Add declaration of fdatasync.
4815
4816 * sysdeps/generic/confname.h: Add definition for
4817 _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4818 _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4819 _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4820 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4821 _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4822
4823 * sysdeps/generic/fdatasync.c: New file. Default implementation
4824 simply uses fsync.
4825
4826 * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4827
4828 * sysdeps/generic/schedbits.h: New file. System dependent
4829 defintion for POSIX.4 scheduling interface.
4830
4831 * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4832
4833 * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4834 sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4835 sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4836 sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4837 sysdeps/stub/sched_yield.c: New file: Stub implementation
4838 for systems missing these POSIX.4 system calls.
4839
4840 * sysdeps/unix/sysv/linux/gnu/types.h,
4841 sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4842 data type definitions.
4843
4844 * sysdeps/unix/sysv/linux/netinet/in.h: New file. Linux
4845 specific version.
4846
4847 * sysdeps/unix/sysv/linux/posix_opt.h: New file. Define POSIX
4848 options applicable for Linux.
4849
4850 * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4851 fdatasync, nanosleep, sched_setparam, sched_getparam,
4852 sched_setscheduler, sched_getscheduler, sched_yield,
4853 sched_get_priority_max, sched_get_priority_min, and
4854 sched_rr_get_interval.
4855
4856 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4857 options.
4858
4859 * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4860
4861 * time/sys/time.h: Remove definition of `struct timespec'.
4862
4863 * time/time.h (struct timespec): Move definition to here.
4864
b2c8be1f
RM
4865Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4866
4867 * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4868
b1794a28
RM
4869Thu Apr 25 15:49:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4870
4871 * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4872 the scan for a name, avoid doing another readdir (which overwrites
4873 NENTRIES, and was resulting in a bogus ENOENT).
4874
4875 * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4876
b2c8be1f
RM
4877Wed Apr 24 00:22:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4878
4879 * stdio/internals.c (seek_to_target): Set errno if seek function
4880 returns the wrong offset.
4881
4882 * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4883 * wcsmbs/wcrtomb.c: Likewise.
4884
4885 * stdio-common/vfprintf.c: Include errno.h.
4886
66aeca9c
RM
4887Tue Apr 23 21:09:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
4888
4889 * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
7b3547eb 4890 variable, LUCKY, to use instead of setting D to -1 (which fouls
66aeca9c
RM
4891 things up).
4892
9a8c0d4f
RM
4893Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4894
4895 * config.h.in (HAVE_REGEX): New macro.
4896
4897 * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4898 * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4899 (routines): Add statfs, fstatfs.
4900 * sysdeps/mach/hurd/statfs.c: New file.
4901 * sysdeps/mach/hurd/fstatfs.c: New file.
4902 * sysdeps/stub/fstatfs.c: New file.
4903 * sysdeps/stub/statfs.c: New file.
4904 * io/sys/statfs.h: New file.
4905 * sysdeps/generic/statfsbuf.h: New file.
4906 * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4907
4908Tue Apr 23 00:06:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4909
4910 * malloc/Makefile (gmalloc-routines): Add valloc back here.
4911 (dist-routines): Remove it here.
4912 * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4913 (ELIDE_VALLOC): Define it.
4914 [! ELIDE_VALLOC]: Make whole file conditional on this.
4915 * malloc/malloc.h (valloc): Make decl conditional on
4916 [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4917
4918Mon Apr 22 00:02:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4919
4920 * MakeTAGS: Include version.mk.
4921 (po/SYS_libc.pot): Add missing / in sed s cmd.
4922
b0d20a87
RM
4923Sat Apr 20 18:13:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4924
4925 * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4926 $(libc_cv_ld_no_whole_archive).
4927
4928Sat Apr 20 17:07:17 1996 Ulrich Drepper <drepper@cygnus.com>
4929
4930 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4931 grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4932 math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4933 misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4934 posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4935 posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4936 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4937 stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4938 string/string.h, sysdeps/generic/sigaction.h,
4939 sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4940 sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4941 sysdeps/unix/sysv/linux/sys/ptrace.h,
4942 sysdeps/unix/sysv/minix/sigaction.h,
4943 sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4944 sysdeps/unix/sysv/sysv4/sigaction.h,
4945 sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4946 time/sys/time.h, time/time.h: Fix copyright comment.
4947
a641835a
RM
4948Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4949
b0d20a87
RM
4950 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4951 not given in stack aux vector, fetch them with syscalls.
4952
a641835a
RM
4953 * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4954 for nonmatching nonerror (instead of !MATCH).
4955 (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4956
4957 * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
4958 unsigned long for variable NET2.
4959
4960 * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
4961
4962Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
4963
4964 * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
4965 catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
4966 catgets/open_catalog.c: New files. Implementation of XPG4
4967 compliant catgets() function and needed tools.
4968 * Makefile (subdirs): Add catgets.
4969
4970Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4971
4972 * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
4973
4974Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
4975
4976 * stdio-common/vfprintf.c: Correct some typos.
4977
4978 * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
4979 sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
4980 __signgam.
4981
4982Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4983
4984 * Makerules (no-whole-archive): New variable.
4985 (build-shlib): Use it.
4986 * elf/Makefile (libdl.so): Use it.
4987 * configure.in (libc_cv_ld_no_whole_archive): New check for
4988 --no-whole-archive.
4989 * config.make.in (have-no-whole-archive): New variable.
4990
4991 * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
4992 from 3 to 4.
4993
4994 * Make-dist: Include version.mk.
4995 (version, release): Variables removed.
4996 * Makeconfig (version.mk): New target.
4997
4998Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
4999
5000 * locale/Makefile (headers): Add langinfo.h.
5001 (CPPFLAGS): Remove -Iliblib.
5002
f24f4dc8
RM
5003Mon Apr 15 16:49:04 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5004
5005 * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
5006 function and its declaration.
5007
e2a501ab
MB
5008Wed Apr 10 14:13:45 1996 Miles Bader <miles@gnu.ai.mit.edu>
5009
5010 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
5011 MACH_PORT_DEAD in the thread reply-port variable before destroying
5012 the signal handler's reply port, to avoid infinite recursion.
5013
b84095fe
RM
5014Mon Apr 8 18:27:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
5015
5016 * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
5017 user passes in TZ, just zero it (emacs passes in a dummy variable,
5018 and rms says the hurd should be the one to change).
5019
3125073e
RM
5020Sun Apr 7 10:37:30 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5021
5022 * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
5023 port in the parent.
786db220 5024
3125073e 5025Fri Apr 5 17:43:41 1996 Miles Bader <miles@gnu.ai.mit.edu>
d7057689 5026
786db220
MB
5027 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
5028 MACH_PORT_DEAD in the thread reply-port variable before destroying
5029 the signal handler's reply port to avoid infinite recursion.
5030 * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
5031 attempt to destroy PORT if it's a valid port name.
5032
2e516341
RM
5033Wed Apr 3 17:10:44 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5034
5035 * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
5036 * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
5037 instead of $(objpfx).
5038
299a95b9
RM
5039Tue Apr 2 21:27:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5040
5041 * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
5042 the pattern ends with a backslash and quoting is enabled.
5043 * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
5044 patterns.
5045
30de3b18
RM
5046Mon Apr 1 13:34:55 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5047
5048 * stdio-common/tst-printf.c (main): Add new test case.
5049
5050 * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
5051
5052Mon Apr 1 11:39:10 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5053
5054 * stdlib/strtod.c (STRTOD): Fix handling of American style FP
5055 numbers.
5056
5057 * stdio-common/vfprintf.c (vfprintf): Don't increment format
5058 string pointer twice after seeing `*'.
5059
5060Sun Mar 31 17:31:54 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5061
5062 * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
5063 po/header.pot.
5064
5065Sun Mar 31 18:07:32 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5066
5067 * locale/Makefile (others, install-bin): Compiling locale works
5068 again.
5069 (locale-modules): locale has no --dump option anymore. Remove
5070 ctypedump.
5071
5072 * locale/programs/config.h: Don't declare euidaccess.
5073 Use #include_next to get libc's config.h.
5074
5075 * locale/programs/ctypedump.c: Not needed anymore. Dump option
5076 of locale is removed.
5077
5078 * locale/programs/locale.c: Adapt for new locale implementation.
5079
5080 * stdio-common/_itoa.h (_itoa_word): Define as inline function.
5081 * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
5082 Don't declare static because used in _itoa_word inline function.
5083
5084 * stdio-common/printf-parse.h: Prepare for use in wide-char
5085 stdio implementation.
5086 (find_spec): Take additional argument to work with mbrlen instead
5087 of mblen.
5088 (parse_one_spec): Ditto.
5089
5090 * stdio-common/printf-prs.c: Prepare for use in wide-char
5091 stdio implementation.
5092
5093 * stdio-common/printf.h: Mark change for wide-char handling.
5094 Changing it now would result in incompatibilities.
5095
5096 * stdio-common/vfprintf.c: New and fast implementation.
5097
5098 * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
5099 mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
5100 mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
5101 Change wcswcs to wcsstr.
5102 Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
5103 mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
5104
5105 * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
5106 wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
5107 wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
5108 wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
5109 wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
5110 function according to ISO C amendment 1.
5111 * wchar.h: Wrapper around "wcsmbs/wchar.h".
5112
5113 * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
5114 wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
5115 wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
5116 wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
5117 wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
5118 amendment 1.
5119
5120 * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
5121 wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
5122 wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
5123 wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
5124 wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
5125 Implement functions from early drafts, not part of final standard.
5126
5127Sun Mar 31 16:50:41 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5128
5129 * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
5130 __jmp_bug_tag so its C++ implicit typedef does not conflict with the
5131 __jmp_buf typedef.
5132
5133 * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
5134 compiling in the source directories.
5135
5136Fri Mar 29 16:26:35 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5137
5138 * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
5139 * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
5140
b8051057
RM
5141Fri Mar 29 11:29:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5142
5143 * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
5144 with weak alias signgam.
5145
27e00f3f
RM
5146Thu Mar 28 18:32:34 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5147
5148 * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
5149
8c1442d0
RM
5150Thu Mar 28 14:22:51 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5151
c475b8f5
RM
5152 * sunrpc/rpc_main.c (main): Call textdomain.
5153
7a1c652d
RM
5154 * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
5155 --no-location.
5156 (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
5157 ($P/subdirs.pot): New target.
5158 ($P/SYS_libc.pot): Add -n switch.
5159
a141dd34
RM
5160 * locale/locale.h (LC_*): Values reordered to match Linux libc.
5161
8c1442d0
RM
5162 * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
5163 the process is a zombie; send no messages and return success.
5164
43efc103
RM
5165Thu Mar 28 11:53:26 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5166
5167 * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
5168 * wctype/wctype.c: Likewise.
5169 * wctype/wctrans.c: Likewise.
5170
ffcf9634
RM
5171Thu Mar 28 03:00:43 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5172
5173 * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
5174 DATA->strings.
5175
5176 * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
5177
5178 * configure.in (.weakext check): Fix asm code to use .weakext instead
5179 of .weak! Fix bogus test calls.
5180 * configure: Regenerated.
5181
19bc17a9
RM
5182Thu Mar 28 03:25:10 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5183
0393dfd6
RM
5184 * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
5185
5186 * locale/programs/ld-collate.c (collate_finish): Use error_at_line
5187 instead of error_with_loc.
5188
5189 * locale/weight.h: Use u_int32_t instead of u32_t.
5190 * string/strxfrm.c: Likewise.
5191
5192 * string/strxfrm.c: Find weight.h in ../locale; don't #include
5193 "localeinfo.h".
5194 * string/strcoll.c: Likewise.
5195
19bc17a9
RM
5196 * intl/Makefile (copysrc): Add missing > in sed cmd.
5197
5198Sat Mar 23 17:52:49 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5199
5200 * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
5201 change value to $(datadir)/i18n. `nls' is not an appropriate
5202 name.
5203
5204 * Makefile (subdirs): Add new subdir wctype.
5205
5206 * ctype/ctype-info.c: Add new global variable __ctype_names
5207 and initialize from _nl_C_LC_CTYPE.
5208
5209 * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
5210 class. Use bit 11.
5211 [_ISbit]: Protect definition of bitmasks because they are also
5212 used in wctype.h.
5213
5214 * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5215 after successfully pushing back a character.
5216
5217 Fundamental changes in locale implementation. Almost nothing
5218 from the old code is used anymore.
5219 * locale/charmap.c, locale/collate.c, locale/config.h,
5220 locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5221 locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5222 locale/locale.c locale/localeconv.c, locale/localedef.c,
5223 locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5224 locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5225 locale/numeric.c, locale/setlocale.c, locale/token.h,
5226 locale/xmalloc.c: Removed.
5227
5228 * locale/Makefile: Update for new locale implementation with
5229 program source code distributed in subdir.
5230
5231 * locale/categories.def, locale/iso-4217.def: Updated file
5232 for new locale implementation.
5233
5234 * locale/langinfo.h: Updated for new locale implementation.
5235 (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5236 P1003.2b/D11.
5237 (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5238 _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5239 _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5240 _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5241 _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5242 _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5243 extended LC_CTYPE and LC_COLLATE implementation.
5244
0393dfd6
RM
5245 * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5246 locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5247 for locale related programs.
19bc17a9
RM
5248
5249 * locale/C-collate.c, locale/C-ctype.c,
5250 locale/C-messages.c, locale/C-monetary.c,
5251 locale/C-numeric.c, locale/C-time.c,
5252 locale/lc-collate.c, locale/lc-ctype.c,
5253 locale/lc-messages.c, locale/lc-monetary.c,
5254 locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5255 functions, and new generated "C" locale data.
5256
5257 * locale/loadlocale.c: Now handles word fields in locale binary
5258 automatically by changing the endianess if necessary.
5259
5260 * locale/localeinfo.h (LIMAGIC): Changed magic number because
5261 of incompatible changes.
5262 (locale_data): Changed definition to allow word as a value type.
5263 (coll_sort_rule): Values for collation sorting mode.
5264 (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5265 (__collate_table, __collate_extra): Declare new global variables
5266 for collation tables.
5267
5268 * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
0393dfd6
RM
5269 locale/programs/charmap.c, locale/programs/charset.c,
5270 locale/programs/charset.h, locale/programs/config.h,
5271 locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5272 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5273 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5274 locale/programs/ld-time.c, locale/programs/linereader.c,
5275 locale/programs/linereader.h, locale/programs/locale.c,
5276 locale/programs/localedef.c, locale/programs/locales.h,
5277 locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5278 locale/programs/locfile-token.h, locale/programs/locfile.c,
5279 locale/programs/locfile.h, locale/programs/stringtrans.c,
5280 locale/programs/stringtrans.h: Implementation of locale related
5281 programs.
19bc17a9
RM
5282
5283 * locale/weight.h: Functions to access collation tables.
5284
5285 * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5286
5287 * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5288 < 10^-1. Reported by Bill Metzenthen.
5289
5290 * stdio-common/tfformat.c: Add new test for above bug.
5291
5292 * string/strcoll.c, string/strxfrm.c: Real implementation of
5293 string collation according to ISO C.
5294
5295 * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5296 wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5297 wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5298 Implementation of wide character classes and mapping.
5299
53f770e0
RM
5300Wed Mar 27 14:52:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5301
5302 * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5303 _dl_relocate_object loop. Avoid relocating RTLD_MAP in that loop, and
5304 do it individually if necessary after _dl_sysdep_start_cleanup call.
5305
5306 * stdlib/Makefile (mpn-routines): Add divrem.
5307
5308Tue Mar 26 22:54:14 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5309
5310 * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5311 instead of __mpn_divmod.
5312
5313Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
5314
5315 * sysdeps/alpha/setjmp.S: Must establish global pointer before
5316 address of __sigsetjmp_aux can be loaded.
5317
5318Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5319
5320 * sysdeps/i386/i586/memset.S: New file. Highly optimized
5321 version for i586 contributed by Torbjorn Granlund.
5322 Adapted for use as bzero.
5323 * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5324 code to implement bzero().
5325
5326Tue Mar 26 20:01:17 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5327
5328 * stdlib/Makefile (mpn-routines): Remove divmod.
5329
c0621444
BK
5330Tue Mar 26 15:40:14 1996 Brendan Kehoe <brendan@zen.org>
5331
5332 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5333 wrapped with #ifndef, to avoid config.h defining it.
5334
5775972d
RM
5335Mon Mar 25 13:10:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5336
81e4d60c
RM
5337 * malloc/realloc.c (_realloc_internal): In case of growing large
5338 block, leave _heaplimit zero across _malloc_internal call.
5339
5775972d
RM
5340 * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5341
857fa1b8
RM
5342Mon Mar 25 03:35:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5343
5344 * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5345 table when _heaplimit==0 during realloc growing large block.
5346
5347 * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5348 (text-srcs): New variable: extract only C sources from $(tags_sources).
5349 (po/$(domain).pot): Depend on that.
5350 If it's empty, cp /dev/null $@ instead of $(extract).
5351
5352 * misc/Makefile (headers): Add iovec.h.
5353 * sysdeps/unix/sysv/linux/iovec.h: New file.
5354 * sysdeps/generic/iovec.h: New file.
5355 * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5356
5357 * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5358 AC_TRY_COMPILE.
5359
5360 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5361 macros inside [! __STDC__].
5362
5363 * stdlib/rpmatch.c: New file.
5364 * stdlib/Makefile (routines): Add rpmatch.
5365 * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5366
5367 * MakeTAGS (MSGJOIN): Variable removed.
5368 (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5369
5370Wed Mar 20 20:08:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5371
5372 * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5373
5374 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5375 NO_UNDERSCORES.
5376
036a2725
RM
5377Thu Mar 21 11:19:15 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5378
5379 * mach/devstream.c (input): Translate \r to \n on input.
5380
ce563359
RM
5381Wed Mar 20 11:28:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5382
5383 * stdio-common/printf.h, stdio-common/printf_fp.c,
5384 stdio-common/vfprintf.c: Place const in parameter list at
5385 correct place.
5386
5387Wed Mar 20 23:58.12 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5388
5389 * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5390 sysdeps/ieee754/ldbl2mpn.c.
5391 * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5392 Reported by Andreas Schwab.
5393
5394Wed Mar 20 19:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5395
5396 * version.c: Include version.h to define RELEASE and VERSION macros.
5397 (__libc_release, __libc_version): Use them.
5398 * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5399 use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5400 * Make-dist (rel+vers): Snarf the macro values from version.h.
5401
5402 * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5403 (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5404 pass -a for these files.
5405
5406 * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5407 always run.
5408
38bb44bc
RM
5409Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5410
5411 * sysdeps/unix/sysv/linux/wait3.c: New file.
5412 * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5413 one from sysdeps/posix.
5414
948c3e72
RM
5415Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5416
d7193325
RM
5417 * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5418
948c3e72
RM
5419 * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5420 lt_executable, then lt_library.
5421 * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5422
5423Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5424
5425 * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5426
5427Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5428
5429 * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5430 VEOL2, VMIN, VTIME): Corrected.
5431 (PAGEOUT, WRAP, VDSUSP): Deleted.
5432
b20e47cb
RM
5433Tue Mar 19 14:18:42 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5434
948c3e72
RM
5435 * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5436 (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5437
4d585333
RM
5438 * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5439
5440 * math/math.h: Move M_* constants before __math.h include.
5441 [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5442
5443 * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5444 If log10 is not defined (i.e. no -lm), use stupid loop instead.
5445
d3669add
RM
5446 * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5447 and no other _*_SOURCE macro is.
5448 (_GNU_SOURCE): Don't define by default.
5449 * libc-symbols.h (_GNU_SOURCE): Define it.
5450
c8cf0b14
RM
5451 * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5452
c224a18a
RM
5453 * config.make.in (weak-symbols): Variable removed.
5454 * configure.in (--with-weak-symbols): Option removed.
5455 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5456 New tests.
c8cf0b14 5457
c224a18a
RM
5458 * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5459 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5460 New #undefs.
5461 * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5462
b20e47cb
RM
5463 * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5464
5465Mon Mar 4 20:17:28 1996 David Mosberger-Tang <davidm@azstarnet.com>
5466
c224a18a
RM
5467 * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5468 * inet/inet_mkadr.c: Likewise.
5469 * inet/inet_net.c: Likewise.
5470 * inet/inet_netof.c: Likewise.
5471 * inet/rcmd.c: Likewise.
5472 * inet/arpa/inet.h: Likewise.
5473 * inet/netinet/in.h: Likewise.
5474 * inet/netinet/tcp.h: Likewise.
5475 * inet/protocols/rwhod.h: Likewise.
5476 * inet/protocols/talkd.h: Likewise.
5477 * resolv/inet_addr.c: Likewise.
5478
b20e47cb
RM
5479 * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5480
5481 * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5482
5483 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5484 umount.
5485
5486 * sysdeps/alpha/__math.h (atan, cabs): New functions.
5487
5488 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5489 expects set-value, not pointer to it).
5490
5491Sun Feb 25 22:36:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
5492
5493 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5494
5495 * gmon/gmon.c (__bb_head): new variable.
5496 (write_hist, write_call_graph, write_bb_counts): new functions.
5497 (_mcleanup): modified to call above functions instead of directly
5498 writing out gmon.out.
5499 * gmon/sys/gmon.h (struct __bb): New type.
5500 (struct gmonhdr): Type removed.
5501 (struct gmonparam): New member `log_hashfraction'.
5502 (GMONVERSION): Macro removed.
5503
5504 * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5505 sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5506 files.
5507 * gmon/Makefile (headers): Add sys/gmon_out.h.
5508 (routines): Add bb_init_func, bb_exit_func.
5509
5510 * gmon/mcount.c: Avoid integer division.
5511
5512Wed Feb 21 23:56:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
5513
5514 * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5515 passed to match what __sigsetjmp_aux() expects.
5516
5517Tue Feb 20 11:33:46 1996 David Mosberger-Tang <davidm@azstarnet.com>
5518
5519 * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5520 connect, getpeername, getsockname, listen, recv, recvfrom,
5521 recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5522 added to override same-name assembly file in the parent directory.
5523
5524 * stdlib/stdlib.h: add include of sys/types.h in front of random
5525 etc declarations to ensure int32_t is declared.
5526
5527 * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5528 where 32 bit integers are required. Also change LONG_MAX into
5529 0x7fffffff since the intent is to turn off the sign bit in a
5530 32 bit integer.
5531
5532 * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5533 with very large values for "days" (e.g., 64 bit values).
5534
5535Mon Feb 19 22:22:12 1996 David Mosberger-Tang <davidm@azstarnet.com>
5536
5537 * stdlib/stdlib.h (__random, __random_r, random_r, struct
5538 random_data): use int32_t instead of `long int'.
5539
5540Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
5541
5542 * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5543
5544 * sysdeps/alpha/ffs.S: new file.
5545
5546 * sysdeps/alpha/fabs.c: File removed.
5547
5548 * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5549 num_transitions!
5550
5551 * time/offtime.c: make capable of dealing with very large (64 bit)
5552 time_t values. Use old algorithm until a year is reached that
5553 is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5554 do the remainder in a single division.
5555
5556 * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5557 be unsigned int, not unsigned long.
5558
5559 * string/test-ffs.c (main): add test case with all upper bits
5560 set.
5561
5562 * stdlib/tst-strtol.c: add tests cases for machines where
5563 sizeof(long)==8.
5564
5565 * stdlib/testrand.c (main): disallow rand() to return negative
5566 integers.
5567
5568 * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5569
5570 * stdlib/stdlib.h: on 64 bit machines, declare
5571 struct random_data, __random(), __random_r, and random_r to
5572 return "int" instead of "long int".
5573
5574 * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5575 int". Similarly, use INT_MAX instead of LONG_MAX.
5576
5577 * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5578 need to operate on "int" instead of "long int".
5579
5580 * locale/locfile-hash.c (compute_hashval): make shifted constant
5581 a long to avoid loosing bits on 64 bit machines.
5582
5583 * dirent/tst-seekdir.c (main): fix confusing comment; print
5584 a line to mark point where directory is rewound.
5585
5586Fri Feb 16 15:01:49 1996 David Mosberger-Tang <davidm@azstarnet.com>
5587
5588 * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5589
5590Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5591
5592 * sysdeps/unix/sysv/linux/alpha/Makefile,
5593 sysdeps/unix/sysv/linux/alpha/brk.S,
5594 sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5595 sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5596 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5597 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5598 sysdeps/unix/sysv/linux/alpha/pipe.S,
5599 sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5600 sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5601 sysdeps/unix/sysv/linux/alpha/speed.c,
5602 sysdeps/unix/sysv/linux/alpha/start.S,
5603 sysdeps/unix/sysv/linux/alpha/syscall.S,
5604 sysdeps/unix/sysv/linux/alpha/syscalls.list,
5605 sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5606 sysdeps/unix/sysv/linux/alpha/sysdep.S,
5607 sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5608
5609 * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5610 address register before returning (gcc 2.7.1 doesn't do it,
5611 presumably because $26 is declared as a global variable).
5612
5613 * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5614 argument.
5615
5616 * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5617 instead of multiplication.
5618
5619 * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5620 currently blocked signals instead of the empty mask to ensure
5621 that execution of alarm handler occurs with none of the currently
5622 blocked signals enabled.
5623
5624 * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5625
5626 * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5627 sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5628
5629 * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5630 sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5631 sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5632 sysdeps/alpha/strlen.S: New files.
5633
5634 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5635 sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5636 sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5637 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5638 Removed.
5639
5640 * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5641 int.
5642
5643 * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5644 to end of function to avoid a jump across NOPs.
5645
5646 * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5647 pertaining to integer division/remainder routines since new code
5648 doesn't require them.
5649
5650 * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5651 where 32 bit quantities are consumed/stored. Various other minor
5652 64-bit cleanups (casting).
5653
5654 * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5655 whether xdr_long or xdr_short should be used to encode an int.
5656 Notice that an xdr_long is 4 bytes independent of the architecture
5657 (otherwise no Alpha could interoperate with existing NFS servers,
5658 for example). Ditto for enums.
5659
5660 * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5661 to 16 since it really wants 16 bytes.
5662
5663 * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5664
c224a18a
RM
5665 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5666 u_int32_t (instead of u_long).
5667
b20e47cb
RM
5668 * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5669 "buf" pointer by casting it to a char* first since a long* may be 8
5670 bytes or more and oa->oa_length may be any multiple of 4.
5671
b20e47cb
RM
5672 * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5673 since it really is testing for 32 bits. Fixed casts to use
5674 u_int32 instead of u_long.
5675 * sunrpc/xdr_rec.c: Likewise.
5676
5677 * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5678 * sunrpc/rpc/auth.h: Likewise.
5679
5680 * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5681 for Alpha.
5682
5683Tue Mar 19 13:27:49 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5684
5685 * sysdeps/i386/fpu/__math.h: New file.
5686 Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5687
5688Sun Mar 17 00:28:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5689
5690 * sysdeps/posix/clock.c: Don't multiply the return value by
5691 CLOCKS_PER_SEC or CLK_TCK.
5692
e3845371
RM
5693Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5694
b20e47cb
RM
5695 * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5696 scan finds no match.
5697
5698 * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5699 * misc/bsd-compat.c (setpgrp): New function, two arg version.
5700 * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5701 * sysdeps/mach/hurd/setpgid.c: Likewise.
5702 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5703 * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5704 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5705 * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5706 * posix/setpgrp.c (setpgrp): New file.
5707 * posix/Makefile (routines): Add setpgrp.
5708
e3845371
RM
5709 * elf/Makefile (rtld-link): New canned sequence.
5710 (ld.so, ld-linux.so.1): Use it. Pass -soname option.
5711
5712 * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5713
5714Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5715
5716 * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5717 sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5718
9b431e31
RM
5719Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5720
5721 * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5722 (CFLAGS): Append -Wno-unitialized.
5723
5aab07eb
RM
5724Sat Mar 16 20:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5725
5726 * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5727 short bits into double.
5728
6025c399
RM
5729Sat Mar 16 20:08:22 1996 David Mosberger-Tang <davidm@azstarnet.com>
5730
9b431e31
RM
5731 * sysdeps/alpha/memchr.S: New file.
5732 * sysdeps/alpha/memchr.c: Obsolete file removed.
5733 * string/tester.c: Soup up memchr tests.
6025c399
RM
5734
5735Sat Mar 16 16:26:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5736
5737 * misc/Makefile (headers): Add sysexits.h.
5738 * misc/sysexits.h: New file.
5739
5740Thu Mar 14 15:20:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5741
5742 * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5743 call to __atan.
5744 * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5745 call to __atanf.
5746
5747 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5748 sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5749 sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5750 sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5751 sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5752 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5753 sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5754 sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5755 sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5756 sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5757 sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5758 sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5759 sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5760 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5761 sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5762 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5763 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5764 sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5765 sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5766 sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5767 sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5768 sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5769 sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5770 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5771 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5772 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5773 sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5774 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5775 sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5776 sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5777 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5778 sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5779 sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5780 sysdeps/m68k/fpu/s_significand.c,
5781 sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5782 sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5783 sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5784 sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5785
5786 * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5787
5788 * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5789 * sysdeps/m68k/fpu/isnanl.c: Likewise.
5790
5791Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5792
5793 * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5794 calculation to include trailing invariant portion. Don't use alloca;
5795 instead use a dynamic auto array for GCC, malloc for non-GCC.
5796 Handle nested braces properly.
5797
5798 * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5799
5800 * libc-symbols.h (lint): New macro.
5801
5802Fri Mar 15 01:18:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5803
5804 * libio/iosetvbuf.c: Add weak alias setvbuf.
5805
52e9a9d1
RM
5806Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5807
5808 * string/strnlen.c: New file.
5809 * string/Makefile (routines): Add strnlen.
5810 * string/string.h [__USE_GNU] (strnlen): Declare new function.
5811 [__OPTIMIZE__]: Define extern inline implementation of it.
5812
5813 * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5814 addition, to avoid using anything from -lm.
5815
5816Mon Mar 4 21:57:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5817
5818 * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5819
5820 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5821 (CALL_MCOUNT): New macro, empty unless [PROF].
5822 (ENTRY): Do CALL_MCOUNT just after the label.
5823 (JUMPTARGET): New macro.
5824 (SYSCALL_ERROR_HANDLER): Fix syntax.
5825
5826Thu Mar 14 04:20:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5827
5828 * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5829 function instead of using inline asm i386 syscall.
5830 * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5831
5832 * posix/unistd.h [__USE_BSD]: Declare usleep.
5833
6c46dada
RM
5834Tue Mar 12 04:57:57 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5835
52e9a9d1
RM
5836 * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5837 (fcvt, ecvt): Use it for buffer size.
5838
5839 * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5840 conditionalizing long vs long long.
5841
5842 * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5843 pointers; never return EFAULT.
5844 * stdlib/drand48_r.c (drand48_r): Likewise.
5845 * stdlib/erand48_r.c (erand48_r): Likewise.
5846
6c46dada
RM
5847 * setjmp/Makefile (tests): Add jmpbug.
5848 * setjmp/jmpbug.c: New file.
5849
1177c8ba
RM
5850Tue Mar 12 04:42:01 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5851
5852 * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5853 * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5854 * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5855 `restore' until the target frame is hit.
5856
5857Sun Mar 10 20:29:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5858
5859 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5860 * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5861 s_sigsuspend.
5862
5863Thu Mar 7 21:30:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5864
5865 * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5866 left side of sed substitutions.
5867
5868Sun Mar 10 16:58:10 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5869
5870 * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5871 is not available anymore. Do it ourselves.
5872
5873 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5874 Correct GCC `asm' syntax.
5875
dd0e4e0c
RM
5876Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5877
1177c8ba
RM
5878 * stdio-common/Makefile (tests): Add tst-ungetc.
5879 * stdio-common/tst-ungetc.c: New test from drepper.
5880 * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5881
5882 * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5883 somehow this was missed, though the weak alias is already there.
5884
dd0e4e0c
RM
5885 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5886 default to double precision, all interrupts masked; fdlibm requires.
5887
d25d5f6a
RM
5888Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5889
5890 * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5891
5892Fri Mar 8 22:16:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5893
5894 * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5895
45667a53
MB
5896Tue Mar 5 18:45:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
5897
5898 * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5899 final loop.
5900
f7eac6eb
RM
5901Mon Mar 4 20:54:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5902
5903 * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5904
5d8a006d
MB
5905Tue Mar 5 12:14:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
5906
5907 * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5908 because some fdmask is 0.
5909
e4963995
MB
5910Mon Mar 4 17:35:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
5911
5912 * sysdeps/mach/hurd/select.c (__select):
5913 Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5914 Don't return without frobbing the bitmasks after a timeout.
5915 When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
f7eac6eb
RM
5916
5917Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5918
5919 * hurd/catch-signal.c (hurd_safe_memmove): New function.
5920 (hurd_safe_copyin, hurd_safe_copyout): New functions.
5921 * hurd/hurd/sigpreempt.h: Declare them.
5922
5923Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5924
5925 Replace math code with fdlibm from Sun as modified for netbsd by
5926 JT Conklin and Ian Taylor, including x86 FPU support.
5927 * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5928 * math/math_private.h: New file.
5929 * sysdeps/i386/fpu/Implies: New file.
5930 * sysdeps/ieee754/Implies: New file.
5931 * math/machine/asm.h, math/machine/endian.h: New files.
5932 * math/Makefile, math/math.h: Rewritten.
5933 * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5934 * math/finite.c: File removed.
5935 * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5936
5937 * math/test-math.c: Include errno.h and string.h.
5938
5939 * sysdeps/unix/bsd/dirstream.h: File removed.
5940 * sysdeps/unix/bsd/readdir.c: File removed.
5941
661fa176
RM
5942Sat Mar 2 16:35:40 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5943
5944 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5945 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5946 removed.
5947 * sysdeps/generic/profil-counter.h: New file.
5948
48a65a29
BK
5949Fri Mar 1 17:11:59 1996 Brendan Kehoe <brendan@zen.org>
5950
5951 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5952 including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5953 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5954 same as linux/m68k/profil-counter.h except the comment.
5955
e9607dbe
RM
5956Fri Mar 1 10:09:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5957
6b628d36
RM
5958 * stdlib/Makefile (mpn-stuff): New target.
5959 (copy-mpn): Use it.
5960
5961 * Code copied from GMP updated to 1.937 version.
5962 * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
5963
e9607dbe
RM
5964 * posix/glob.c: Use canonical code from autoconf manual for dirent
5965 include.
5966 [_D_NAMLEN]: Redefine NAMLEN using this.
5967 (glob_in_dir): Use NAMLEN macro.
5968
5969 * sysdeps/posix/profil.c: New file.
5970
5971Thu Feb 29 20:55:57 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5972
5973 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
5974
b7459e56
RM
5975Tue Feb 27 12:14:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5976
e9607dbe
RM
5977 * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
5978 `extern' keyword.
5979
b7459e56
RM
5980 * time/strftime.c: Support - and _ flags to affect number padding.
5981
5982 * sysdeps/unix/common/tcsendbrk.c: New file.
5983
92777700
RM
5984Mon Feb 26 10:22:30 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5985
5986 * sysdeps/unix/dirstream.h: Rewritten.
5987 * sysdeps/unix/readdir.c: Rewritten.
5988 * sysdeps/unix/telldir.c: Rewritten.
5989 * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
5990 Remove __ from DIR struct member names.
5991 * sysdeps/unix/dirfd.c: Likewise.
5992 * sysdeps/unix/seekdir.c: Likewise.
5993 * sysdeps/unix/rewinddir.c: Likewise.
5994 * sysdeps/unix/opendir.c: Likewise. Don't allocate extra space after
5995 DIR structure.
5996 * sysdeps/stub/direct.h: File removed.
5997 * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
5998 * sysdeps/unix/bsd/direct.h: File removed.
5999 * sysdeps/unix/common/direct.h: File removed.
6000 * sysdeps/unix/sysv/irix4/direct.h: File removed.
6001 * sysdeps/unix/sysv/isc3/direct.h: File removed.
6002 * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
6003 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
6004 * sysdeps/unix/common/direntry.h: New file.
6005 * sysdeps/unix/bsd/direntry.h: New file.
6006 * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
6007 * sysdeps/unix/sysv/direntry.h: New file.
6008 * sysdeps/stub/direntry.h: New file.
6009 * dirent/dirent.h (struct dirent): Type removed. Include <direntry.h>
6010 to define it.
6011 (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
6012 * dirent/Makefile (headers): Add direntry.h.
6013 (distribute): Remove direct.h.
6014 * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
6015 * dirent/scandir.c: Likewise.
6016 * io/fts.c (fts_build): Likewise.
6017 * io/ftw.c (ftw_dir): Likewise.
6018 * sysdeps/posix/ttyname.c: Likewise.
6019
6020 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6021
6022 * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
6023 (collector_timeout): New static variable.
6024 (update_waiter): Actually call __task_enable_pc_sampling.
6025 Set collector_timeout based on the `tick' count returned.
6026 (profile_waiter): Use MAX_PC_SAMPLES. Set nsamples before RPC.
6027 Use collector_timeout in __mach_msg call.
6028
6029 * gmon/Makefile (noprof): New variable containing mcount.
6030 Append profil unless it is in $(unix-syscalls).
6031 (mcount.po): Use $(noprof) for list of targets in this rule.
6032
6033 * libc-symbols.h: Define _LIBC before #include <config.h>.
6034
6035Sun Feb 25 12:29:23 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6036
6037 * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
6038 Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
6039
e9607dbe 6040 * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
92777700
RM
6041
6042Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6043
6044 * libio/cleanup.c (_IO_cleanup_registration_needed)
6045 [!_G_HAVE_ATEXIT]: Init to NULL.
6046 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
6047
6048Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
6049
6050 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
6051 previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
6052
6053Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
6054
6055 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
6056 extern.
6057
6058Sat Feb 24 11:34:13 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6059
6060 * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
6061
6062 * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
6063
a182affd
RM
6064Wed Feb 21 02:25:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6065
6066 * Rules (others): Depend on $(extra-objs), $(install-lib),
6067 $(install-bin), $(install-sbin), in object directory.
6068
6069 * Makeconfig (link-libc): Don't pass -rpath option with default
6070 path, since ld.so should use the same default.
6071 * Makerules (build-shlib): Likewise.
6072
6073 * Makerules (make-target-directory): Use mkinstalldirs.
6074
6075 * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
6076 redefine ENTRY et al.
6077
6078 * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
6079 Macros removed. The code in unix/i386/sysdep.h should now suffice.
6080
6081 * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
6082 [HAVE_ELF] and not.
6083 (ENTRY): Use it in .align directive.
6084 (CALL_MCOUNT): New macro, empty unless [PROF].
6085 (ENTRY): Do CALL_MCOUNT just after the label.
6086
6087 * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
6088 code can call mcount.
6089
6090Tue Feb 20 23:05:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6091
6092 * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
6093 translation markings are now integrated in his distribution.
6094
6095 * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
6096
f2e235b9
RM
6097Mon Feb 19 18:31:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6098
a182affd
RM
6099 * po: New directory where `LANG.po' files for message translations
6100 will reside.
6101 * po/SYS_libc.pot: New file, template of message strings as in source.
6102 * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
6103 the source using xgettext.
6104 * Makerules ($(..)po/%.pot): New rule.
6105 * manual/Makefile (../po/manual.pot): New target, make it empty.
6106
6107 * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
6108 * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
6109 * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
6110 * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
6111 * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
6112
f2e235b9
RM
6113 * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
6114 Updated from ADO 96d.
6115
0ddc0d16
RM
6116Sun Feb 18 14:08:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6117
6118 * csu/initfini.c (_init): Remove bogus volatile declarations and
6119 extra variable, take the address of __gmon_start__ only implicitly
6120 to avoid the test being optimized out.
6121
bfc04a9f
RM
6122Sun Feb 18 15:08:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6123
6124 * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
6125 sec.
6126
6127Sun Feb 18 13:56:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6128
6129 * elf/Makefile, time/Makefile: Make `all' the default target.
6130
6131Mon Feb 19 18:09:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6132
6133 * misc/sys/ptrace.h: Moved to ...
6134 * sysdeps/generic/sys/ptrace.h: ... here.
6135 * sys/ptrace.h: File removed.
6136
6137Sun Feb 18 12:13:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6138
6139 * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
6140
6141 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
6142 so that the symbol alias works.
6143
6144 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
6145
6146 * sysdeps/unix/sysv/linux/resourcebits.h: New file.
6147
6148 * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
6149
6150 * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
6151 getppid and reboot.
6152
6153 * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
6154 use getdtablesize.
6155
6156Sat Feb 17 10:30:21 1996 David Mosberger-Tang <davidm@AZStarNet.com>
6157
6158 * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
6159 sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
6160 sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
6161 to `long' where necessary.
6162
6163Thu Feb 15 20:04:50 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
6164
6165 * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
6166 * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
6167 to correctly access MPN array depending on architecture.
6168
be10a868
RM
6169Mon Feb 19 15:30:26 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6170
6171 * stdio-common/tstscanf.c (main): Add check for "0" as %d.
6172
6173 * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
6174 Only some systems have three args; let them define their own stub.
6175
6176 * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
6177
6178 * sysdeps/generic/machine-gmon.h: New file.
6179 * gmon/Makefile (distribute): Add machine-gmon.h.
6180 * gmon/mcount.c: Undo changes of Feb 13.
6181 Include "machine-gmon.h".
6182
6183Sun Feb 18 13:24:06 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6184
6185 * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
6186 identical to unix/common/direct.h.
6187
6188 * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
6189
6190 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
6191
6192 * stdio-common/Makefile (tests): Remove scanf6.
6193
6194 * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
6195
6196 * time/mktime.c (mktime): Move static variable localtime_offset to
6197 file scope.
6198
6199 * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
6200 base indicator.
6201
6202Thu Feb 15 16:56:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6203
6204 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
6205 (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
6206 (_dl_runtime_resolve): Save %a1 as well.
6207 (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
6208 (elf_machine_relplt): Define.
6209
6210 * elf/dl-runtime.c: Include possible extra args in declaration of
6211 fixup.
6212
1cbca0d9
RM
6213Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6214
6215 * time/tzset.c: Limit hours to 23, not 12. From jaffer.
6216
7c97bb09
RM
6217Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6218
6219 * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6220
9e3db9cd
RM
6221Thu Feb 15 13:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6222
6223 * mach/Machrules: Use -include for $(*.ir).
6224
6225 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6226 request values.
6227 * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6228 (_IOT_COUNT2): Field is 3 bits, not 2.
6229 * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6230 * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6231 bits before looking up handler.
6232 (fioctl): Use __hurd_dfail.
6233 (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6234
9b19f55d
RM
6235Thu Feb 15 11:49:45 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6236
6237 * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6238 (sysdep_routines): Don't add sys-sig.
6239
6240 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6241
9e3db9cd
RM
6242Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
6243
6244 * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6245 character bailed out one too early; changed constant 6 to
6246 7 to fix this.
6247
de1b40af
RM
6248Wed Feb 14 01:08:58 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6249
a1c46301
RM
6250 * posix/execvp.c: When executing shell on script, first arg is
6251 full file name, not argv[0].
6252
6253 * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6254 * mach/Machrules [no_deps]: Inhibit interface rules.
6255
de1b40af
RM
6256 * malloc/Makefile (distribute): Removed TODO.
6257
363113d0
RM
6258Tue Feb 13 05:12:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6259
de1b40af
RM
6260 * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6261 caller column.
6262
ae4c4dae
RM
6263 * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6264
4eea716e
RM
6265 * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6266
2a072de4
RM
6267 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6268 (sysdep_routines): Append setfpucw.
6269 (extra-objs): Append ieee-fpucw.o.
6270 (install-lib): Append libieee.a.
6271 (libieee.a): New target.
6272 * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6273 * sysdeps/unix/sysv/linux/i386/fpu_control.h
6274 (_FPU_GETCW, _FPU_SETCW): New macros.
6275 (fpu_control_t): New typedef.
6276 (__setfpucw): Use fpu_control_t for argument type.
6277 * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6278
6279 * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6280
363113d0
RM
6281 * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6282 * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6283
01f3e03b
RM
6284Sat Feb 10 13:09:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6285
46d7de19
RM
6286 * sysdeps/unix/sysv/linux/m68k/brk.c,
6287 sysdeps/unix/sysv/linux/m68k/mmap.S,
6288 sysdeps/unix/sysv/linux/m68k/select.S,
6289 sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6290 sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6291 sysdeps/unix/sysv/linux/m68k/socket.S,
6292 sysdeps/unix/sysv/linux/m68k/syscall.S,
6293 sysdeps/unix/sysv/linux/m68k/sysdep.S,
6294 sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6295
13987e68
RM
6296 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6297
3585d6bf
RM
6298 * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6299 sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6300
01f3e03b
RM
6301 * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6302 MAP_FILE if not already defined.
6303
6304 * elf/elf.h: Add m68k reloc definitions.
6305 * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6306
dbdb6189
RM
6307Tue Feb 13 00:12:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6308
d2c23123
RM
6309 * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6310 this macro declare extra leading args.
6311
6312 * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6313
38334018
RM
6314 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6315 elf_machine_relplt): New macros.
6316 * elf/dl-runtime.c: New file.
6317 * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6318
dbdb6189
RM
6319 * gmon/Makefile (headers): Remove machine-gmon.h.
6320 * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6321 * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6322 the asm name.
6323 (_mcount): Define normally, taking no args.
6324 Use __builtin_return_address to fetch PC values of caller and caller's
6325 caller.
6326
6327 * Makerules: Rewrote rules to update libc archives of all flavors.
6328 Define separate specific rules for each flavor using o-iterator.
6329
6330 * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6331
6332Sat Feb 10 11:35:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6333
6334 * Makerules (ar-symtab-name): New macro. Replace all occurences
6335 of __.SYMDEF by $(ar-symtab-name).
6336 * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6337
808c413c
RM
6338Mon Feb 12 03:10:41 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6339
dbdb6189
RM
6340 * Makefile (configure, %/configure): Depend on aclocal.m4.
6341 * Make-dist (configure, %/configure): Likewise.
6342
6343 * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6344
6345 * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6346 only needed in the implementation, not for any users.
6347
6348 * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6349 1996.
6350
25f9784e
RM
6351 * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6352 * sunrpc/pm_getmaps.c: Likewise.
6353
1fe58993
RM
6354 * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6355 so real syscalls override unix/sysv/*.c on sysv-derived systems
6356 that have them.
6357 * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6358 override unix/sysv/settimeofday.c since that overrides
6359 unix/syscalls.list.
6360
6361 * Makeconfig (+link): Put $(link-libc) after deps from $^,
6362 regardless of where libc.a appears in the deps.
6363
808c413c
RM
6364 * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6365 Add __waitid.
6366 * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6367 Define __ name for sigprocmask.
6368 * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6369 Add getsysinfo.
6370 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6371 * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6372 * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6373 * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6374 Add getdents, wait3, waitpid.
6375 * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6376 settimeofday, sigsuspend, sstk, utimes.
6377 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6378 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6379 * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6380 Removed sigtramp.
6381 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6382 * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6383 * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6384 * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6385 * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6386 * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6387 * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6388 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6389 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6390 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6391 * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6392 * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6393 * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6394 * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6395 * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6396 * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6397 * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6398
63f89404
RM
6399 * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6400 FORWARD_SIGEXC to one. Uncomment setting of thread exc port, and
6401 move it to last thing.
6402
186588d6
RM
6403Sat Feb 10 05:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6404
6405 * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6406
6407 * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6408
6a032d81
RM
6409Sat Feb 10 04:18:48 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6410
6411 * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6412 the file.
6413
6414Fri Feb 9 11:46:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6415
6416 * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6417 CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6418
6419 * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6420
56f778c9
RM
6421Thu Feb 8 18:55:27 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6422
6423 * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6424
4ca84cff
RM
6425Wed Feb 7 18:48:30 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6426
a482b5a5
RM
6427 * Makefile (subdirs): Added wcsmbs.
6428 * wcsmbs: New directory of wide char/multibyte char functions from
6429 drepper.
6430
4ca84cff
RM
6431 * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6432 * hurd/report-wait.c: New file.
6433 * hurd/Makefile (routines): Added report-wait.
6434
6435 * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6436
6437 * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6438 New type.
6439 (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6440 * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6441 Structure moved to intr-msg.h; include that.
6442
6443 * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6444 (CFLAGS-scheck.c): New variable.
6445
6446 * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6447 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6448 __hurd_threadvar_stack_mask): New variables.
6449
6450 * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6451 its new message port.
6452
6453 * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6454
6455 * configure.in (uname): Add quoting.
6456
6457 * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6458 * hurd/fchroot.c: Likewise.
6459
6460 * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6461 __attribute__ ((__mode__ (__XX__))).
6462
6463Wed Feb 7 03:24:05 1996 Torbjorn Granlund <tege@tmg.se>
6464
6465 * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6466 destination cache lines.
6467 (WORD_COPY_BWD): Likewise.
6468
6469Wed Feb 7 14:16:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6470
6471 * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6472 file name first thing, before $(native-compile) changes directories.
6473
6474 From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6475 * sysdeps/unix/make_errlist.c: Use strerror if available.
6476 * sysdeps/unix/configure.in: New file
6477
6478 * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6479 * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6480
6481 * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6482 * sysdeps/stub/connect.c: Likewise.
6483 * sysdeps/stub/bind.c: Likewise.
6484
6485 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6486 "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6487 another dir_lookup of "".
6488
b20e47cb
RM
6489Tue Feb 6 12:46:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
6490
6491 * libc-symbols.h (weak_alias, weak_symbol): added definitions
6492 for ECOFF (HAVE_ECOFF).
6493
1ac3b08e
RM
6494Fri Feb 2 13:09:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6495
6496 * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6497
54139447
RM
6498Wed Jan 31 20:08:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6499
6500 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6501 when cancelled before RPC.
6502
01cdeca0
RM
6503Tue Jan 30 13:32:05 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6504
6505 * dirent/scandir.c: Allocate dirents with correct size for name, and
6506 copy with correct size.
6507
6508 * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6509
6510 * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6511 flag bits.
6512 (__vfscanf): Fix checking of extra type modifiers.
6513
6514 * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6515
6516Tue Jan 30 12:17:26 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
6517
6518 * stdlib/strtod.c: Only negate exponent when there really is one.
6519
6520 * stdio-common/vfscanf.c: Accept type modifiers on %n.
6521 Fix FP number parsing.
6522
f0b11018
RM
6523Mon Jan 29 21:53:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6524
6525 * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6526
6527 * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6528
6529Mon Jan 29 16:29:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
6530
6531 * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6532 include an increment for each operation allowed on each fd.
6533
6534Mon Jan 29 11:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6535
6536 * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6537
6538 * Makefile: Use -include for sysd-dirs.
6539
6540 * configure.in (uname): Check for uname in syscalls.list files.
6541 * sysdeps/unix/sysv/syscalls.list: Remove uname.
6542 * sysdeps/unix/syscalls.list: Add uname.
6543
6544 * stdlib/strtol.c (weak1): New macro, to get the right name declared
6545 weak.
6546
6547 * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6548
6549 * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6550 (dbm_open): Use dynamic allocation for file name buffer, instead of
6551 limitting its size to MAXPATHLEN.
6552
6553 * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6554 buffer, instead of limitting its size to MAXPATHLEN.
6555
6556 * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6557 * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6558
429ed67b
RM
6559Sun Jan 28 19:42:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6560
6561 * time/Makefile: Fix check for cross compiling.
6562
19c3f208
RM
6563Thu Jan 25 21:10:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6564
6565 * db/Makefile (subdir-dirs): Renamed from dbdirs.
6566
6567 * Makerules (distinfo-vars): Add subdir-dirs.
6568
6569 * MakeTAGS: Remove vpath directives.
6570 (all-dirs): Prepend $(subdir-dirs).
6571 (all-sources, all-headers): Use wildcard to find sources.
6572
6573Mon Jan 29 10:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6574
6575 * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6576 variables.
6577
6578 * mach/msgserver.c: Declare DEMUX arg with prototype.
6579
dc825f85
RM
6580Sun Jan 28 17:25:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6581
6582 * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6583 make C++ happy.
6584 * alpha/jmp_buf.h: Likewise.
6585 * m68k/jmp_buf.h: Likewise.
6586 * mips/jmp_buf.h: Likewise.
6587 * sparc/jmp_buf.h: Likewise.
6588 * vax/jmp_buf.h: Likewise.
6589
6590 * sysdeps/generic/memmem.c: Fix return value in case where
6591 NEEDLE_LEN==0.
6592
6593 * hurd/hurdlookup.c (__file_name_lookup_under,
6594 __file_name_lookup): Restrict mode with umask.
6595 * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6596 * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6597
eb8c0f2d
RM
6598Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6599
6600 * stdlib/strtol.c: Undo last change. ANSI C changed since the
6601 draft I checked yesterday. Sigh.
6602
8dad333d
RM
6603Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6604
6605 * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6606
a66067be
RM
6607Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6608
ebc53fbe
RM
6609 * malloc/mcheck.c (mabort): Declare prototype.
6610
555f3a39
RM
6611 * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6612
6613 * Makerules: Use -include for generated makefiles.
6614
6615 * errno.h: Don't declare errno if it's defined as a macro.
6616
914d9d7b
RM
6617 * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6618
a66067be
RM
6619 * stdio-common/Makefile (tests): Add scanf[1-9].
6620 * stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
6621
0793d348
RM
6622Wed Jan 24 04:18:36 1996 Paul Eggert <eggert@twinsun.com>
6623
6624 * strftime.c (strftime):
6625 When invoking self, check whether the subsidiary invocation failed.
6626 Use "???" (not "") to denote unknown time zone information.
6627
6628 Make this source file portable to standalone contexts (e.g. GNU Emacs).
6629 <config.h>: Include if HAVE_CONFIG_H is defined.
6630 (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6631 defined if _LIBC or if <config.h> defines them.
6632 <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6633 <sys/types.h>: New include; some hosts require it for `time_t'.
6634 <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6635 <limits.h>: Include only if HAVE_LIMITS_H.
6636 <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6637 (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6638 (__P, PTR): Define if not already defined.
6639 (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6640 (add, strftime): Don't use NULL, for portability to some weird hosts.
6641 (fmt): If !_LIBC, don't assume sprintf returns a count.
6642 (week, strftime): Use old-style function declarations.
6643 (weekday_name, month_name): New constants.
6644 (strftime): Use traditional C values if locale support isn't available.
6645 Use `const' instead of CONST. For time zones, use tm_zone if
6646 possible, then fall back on tzname. Don't check for multibyte
6647 characters unless mblen is supported. Use formats like %02d instead
6648 of %.2d, for portability to older hosts.
6649
6650Wed Jan 24 00:07:52 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6651
6652 * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6653 (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6654 Fix bug in recognition of %ll flag for long long.
6655 Fix overeager checks for conflicting type modifiers.
6656 With ' flag, match thousands separators for decimal numbers.
6657
6658Tue Jan 23 22:02:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6659
6660 * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6661
6662 * resolv/Makefile (CFLAGS): Disable some warnings.
6663
6664 * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6665 (+gccwarn): Set with override.
6666
6667 * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6668
6669 * posix/Makefile (CFLAGS-regex.c): New variable.
6670
6671 * malloc/Makefile (CFLAGS-obstack.c): New variable.
6672
6673 * io/Makefile (CFLAGS-fts.c): New variable.
6674 * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6675
6676Tue Jan 23 21:35:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
6677
6678 * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6679 case is '\0'-terminated.
6680
6681Tue Jan 23 19:49:54 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6682
6683 * elf/rtld.c (dl_main): Support additional args in --list mode for
6684 debugging: look them up as symbol names and print values.
6685
6686 * misc/getttyent.c (skip, value): Declare with prototypes in file
6687 scope.
6688
6689 * csu/initfini.c (_init): Explicitly set a variable that is
6690 pointer to volatile with the address of __gmon_start__, to avoid
6691 the test being optimized out.
6692
1d8dc429
RM
6693Mon Jan 22 10:40:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6694
6695 * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6696
6697 * io/fts.h (FTSENT): Define fts_compar member with prototype.
6698
6699 * hurd/hurd.h: Use prototype in getcttyid decl.
6700
6701 * stdlib/l64a.c: Fix typo in last change.
6702
6703 * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6704 for determining size of types.
6705 * stdlib/srand48_r.c: Likewise.
6706
6707 * misc/utmp.h: Declare login, logout, logwtmp.
6708 * misc/logout.c: Declare argument as pointer to const.
6709 * misc/login.c: Likewise.
6710 * misc/logwtmp.c: Likewise.
6711 Include time.h, string.h.
6712
6713 * misc/efgcvt_r.c: Include stdlib.h.
6714
6715 * io/mknod.c: Include sys/types.h.
6716
6717 * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6718
6719 * csu/gmon-start.c (_start, etext): Declare with prototypes.
6720
6721 * stdio-common/vfscanf.c (%[): Fix range handling.
6722
bbed653c
RM
6723Sun Jan 21 00:55:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6724
f2f7f9e6
RM
6725 * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6726 * misc/queue.h: Moved to misc/sys/queue.h.
6727
bbed653c
RM
6728 * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6729 sys/sem.h.
6730
6731 * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6732
6733 * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6734 literal byte values.
6735
6736 * misc/bsd-compat.c (getpgrp): Define with prototype.
6737
6738 * misc/init-misc.c (__progname_full): New variable.
6739 (program_invocation_name, program_invocation_short_name): New aliases.
6740 (__init_misc): Define with prototype. Set __progname_full.
6741 * misc/progname.c: File removed.
6742 * misc/Makefile (aux): Remove progname.
6743
6744 * misc/hsearch_r.c (isprime): Define with prototype.
6745
6746 * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6747 * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6748 * sysdeps/unix/bsd/setegid.c: Likewise.
6749
522548fb
RM
6750Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6751
eb63bdd0
RM
6752 * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6753 __tcdrain.
6754
6755 * posix/glob.c (glob): Use prototype in getlogin decl.
6756
6757 * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6758 * db/db/db.c (__dberr): Define with prototype.
6759 (__dbpanic): Use prototypes in casts.
6760 * db/hash/hash_log2.c: Add prototype decl.
6761
6762 * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6763 prototype.
6764
522548fb
RM
6765 * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6766 They will be overridden with syscalls if extant by unix/syscalls.list.
6767
6768 * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6769
6770 * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6771 * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6772
aeb72b16
RM
6773Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6774
97aa195c
RM
6775 * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6776
6777 * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6778 get args.
6779
6780 * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6781 defines GNU extensions.
6782 * posix/fnmatch.c: Likewise.
6783
9b29e6f7
RM
6784 Replaced all simple system call files *.S throughout sysdeps/unix
6785 with syscalls.list files to be processed by make-syscalls.sh.
6786 * sysdeps/unix/s-proto.S: New file.
6787 * sysdeps/unix/syscalls.list: New file.
6788 * sysdeps/unix/bsd/syscalls.list: New file.
6789 * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6790 * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6791 * sysdeps/unix/bsd/osf/syscalls.list: New file.
6792 * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6793 * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6794 * sysdeps/unix/bsd/sun/syscalls.list: New file.
6795 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6796 * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6797 * sysdeps/unix/common/syscalls.list: New file.
6798 * sysdeps/unix/inet/syscalls.list: New file.
6799 * sysdeps/unix/mman/syscalls.list: New file.
6800 * sysdeps/unix/sysv/syscalls.list: New file.
6801 * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6802 * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6803 * sysdeps/unix/sysv/linux/syscalls.list: New file.
6804 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6805 * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6806 * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6807 * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6808 * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6809 * sysdeps/unix/acct.S: File removed.
6810 * sysdeps/unix/chdir.S: File removed.
6811 * sysdeps/unix/chmod.S: File removed.
6812 * sysdeps/unix/chown.S: File removed.
6813 * sysdeps/unix/chroot.S: File removed.
6814 * sysdeps/unix/close.S: File removed.
6815 * sysdeps/unix/configure: File removed.
6816 * sysdeps/unix/configure.in: File removed.
6817 * sysdeps/unix/dup.S: File removed.
6818 * sysdeps/unix/fcntl.S: File removed.
6819 * sysdeps/unix/fsync.S: File removed.
6820 * sysdeps/unix/getgid.S: File removed.
6821 * sysdeps/unix/getpid.S: File removed.
6822 * sysdeps/unix/getuid.S: File removed.
6823 * sysdeps/unix/ioctl.S: File removed.
6824 * sysdeps/unix/kill.S: File removed.
6825 * sysdeps/unix/link.S: File removed.
6826 * sysdeps/unix/lseek.S: File removed.
6827 * sysdeps/unix/open.S: File removed.
6828 * sysdeps/unix/ptrace.S: File removed.
6829 * sysdeps/unix/read.S: File removed.
6830 * sysdeps/unix/reboot.S: File removed.
6831 * sysdeps/unix/setgid.S: File removed.
6832 * sysdeps/unix/setuid.S: File removed.
6833 * sysdeps/unix/sync.S: File removed.
6834 * sysdeps/unix/umask.S: File removed.
6835 * sysdeps/unix/unlink.S: File removed.
6836 * sysdeps/unix/write.S: File removed.
6837 * sysdeps/unix/bsd/flock.S: File removed.
6838 * sysdeps/unix/bsd/getdtsz.S: File removed.
6839 * sysdeps/unix/bsd/getpagesize.S: File removed.
6840 * sysdeps/unix/bsd/killpg.S: File removed.
6841 * sysdeps/unix/bsd/profil.S: File removed.
6842 * sysdeps/unix/bsd/readv.S: File removed.
6843 * sysdeps/unix/bsd/settimeofday.S: File removed.
6844 * sysdeps/unix/bsd/sigblock.S: File removed.
6845 * sysdeps/unix/bsd/sigpause.S: File removed.
6846 * sysdeps/unix/bsd/sigsetmask.S: File removed.
6847 * sysdeps/unix/bsd/sigstack.S: File removed.
6848 * sysdeps/unix/bsd/sigvec.S: File removed.
6849 * sysdeps/unix/bsd/utimes.S: File removed.
6850 * sysdeps/unix/bsd/writev.S: File removed.
6851 * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6852 * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6853 * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6854 * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6855 * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6856 * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6857 * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6858 * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6859 * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6860 * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6861 * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6862 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6863 * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6864 * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6865 * sysdeps/unix/bsd/osf/msync.S: File removed.
6866 * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6867 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6868 * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6869 * sysdeps/unix/bsd/sun/getdents.S: File removed.
6870 * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6871 * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6872 * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6873 * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6874 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6875 * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6876 * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6877 * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6878 * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6879 * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6880 * sysdeps/unix/common/access.S: File removed.
6881 * sysdeps/unix/common/adjtime.S: File removed.
6882 * sysdeps/unix/common/dup2.S: File removed.
6883 * sysdeps/unix/common/fchmod.S: File removed.
6884 * sysdeps/unix/common/fchown.S: File removed.
6885 * sysdeps/unix/common/ftruncate.S: File removed.
6886 * sysdeps/unix/common/getgroups.S: File removed.
6887 * sysdeps/unix/common/getitimer.S: File removed.
6888 * sysdeps/unix/common/getpgid.S: File removed.
6889 * sysdeps/unix/common/getpriority.S: File removed.
6890 * sysdeps/unix/common/getrlimit.S: File removed.
6891 * sysdeps/unix/common/getrusage.S: File removed.
6892 * sysdeps/unix/common/gettimeofday.S: File removed.
6893 * sysdeps/unix/common/mkdir.S: File removed.
6894 * sysdeps/unix/common/readlink.S: File removed.
6895 * sysdeps/unix/common/rename.S: File removed.
6896 * sysdeps/unix/common/rmdir.S: File removed.
6897 * sysdeps/unix/common/select.S: File removed.
6898 * sysdeps/unix/common/setgroups.S: File removed.
6899 * sysdeps/unix/common/setitimer.S: File removed.
6900 * sysdeps/unix/common/setpgid.S: File removed.
6901 * sysdeps/unix/common/setpriority.S: File removed.
6902 * sysdeps/unix/common/setregid.S: File removed.
6903 * sysdeps/unix/common/setreuid.S: File removed.
6904 * sysdeps/unix/common/setrlimit.S: File removed.
6905 * sysdeps/unix/common/swapon.S: File removed.
6906 * sysdeps/unix/common/symlink.S: File removed.
6907 * sysdeps/unix/common/truncate.S: File removed.
6908 * sysdeps/unix/common/vhangup.S: File removed.
6909 * sysdeps/unix/inet/accept.S: File removed.
6910 * sysdeps/unix/inet/bind.S: File removed.
6911 * sysdeps/unix/inet/connect.S: File removed.
6912 * sysdeps/unix/inet/gethostid.S: File removed.
6913 * sysdeps/unix/inet/gethostname.S: File removed.
6914 * sysdeps/unix/inet/getpeername.S: File removed.
6915 * sysdeps/unix/inet/getsockname.S: File removed.
6916 * sysdeps/unix/inet/getsockopt.S: File removed.
6917 * sysdeps/unix/inet/listen.S: File removed.
6918 * sysdeps/unix/inet/recv.S: File removed.
6919 * sysdeps/unix/inet/recvfrom.S: File removed.
6920 * sysdeps/unix/inet/recvmsg.S: File removed.
6921 * sysdeps/unix/inet/send.S: File removed.
6922 * sysdeps/unix/inet/sendmsg.S: File removed.
6923 * sysdeps/unix/inet/sendto.S: File removed.
6924 * sysdeps/unix/inet/sethostid.S: File removed.
6925 * sysdeps/unix/inet/sethostname.S: File removed.
6926 * sysdeps/unix/inet/setsockopt.S: File removed.
6927 * sysdeps/unix/inet/shutdown.S: File removed.
6928 * sysdeps/unix/inet/socket.S: File removed.
6929 * sysdeps/unix/inet/socketpair.S: File removed.
6930 * sysdeps/unix/mman/madvise.S: File removed.
6931 * sysdeps/unix/mman/mmap.S: File removed.
6932 * sysdeps/unix/mman/mprotect.S: File removed.
6933 * sysdeps/unix/mman/msync.S: File removed.
6934 * sysdeps/unix/mman/munmap.S: File removed.
6935 * sysdeps/unix/sysv/alarm.S: File removed.
6936 * sysdeps/unix/sysv/ftime.S: File removed.
6937 * sysdeps/unix/sysv/nice.S: File removed.
6938 * sysdeps/unix/sysv/pause.S: File removed.
6939 * sysdeps/unix/sysv/poll.S: File removed.
6940 * sysdeps/unix/sysv/s_getdents.S: File removed.
6941 * sysdeps/unix/sysv/signal.S: File removed.
6942 * sysdeps/unix/sysv/stime.S: File removed.
6943 * sysdeps/unix/sysv/time.S: File removed.
6944 * sysdeps/unix/sysv/times.S: File removed.
6945 * sysdeps/unix/sysv/ulimit.S: File removed.
6946 * sysdeps/unix/sysv/uname.S: File removed.
6947 * sysdeps/unix/sysv/utime.S: File removed.
6948 * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6949 * sysdeps/unix/sysv/irix4/msync.S: File removed.
6950 * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6951 * sysdeps/unix/sysv/irix4/signal.S: File removed.
6952 * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6953 * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6954 * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6955 * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6956 * sysdeps/unix/sysv/linux/fork.S: File removed.
6957 * sysdeps/unix/sysv/linux/getpgid.S: File removed.
6958 * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
6959 * sysdeps/unix/sysv/linux/getsid.S: File removed.
6960 * sysdeps/unix/sysv/linux/gtty.S: File removed.
6961 * sysdeps/unix/sysv/linux/mlock.S: File removed.
6962 * sysdeps/unix/sysv/linux/mlockall.S: File removed.
6963 * sysdeps/unix/sysv/linux/mount.S: File removed.
6964 * sysdeps/unix/sysv/linux/munlock.S: File removed.
6965 * sysdeps/unix/sysv/linux/munlockall.S: File removed.
6966 * sysdeps/unix/sysv/linux/pipe.S: File removed.
6967 * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
6968 * sysdeps/unix/sysv/linux/setpgid.S: File removed.
6969 * sysdeps/unix/sysv/linux/setsid.S: File removed.
6970 * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
6971 * sysdeps/unix/sysv/linux/sigpending.S: File removed.
6972 * sysdeps/unix/sysv/linux/stty.S: File removed.
6973 * sysdeps/unix/sysv/linux/umount.S: File removed.
6974 * sysdeps/unix/sysv/linux/wait4.S: File removed.
6975 * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
6976 * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
6977 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
6978 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
6979 * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
6980 * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
6981 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
6982 * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
6983 * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
6984 * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
6985 * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
6986 * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
6987 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
6988
6989 * io/mknod.c: New file.
6990
aeb72b16
RM
6991 * Makerules (COMPILE.s): New variable.
6992
6993 * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
6994 make-syscalls.sh and include it.
6995 [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
6996 sysd-syscalls.
6997 * sysdeps/unix/make-syscalls.sh: New file.
6998
6999 * Makerules (COMPILE.S): New variable.
7000
6f0017d1
RM
7001Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7002
285a3eee
RM
7003 * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
7004 _STAT_VER_SVR4, _STAT_VER): New macros.
7005 (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
7006
7007 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
7008 New macros.
7009
c43b8c4b
RM
7010 * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
7011 (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
7012 [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
7013 as `extern inline's calling the `x' functions.
7014 * io/fstat.c: New file.
7015 * io/lstat.c: New file.
7016 * io/stat.c: New file.
7017 * sysdeps/generic/lstat.c: File removed.
7018 * sysdeps/generic/lxstat.c: New file.
7019 * sysdeps/mach/hurd/fstat.c: File removed.
7020 * sysdeps/mach/hurd/fxstat.c: New file.
7021 * sysdeps/mach/hurd/lstat.c: File removed.
7022 * sysdeps/mach/hurd/lxstat.c: New file.
7023 * sysdeps/mach/hurd/mknod.c: File removed.
7024 * sysdeps/mach/hurd/stat.c: File removed.
7025 * sysdeps/mach/hurd/xmknod.c: New file.
7026 * sysdeps/mach/hurd/xstat.c: New file.
7027 * sysdeps/stub/fstat.c: File removed.
7028 * sysdeps/stub/fxstat.c: New file.
7029 * sysdeps/stub/lstat.c: File removed.
7030 * sysdeps/stub/lxstat.c: New file.
7031 * sysdeps/stub/mknod.c: File removed.
7032 * sysdeps/stub/stat.c: File removed.
7033 * sysdeps/stub/xmknod.c: New file.
7034 * sysdeps/stub/xstat.c: New file.
7035 * sysdeps/unix/common/lstat.S: File removed.
7036 * sysdeps/unix/common/lxstat.c: New file.
7037 * sysdeps/unix/fstat.S: File removed.
7038 * sysdeps/unix/fxstat.c: New file.
7039 * sysdeps/unix/mknod.S: File removed.
7040 * sysdeps/unix/stat.S: File removed.
7041 * sysdeps/unix/sysv/linux/fstat.c: File removed.
7042 * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
7043 * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
7044 * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
7045 * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
7046 * sysdeps/unix/sysv/linux/lstat.c: File removed.
7047 * sysdeps/unix/sysv/linux/mknod.c: File removed.
7048 * sysdeps/unix/sysv/linux/stat.c: File removed.
7049 * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
7050 * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
7051 * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
7052 * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
7053 * sysdeps/unix/xmknod.c: New file.
7054 * sysdeps/unix/xstat.c: New file.
7055 * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
7056 * misc/Makefile (routines): Remove mknod.
7057
7058 * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
7059 Add missing ; in little-endian case.
7060
44534645
RM
7061 * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
7062 Define this instead of ELF_DYNAMIC_DO_RELA.
7063
6f0017d1
RM
7064 * sysdeps/unix/sysv/time.S: Moved from sysv4.
7065 * sysdeps/unix/sysv/irix4/time.S: File removed.
7066
7067 * sysdeps/unix/sysv/linux/signum.h: Moved from
7068 sysdeps/unix/sysv/linux/i386.
7069 (_NSIG): Move inside #ifdef _SIGNAL_H.
7070
b17178fc
RM
7071Tue Jan 16 17:37:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7072
b6e9b25b
RM
7073 * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
7074 * sysdeps/unix/telldir.c: Fix position calculation to account for
7075 buffered data properly.
7076
13bc775d
RM
7077 * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
7078 library.
7079
5f3d5c2b
RM
7080 * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
7081 * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
7082 global.
7083 [! HAVE_INITFINI]: Only make it a constructor in this case.
7084
d99d7e26
RM
7085 * gmon/Makefile (CFLAGS-mcount.c): New variable.
7086 (mcount.po): New target.
7087
7088 * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
7089
b17178fc
RM
7090 * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
7091 (initfini): Compile initfini.c with -fPIC.
7092
93995795
RM
7093Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7094
7095 * sysdeps/mips/bytesex.h: Add default byte sex. By Ralf Baechle.
7096
7097 * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
7098 member of `struct timex' instead of `modes'. From Andreas Schwab.
7099
7100 * sysdeps/unix/sysv/linux/mknod.c: New file. Generic C version.
7101 * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
7102
7103 * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
7104 [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
7105 [$(subdir) = misc] (headers): Append sys/mount.h.
7106
7107 * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
7108 New files. Implement system calls.
7109 * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
7110
7111 * sysdeps/unix/sysv/linux/ptrace.c: New file. Wrapper around
7112 ptrace system call.
7113 * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
7114
7115 * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
7116 types for i386/Linux.
7117
b17178fc
RM
7118Sun Jan 14 17:51:09 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7119
b8aec9fa
RM
7120 * MakeTAGS (all-sources, all-headers): Always search the
7121 current directory first.
7122
7123 * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
7124 found.
7125
b17178fc
RM
7126 * stdio-common/vfscanf.c (inchar, conv_error, input_error,
7127 memory_error): Add cast to void to avoid gcc warning.
7128 (vfscanf): Rewrite character class parsing to make it more efficient.
7129
7176f4e4
RM
7130 * misc/efgcvt_r.c (ecvt_r): Handle negative values.
7131
7132 * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
7133 * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
7134 sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
7135
7136 * stdio-common/printf_fp.c (__printf_fp): Fix parameter
7137 declaration.
7138
7139 * sysdeps/generic/putenv.c (putenv): Fix second argument of
7140 setenv.
7141
7142 * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
7143 * sysdeps/ieee754/cabs.c: Don't define hypot here.
7144
7145 * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
7146 definition of ieee_nan alternative.
7147
7148 * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
7149 prefix spec.
7150
7151 * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
7152
7153 * sysdeps/m68k/fpu/__math.h: Include <errno.h>. Replace obsolete
7154 __CONSTVALUE by attribute.
7155 (floor): Round to negative infinity.
7156 (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
7157 clash when compiling source.
7158 (pow): Handle x == 0 and x < 0.
7159 (ceil, __isinf, __isnan): Fix register constraints.
7160 (__isinfl, __isnanl): Added.
7161 * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
7162 sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
7163 sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
7164
7165 * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
7166 assembler syntax.
7167
7168 * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
7169 argument.
7170
7171 * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
7172 clock_t conversion.
7173 (clock): Don't multiply by CLOCKS_PER_SEC.
7174
7175 * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
7176
7177 * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
7178 __end.
7179
7180 * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
7181
7182 * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
7183
7184 * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
7185
da128169
RM
7186Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7187
7188 * stdlib/strtol.c: Return correct pointer for strings
7189 like "0xyz" and base 0 or 16.
7190
7191 * string/strxfrm.c: Handle case for LENGTH == 0 correct.
7192
7193 * sunrpc/etc.rpc: Add some more known protocols.
7194
02ac66c5
RM
7195Fri Jan 12 13:40:01 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7196
7197 * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
7198
7199 * posix/glob.c (glob): Add parens in glob call flags arg for
7200 GLOB_BRACE case.
7201
7202 * string/string.h (strdupa): New macro.
7203
7204 * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
7205 terminator on empty set. From drepper.
7206
d94d8f2a
RM
7207Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7208
7209 * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
7210 referent for STB_LOCAL.
7211
72d8cdf0
RM
7212Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7213
7214 * time/africa, time/antarctica, time/asia, time/australasia,
7215 time/europe, time/northamerica, time/pacificnew, time/solar87,
7216 time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7217
22930c9b
RM
7218Tue Jan 9 16:10:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7219
7220 * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7221 segment to find location, mprotect excess region to no access,
7222 don't munmap it.
7223
7224 * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7225 KERN_NO_SPACE for fixed location, deallocate it and try again.
7226
7410183b
RM
7227Mon Jan 8 17:43:23 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7228
7229 * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7230 * locale/hash.c: Renamed to locale/locfile-hash.c.
7231
a2e1b046
RM
7232Sat Jan 6 16:39:14 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7233
7234 * Makefile (subdirs): Added db.
7235
7236 * resolv/Makefile (routines): Add res_data.
7237 * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7238 Updated from BIND 4.9.3 final release.
7239
7240 * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7241 processor-specific tags.
7242 (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7243
7244 * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7245 * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7246
7247 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7248 arg LAZY. Only do our work if LAZY and there is a DT_JMPREL record.
7249 * elf/dl-reloc.c (_dl_relocate_object): Call
7250 elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7251
7252 * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7253 Align end of load segment only to page size, not to segment alignment.
7254
7974fe21
RM
7255Thu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7256
7257 * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7258 preemption interface.
7259
7260 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7261 Use _hurdsig_catch_memory_fault.
7262
7263 * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7264 (sig): Add catch-signal.
7265
7266 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7267 Rewritten using a preempter in new interface.
7268 * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7269 (_hurdsig_catch_memory_fault): New macro.
7270
fb8e70d6
RM
7271Wed Jan 3 20:23:42 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7272
7273 * hurd/catch-signal.c: New file.
7274
7275 * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7276
7277 * hurd/hurdsig.c: Use new hurdfault.h interface.
7278 (abort_all_rpcs): Mutate return value to EINTR in threads whose
7279 replies we will wait for.
7280
7281 * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7282 do ourselves last.
7283
7284Wed Jan 3 19:17:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
7285
7286 * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7287 to auth_makeauth() in the right order.
7288
7289Wed Jan 3 17:19:04 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7290
7291 * sysdeps/generic/strsep.c: Rewritten.
7292
7293 * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7294 suspended page fault deadlock kernel bug: thread_abort our signal
7295 thread first thing after proc_dostop.
7296
7297 * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7298 recognize rootness properly.
7299
fc4026d8
RM
7300Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7301
71733723
RM
7302 * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7303 (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7304 * hurd/hurd/sigpreempt.h: New file.
7305 * hurd/preempt-sig.c: Rewritten with new interface.
7306 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7307 preempters being unwound past.
fb8e70d6 7308 * hurd/hurdsig.c: Use new signal preemption interface.
71733723
RM
7309
7310 * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7311 release.
7312
7313 * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7314 compatibility.
7315
fc4026d8
RM
7316 * misc/queue.h: New file, incorporated from 4.4BSD.
7317 * misc/Makefile (headers): Add queue.h.
7318
7319 * posix/sys/types.h [__USE_BSD]: Include endian.h.
7320
7321 * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7322 New macros.
7323
0a95f04d
RM
7324Thu Dec 28 10:21:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7325
7326 * sysdeps/generic/confname.h: Define all names as self-referential
7327 macros so #ifdef works.
7328
7329 * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7330 of _hurd_signal_preempters[SIGNO].
7331
be7e3b7e
RM
7332Mon Dec 25 20:56:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7333
7334 * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7335 EADDRINUSE. If translated node doesn't grok ifsock protocol,
7336 return EADDRINUSE.
7337
7338 * sysdeps/mach/hurd/connect.c: Make address arg
7339 `const struct sockaddr_un *'.
7340 The redecl is kosher and avoids another variable for AF_LOCAL case.
7341 * sysdeps/mach/hurd/sendto.c: Likewise.
7342 * sysdeps/mach/hurd/bind.c: Likewise.
7343
7344 * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7345 code for GCC >= 2.7; use __transparent_union__ for name safety;
7346 add several sockaddr flavors.
7347 (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7348 constructing the transparent union declarations.
7349 (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7350 (bind, connect, sendto): Make the sockaddr argument use that.
7351
97532098
RM
7352Fri Dec 22 00:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7353
e0f09b6b
RM
7354 * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7355 old vector.
7356 * sysdeps/mach/hurd/setuid.c: Likewise.
7357
97532098
RM
7358 * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7359 right thing.
7360 * sysdeps/mach/hurd/setgid.c: Likewise.
7361 * sysdeps/mach/hurd/setreuid.c: Likewise.
7362 * sysdeps/mach/hurd/setregid.c: Likewise.
7363 * sysdeps/mach/hurd/setegid.c: Likewise.
7364 * sysdeps/mach/hurd/seteuid.c: Likewise.
7365
7366 * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7367 proc_dostop call to work around kernel paging bug.
7368
2114e10a
RM
7369Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
7370
7371 * stdio-common/vfscanf.c: Correctly handle white space skipping.
7372 * stdio-common/Makefile (tests): Add bug11.
7373 * stdio-common/bug11.c: New file.
7374
97532098
RM
7375Thu Dec 21 12:19:32 1995 Miles Bader <miles@gnu.ai.mit.edu>
7376
7377 * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7378 instead of putting it (and other uids) in the gids and leaving the
7379 old uids as is.
7380
8ef76445
RM
7381Wed Dec 20 18:23:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7382
7383 * stdio/internals.c (flushbuf): If the target is -1, always
7384 discard the buffer of read data.
7385 Only set TWIDDLED flag in !ALIGNED case.
7386 Never increment target or offset when old value is -1.
7387
f94a3574
RM
7388Tue Dec 19 17:00:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7389
7390 * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7391 pgrp changes.
7392
755f55b0
RM
7393Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7394
7395 * stdio/fread.c: Don't increment __offset when it's -1.
7396
7397 * elf/rtld.c (dl_main): Prepend tab to "statically linked". Exit
7398 0 in that case.
7399
7400 * misc/err.c (vwarnx, vwarn): Fix major brainos.
7401
7402 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7403 inheritance.
7404
8882961f
RM
7405Sun Dec 17 15:56:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
7406
7407 * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7408
102800e0
RM
7409Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7410
7411 * Makerules: Use $(do-install-so) for installing shared objects.
7412 (do-install-so): New canned sequence. Make a symlink LIB.so after
7413 installing LIB.so.VERSION.
7414
7415 * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7416
05be689b
RM
7417Fri Dec 15 04:41:22 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7418
7419 * stdio-common/Makefile (tests): Add bug10.
7420 * stdio-common/bug10.c: New file. From HJ Lu.
7421
7422 * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7423 status tells about successful run.
7424
7425 * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7426 format correctness.
7427 Correct handling of trailing white spaces in format + EOF.
7428
7429Fri Dec 15 01:31:56 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7430
7431 * stdio-common/Makefile (tests): Add bug8 and bug9.
7432 * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7433
7434 * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7435
7436 * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7437 Thanks to Jim Meyering.
7438
7439Sat Nov 25 06:05:12 1995 H.J. Lu <hjl@nynexst.com>
7440
7441 * stdio-common/vfscanf.c: Always check width !=0.
7442 Correctly handle %%.
4984f343 7443
faf92f2a
RM
7444Thu Dec 14 02:28:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7445
7446 * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7447 and cast STREAM to DIR * before passing to readdir and closedir.
7448
7449Wed Dec 13 22:06:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7450
7451 * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7452 after aborting RPCs but before calling proc_mark_stop.
7453
3be01400
RM
7454Mon Dec 11 20:07:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7455
7456 * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7457 (glob): Avoid using function as value.
7458
7459 * elf/rtld.c (dl_main): When mapping argument executable, set
7460 l_name to "", not l_libname.
7461 After loading DT_NEEDED library, set its l_type to lt_library.
7462
7463 * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7464 VM_INHERIT. We can't handle MAP_INHERIT easily.
7465 Handle non-page-aligned addresses if congruent to offset.
7466
7467 * elf/dl-init.c: Skip the initializer for l_type lt_executable
7468 with l_name "". Start at _dl_loaded; don't skip the first element.
7469
7470 * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7471 (MAP_COPY): Define to MAP_PRIVATE if undefined.
7472 (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7473 If file it ET_EXEC, set its l_type to lt_executable.
7474
25b86c05
RM
7475Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7476
7477 * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7478
787e4db9
RM
7479Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7480
7481 * locale/error.c, locale/error.h: Files removed.
7482 * locale/Makefile (distribute): Remove error.h.
7483 (lib-modules): Remove error.
7484
7485 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7486 magic, return ENXIO if no ctty.
7487
7488 * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7489 mapping if vm_map fails for that reason.
7490
7491 * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7492 GLOB_TILDE, GLOB_NOMAGIC.
7493 (glob): Use stat instead of lstat to determine directoriness.
7494 * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7495 New flag bits.
7496 (__GLOB_FLAGS): Include them.
7497 (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7498 gl_stat.
7499
7500 * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7501
7502 * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7503 define all the bit values.
7504 (MAP_*, MCL_*): Macros removed.
7505
c994299d
RM
7506Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7507
7508 * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7509 Updated from BIND 4.9.3-BETA27.
7510
7511Wed Dec 6 18:44:01 1995 Miles Bader <miles@gnu.ai.mit.edu>
7512
7513 * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7514
7515 * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7516 we get a delayed reply.
7517 Only grab values out of entries in TYPES that have SELECT_RETURNED
7518 turned on, and turn it on whenever an rpc returns.
7519 Only clear bits in the user's fdsets -- those needing to be set
7520 should be already.
7521 Use SELECT_ALL in appropiate places.
7522 (SELECT_RETURNED, SELECT_ALL): New macros.
7523
7524Wed Dec 6 09:10:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7525
7526 * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7527
7528 * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7529
edbba60a
RM
7530Tue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7531
7532 * misc/Makefile (headers): Add error.h, err.h.
7533 (routines): Add error, err.
7534 (gpl2lgpl): New variable.
7535 * misc/err.c: New file.
7536 * misc/err.h: New file.
7537 * misc/error.c, misc/error.h: New files.
7538
7539 * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7540
7541 * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7542 (link-libc): Append $(libc.so-version) to libc.so.
7543 (built-program-cmd): Fix comma usage.
7544 * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7545 symlink to libc.so in the build directory.
7546 * Rules ($(others) $(tests)): Depend on the library that appears
7547 in $(link-libc).
7548 (%.out): Use $(built-program-cmd) in commands.
7549
7550 * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7551
7552 * sysdeps/generic/setenv.c: Added canonical portability cruft.
7553 (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7554 (unsetenv): New function.
7555 * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7556 * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7557
77a58cad
RM
7558Tue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7559
edbba60a 7560 * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
77a58cad
RM
7561
7562 * libio/iofscanf.c: Remove file.
7563
7564 * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7565 termination.
7566
7567 * libio/iopopen.c: New file from GNU libio.
7568
7569 * libio/memstream.c: Fixed bug in fclose handling. Instead of
7570 providing a close callback we need a finish callback.
7571
7572 * libio/pclose.c: New file. Derived from popen.c in GNU libio.
7573
7574 * posix/gnu/types.h: Fixed typo.
7575
7576 * stdio-common/errnobug.c: fputs returns EOF in error case. Do
7577 not test for != 0.
7578
7579 * stdio-common/printf-parse.h (parse_one_spec): Do not force
7580 padding with ' ' if precision is given. Fix by HJ Lu.
7581
7582 * stdio-common/printf_fp.c: Fix comment.
7583
7584 * stdio-common/tfformat.c, stdio-common/tiformat.c,
7585 stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7586
7587 * stdio-common/tstgetln.c: Provide ssize_t type when testing
7588 libio.
7589
7590 * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7591 (vfprintf): Cleasr args_type array before using it.
7592 When printing 0 as an integer with precision 0 nothing must be
7593 written for the number.
7594 Based on patch by HJ Lu.
7595
7596 * stdio-common/vfscanf.c: Remove fixed input buffer. Now we
7597 have a dynamically extended buffer.
7598
7599 * stdlib/strtod.c: Merge with version in Linux libc. This fixes
7600 some bugs with handling of very small numbers and has different
7601 solution for formaer patches.
7602
7603 * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7604 macros r1 and r2 to t1, and t2 resp. This is necessary because
7605 glibc headers also define r1.
7606
b5a08c5a
RM
7607Mon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7608
7609 * stdlib/gen-mpn-copy (translations): Updated for new layout in
7610 GMP 1.910.
7611
7612 * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7613 made global.
7614 (malloc): Caller changed.
7615 * malloc/realloc.c (realloc): Call __malloc_initialize if
7616 necessary, before checking hook.
7617 * malloc/malloc.h: Declare __malloc_initialize.
7618
7619 * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7620 as integer_t arg in RPC.
7621
0fe4e552
RM
7622Sat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7623
683158e0
RM
7624 * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7625 (_hurd_set_brk): Try to allocate more space when we run out.
0fe4e552 7626
683158e0
RM
7627 * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7628 zero and examine it again.
7629 * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7630 * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7631 * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7632 * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
0fe4e552
RM
7633 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7634 Invoke this macro before calling DL_MAIN.
7635
7636 * malloc/malloc.c (malloc): Do initialization here, before
7637 checking the hook.
7638 (_malloc_internal): Don't do it here.
7639
b2518f55
RM
7640Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7641
7642 * libio/vsnprintf.c (__vsnprintf): Define as alias.
7643 * libio/iovsscanf.c (__vsscanf): Define as alias.
7644 * asprintf.c: Remove libio adaptation code added by drepper.
7645 * dprintf.c: Likewise.
7646 * printf.c: Likewise.
7647 * scanf.c: Likewise.
7648 * snprintf.c: Likewise.
7649 * sprintf.c: Likewise.
7650 * sscanf.c: Likewise.
7651 * vprintf.c: Likewise.
7652 * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7653 function.
7654 (vfscanf): Define unconditionally.
7655
7656 * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7657 zero for value.
7658
7659 * misc/getpass.c: Write a newline after reading the unechoed
7660 password.
7661
b7843ea9
RM
7662Mon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7663
7664 * posix/Makefile (routines): Add getsid.
7665 * sysdeps/unix/sysv/linux/getsid.S: New file.
7666 * sysdeps/mach/hurd/getsid.c: New file.
7667 * sysdeps/stub/getsid.c: New file.
7668 * posix/unistd.h [__USE_GNU]: Declare getsid.
7669
f45e34fc
RM
7670Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7671
7672 * libc-symbols.h (N_): New macro.
7673
cbd3dceb
RM
7674Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7675
7676 * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7677 malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7678 resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7679 sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7680 sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7681 sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7682 sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7683 sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7684 strings.
7685
fbaad149
RM
7686Sun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7687
7688 * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7689
7690Thu Nov 23 02:21:55 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7691
7692 * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7693 New files.
1ed0083c 7694 * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
fbaad149
RM
7695 mlock, munlock, mlockall, and munlockall.
7696
f4482045
RM
7697Thu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7698
7699 * configure.in (--enable-libio): Set $stdio based on $enableval,
7700 not always to libio.
7701
7702Thu Nov 23 18:06:48 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7703
7704 * malloc/malloc.c (_malloc_internal): Can't use
7705 get_contiguous_space when the heap info table
7706 will be growing. Account for new contiguous space in _heaplimit.
7707
42d2676e
RM
7708Wed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7709
7710 * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7711 for errno.
7712
7713 * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7714 alias for _IO_vfprintf.
7715
7716 * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7717
7718 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7719 __fpu_control instead of ___fpu_control.
7720 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7721 (___fpu_control): Renamed to __fpu_control.
7722 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7723 * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7724
7725 * elf/dl-minimal.c: New file.
7726 * elf/Makefile (rtld-routines): Add dl-minimal.
7727 * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7728 Functions moved to dl-minimal.c.
7729 * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7730 sigjmp_save, longjmp): Likewise.
7731
7732 * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7733 to &_end, regardless of PIC.
7734
7735 * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7736
1a3a58fd
RM
7737Tue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7738
7739 * malloc/malloc.c (align): Don't check contiguity and call abort.
7740
7741 * hurd/hurdsig.c (post_reply): Function removed.
7742 (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7743 Take single callback fn arg instead of reply port and type.
7744 (_hurd_internal_post_signal): Callers changed.
7745 Cache reply stub fn ptr in local var before UNTRACED might be changed.
7746
7747 * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7748 PROT_READ|PROT_WRITE copy mapping. Pass a proper vm_inherit_t to
7749 vm_map.
7750
7751 * elf/rtld.c (_dl_start): For --list, do output and exit before
7752 relocating.
7753
91c7b85d
RM
7754Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7755
7756 * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7757 get .c and .h files.
7758
7759 * malloc/malloc.c (align): Use abort instead of assert.
7760
054cc4cc
RM
7761Sun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7762
7763 * Makeconfig (+includes): Add $($(stdio)-include).
7764 (libio-include): New variable.
7765
7766 * stdlib/strtod.c: Put weak_symbol after function defn.
7767 * stdlib/strtol.c: Likewise.
7768
7769 * configure.in (--enable-libio): If not present, set $stdio to
7770 "default". Move stdio/libio check to end, so sysdeps fragments
7771 can affect it. Reset $stdio to "stdio" if it's "default".
7772 * sysdeps/unix/sysv/linux/configure: New file.
7773
96aa2d94
RM
7774Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7775
7776 * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7777 libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7778 libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7779 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7780 libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7781 libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7782 libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7783 libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7784 libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7785 libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7786 libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7787 libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7788 libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7789 libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7790 libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7791 New files. Slightly modified version from Linux libc.
7792
7793 * libio/memstream.c, libio/vdprintf.c: New files for functions not
7794 (yet) part of GNU libio.
7795
7796 * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7797 by Per Bothner.
7798
7799 * stdio-common/getline.c: Adapted to libio.
7800 * stdio-common/snprintf.c: Adapted to libio.
7801 * stdio-common/vfprintf.c: Adapted to libio.
7802 * stdio-common/vfscanf.c: Adapted to libio.
7803 * sysdeps/posix/tempname.c: Adapted to libio.
7804
a5a81fec
RM
7805Fri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7806
7807 * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7808
7809 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7810 function.
7811
7812 * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7813 (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7814 Insert send right for SIGEXC before thread_set_special_port.
7815 * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7816 (_hurdsig_init): Remove #if 0 from setting exception port.
7817
7818 * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7819 HURD_MSGPORT_RPC macro.
7820
4cb20290
RM
7821Thu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7822
7823 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7824 function.
7825 (_dl_sysdep_start): Move cleanup code there.
7826
7827 * Makeconfig (default-rpath): New variable.
7828 (link-libc): Use it.
7829 * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7830 * elf/rtld.c (_dl_rpath): New variable.
7831 (_dl_start): Set it from rtld_map's DT_RPATH.
7832 Call _dl_setup_hash on rtld_map.
7833 (dl_main): Cache address of _exit in variable before relocating,
7834 and use that in later calls. Call _dl_sysdep_start_cleanup before
7835 relocating. Keep track of dependency order while loading; remove
7836 rtld_map from chain, and reinsert in proper order if there is a
7837 dependency on it.
7838
7839 * sysdeps/generic/Makefile (make_siglist): Pass
7840 -DSIGNUM_H=... with config's signum.h location.
7841 * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7842 signal numbers.
7843 (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7844 (main): Deansideclize output.
7845
7846 * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7847 of DEFAULT_RPATH macro.
7848 * elf/Makefile: Undo last change.
7849
7850 * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7851
ec967c06
RM
7852Wed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7853
8738e7f8
RM
7854 * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7855 error if weak.
7856
7857 * elf/Makefile (default-rpath): New variable.
7858 (CPPFLAGS): Append -DDEFAULT_RPATH=....
7859 * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7860 hard-coded "/lib:/usr/lib".
7861
ec967c06
RM
7862 * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7863 instead of stdio.
7864 (_dl_sysdep_start): If passed user entry is zero and
7865 EXEC_STACK_ARGS flag set, reset user entry to &_start.
7866
7867 * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7868 DT_HASH element.
7869
7870 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7871 repeat weak decl using weak_symbol macro, in case using broken GCC
7872 (<2.8).
7873
7874Wed Nov 15 18:49:55 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7875
7876 * sysdeps/i386/isnanl.c: New file.
7877 * sysdeps/i386/isinfl.c: New file.
7878
2ede96c9
RM
7879Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7880
7881 * malloc/free.c (free): Moved null and aligned_blocks checks
7882 inside _free_internal.
7883
9199ec6e
RM
7884Mon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7885
7886 * malloc/malloc.c (morecore): Fix inverted test in allocating new
7887 info table.
7888
7889 * malloc/malloc.c (align): Fix assertion.
7890
7891 * malloc/malloc.c: Include assert.h.
7892
7893 * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7894
7895 * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7896 (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7897
75914335
RM
7898Fri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7899
accc07a9
RM
7900 * malloc/malloc.c (align): Assert that space for alignment
7901 adjustment is same original space.
7902
7903 * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7904 arg to vm_address_t.
7905
75914335
RM
7906 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7907 skip straight to pending check. When UNTRACED, resume process
7908 from suspension first.
7909
7910 * intl/Makefile (headers): New variable, libintl.h.
7911 [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7912 * configure.in: Check for --with-gettext arg.
7913
7914Fri Nov 10 13:51:30 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7915
7916 * malloc/malloc.c (get_contiguous_space): New function.
7917 (morecore): Rewrite allocating new malloc info table.
7918 (_malloc_internal): Use get_contiguous_space.
7919
7920Fri Nov 10 13:03:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7921
7922 * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7923 _hurd_msgport to be destroyed.
7924
7925 * Makerules (installed-libcs): Filter out %_pic.a.
7926
7927 * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7928 to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7929
7930 * hurd/Makefile (user-interfaces): Add hurd/process_request.
7931
d7435cd8
RM
7932Wed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7933
7934 * termios/Makefile (headers): Add sys/ttychars.h.
7935 * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7936 for compatibility.
7937
7938 * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7939
7940Wed Nov 8 15:12:47 1995 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7941
7942 * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7943 proc server that we are now traced.
7944
86d2c878
RM
7945Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7946
094bacdb
RM
7947 * elf/Makefile (ldd): Make it executable.
7948
7949 * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7950
7951 * Makeconfig (slibdir): New variable.
7952 * Makerules (install): Install libc.so in $(slibdir).
7953 * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7954 in $(slibdir).
7955
86d2c878
RM
7956 * elf/linux-compat.c: New file.
7957 * elf/Makefile (distribute): Add linux-compat.c.
7958 (generated): Add librtld.so.
7959 [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
7960 [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
7961 (librtld.so): New target.
7962 (ld.so, ld-linux.so.1): Make from librtld.so.
7963
7964 * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
7965 call our own DT_INIT if we have one (and then clear it).
7966 (__dgettext): New weak function.
7967
7968 * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
7969 by hand instead.
7970
7971 * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
7972 instead of snprintf.
7973
7974 * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
7975 BUF[BUFLEN].
7976
7977 * elf/rtld.c (rtld_map): New static variable.
7978 (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
7979 bootstrapping. Then copy data into `rtld_map'.
7980 (dl_main): Finish filling in rtld_map and link it into the chain,
7981 instead of allocating a new structure.
7982 (dl_main): Call _dl_compat_init if it is defined (use weak ref).
7983
7984 * elf/dlsym.c: Fix last change: move REF out of `doit'.
7985
51093422
RM
7986Mon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7987
7988 * elf/dlsym.c: Return the proper value, not just the defining
7989 object's loadbase.
7990
e380bf62
RM
7991Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7992
f797c383
RM
7993 * stdio-common/vfprintf.c (%c): Count the character itself towards
7994 the field width in all cases.
7995
e380bf62
RM
7996 * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
7997 __vm_deallocate arg to vm_address_t.
7998
853f0eea
RM
7999Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8000
8001 * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
8002 socket_create_address.
8003 * sysdeps/mach/hurd/connect.c: Likewise.
8004 * sysdeps/mach/hurd/bind.c: Likewise.
8005
8006 * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
8007 args to proc_getprocinfo.
8008 * sysdeps/mach/hurd/getpriority.c: Likewise.
8009
8010 * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
8011
27cc33c3
RM
8012Thu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8013
8014 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
8015
3bbceb12
RM
8016Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8017
80b55d32
RM
8018 * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
8019 PI_FETCH_TASKINFO to proc_getprocinfo and through
8020 _hurd_priority_which_map.
8021
8022 * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
8023 _hurd_priority_which_map.
8024 * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
8025 passed through to proc_getprocinfo RPC.
8026 * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
8027
3bbceb12
RM
8028 * sysdeps/mach/hurd/group_member.c: New file.
8029 * sysdeps/generic/group_member.c: New file.
8030
8031 * Makerules (lib-noranlib): Don't depend on $(install-lib).
8032 (others): Do.
8033 * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
8034
8035Mon Oct 30 12:33:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8036
8037 * Rules (others): Depend on $(extra-objs).
8038
8039 * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
8040 * posix/Makefile (routines): Add group_member.
8041
8042 * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
8043
8044 * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
8045 SIG operand in asm so it must be a register.
8046 Add dead return to quiet gcc warning.
8047
8048 * Makerules (sysd-rules): Write a defn for sysd-rules-done.
8049 [! sysd-rules-done]: Inhibit deps.
8050
3e2ee727
RM
8051Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8052
8053 * sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use
8054 simulation of system call using select.
8055
8056 * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
8057
8058 * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
8059
8060 * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
8061 name usage (new->act, old->oact).
8062 Correct asm statement because of gcc strangeness.
86d2c878 8063
3e2ee727
RM
8064 * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
8065
8066 * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They
8067 conflict with the ones in stdio.h.
8068
8069 * string/tester.c: %Z is no complete format. Change to %Zd.
8070
f094496c
RM
8071Thu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu>
8072
8073 * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
8074 * sysdeps/mach/hurd/link.c (__link): Ditto.
3e2ee727 8075 * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
f094496c
RM
8076 * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
8077 Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
8078
efc755b2
RM
8079Thu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8080
8081 * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
8082
8083 * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
8084 on syscall_error. For PIC, it is a local label;
8085 for non-PIC, JUMPTARGET expands to the unadorned name anyway.
8086 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8087 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8088 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8089 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8090 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8091 * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
8092
41334987
RM
8093Thu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8094
8095 * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
8096 comment to the necessary ones. Add _readv and _writev.
8097
8098 * sysdeps/unix/configure.in: Change syntax for system call test
8099 candidates and adapt sed script for this. Now use : to separate
8100 syscall name and file name.
8101
8102 * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
8103 number is now set is DO_CALL. So call with additional argument.
8104 (DO_CALL): Takes an additional argument. Load system call
8105 number according to new argument.
8106 (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
8107 * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
8108 locally using SYSCALL_ERROR_HANDLER macro.
8109 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8110 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8111 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8112 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8113 * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
8114 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8115 Don't use DO_CALL macro; instead use lower level macros for better
86d2c878 8116 control.
41334987
RM
8117
8118 * sysdeps/unix/sysv/linux/sigaction.h: New file.
8119 * sysdeps/unix/sysv/linux/sigaction.S: File removed.
8120 * sysdeps/unix/sysv/linux/signal.S: File removed.
8121
ff9bef7f
RM
8122Wed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8123
c14e4c32
RM
8124 * hurd/hurdstartup.c (_hurd_startup): Use new
8125 exec_startup_get_info RPC from exec_startup.defs
8126 in place of old exec_startup from exec.defs. Remove kludge to
8127 guess user entry and phdr locations, since the new RPC gives us
8128 that info.
8129
f44f9c33 8130 * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
c14e4c32 8131 * sysdeps/generic/_strerror.c: Undo last change.
f44f9c33 8132
ff9bef7f
RM
8133 * sysdeps/unix/sysv/linux/stat.c: New file.
8134 * sysdeps/unix/sysv/linux/fstat.c: New file.
8135 * sysdeps/unix/sysv/linux/lstat.c: New file.
8136 * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
8137 * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
8138 * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
8139
21ee7166
RM
8140Tue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8141
03a75825
RM
8142 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8143 New macro.
8144 (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
8145
8146 * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
8147 only #ifndef PIC.
8148
8149 * Makeconfig (built-program-cmd): New variable.
8150 * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
8151 * time/Makefile (zic-cmd): Likewise.
8152
8153 * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
8154
e97ec51d
RM
8155 * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
8156 * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
8157 make `others' rather than `lib-noranlib' depend on the libraries.
8158
21ee7166
RM
8159 * sysdeps/unix/configure.in: Check for fchdir syscall.
8160 Improve sed script to allow / on rhs without / on lhs.
8161
8162Thu Oct 19 03:47:32 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8163
8164 * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
8165
8166 * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
8167
8168 * sysdeps/unix/sysv/linux/select.S: New file.
8169
4d049a8b
RM
8170Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8171
1d234146
RM
8172 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
8173 SYSCALL_PIC_SETUP before jumping to syscall_error.
8174 * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
8175 (PSEUDO): Use it before jumping to syscall_error.
8176 * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
8177 expect it in %ebx on entry. Pop old %ebx value off stack after
86d2c878 8178 using it.
1d234146 8179
580c1888
RM
8180 * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
8181 them.
8182
4d049a8b
RM
8183 * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
8184
8185 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
8186 `fd/', pass the right pointer to strtol to parse the number.
8187
cabcc273
RM
8188Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8189
8190 * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
8191 of stdio/_itoa.h.
8192
8193Tue Oct 17 19:51:17 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8194
8195 * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
8196 register %ebx before calling __xstat through PLT.
8197
8198 * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
8199
8200 * sysdeps/unix/sysv/linux/sigset.h: Remove file.
8201
b3a59f40
RM
8202Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8203
cabcc273
RM
8204 * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
8205 stdio/_itoa.h.
8206 * hurd/hurdlookup.c: Likewise.
86d2c878 8207
f2149f69
RM
8208 * hurd/hurd/signal.h: Declare hurd_preempt_signals and
8209 hurd_unpreempt_signals.
8210
8211 * stdio/stdio.h: Declare __snprintf and __vsnprintf.
8212
b3a59f40
RM
8213 * stdio-common/psignal.c: Translate signal description strings.
8214 * string/strsignal.c: Likewise.
8215 * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8216 error strings.
8217 * sysdeps/mach/_strerror.c: Likewise.
8218
8219 * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8220 call __vsnprintf.
8221 (snprintf): Define as weak alias.
8222 * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8223 (vsnprintf): Define as weak alias.
8224
924b9ff6
RM
8225Mon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8226
0700dfa1
RM
8227 * Makerules (install-lib): Filter out %_pic.a; install only the
8228 linked shared objects.
8229
cb2f05ed
RM
8230 * locale/Makefile (aux): Add SYS_libc.
8231 * locale/SYS_libc.c: New file.
b3a59f40 8232 * libc-symbols.h [! ASSEMBLER] (_): New macro.
cb2f05ed
RM
8233
8234 * configure.in (libc_cv_asm_set_directive): Link program into
8235 conftest instead of letting it default to a.out.
8236
d17e960c
RM
8237 * elf/Makefile (install-others): Add missing slash.
8238
8239 * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8240 won't search LD_LIBRARY_PATH.
8241
deab9dea
RM
8242 * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8243 * configure.in: Grok arg --enable-libio.
8244 ($stdio = libio): Define USE_IN_LIBIO.
8245 * config.h.in (USE_IN_LIBIO): Add #undef.
8246 * config.make.in (stdio): New variable, set by configure.
8247 * Makeconfig (stdio): New variable.
8248 * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8249 stdio/stdio.h.
8250 * stdio-common/Makefile: New file.
8251 * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8252 * stdio/_itoa.c: Moved to stdio-common.
8253 * stdio/_itoa.h: Moved to stdio-common.
8254 * stdio/asprintf.c: Moved to stdio-common.
8255 * stdio/bug1.c: Moved to stdio-common.
8256 * stdio/bug1.input: Moved to stdio-common.
8257 * stdio/bug2.c: Moved to stdio-common.
8258 * stdio/bug3.c: Moved to stdio-common.
8259 * stdio/bug4.c: Moved to stdio-common.
8260 * stdio/bug5.c: Moved to stdio-common.
8261 * stdio/bug6.c: Moved to stdio-common.
8262 * stdio/bug6.input: Moved to stdio-common.
8263 * stdio/bug7.c: Moved to stdio-common.
8264 * stdio/dprintf.c: Moved to stdio-common.
8265 * stdio/errnobug.c: Moved to stdio-common.
8266 * stdio/getline.c: Moved to stdio-common.
8267 * stdio/getw.c: Moved to stdio-common.
8268 * stdio/perror.c: Moved to stdio-common.
8269 * stdio/printf-parse.h: Moved to stdio-common.
8270 * stdio/printf-prs.c: Moved to stdio-common.
8271 * stdio/printf.c: Moved to stdio-common.
8272 * stdio/printf.h: Moved to stdio-common.
8273 * stdio/printf_fp.c: Moved to stdio-common.
8274 * stdio/psignal.c: Moved to stdio-common.
8275 * stdio/putw.c: Moved to stdio-common.
8276 * stdio/reg-printf.c: Moved to stdio-common.
8277 * stdio/scanf.c: Moved to stdio-common.
8278 * stdio/snprintf.c: Moved to stdio-common.
8279 * stdio/sprintf.c: Moved to stdio-common.
8280 * stdio/sscanf.c: Moved to stdio-common.
8281 * stdio/tempnam.c: Moved to stdio-common.
8282 * stdio/temptest.c: Moved to stdio-common.
8283 * stdio/test-fseek.c: Moved to stdio-common.
8284 * stdio/test-fwrite.c: Moved to stdio-common.
8285 * stdio/test-popen.c: Moved to stdio-common.
8286 * stdio/test_rdwr.c: Moved to stdio-common.
8287 * stdio/tmpfile.c: Moved to stdio-common.
8288 * stdio/tmpnam.c: Moved to stdio-common.
8289 * stdio/tst-fileno.c: Moved to stdio-common.
8290 * stdio/tst-printf.c: Moved to stdio-common.
8291 * stdio/tstgetln.c: Moved to stdio-common.
8292 * stdio/tstgetln.input: Moved to stdio-common.
8293 * stdio/tstscanf.c: Moved to stdio-common.
8294 * stdio/tstscanf.input: Moved to stdio-common.
8295 * stdio/vfprintf.c: Moved to stdio-common.
8296 * stdio/vfscanf.c: Moved to stdio-common.
8297 * stdio/vprintf.c: Moved to stdio-common.
8298 * stdio/xbug.c: Moved to stdio-common.
8299 * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8300 stdio-common instead of stdio.
8301 * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8302 * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8303 function.
8304 * stdio-common/dprintf.c: Likewise.
8305 * stdio-common/printf.c: Likewise.
8306 * stdio-common/scanf.c: Likewise.
8307 * stdio-common/snprintf.c: Likewise.
8308 * stdio-common/sprintf.c: Likewise.
8309 * stdio-common/sscanf.c: Likewise.
8310 * stdio-common/vprintf.c: Likewise.
8311
8312 * Makerules: Include $(+depfiles) directly instead of generating
8313 depend-$(subdir).
8314 (depend-$(subdir)): Target removed.
8315 (common-clean): Don't remove depend-$(subdir).
8316
32a392b6
RM
8317 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8318 (config-LDFLAGS): Variable removed.
8319
924b9ff6
RM
8320 * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8321 * sysdeps/mach/hurd/bind.c: Likewise.
8322 * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8323 calling convention.
8324
8325 * hurd/hurdexec.c: Undo last change (10 Oct 95).
8326
6cab5056
RM
8327Sun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8328
2948fc64
RM
8329 * hurd/hurd/lookup.h: New file.
8330 * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8331 (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8332 __hurd_file_name_split): Rewritten to take callback functions for
8333 using any needed init or dtable port, instead of passing in crdir
86d2c878 8334 and cwdir ports.
2948fc64
RM
8335 (__file_name_lookup, __file_name_split): Use new calling
8336 convention; pass _hurd_ports_use and __getdport as the callback
86d2c878 8337 functions.
2948fc64
RM
8338
8339 * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8340 of __hurd_file_name_lookup.
8341 * sysdeps/mach/hurd/chdir.c: Likewise.
8342 * sysdeps/mach/hurd/fchdir.c: Likewise.
8343 * hurd/fchroot.c: Likewise.
8344
6cab5056
RM
8345 * stdlib/Makefile (mpn-found): Don't omit %.s.
8346 (mpn-copy-sysdep): Omit files in nonexistent directories.
8347 (copy-mpn): Commit files to CVS.
8348 * stdlib/gen-mpn-copy (translations): Update translations for GMP
8349 1.906.7.
8350
8351 * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8352
8f5ca04b
RM
8353Sat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8354
8355 * malloc/malloc.c (_malloc_internal): Performance fix. Move
8356 if statement out of loop.
8357
8358 * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite. Much faster
8359 implementation using GMP functions. Contributed by
8360 Torbjorn Granlund and Ulrich Drepper.
8361
8362 * stdio/test_rdwr.c: Include <errno.h>.
8363
8364 * sysdeps/i386/i586/Implies: New file.
8365
8366 New highly optimized string functions for i[345]86.
8367 * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8368 * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8369 * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8370 * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8371 * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8372 * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8373 * sysdeps/i386/i586/strlen.S: New file.
8374 * sysdeps/i386/memchr.c: Removed. There is now an assembler version.
8375
8376 * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8377 not correspond to used values.
8378
8379 * sysdeps/unix/sysv/linux/nfs/nfs.h: New file. Simply a wrapper
8380 around a kernel header file.
8381 * sysdeps/unix/sysv/linux/Dist: Add it.
8382 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8383 Likewise.
8384
8385 * sysdeps/unix/sysv/linux/local_lim.h: Rewrite. Instead of
8386 defining ourself we use a kernel header file.
8387
8388 * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8389 call handler for i586.
8390
8391 * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8392
6cab5056
RM
8393Thu Oct 12 15:45:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8394
8395 * hurd/hurd.h (file_name_lookup_under): Declare it.
8396 * hurd/Makefile (headers): Add hurd/lookup.h.
8397
8398 * hurd/hurdinit.c (_hurd_ports_use): New function.
8399 * hurd/hurd.h (_hurd_ports_use): Declare it.
8400 (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8401 hurd_file_name_lookup_retry): Remove these decls.
8402 * hurd/Makefile (routines): Remove invoke-trans.
8403
db65048b
RM
8404Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8405
5d82cf5c
RM
8406 * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8407 apply R_386_PC32 reloc.
8408
db65048b
RM
8409 * Makeconfig (config-LDFLAGS): Add missing slash.
8410
8411 * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8412 update_waiter if profiling was enabled in the parent.
8413
8414 * csu/initfini.c: Don't pass -f flag to cp.
8415
8e3cc80f
RM
8416Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8417
8418 * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8419 (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8420 * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8421 (link-libc): Pass -rpath and -rpath-link options.
8422
8423 * MakeTAGS (all-dirs): Omit CVS directories.
8424 Specify vpath directives to find source files in $(all-dirs).
8425 (sources, headers): Append sources and headers from $(all-dist) to
86d2c878 8426 these.
8e3cc80f
RM
8427 (all-dist): Filter them out of this.
8428 (all-headers, all-sources): Use $(shell find ...) instead of
8429 $(wildcard ...).
8430
8431 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8432 -rpath-link.
8433
8434 * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8435
8436 * elf/Makefile (install-others): Add missing $.
8437
b122c703
RM
8438Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8439
8e3cc80f
RM
8440 * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8441
b122c703
RM
8442 * Makeconfig (config-LDFLAGS): Define to
8443 -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8444 (rtld-installed-name): New variable.
8445 * elf/Makefile (install-lib): Variable removed.
8446 (install-others): Define this instead, to
86d2c878 8447 $(libdir)(rtld-installed-name).
b122c703
RM
8448 ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8449
8450 * elf/ldd.sh.in: New file.
8451 * elf/Makefile (distribute): Add ldd.sh.in.
8452 (install-bin): Add ldd.
8453 ($(objpfx)ldd: ldd.sh.in): New rule.
8454
8455 * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8456 * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8457 Translate some Mach errors to Hurd errors.
8458
8459 * elf/rtld.c (dl_main): Under --list, print msg if executable is
8460 statically linked.
8461
8462 * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8463 table processing.
8464
8465Sat Oct 7 01:25:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8466
8467 * sysdeps/stub/machine-gmon.h: Add #error.
8468
8469Fri Oct 6 01:49:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8470
8471 * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8472 examine it.
8473
80fd7387
RM
8474Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
8475
8476 Rewrite mktime from scratch for performance, and for correctness
8477 in the presence of leap seconds.
8478
8479 * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8480 New functions.
8481 (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8482 TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8483 <limits.h>, <stdlib.h>: New #includes.
8484 (main): Support tests with given broken-down value; support benchmarks.
8485 (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8486 do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8487 <ctype.h>): Remove.
8488
8489 * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8490 * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8491
8492 * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8493 time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
86d2c878 8494
80fd7387
RM
8495 * time/offtime.c (__offtime): Remove useless assignment
8496 `tp->tm_isdst = -1'.
8497
8498 * manual/maint.texi: Update credits.
8499
8500Fri Oct 6 00:28:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8501
8502 * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8503 * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8504 * sysdeps/unix/sysv/linux/readv.c: File removed.
8505 * sysdeps/unix/sysv/linux/writev.c: File removed.
8506 * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8507
8508 * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8509 set it to $unix_syscall instead of $unix_function.
8510
6a76c115
RM
8511Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8512
8513 * elf/rtld.c (dl_main): Grok --list flag.
8514 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8515
5f770861
RM
8516Wed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8517
6a76c115
RM
8518 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8519 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8520 * elf/link.h (_dl_sysdep_message): Declare it.
8521
57aefafe
RM
8522 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8523 the list.
8524
8525 * time/northamerica: Corrections to Canada data from ADO 95i.
8526
8527 * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8528 unconditionally. In socket subdir, append sys/socketcall.h; in
8529 time subdir, append sys/timex.h.
8530 (config-LDFLAGS): New variable.
8531 * sysdeps/unix/sysv/linux/Dist: New file.
8532 * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8533
5f770861
RM
8534 * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8535
8536 * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8537
41cfadd6
RM
8538Sat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8539
879bf2e6
RM
8540 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8541 kernel with args on stack, point _dl_hurd_data at zero data
8542 instead of garbage. When ld.so run as program, grok args
8543 -LIB=MEMOBJ and pre-load shared object files found in memory
8544 objects loaded by the boot loader.
8545
8546 * elf/link.h (struct link_map): New member `l_entry'.
8547 (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8548 * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8549 last arg ENTRY_POINT. Store the entry point location in the
8550 `l_entry' member of the new map.
8551 * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8552 _dl_map_object. When run as program, set *USER_ENTRY to L->l_entry.
8553 * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8554 _dl_map_object.
8555
41cfadd6
RM
8556 * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8557
8558 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8559 restore %ebx by hand for personality syscall.
8560 GCC cannot deal with spilling the dedicated GOT register.
8561
8562 * misc/Makefile (routines): Add mntent, which was somehow omitted.
8563
8564Fri Sep 29 15:07:10 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8565
8566 * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8567 Change name of field `mode' in `struct timex' to `modes'.
8568 Linux-1.3.28 updates this name according to RFC 1489.
8569
24906b43
RM
8570Thu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8571
8572 Merge new message handling code from GNU gettext, by Drepper.
8573 * intl: New directory.
8574 * Makefile (subdirs): Add intl.
8575
8576 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8577 USER_ENTRY instead of storing it on our stack.
8578
8579 * elf/rtld.c (rtld_command): Variable removed.
8580 (_dl_skip_args): New variable.
8581 (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8582 If the link_map for the executable itself is not first in the chain,
8583 make it so.
8584 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8585 count of args to skip.
8586
8587Thu Sep 28 09:20:04 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8588
8589 * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
86d2c878
RM
8590 leading zeroes.
8591
ea03559a
RM
8592Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8593
3ec41e03
RM
8594 * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8595 (getcwd): Define as weak alias.
8596 * sysdeps/posix/getcwd.c: Likewise.
8597 * sysdeps/stub/getcwd.c: Likewise.
8598 * posix/unistd.h: Declare __getcwd.
8599
8600 * string/string.h: Declare __strcasecmp.
8601 * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8602 strcasecmp.
8603 (strcasecmp): Define as weak alias.
8604
8605 * string/string.h: Declare __stpcpy.
8606 * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8607 (stpcpy): Define as weak alias.
8608
f94f8067
RM
8609 * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8610
3f33a4ce
RM
8611 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8612 Don't use `type' for arg name, since we are using it as a keyword
86d2c878 8613 in the rhs.
3f33a4ce
RM
8614
8615 * sysdeps/unix/configure.in: Check for syscalls getpriority,
8616 setpriority, getrlimit, setrlimit.
8617
8618 * sysdeps/posix/truncate.c: Include fcntl.h.
8619
8620 * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8621
8622 * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8623 use new stub_warning syntax.
8624 * sysdeps/stub/setpriority.c: Likewise.
8625 * sysdeps/stub/__longjmp.c: Likewise.
8626 * sysdeps/stub/_exit.c: Likewise.
8627 * sysdeps/stub/accept.c: Likewise.
8628 * sysdeps/stub/acos.c: Likewise.
8629 * sysdeps/stub/alarm.c: Likewise.
8630 * sysdeps/stub/asin.c: Likewise.
8631 * sysdeps/stub/atan2.c: Likewise.
8632 * sysdeps/stub/bind.c: Likewise.
8633 * sysdeps/stub/cbrt.c: Likewise.
8634 * sysdeps/stub/chroot.c: Likewise.
8635 * sysdeps/stub/closedir.c: Likewise.
8636 * sysdeps/stub/connect.c: Likewise.
8637 * sysdeps/stub/cos.c: Likewise.
8638 * sysdeps/stub/cosh.c: Likewise.
8639 * sysdeps/stub/ctermid.c: Likewise.
8640 * sysdeps/stub/cuserid.c: Likewise.
8641 * sysdeps/stub/defs.c: Likewise.
8642 * sysdeps/stub/exp.c: Likewise.
8643 * sysdeps/stub/fmod.c: Likewise.
8644 * sysdeps/stub/frexp.c: Likewise.
8645 * sysdeps/stub/fsync.c: Likewise.
8646 * sysdeps/stub/getcwd.c: Likewise.
8647 * sysdeps/stub/getenv.c: Likewise.
8648 * sysdeps/stub/gethostid.c: Likewise.
8649 * sysdeps/stub/getlogin.c: Likewise.
8650 * sysdeps/stub/getpeername.c: Likewise.
8651 * sysdeps/stub/getrlimit.c: Likewise.
8652 * sysdeps/stub/getsockname.c: Likewise.
8653 * sysdeps/stub/getsockopt.c: Likewise.
8654 * sysdeps/stub/listen.c: Likewise.
8655 * sysdeps/stub/log.c: Likewise.
8656 * sysdeps/stub/log10.c: Likewise.
8657 * sysdeps/stub/mkfifo.c: Likewise.
8658 * sysdeps/stub/morecore.c: Likewise.
8659 * sysdeps/stub/nice.c: Likewise.
8660 * sysdeps/stub/nlist.c: Likewise.
8661 * sysdeps/stub/opendir.c: Likewise.
8662 * sysdeps/stub/pipestream.c: Likewise.
8663 * sysdeps/stub/ptrace.c: Likewise.
8664 * sysdeps/stub/putenv.c: Likewise.
8665 * sysdeps/stub/readdir.c: Likewise.
8666 * sysdeps/stub/reboot.c: Likewise.
8667 * sysdeps/stub/recv.c: Likewise.
8668 * sysdeps/stub/recvfrom.c: Likewise.
8669 * sysdeps/stub/rename.c: Likewise.
8670 * sysdeps/stub/rewinddir.c: Likewise.
8671 * sysdeps/stub/seekdir.c: Likewise.
8672 * sysdeps/stub/send.c: Likewise.
8673 * sysdeps/stub/sendto.c: Likewise.
8674 * sysdeps/stub/setegid.c: Likewise.
8675 * sysdeps/stub/seteuid.c: Likewise.
8676 * sysdeps/stub/setgroups.c: Likewise.
8677 * sysdeps/stub/sethostid.c: Likewise.
8678 * sysdeps/stub/sethostname.c: Likewise.
8679 * sysdeps/stub/setjmp.c: Likewise.
8680 * sysdeps/stub/setrlimit.c: Likewise.
8681 * sysdeps/stub/setsockopt.c: Likewise.
8682 * sysdeps/stub/shutdown.c: Likewise.
8683 * sysdeps/stub/signal.c: Likewise.
8684 * sysdeps/stub/sigsuspend.c: Likewise.
8685 * sysdeps/stub/sin.c: Likewise.
8686 * sysdeps/stub/sinh.c: Likewise.
8687 * sysdeps/stub/socket.c: Likewise.
8688 * sysdeps/stub/socketpair.c: Likewise.
8689 * sysdeps/stub/sqrt.c: Likewise.
8690 * sysdeps/stub/sync.c: Likewise.
3f33a4ce
RM
8691 * sysdeps/stub/system.c: Likewise.
8692 * sysdeps/stub/tan.c: Likewise.
8693 * sysdeps/stub/tanh.c: Likewise.
8694 * sysdeps/stub/tcdrain.c: Likewise.
8695 * sysdeps/stub/tcflow.c: Likewise.
8696 * sysdeps/stub/tcgetpgrp.c: Likewise.
8697 * sysdeps/stub/tcsendbrk.c: Likewise.
8698 * sysdeps/stub/tcsetattr.c: Likewise.
8699 * sysdeps/stub/tcsetpgrp.c: Likewise.
8700 * sysdeps/stub/telldir.c: Likewise.
8701 * sysdeps/stub/tempname.c: Likewise.
8702 * sysdeps/stub/ttyname.c: Likewise.
8703 * sysdeps/stub/ttyname_r.c: Likewise.
8704 * sysdeps/stub/utime.c: Likewise.
8705
8706 * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8707
8708 * time/mktime.c (localtime_r): Use 0 instead of NULL.
8709
ea03559a
RM
8710 * config.make.in (AS): New variable; set to `$(CC) -c'.
8711
8712 * posix/unistd.h [__USE_BSD]: Declare profil.
8713
8714 * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8715 of _dl_map_object.
8716 (_dl_map_object): Call it.
8717 * elf/link.h (_dl_map_object_from_fd): Declare it.
8718
11c981a9
RM
8719Tue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8720
c709e372
RM
8721 * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8722 gettext code.
8723
8724 * sysdeps/unix/sysv/linux/sys/param.h: New file.
8725 * sysdeps/unix/sysv/linux/Subdirs: File removed.
8726
8727 * libc-symbols.h (_LIBC): Define to 1, not just empty.
8728
11c981a9
RM
8729 * gmon: New directory of profiling code, incorporated from
8730 4.4BSD-Lite and modified.
8731 * sysdeps/i386/machine-gmon.h: New file.
8732 * sysdeps/stub/machine-gmon.h: New file.
8733 * sysdeps/mach/hurd/profil.c: New file.
8734 * sysdeps/stub/profil.c: New file.
8735 * sysdeps/unix/bsd/profil.S: New file.
8736 * Makefile (subdirs): Add gmon.
8737 * csu/gmon-start.c: New file.
8738 * csu/Makefile (extra-objs): Add gmon-start.o,
8739 g$(start-installed-name).
8740 (install-lib, omit-deps): Add g$(start-installed-name).
8741 ($(objpfx)g$(start-installed-name)): New target.
8742
969705cc
RM
8743Fri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8744
8745 * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8746 time being.
8747
0324daa0
RM
8748Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8749
969705cc
RM
8750 * sysdeps/unix/configure.in: Check for `profil' syscall.
8751
c12d1df0
RM
8752 * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8753 removed.
8754
a5570f62
RM
8755 * time/africa, time/asia, time/europe, time/northamerica,
8756 time/yearistype: New data from ADO 95h.
8757
193bd2ce
RM
8758 * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8759 $(notdir $*), so it wins for the explicit libc.so rule as well as the
86d2c878 8760 pattern rule.
10b40b11 8761
0324daa0
RM
8762 * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8763
8764 * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8765 __libc_global_ctors.
8766 * sysdeps/i386/init-first.c: Rewritten.
8767 * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8768 * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8769
8770 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8771 ___fpu_control.
8772
8773 * Makerules (build-shlib): New canned sequence, broken out of
8774 lib%.so rule. Link in $^ instead of just $<.
8775 (lib%.so: lib%_pic.a): Use it.
8776 (libc.so): New target; use $(build-shlib) for cmds, but also depend
8777 on soinit.so first and sofini.so last.
8778
8779 * elf/soinit.c: New file.
8780 * elf/sofini.c: New file.
8781 * elf/Makefile (distribute): Add soinit.c and sofini.c.
8782 (extra-objs): Add soinit.so and sofini.so.
8783
8784 * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8785 * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8786
8787 * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8788 dynamically allocate buffers.
8789
8790 * Makerules (install-lib-nosubdir): Make this, rather than
8791 install-no-libc.a, depend on the installed shared libraries.
8792
60092701
RM
8793Wed Sep 20 18:02:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8794
8795 * locale/locale.c: Include errno.h.
8796 * locale/localedef.c: Likewise.
8797
8798Tue Sep 19 00:02:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8799
8800 * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8801 (parent-mostlyclean): Remove all flavors of the parent library.
8802
8803 * misc/mntent.c (getmntent): Skip multiple whitespace chars
8804 between fields.
8805
8806 * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8807 EXEC_STACK_ARGS flag, get args from stack.
8808 If args on stack but have info from RPC, relocate args on stack to make
8809 space for struct hurd_startup_data.
8810
bf40c56f
RM
8811Mon Sep 18 15:06:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8812
60092701
RM
8813 * elf/dl-object.c: Include errno.h.
8814 * posix/execvp.c: Likewise.
8815 * dirent/scandir.c: Likewise.
8816 * sysdeps/posix/system.c: Likewise.
8817 * sysdeps/generic/setenv.c: Likewise.
8818 * stdlib/msort.c: Likewise.
8819 * stdio/memstream.c: Likewise.
8820 * stdio/fclose.c: Likewise.
8821 * stdio/getdelim.c: Likewise.
8822 * stdio/setvbuf.c: Likewise.
8823 * sysdeps/ieee754/ldexp.c: Likewise.
8824 * locale/locfile-parse.c: Likewise.
8825
8826 * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8827 * stdlib/seed48_r.c: Likewise.
8828 * stdlib/srand48_r.c: Likewise.
8829 * stdlib/jrand48_r.c: Likewise.
8830 * stdlib/nrand48_r.c: Likewise.
8831
bf40c56f
RM
8832 * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8833 to be useless.
8834
c2216480
RM
8835Mon Sep 18 12:39:22 1995 Paul Eggert <eggert@twinsun.com>
8836
8837 * mktime.c (localtime_r): Add substitute if the system doesn't
8838 provide one.
8839
8840Mon Sep 18 14:39:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8841
8842 * time/gmtime.c (gmtime_r): Define as weak alias.
8843 * time/localtime.c (localtime_r): Define as weak alias.
8844 * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8845
8846 * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8847 #undef __need_Emath after including errnos.h.
8848 [_ERRNO_H]: Protect decls with this.
8849
8850Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
8851
8852 Fix mktime so that it does not write over localtime's returned value.
8853 * localtime.c (__localtime_r): New function, with extra arg
8854 specifying where to store result.
8855 (localtime): Use it.
8856 (_tmbuf): New var.
8857 * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8858 * mktime.c (__mktime_internal): Conversion function is now
8859 __localtime_r style, not localtime style.
8860 (mktime): Pass __localtime_r, not localtime.
8861 * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8862 * offtime.c (__offtime): New arg specifying where to store result.
8863 * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8864 (__gmtime_r, __localtime_r): New decls.
8865
8866 * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8867 <stdlib.h>, <string.h>: Remove includes.
8868 <errno.h>: Add include.
8869
8870 * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8871 Renamed from _mktime_internal to avoid namespace pollution.
8872
8873 * time/gmtime.c: Clear tm_isdst.
8874
aa910907
RM
8875Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8876
c2216480
RM
8877 * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8878 * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8879 size_t.
8880
8881 * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8882 __file_pathconf.
8883 * sysdeps/mach/hurd/pathconf.c: Likewise.
8884
aa910907
RM
8885 * Makefile (subdirs): Add sysvipc.
8886
8887 * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8888 * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8889
e537c55e
RM
8890Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8891
aa910907
RM
8892 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8893 __file_set_size instead of __file_truncate.
8894
8895 * features.h (__USE_REENTRANT): New macro.
8896
e537c55e
RM
8897 * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8898 __file_truncate.
8899 * sysdeps/mach/hurd/ftruncate.c: Likewise.
8900
8901 * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8902
60478656
RM
8903Sat Sep 16 17:47:19 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8904
8905 * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8906
8907 * misc/efgvt_r.c: New file. Reentrant version of [efg]cvt functions.
8908 * misc/efgcvt.c: Rewrite to use reentrant functions.
60092701 8909 * misc/search.h: Many decls for hsearch functions.
60478656
RM
8910 * misc/hsearch_r.c: New file. Reentrant version of functions from
8911 hsearch family.
8912 * misc/hsearch.c, misc/tsearch.c: New files.
8913 * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8914
8915 * posix/unistd.h (ttyname_r): Add prototype for new function.
8916
8917 * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8918 stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8919 stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8920 stdlib/drand48-iter.c: New files implementing reentrant versions
8921 of functions from drand48 family.
8922 * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8923 stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8924 stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8925 Rewrite to use reentrant versions.
8926 * stdlib/a64l.c, stdlib/l64a.c: New files. Implement a64l()
8927 and l64a() functions from SysV library.
8928 * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8929 nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8930 drand48-iter, a64l, l64a.
8931 * stdlib/stdlib.h: Declare them.
8932
8933 * stdlib/random_r.c: New file. Reentrant version of functions
8934 from random family.
8935 * stdlib/stdlib.h: Declare them.
8936 * stdlib/random.c: Rewrite to use reentrant functions.
8937
8938 * string/strerror_r.c: New file. Reentrant version.
8939 * string/strerror.c: Change for new _strerror_internal form.
8940 * string/Makefile (routines): Add strerror_r.
8941
8942 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8943 value of user_entry to `_start'.
8944 Close AT_ENTRY case with `break'.
8945
8946 * sysdeps/generic/strstr.c: New and much faster implementation
8947 by Stephen R. van den Berg.
8948
8949 * sysdeps/generic/_strerror.c: _strerror_internal now takes
8950 three argument and has and explicit buffer length.
8951 * sysdeps/mach/_strerror.c: Change for new interface with three
8952 arguments.
8953 * stdio/perror.c, stdio/vfprintf.c: Callers changed.
86d2c878 8954
60478656
RM
8955 * sysdeps/mach/hurd/ttyname_r.c: New file. Reentrant version.
8956 * sysdeps/posix/ttyname_r.c: New file. Reentrant version.
8957 * sysdeps/stub/ttyname_r: New file. Define as dummy function.
8958
8959 * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
8960 (utimes): First parameter to utime must be file, not path.
8961
8962 * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
8963 _SC_CLK_TCK and return it when available.
8964 Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
8965 available.
8966 Add case for _SC_2_LOCALEDEF which is now available.
8967
8968 * posix/sys/types.h [__USE_SVID] (key_t): New type.
8969 * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
8970 sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
8971 sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
8972 sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
8973 sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
8974 sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
8975 sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
8976 sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
8977 Add implementation of System V IPC.
e11c3949 8978
9fd18b6c
RM
8979Fri Sep 15 21:34:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8980
8981 * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
8982 (write_corefile): Call __crash_dump_task instead of __core_dump_task.
8983 Use envariable CRASHSERVER instead of CORESERVER.
8984 * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
8985
7a770247
RM
8986Tue Sep 12 14:30:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8987
8988 * misc/mntent.c: New file.
8989 * misc/mntent.h: New file.
8990 * misc/Makefile (headers): Added mntent.h.
8991 (routines): Added mntent.
8992 * misc/fstab.c: Rewritten using mntent functions.
8993
8994Mon Sep 11 14:00:14 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
8995
8996 * posix/glob.c (glob): Comment fix.
8997
c64908b0
RM
8998Fri Sep 8 16:25:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8999
f87cd5a2
RM
9000 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
9001 symbols weak.
9002
c64908b0
RM
9003 * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
9004 not empty.
9005
d2f5be2a
UD
9006Fri Sep 8 16:32:12 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
9007
9008 * sysdeps/unix/sysv/linux/Implies,
9009 sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
9010 sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
9011 sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
9012 sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
9013 sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
9014 sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
9015 sysdeps/unix/sysv/linux/gethostname.C,
9016 sysdeps/unix/sysv/linux/getpeername.S,
9017 sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
9018 sysdeps/unix/sysv/linux/getsockname.S,
9019 sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
9020 sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
9021 sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
9022 sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
9023 sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
9024 sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
9025 sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
9026 sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
9027 sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
9028 sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
9029 sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
9030 sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
9031 sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
9032 sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
9033 sysdeps/unix/sysv/linux/settimeofday.S,
9034 sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
9035 sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
9036 sysdeps/unix/sysv/linux/shutdown.S,
9037 sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
9038 sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
9039 sysdeps/unix/sysv/linux/sockaddrcom.h,
9040 sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
9041 sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
9042 sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
9043 sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
9044 sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
9045 sysdeps/unix/sysv/linux/tcsetattr.c,
9046 sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
9047 sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
9048 sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
9049 sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
9050 sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
9051 New Linux/ELF specific, architecture independent files.
c64908b0 9052 * sysdeps/unix/sysv/linux/i386/Dist,
d2f5be2a
UD
9053 sysdeps/unix/sysv/linux/i386/Makefile,
9054 sysdeps/unix/sysv/linux/i386/brk.S,
9055 sysdeps/unix/sysv/linux/i386/fcntlbits.h,
9056 sysdeps/unix/sysv/linux/i386/fpu_control.c,
9057 sysdeps/unix/sysv/linux/i386/fpu_control.h,
9058 sysdeps/unix/sysv/linux/i386/fstat.S,
9059 sysdeps/unix/sysv/linux/i386/fxstat.S,
9060 sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
9061 sysdeps/unix/sysv/linux/i386/init-first.S,
9062 sysdeps/unix/sysv/linux/i386/ipc.S,
9063 sysdeps/unix/sysv/linux/i386/lstat.S,
9064 sysdeps/unix/sysv/linux/i386/lxstat.S,
9065 sysdeps/unix/sysv/linux/i386/mknod.S,
9066 sysdeps/unix/sysv/linux/i386/mmap.S,
9067 sysdeps/unix/sysv/linux/i386/sbrk.S,
9068 sysdeps/unix/sysv/linux/i386/setfpucw.c,
9069 sysdeps/unix/sysv/linux/i386/signum.h,
9070 sysdeps/unix/sysv/linux/i386/socket.S,
9071 sysdeps/unix/sysv/linux/i386/stat.S,
9072 sysdeps/unix/sysv/linux/i386/syscall.S,
9073 sysdeps/unix/sysv/linux/i386/sysdep.S,
9074 sysdeps/unix/sysv/linux/i386/sysdep.h,
9075 sysdeps/unix/sysv/linux/i386/xmknod.S,
9076 sysdeps/unix/sysv/linux/i386/xstat.S:
9077 New Linux i386/ELF specific files.
c64908b0 9078 * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
d2f5be2a
UD
9079 sysdeps/unix/sysv/linux/sys/mman.h,
9080 sysdeps/unix/sysv/linux/sys/msq_buf.h,
9081 sysdeps/unix/sysv/linux/sys/sem_buf.h,
9082 sysdeps/unix/sysv/linux/sys/shm_buf.h,
9083 sysdeps/unix/sysv/linux/sys/socketcall.h,
9084 sysdeps/unix/sysv/linux/sys/timex.h:
9085 New Linux/ELF specific, architecture independent header files.
c64908b0 9086 * sysdeps/unix/sysv/sysv4/linux: Tree removed.
86d2c878 9087
c64908b0
RM
9088Thu Sep 7 17:05:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9089
9090 * stdlib/msort.c (msort_with_tmp): Fixed alignment test. B1 and
e11c3949 9091 B2 are always congruent; just test that B1 is aligned.
d2f5be2a 9092
1571a016
RM
9093Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9094
9095 * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
9096 than WEAK_VALUE.a to see if a weak value has been set. A valid
9097 weak value may set WEAK_VALUE.a to 0.
9098
44c8d1a2
RM
9099Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9100
f405bed5
RM
9101 * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
9102 jmp_buf.
9103
44c8d1a2
RM
9104 * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
9105 for a warning on references to that specific symbol, not the
9106 entire containing object file.
9107 (stub_warning): Pass symbol name to link_warning.
9108 * stdio/gets.c: Pass function name in link_warning invocation.
9109
9110 * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
9111 MACH_SEND_INTERRUPTED. That indicates interrupt_operation was
9112 sent, but failed.
9113
9114 * stdlib/msort.c: Include memcopy.h.
9115 (msort_with_tmp): If operating on aligned op_t words, use direct word
9116 fetches and stores.
9117
9118 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
9119 missing backslash.
9120
e3726b05
RM
9121Thu Aug 31 13:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9122
9123 * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
9124
9125 Rewrote i386 setjmp code in assembly, so as to avoid fighting
9126 with the compiler for the register values.
9127 * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
9128 * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
9129 * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
9130 [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
9131 (_JMPBUF_UNWINDS): Use JB_SP.
9132
a993273c
RM
9133Wed Aug 30 16:44:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9134
9135 * sysdeps/mach/hurd/select.c: Deal with out of order replies
9136 during io_select request loop.
9137 Handle MACH_RCV_TIMED_OUT error from requests.
9138 * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
9139 distinguish MACH_RCV_TIMED_OUT from EINTR.
9140
9141 * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
9142 slash.
9143 (glob_in_dir): Don't allocate extra byte here.
9144
9145 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9146 Decrement the DT_RELSZ value for the skipped reloc.
9147
18926cf4
RM
9148Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9149
9150 * time/australasia: Updated data from ADO.
9151
9152Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9153
9154 * dirent/dirent.h: Don't include <dirstream.h>.
9155 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9156
7752137a
RM
9157Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9158
9e865ade
RM
9159 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
9160 instead of `DIR'.
9161 * sysdeps/unix/bsd/dirstream.h: Likewise.
9162 * sysdeps/stub/dirstream.h: Likewise.
9163 * sysdeps/unix/dirstream.h: Likewise.
9164 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
9165 * sysdeps/mach/hurd/seekdir.c: Likewise.
9166 * sysdeps/mach/hurd/opendir.c: Likewise.
9167 * sysdeps/mach/hurd/closedir.c: Likewise.
9168 * sysdeps/mach/hurd/readdir.c: Likewise.
9169 * sysdeps/unix/telldir.c: Likewise.
9170 * sysdeps/unix/seekdir.c: Likewise.
9171 * sysdeps/unix/rewinddir.c: Likewise.
9172 * sysdeps/unix/readdir.c: Likewise.
9173 * sysdeps/unix/opendir.c: Likewise.
9174 * sysdeps/unix/closedir.c: Likewise.
9175 * sysdeps/unix/bsd/telldir.c: Likewise.
9176 * sysdeps/unix/bsd/readdir.c: Likewise.
9177 * dirent/Makefile (headers): Remove dirstream.h.
9178 (distribute): Put it here instead.
9179
7752137a
RM
9180 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
9181
9182 * stdio/vfscanf.c (number): Allow field width to inhibit first
9183 digit after base detection.
9184
9185 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
9186 specified by the precision.
9187
9188 * grp/grpread.c (__grpscan): New function.
9189 * grp/grp.h (__grpscan): Declare it.
9190 * grp/getgrgid.c: Use __grpscan.
9191 * grp/getgrnam.c: Likewise.
9192 * pwd/pwdread.c (__pwdscan): New function.
9193 * pwd/pwd.h (__pwdscan): Declare it.
9194 * pwd/getpwnam.c: Use __pwdscan.
9195 * pwd/getpwuid.c: Likewise.
9196
9197Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9198
9199 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
9200 MAP_FILE.
9201
9202 * hurd/thread-cancel.c: Return EINTR when called on self.
9203 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
9204 __data_start.
9205
3cf595e5
RM
9206Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9207
9208 * inet/netdb.h: Moved to resolv.
9209 * inet/Makefile (headers): Remove netdb.h.
9210 * resolv/Makefile (headers): Add netdb.h.
9211 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
9212 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
9213
9214 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9215 resuming the thread.
9216 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9217
9218 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9219
9220Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9221
9222 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9223 relocs, and do nothing. Why the linker generates them we may
86d2c878 9224 never know.
3cf595e5 9225
3fe9de0d
RM
9226Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9227
a4bb2589
RM
9228 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9229 `subdirs' variable.
9230
3cf595e5 9231 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3fe9de0d
RM
9232 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9233 "intr-msg.h" for special syscall code, instead of i386-specific asm.
9234 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9235 machine-dependent "intr-msg.h" before mutating thread state to
9236 skip RPC.
9237
9238 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9239 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9240 %ecx.
9241
9242 * Makeconfig (link-libc): New variable; use shared library if
9243 available.
9244 (+link): Use it.
9245
9246 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9247 Instead, declare with `symbol_set_declare'.
86d2c878 9248 (fork): Use symbol_set_* macros for _hurd_fork_locks.
3fe9de0d
RM
9249 Use SS->thread instead of __mach_thread_self (). Suspend all
9250 other threads during task_create and port copying.
9251
191abc51
RM
9252Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9253
9254 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9255
9256Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9257
9258 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9259
9260 * hurd/Makefile (sig): Add intr-msg.
9261
54da5be3
RM
9262Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9263
9264 * hurd/thread-cancel.c: New file.
9265 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9266 rpc_wait case, frob mach_msg args to set timeout on receive.
9267 (_hurdsig_rcv_interrupted_p): Function removed.
9268 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9269 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9270 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9271 * hurd/intr-msg.c: New file.
9272 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9273 (_hurdsig_rcv_interrupted_p): Declaration removed.
9274 (HURD_EINTR_RPC): Macro removed.
9275 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9276 these.
9277 * hurd/intr-rpc.h: New file.
9278 * hurd/intr-rpc.defs: Just import intr-rpc.h.
9279 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9280 (interrupted_reply_port_location): Take new flag arg; only catch
9281 faults if it's set.
9282 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9283 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9284 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
9285 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
9286 callers changed.
9287 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9288 * hurd/Makefile (distribute): Remove intr-rpc.awk.
9289 (sig): Add thread-cancel.
9290 (transform-user-stub, transform-user-stub-output): Variables removed.
9291 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9292 `__hurd_intr_rpc_*' to `__*'.
9293 (_hurd_intr_rpc_mach_msg): New function.
9294 (_hurd_thread_sigstate): Function removed.
9295 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9296 instead of __mach_msg inside HURD_EINTR_RPC macro.
9297
9298 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9299 to take ptrdiff_t arg.
9300
9301 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9302
9303 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9304
9305 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9306 weak_alias): Use `extern' storage class.
9307
76894e2e
RM
9308Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
9309
9310 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9311 port-count parameters to __auth_makeauth.
9312 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9313
9314Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9315
9316 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9317
9318 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9319
9320Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
9321
9322 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9323 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9324 layer socket options.
9325 (IPPROTO_GGP): Delete obsolote protocol.
9326 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9327 (struct ip_mreq): New type.
9328
99a9e88e
RM
9329Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9330
b25c5d66
RM
9331 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9332
9333 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9334 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9335
99a9e88e
RM
9336 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9337 when __stdio_open fails with a code other than ENFILE or EMFILE.
9338
5e98d83c 9339Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507fcb75 9340
5e98d83c
RM
9341 * Makefile (headers): Added gnu-versions.h.
9342
9343Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
9344
9345 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9346 equality, not assignment, to test bitfields.
9347
9348Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9349
9350 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9351 resolve AF_LOCAL addresses.
9352
9353 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9354 can't tell us what an address means, just return a zero-length
9355 buffer instead.
9356 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9357
9358Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9359
9360 * sysdeps/mach/hurd/bind.c (bind): Don't use
9361 file_invoke_translator, as it doesn't work. Instead just lookup
9362 the translated node again, and hope we're not hit by any race
9363 conditions.
507fcb75 9364
958f803f
RM
9365Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9366
b8dc6a10
RM
9367 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9368 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9369 [start-installed-name-rule]: If this is defined, elide rule for
9370 $(objpfx)$(start-installed-name).
99a9e88e
RM
9371 * csu/initfini.c (SECTION): New macro, different definitions for
9372 #ifdef HAVE_ELF and not.
9373 (_init, _fini): Use that macro.
b8dc6a10
RM
9374 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9375 (start-installed-rule, start-installed-name-rule): New variables;
9376 specify crt1.o, created by our own rule.
9377 ($(objpfx)crt1.o): New rule.
9378 * configure.in: Require autoconf 2.4.2 or later. Change all
9379 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9380 prettify some messages.
9381 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9382 sections.
9383 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9384 this case rather than #ifdef HAVE_ELF.
9385 * config.h.in (HAVE_INITFINI): New macro.
99a9e88e 9386 * config.make.in (have-initfini): New variable, set by configure.
b8dc6a10 9387
4e1bac76
RM
9388 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9389 "value computed is not used" warning.
9390
9391 * Makeconfig (+gccwarn): Removed -Wconversion.
9392
9393 * csu/initfini.c (GLOBAL): Macro removed.
9394 (_init, _fini): Always define globally.
9395 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9396
3d61b63c
RM
9397 * asia, backward, europe, leapseconds, southamerica: New data from
9398 ADO's 95e.
9399
9400 * inet/Makefile (routines): Removed inet_addr.
9401 * inet/inet_addr.c: Moved to resolv/ subdirectory.
9402 * resolv/Makefile (routines): Added inet_addr.
9403 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9404 * resolv/gethnamaddr.c: Likewise.
9405 * resolv/getnetbyaddr.c: Likewise.
9406 * resolv/getnetbyname.c: Likewise.
9407 * resolv/getnetent.c: Likewise.
9408 * resolv/getnetnamadr.c: Likewise.
9409 * resolv/herror.c: Likewise.
9410 * resolv/nsap_addr.c: Likewise.
9411 * resolv/res_comp.c: Likewise.
9412 * resolv/res_debug.c: Likewise.
9413 * resolv/res_init.c: Likewise.
9414 * resolv/res_mkquery.c: Likewise.
9415 * resolv/res_query.c: Likewise.
9416 * resolv/res_send.c: Likewise.
9417 * resolv/resolv.h: Likewise.
9418 * resolv/sethostent.c: Likewise.
9419 * resolv/arpa/nameser.h: Likewise.
9420 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9421 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9422 its declarations (and doing so only #ifdef sun!).
99a9e88e 9423 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
3d61b63c
RM
9424
9425 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9426 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9427
958f803f
RM
9428 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9429 if possible.
9430
9431 * mach/shortcut.awk: Emit decls for RPC.
9432
9433 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9434 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9435
9436 * Makerules ($(installed-libcs)): Depend on `lib' (only).
9437
874f1b9b
RM
9438Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9439
ff48a63c
RM
9440 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9441
4356cfd7
RM
9442 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9443
9444 * sysdeps/unix/sysv/ftime.S: New file.
9445
9446 * locale/locfile-parse.c (categories_write): Cast "" to char *.
9447
9448 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9449
9450 * time/strftime.c: Use year modulo 100 for %y.
9451
9452 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9453
9454 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9455 of one, to work around bug in sunos4.1.2 sed.
9456
874f1b9b
RM
9457 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9458 memchr instead of strlen to limit search for NUL by precision.
9459
51813e80
RM
9460Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9461
9462 * sysdeps/posix/pathconf.c: New file.
9463
d7e16e9e
RM
9464Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9465
9466 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9467 before @PLT.
9468 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9469 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9470 * sysdeps/i386/bsd-setjmp.S: Likewise.
9471
9c9022dd
TBB
9472Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9473
9474 * inet/Makefile (routines): Added `ruserpass'.
9475 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9476 client. Modified to remove the fourth arg AACCT. Do nothing for
9477 the `account' and `macdef' keywords. Other incidental changes
9478 because we are not in the FTP source tree.
9479
439d1d45
RM
9480Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9481
9c9022dd
TBB
9482 * sysdeps/stub/init-posix.c: Removed stub warning.
9483
587dbc6f
RM
9484 * Makefile (autoconf-it): Make it executable and unwritable.
9485
9486 * configure.in (sysnames): Under --enable-debug-configure, spew
9487 potential sysnames.
9488
439d1d45
RM
9489 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9490 #ifdef PIC.
9491 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9492 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9493 jump insn.
9494
9495 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9496 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9497 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9498 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
9499 stack. Use JUMPTARGET(syscall_error) in jump insn.
9500
9501 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9502
9503 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9504 ASM_TYPE_DIRECTIVE.
9505 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9506
86d2c878 9507 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
439d1d45
RM
9508 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9509 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9510
439d1d45 9511 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
86d2c878 9512 instead of unix/sysv.
439d1d45
RM
9513 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9514 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9515 to new directory sysdeps/unix/sysv/sysv4/linux.
9516 * sysdeps/unix/sysv/linux: Directory removed.
9517 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9518 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9519 * sysdeps/unix/sysv/linux/i386: Directory removed.
9520
9c9022dd
TBB
9521 Fixes to help Linux, inspired by drepper's work:
9522 * sysdeps/posix/utimes.c: New file.
9523 * sysdeps/generic/getdomain.c: New file.
9524 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9525 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9526 externals _dl_argc, _dl_argc, and _environ.
9527
584de3b9
TBB
9528Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9529
9530 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9531 EOPNOTSUPP as indications that the server has died.
9532 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9533 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9534
ac00263e
JM
9535Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
9536
9537 * strtol.c: Portability changes from Uli Drepper.
9538 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9539
d819080c
RM
9540Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9541
9542 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9543 DATA for the entry SP; DATA[-1] is always the return address
9544 location. In both cthreads and non-cthreads cases, use asm to
9545 force parameters into %eax and %ecx before return, and mutate
9546 DATA[-1] to return to specific asm code to set up the user from
9547 %eax and %ecx.
9548 [PIC] (_init): Caller changed.
9549 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9550 with SP unwound to argument data ptr.
9551
9552Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9553
9554 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9555 when 0x08000000 and up are not mapped.
9556
9557 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9558 before touching it.
9559 (lib%.so): Use -Wl to get -soname to ld.
9560
9561 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9562
9563 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9564
487253ea
RM
9565Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9566
9567 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9568 library's name including $(libprefix) and major version number.
9569
9570 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9571 in place of xcalloc.
9572
9573 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9574 `ifndef', use the $(origin) function to only set these if they are
9575 undefined, and not if they are defined to empty.
9576
9577 * gnu-versions.h: New file.
9578 * features.h (__GNU_LIBRARY__): Increase value to 5.
9579
d6e2f671
RM
9580Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9581
9582 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9583 expression, to avoid gcc's "value computed is not used" warning.
9584
9585 * libc-symbols.h (_elf_set_element): Give the set-element variable
9586 an `unused' attribute.
9587
9588 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9589 __attribute__ ((__const__)).
9590 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9591
9592 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9593 LINK->resource.next->resource.prevp when appropriate, not
9594 LINK->resource.next->thread.prevp!!!
9595
882087b9
RM
9596Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9597
df2a0c93
RM
9598 * configure.in (libc_cv_asm_set_directive): Make sure that the
9599 `.set' directive really worked by linking against a reference to
9600 the alias.
9601
882087b9
RM
9602 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9603 [PIC] (soinit): Renamed to (global) _init.
9604
1a2df358
RM
9605Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9606
882087b9
RM
9607 * malloc/Makefile (gmalloc-routines): Remove valloc.
9608 (dist-routines): Add it here.
9609
9610 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9611 emacs_loser_valloc to inhibit valloc declaration below.
9612
1a2df358
RM
9613 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9614 installation rules.
9615
9616 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9617 it uses the `.type' directive, which is necessary for shared
9618 libraries to work properly.
9619
5bf62f2d
RM
9620Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9621
f2b0f935
RM
9622 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9623 from zero fill.
9624
9625 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9626 if nonzero, don't let *REF satisfy the reference itself.
9627 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9628 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9629 _dl_lookup_symbol.
9630 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9631 R->r_offset to RESOLVE callback.
9632 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9633 satisfy the reference itself if its value equals the reloc's
9634 offset.
9635
9636 * elf/rtld.c (dl_main): Write a newline in fatal msg.
9637
9638 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9639
5bf62f2d
RM
9640 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9641
9642 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9643 and user entry point addresses.
9644
9645 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9646 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9647
9648 * Makerules (install-lib.so): Don't include libc.so.
9649 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9650 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9651 install, depend on the installed $(install-lib.so) files.
9652 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9653
9654 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9655 allocate high addresses to avoid random mappings appearing there.
9656 (mmap): Comment out mask; always pass zero.
9657
9658Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9659
9660 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9661 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9662
9663 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9664 when successful.
9665
9666 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9667 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9668 variables, using the `threadvars' buffer.
9669
9670 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9671 * sysdeps/i386/dl-runtime.c: Likewise.
9672
9673 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9674 _dl_sysdep_fatal call.
9675 (__assert_fail): Likewise.
9676
9677 * locale/Makefile (localedef-modules): Renamed ctype to
9678 locale-ctype so as not to conflict with the object file for
9679 ctype/ctype.c in the build directory.
9680
75598ca6
RM
9681Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9682
9683 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
9684 insists on seeing the following E as part of hex 7FE, and
9685 complaining that is wider than a byte.
9686
ded29119
RM
9687Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9688
9689 * hurd/Makefile (sig): Added thread-self.
9690 * hurd/hurd.h: Declare hurd_thread_self.
9691 * hurd/thread-self.c: New file.
9692
9693Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9694
9695 * elf/rtld.c: Initialize RTLD_MAP.l_type.
9696 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9697 the dynamic linker itself.
5bf62f2d
RM
9698 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9699 lt_interpreter, first undo relocation done during bootstrapping.
ded29119 9700
a1a9d215
RM
9701Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9702
9703 * mach/Makefile (server-interfaces): Removed notify and
9704 device_reply. For shlibs with eager binding, libmachuser.so must
9705 not refer to any functions not defined in libc.
9706
6f6ce652
JM
9707Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
9708
9709 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9710 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
9711
7cc645ed
RM
9712Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9713
9714 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9715 pending signals if the thread is in a critical section. It will
9716 send us a msg when it finishes.
9717
9718 * sysdeps/mach/hurd/pathconf.c: New file.
9719 * sysdeps/mach/hurd/fpathconf.c: New file.
9720
9721 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9722 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9723
a692d003
RM
9724Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9725
9726 * elf/Makefile (ld.so): Use -nostartfiles in addition to
9727 -nostdlib.
9728
3b5a8107
JM
9729Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
9730
9731 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9732 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9733 memchr unless one manually arranges for them to define __STDC__.
9734
a2fe9c76
RM
9735Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9736
9737 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9738 args on stack from kernel.
9739
9740 * posix/Makefile, sysdeps/alpha/Makefile,
9741 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9742 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9743 in the absence of CVS dirs.
9744
9745 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
9746 kernel on the stack properly.
9747
9748 * set-init.c: Never call _init/_fini; just run __libc_subinit.
9749
9750 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9751 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9752
9753 * configure.in: Move defaulting of --with-elf and --with-gnu-*
9754 based on host os outside the AC_CACHE_VAL for the sysdirs
9755 calculation.
9756
9757 * Makeconfig (localedir, nlsdir): New variables.
9758
9759 * values.h: New file.
9760 * Makefile (headers): Add values.h.
9761
9762 * locale/Makefile (distribute): Add error.h.
9763 * locale/localedef.c: Include "error.h".
9764 (main): Use error_message_count instead of warning_cntr.
9765
2b83a2a4
RM
9766Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9767
9768 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9769 * locale/charmap.c: New file.
9770 * locale/collate.c: New file.
9771 * locale/config.h: New file.
9772 * locale/ctype.c: New file.
9773 * locale/ctypedump.c: New file.
9774 * locale/hash.c: New file.
9775 * locale/hash.h: New file.
9776 * locale/iso-4217.def: New file.
9777 * locale/keyword.gperf: New file.
9778 * locale/keyword.h: New file.
9779 * locale/libintl.h: New file.
9780 * locale/locale.c: New file.
9781 * locale/localedef.c: New file.
9782 * locale/localedef.h: New file.
9783 * locale/locfile-lex.c: New file.
9784 * locale/locfile-parse.c: New file.
9785 * locale/messages.c: New file.
9786 * locale/monetary.c: New file.
9787 * locale/numeric.c: New file.
9788 * locale/token.h: New file.
9789
9790 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9791 * posix/Makefile (headers): Add regex.h.
9792 (routines): Add regex.
9793 (gpl2lgpl): Add regex.c and regex.h.
9794
9795Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9796
9797 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9798 instead of hard-coding "/share/locale".
9799
74aa5ce5
RM
9800Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9801
9802 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9803
9804Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9805
9806 * elf/elf.h (ELFMAG, SELFMAG): New macros.
9807
9808Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
9809
9810 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9811 the case where it starts out less than _hurd_dtablesize.
9812
9813Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9814
9815 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9816 make sure the new size exceeds FIRST_FD.
9817
99b306dc
RM
9818Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9819
9820 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9821
1d26b22c
RM
9822Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9823
99b306dc
RM
9824 * Makerules (install-lib.so): Add %.so for each %_pic.a.
9825
1d26b22c
RM
9826 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9827 the first thing in .data.
9828
9829 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9830
9831 * hurd/hurdstartup.h: New file.
9832
9833 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9834 are the same. Use `jz' instead of `jeq'.
9835
9836 * Makeconfig (config.make): Depend on config.status, and run it to
9837 update.
9838 (config.status): New target; depend on configure.
9839 If target (config.status) exists, run it with --recheck to update;
9840 if not, give error msg saying to run confiugre by hand.
9841 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9842 (sysd-Makefile-force): Set this variable to FORCE in this case, to
9843 force a rebuild of sysd-Makefile.
9844 (sysd-Makefile): Depend on $(sysd-Makefile-force).
9845 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9846 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9847 variable to FORCE in this case, to force a rebuild of sysd-rules.
9848 (sysd-rules): Depend on $(sysd-rules-force).
9849 Write into the file sysd-rules-sysdirs:=$(sysdirs).
86d2c878 9850
1d26b22c 9851 * Makerules (LDFLAGS-c.so): Change ld option -interp to
86d2c878 9852 -dynamic-linker.
1d26b22c
RM
9853
9854 * Makerules (do-install-program): New canned sequence.
9855 (install-bin, install-sbin): Use it.
9856 (install for lib*.so): Use it instead of $(do-install).
9857 Fix .so installation rules to handle lib*.so and *.so, deal with
9858 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9859 i.e. "libc.so-version = .1".
9860
9861Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9862
9863 * elf/do-rel.h: New file, split out of dynamic-link.h.
9864 * elf/Makefile (distribute): Add do-rel.h.
9865
421f82e5
RM
9866Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9867
9868 * Makeconfig (+gccwarn): Add -Winline.
9869
9870 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9871 set, avoid abort_rpcs, and use reply and intr ports saved in
9872 SS->context.
9873 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9874 from SS->context. Don't clear SS->context.
9875 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9876 setting SS->context. If msg_sig_post returns, re-lock and clear
9877 SS->context.
9878
9879Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9880
9881 * mach/Makefile (errsystems.c): Comment out generation rule.
9882
9883 * sysdeps/mach/_strerror.c: Consider a system unknown if its
9884 bad_sub member is null.
9885
9886 * mach/mig-alloc.c: Add weak alias to non-__ name.
9887
e4448b6f
RM
9888Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9889
9890 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9891
08162fa8
RM
9892Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9893
e4448b6f
RM
9894 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9895 function. Duh.
9896
9897 * hurd/Makefile (distribute): Added hurdstartup.h.
9898 * hurd/hurd.h: Remove _hurd_startup decl.
9899
9900 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9901 ((__unused__)) instead of gratuitous self reference.
9902
9903 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9904 table if FD2 doesn't fit.
9905
9906 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9907 not the current table size.
9908
d66e34cd
RM
9909 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9910
08162fa8
RM
9911 Implemented runtime dynamic linker to support ELF shared libraries.
9912 * elf/Makefile: Added rules to make ld.so and libdl.
9913 * elf/dl-error.c: New file.
9914 * elf/dl-fini.c: New file.
9915 * elf/dl-init.c: New file.
9916 * elf/dl-load.c: New file.
9917 * elf/dl-lookup.c: New file.
9918 * elf/dl-object.c: New file.
9919 * elf/dl-reloc.c: New file.
9920 * elf/dlclose.c: New file.
9921 * elf/dlerror.c: New file.
9922 * elf/dlopen.c: New file.
9923 * elf/dlsym.c: New file.
9924 * elf/dynamic-link.h: New file.
9925 * elf/link.h: New file.
9926 * elf/rtld.c: New file.
d66e34cd
RM
9927 * sysdeps/i386/dl-machine.h: New file.
9928 * sysdeps/stub/dl-machine.h: New file.
9929 * sysdeps/i386/dl-runtime.c: New file.
9930 * sysdeps/stub/dl-runtime.c: New file.
9931 * sysdeps/i386/elf/start.S: New file.
9932 * sysdeps/generic/dl-sysdep.c: New file.
9933 * sysdeps/mach/hurd/dl-sysdep.c: New file.
99b306dc 9934 * sysdeps/mach/hurd/i386/init-first.c: New file.
e4448b6f
RM
9935 * sysdeps/i386/init-first.c: New file.
9936 * sysdeps/stub/init-first.c: New file.
86d2c878 9937
08162fa8
RM
9938Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9939
9940 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9941 libc.so runnable.
9942 * version.c (__libc_print_version): Add "et al" and missing NL to
9943 author credit.
9944
b7eb8445
RM
9945Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9946
9947 * posix/glob.c (S_ISDIR): Define if undefined.
9948
10ceac89
RM
9949Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9950
9951 * configure.in: Unless --without-fp, prepend */fpu before each
9952 machine dir in $mach; don't prepend FPU dirs at end. If
9953 --with-elf, prepend MACHINE/elf directories at end; don't insert
9954 them into $mach.
9955
9956 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
9957
9958 * sysdeps/stub/clock.c: Added stub warning.
9959 * sysdeps/stub/dirfd.c: Likewise.
9960 * sysdeps/stub/exc2signal.c: Likewise.
9961 * sysdeps/stub/fdopen.c: Likewise.
9962 * sysdeps/stub/flock.c: Likewise.
9963 * sysdeps/stub/fpathconf.c: Likewise.
9964 * sysdeps/stub/ftruncate.c: Likewise.
9965 * sysdeps/stub/gtty.c: Likewise.
9966 * sysdeps/stub/isatty.c: Likewise.
9967 * sysdeps/stub/killpg.c: Likewise.
9968 * sysdeps/stub/madvise.c: Likewise.
9969 * sysdeps/stub/mkstemp.c: Likewise.
9970 * sysdeps/stub/mktemp.c: Likewise.
9971 * sysdeps/stub/mprotect.c: Likewise.
9972 * sysdeps/stub/msync.c: Likewise.
9973 * sysdeps/stub/pathconf.c: Likewise.
9974 * sysdeps/stub/poll.c: Likewise.
9975 * sysdeps/stub/raise.c: Likewise.
9976 * sysdeps/stub/readv.c: Likewise.
9977 * sysdeps/stub/setenv.c: Likewise.
9978 * sysdeps/stub/setlogin.c: Likewise.
9979 * sysdeps/stub/sigaltstack.c: Likewise.
9980 * sysdeps/stub/sigintr.c: Likewise.
9981 * sysdeps/stub/sigstack.c: Likewise.
9982 * sysdeps/stub/sleep.c: Likewise.
9983 * sysdeps/stub/sstk.c: Likewise.
9984 * sysdeps/stub/stime.c: Likewise.
9985 * sysdeps/stub/stty.c: Likewise.
9986 * sysdeps/stub/syscall.c: Likewise.
9987 * sysdeps/stub/sysconf.c: Likewise.
9988 * sysdeps/stub/truncate.c: Likewise.
9989 * sysdeps/stub/ualarm.c: Likewise.
9990 * sysdeps/stub/usleep.c: Likewise.
9991 * sysdeps/stub/utimes.c: Likewise.
9992 * sysdeps/stub/writev.c: Likewise.
9993
9994 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
9995
9996Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9997
9998 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
9999
10000Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10001
10002 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
10003 directories and append slashes to them in final pass before
10004 sorting.
10005 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
10006 slash; never append it here.
10007
11872325
RM
10008Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10009
10010 * mach/Machrules [interface-library]
10011 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
10012 -nostdlib.
10013
10014 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
10015 _hurd_siglock only around initial task creation in parent. Use
10016 _hurd_critical_section_unlock at end. Handle dead name rights
10017 properly, and deal with a send right dying while we try to copy
10018 it. For the time being, use assert_perror for kernel and proc RPC
10019 failures.
10020
10021Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10022
10023 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
10024 using $(object-suffixes-$(lib)) instead.
10025
10026 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
10027
10028 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
10029 (LDFLAGS-c.so): New variable.
10030
10031 * resolv/res_init.c (res_init): Don't clobber _res.options with
10032 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
10033
10034 * hurd/hurd.h: Declare _hurd_startup.
10035 * hurd/hurdstartup.c: New file.
10036 * hurd/Makefile (routines): Add hurdstartup.
10037
11d90def
RM
10038Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10039
b96bdcd7
RM
10040 * hurd/hurdsig.c: Use assert_perror for many calls which should
10041 never fail and previously were not checked.
10042
11d90def
RM
10043 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10044 Point the return address for sigreturn's frame at a "hlt" insn so
10045 it will definitely crash if sigreturn returns.
10046
0ac2e7d8
BK
10047Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
10048
10049 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
11d90def 10050 HAVE_WEAK_SYMBOLS for doing weak_alias.
0ac2e7d8 10051
f4153e13
RM
10052Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10053
10054 * configure.in: Move $os tests to set $elf et al earlier, before
10055 construction of $sysnames. Instead of prepending MACHINE/elf to
10056 $sysnames, append &/elf after each elt appended to $mach.
65b3cbcb 10057
f4153e13 10058Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
67be1ecf 10059
65b3cbcb
RM
10060 * configure.in (libc_cv_asm_global_directive): New check to define
10061 ASM_GLOBAL_DIRECTIVE.
10062 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
d02907df
RM
10063 * libc-symbols.h (strong_alias_asm, strong_alias): Use
10064 ASM_GLOBAL_DIRECTIVE on the alias.
65b3cbcb
RM
10065
10066 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
10067 HAVE_WEAK_SYMBOLS" #defns.
10068
5fa25886
BK
10069Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
10070
10071 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
10072 of the byte that was zero, so we return a valid number.
10073
e0585da1
BK
10074Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
10075
5fa25886 10076 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
e0585da1
BK
10077 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
10078
dce38123
BK
10079Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
10080
fc40c039
BK
10081 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
10082 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
10083 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
10084 [BITS_PER_MP_LIMB == 64]: Likewise.
10085
d619f2a8
BK
10086 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
10087 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
10088 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
10089 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
10090 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
10091 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
10092 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
10093 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
10094 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
10095 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
10096 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
10097
10098 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
77162807
BK
10099 * sysdeps/unix/mips/fork.S (fork): Likewise.
10100 * sysdeps/unix/mips/pipe.S (fork): Likewise.
10101 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
10102 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
10103 * sysdeps/unix/mips/wait.S (__handler): Likewise.
10104 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
10105 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
10106 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
10107 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
10108 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
10109 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
10110 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
10111 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
10112 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
10113 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
10114 instead of `zero' for the li instruction.
10115
dfd5ddb7
BK
10116 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
10117 preprocessor comments, not assembler comments.
fa21d693 10118 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
dce38123
BK
10119 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
10120
eb712cf1
RM
10121Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10122
10123 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
10124 in place of inline.
10125
6e33fad3
RM
10126Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10127
e215c478 10128 * Makefile (distribute): Add ChangeLog.[0-9].
335aa320 10129
e215c478
RM
10130 * configure.in: Add check for .set directive.
10131 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
335aa320
RM
10132 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
10133 strong_alias_asm): Use `foo = bar' syntax instead.
e215c478
RM
10134
10135 * Makerules [! subdir] (O%-lib): Don't prepend ../.
10136
10137 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
10138
335aa320
RM
10139 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
10140 $host_os checks to set gnu_ld/as and elf before sysdirs
10141 generation. Fix $with_fp test.
10142 [$elf=yes]: Prepend MACHINE/elf directory.
10143
6e33fad3
RM
10144 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
10145 being cleared are already known to be set. Thanks Ulrich.
10146
6432a779
RM
10147Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10148
10149 * posix/environ.c: Add weak alias `_environ'.
10150
53afa8d9
RM
10151Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10152
10153 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
10154 * sysdeps/i386/sub_n.S [PIC]: Likewise.
10155
217d85b9
RM
10156Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10157
53afa8d9
RM
10158 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
10159 word `const'.
10160
10161 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
10162 $(foo-$(suffix $@)).
10163
10164 * manual/Makefile (chapters-incl): Filter out summary.texi.
10165
217d85b9
RM
10166 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
10167 a weak symbol instead of literal "STRTOF".
10168
10169 * locale/setlocale.c: Work around ld bug: don't weakify refs to
10170 _nl_{current,C}_*.
10171
8c0dc19c
RM
10172Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10173
10174 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
10175
10176 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
10177 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
10178
10179 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
10180 #ifdef emacs, but only #ifndef memmove.
10181 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
10182 safe_bcopy.
10183 (memmove): Define only if undefined.
10184
73fbb9a5
RM
10185Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10186
6aa8372e
RM
10187 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
10188 sure these are simply-expanded variables.
10189
883bc19b
RM
10190 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
10191 mmap call.
10192
10193 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
10194 for these too.
10195
10196 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
10197 set c_oflag value.
10198
10199 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
10200
10201 * locale/Makefile (categories): Uncomment collate.
10202 * locale/lc-collate.c: New file.
10203
8ab69eb3
RM
10204 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
10205 #ifdef emacs.
10206 * malloc/realloc.c: Likewise.
10207
8c0dc19c
RM
10208 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
10209 (_itoa): Use it in defn.
8ab69eb3
RM
10210 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
10211 "_itoa.h".
10212 (_itoa): Function removed.
10213
73fbb9a5
RM
10214 * malloc/free.c: Remove use of `assert'.
10215
10216 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10217 __malloc_safe_bcopy; #define safe_bcopy.
10218 * malloc/free.c: Cope with systems lacking `memmove'.
10219 (_free_internal): Cast result of _malloc_internal.
10220
4bca5a35
RM
10221Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10222
e627021e
RM
10223 * hurd/hurdinline.c: Include signal.h first, so we don't define
10224 its inlines too.
10225
10226 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10227 of -1 to avoid compiler warning.
10228
10229 * configure.in (host_os=linux*): Set elf=yes for this, not just
10230 linux*elf*.
10231
c0fef53b
RM
10232 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10233 and open.
10234
4bca5a35
RM
10235 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10236
45b28a8f
RM
10237Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10238
fa0ad204
RM
10239 * sysdeps/unix/start.c: Remove spurious decl and #endif.
10240
45b28a8f
RM
10241 * misc/progname.c (program_invocation_name,
10242 program_invocation_short_name): Make these initialized data
10243 definitions.
10244
10245 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10246 so gcc doesn't optimize out the function entirely.
10247
e607b492
RM
10248Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10249
c4bf5a3e
RM
10250 * posix/execvp.c: Don't use stat to search path; just try execv
10251 until it works.
10252
e607b492
RM
10253 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10254 SS->active_resources, so that _hurdsig_longjmp_from_handler will
10255 be called when a longjmp unwinds the signal frame.
10256 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10257 SS->active_resources chain added by _hurd_setup_sighandler.
10258 * hurd/sigunwind.c: New file.
10259 * hurd/Makefile (sig): Add sigunwind.
10260
10261 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10262
10263 * MakeTAGS (tags-sources): Include $(all-dist).
10264 [subdir] (all-dist): Define to $(distribute).
10265
2f8033d6
RM
10266Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10267
193ce8dc
RM
10268 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10269 parent objdirs.
10270
10271 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10272 filtering out $($(lib)-inhibit-o); use that instead of
10273 $(object-suffixes) in all the other variables.
10274
2f8033d6
RM
10275 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10276 if undefined.
10277
10278 * string/strxfrm.c: Just copy the string (for now).
10279 * string/strcoll.c: Just call strcmp (for now).
10280
10281 * mach/Makefile (lock): Add mutex-init.
10282 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10283 _cthread_mutex_unlock_routine): Variables removed.
10284 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10285 (__mutex_init): Function moved to new file mutex-init.c.
10286 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10287
67188fe6
BK
10288Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
10289
10290 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
0a648051 10291 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
67188fe6 10292
b1f11361
RM
10293Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10294
10295 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10296 both are zero).
10297
a9df8829
RM
10298Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10299
b1f11361
RM
10300 * elf/dlfcn.h: New file.
10301
ea7d9938
RM
10302 * Make-dist (README): Commit it to CVS if there is a CVS directory.
10303
a9df8829
RM
10304 More changes from Germano Caronni <caronni@tik.ethz.ch>:
10305 * malloc/free.c: Relocate _heapinfo when that allows us to return
10306 core to the system.
10307
10308 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10309 _MALLOC_INTERNAL.
10310
1474b80f
RM
10311Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10312
c316b486
RM
10313 * mach/Makefile (headers): Add mach/mach_traps.h.
10314
10315 * Makerules ($(installed-libcs) rule): Fix typos.
10316
342414a6
RM
10317 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10318 * sysdeps/stub/revoke.c: New file.
10319 * misc/Makefile (routines): Add revoke.
10320 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10321 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10322 (forkpty): Declare login_tty.
10323 * misc/logwtmp.c (logwtmp): Declare to return void.
10324 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
10325
1474b80f
RM
10326 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10327
10328 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10329 unless L_SET already defined.
10330 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10331 already defined.
10332
10333 Incorporated -lutil library from 4.4-Lite.
10334 * misc/Makefile (extra-libs, libutil-routines): New variables.
10335 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10336 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10337
10338 Support simple, light-weight unwind-protect mechanism for longjmp.
10339 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10340 * sysdeps/mach/hurd/jmp-unwind.c: New file.
10341 * sysdeps/stub/jmp-unwind.c: New file.
10342 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10343 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10344 * setjmp/Makefile (routines): Add jmp-unwind.
10345 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10346 `prevp' members into new substructure `resource'; add another such
10347 substructure `thread' and members `cleanup' (function ptr) and
10348 `cleanup_data' (generic ptr).
10349 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10350 into the `_hurd_self_sigstate ()->active_resources' list via the
10351 `thread' substructure.
10352 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10353 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10354 LINK->cleanup_data' to the port extracted.
10355 * hurd/hurd/signal.h (struct hurd_sigstate): New member
10356 `active_resources'.
10357 * hurd/port-cleanup.c: New file.
10358 * hurd/Makefile (routines): Add port-cleanup.
10359
10360 * malloc/malloc.c: Include errno.h.
10361
10362Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10363
10364 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10365
a04e7405
RM
10366Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10367
d365fd2c
RM
10368 * misc/Makefile (headers): Add utmp.h.
10369 * misc/utmp.h: New file, incorporated from 4.4-Lite.
10370
a04e7405
RM
10371 * stdio/printf-parse.h: New file, mostly written by drepper.
10372 * stdio/vfprintf.c: Rewritten, mostly by drepper.
10373 * stdio/printf-prs.c: Rewritten.
10374 * stdio/Makefile (distribute): Add printf-parse.h.
10375
10376Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10377
10378 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10379 with asm name. Just do a ".set start, __start".
10380
10381 * malloc/realloc.c: Call _free_internal instead of free.
10382
49e522bf
RM
10383Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10384
10385 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10386 directory, open LOCALE/LC_*/SYS_LC_* instead.
10387
1e9dc039
RM
10388Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10389
49e522bf
RM
10390 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10391 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10392 stdio/gen-mpn-copy: Files moved to stdlib.
10393 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
a04e7405 10394 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
49e522bf
RM
10395 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10396 headers.
10397 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10398 headers.
10399
6bf02878
RM
10400 * Makefile (parent-mostlyclean): Don't use $(libc.a).
10401 (parent-clean): Use $(objpfx) to find sysd-*.
10402 * Rules (generated): Append dummy.o dummy.c.
4788ab46
RM
10403 * Makerules (lib): Depend on lib-noranlib.
10404 (lib-noranlib): Depend on $(install-lib) in objdir.
10405 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10406 from objdir. Don't remove TAGS; it comes in the distribution.
10407
10408 * malloc/malloc.c (morecore): Save errno around call to
10409 _realloc_internal. Don't account for the additional new blocks of
10410 the info table itself when choosing the new table size for the
10411 first crack; if it succeeds, the new blocks will have been found
10412 in existing free space already described by the existing info
10413 table.
10414
1e9dc039
RM
10415 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10416 read-ahead character.
10417
be69ea41
RM
10418Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10419
1e9dc039
RM
10420 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10421 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10422 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10423 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10424 Get anal with unsigned to pacify compiler.
10425
be69ea41
RM
10426 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10427 means %d from 3rd arg).
10428
10429 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10430
10431 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
10432 END, not GROUP.
10433
693e7b96
RM
10434Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10435
a38f13ba
RM
10436 * Makefile (subdirs): Put elf last.
10437
693e7b96
RM
10438 * sunrpc/Makefile (install-lib): Variable removed.
10439 (rpcsvc-objs): Variable removed.
10440 (extra-objs): Don't include $(rpcsvc-objs).
10441 (extra-libs): New variable, contains librpcsvc.
10442 (librpcsvc-routines): New variable.
10443 (librpcsvc-inhibit-o): New variable, contains .so.
10444 (omit-deps): Set this to $(librpcsvc-routines).
10445 ($(objpfx)rpcgen): Don't use $(libc.a).
10446 (lib, $(objpfx)librpcsvc.a): Targets removed.
10447
10448 * o-iterator.mk, extra-lib.mk: New files.
10449 * Makerules (o-iterator): New variable.
10450 [extra-libs]: Include extra-lib.mk to generate rules for each word
10451 of $(extra-libs).
10452 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10453
b3fe1350
UD
10454Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10455
10456 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
68b3ef49 10457 Handle 80-bit denormalized numbers correctly.
b3fe1350 10458
68b3ef49 10459 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
693e7b96 10460 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
68b3ef49
RM
10461 * stdlib/strtod.c (RETURN): Add parentheses around return value.
10462 (round_and_return): Correct handling of denormalized numbers.
b3fe1350 10463
693e7b96
RM
10464 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10465 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10466 exponent.
b3fe1350 10467
f0bf9cb9
RM
10468Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10469
10470 * locale/C-ctype.c: New correct data generated by drepper.
10471
10472 * Rules: Don't use $(libc.a).
10473
10474 Parsing of grouped numbers contributed by Ulrich Drepper.
10475 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
10476 new flag arg; if nonzero, parse locale-dependent thousands
10477 grouping and interpret only the prefix that is correctly grouped.
10478 (strtol): Define this to call _strtol_internal with zero for the flag.
10479 Use a weak symbol for the definition.
10480 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10481 Check for the exponent of the number overflowing the float format.
10482 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10483 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10484 [__OPTIMIZE__]: Define inline functions calling those.
c45e5aa9
RM
10485 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10486 (strtold): Remove weak alias.
10487 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10488 (strtof): Remove weak alias.
f0bf9cb9
RM
10489 * stdlib/grouping.h: New file, written by drepper.
10490 * stdlib/Makefile (distribute): Add grouping.h.
10491 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
10492 __strtoX_internal with the grouping flag set iff the modifier is
10493 present.
10494
10495Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10496
10497 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10498
10499 * mach/Machrules: Produce static deps for all object flavors.
10500 [interface-library]: Remove all these variables and rules.
10501 ($(interface-library)-routines): Define this variable.
10502 (extra-libs): Append $(interface-library) to this.
10503 * mach/Makefile (interface-library): Omit .a suffix.
10504 * hurd/Makefile: Likewise.
10505
10506Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10507
10508 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10509 early if no new data in buffer after priming.
10510
01a36ad3
RM
10511Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10512
f0bf9cb9
RM
10513 * Makerules (object-suffixes, libtypes): Move all these variables
10514 to Makeconfig.
10515 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10516
10517 * Makerules (build-extra-lib): New canned sequence.
10518
10519 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
10520 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
10521
10522 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10523 Add missing semicolon.
10524 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
10525 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10526 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10527
10528 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10529 locale data format is implemented.
10530
10531 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10532 Pass &__sigreturn on the stack to the trampoline code, so it is
10533 not position-dependent.
10534
10535 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10536 Don't include <stdarg.h>.
86d2c878 10537 (__printf_fp): Last arg ARGS is now `const void **const';
f0bf9cb9
RM
10538 dereference ARGS[0] instead of using va_arg.
10539
10540 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10541 loop to install data.
10542
10543 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10544 to extract number from item code.
10545 (_nl_load_locale): Close the descriptor when finished.
10546
10547 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10548 place of malloc.
10549
10550 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10551
67a3a8ac
RM
10552 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10553 to avoid warning.
10554 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10555 int to avoid warning.
10556
51f75302
RM
10557 Support building several flavors of objects and libraries.
10558 * Makerules (libtypes, object-suffixes): New variables.
10559 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10560 suffix.
10561 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10562 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10563 (close-check-inhibit-asm): Append a semicolon.
10564 (sysd-rules): Generate rules for each object suffix.
10565 (compile.S, compile.c): Always assume gcc.
10566 (OUTPUT_OPTION): Define unconditionally.
10567 (+make-deps): In generated rule, produce a dependent for each
10568 object suffix.
10569 (.SUFFIXES): Add $(object-suffixes) in place of .o.
10570 (.PRECIOUS): Make all suffix flavors precious.
10571 ($(libc.a)): Target removed.
10572 (lib): Depend on each enabled libtype.
10573 (libobjs, objects, objs): Depend on all the enabled object flavors.
10574 (lib%.a): New pattern rule.
10575 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10576 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10577 to make one for each flavor; library dep rule likewise rewritten.
10578 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10579 flavor.
10580 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10581 (installed-libcs): New variable.
10582 (install): Depend on that instead of
10583 $(libdir)/lib$(libprefix)$(libc-name).a;
10584 that file's rule rewritten to make each enabled libtype.
10585 (install-lib.so): New variable, filters lib%.so from $(install-lib).
10586 (install-lib): Filter out lib%.so after setting install-lib.so.
10587 [$(build-shared)=yes] (install): Install $(install-lib.so).
10588 (common-mostlyclean): Remove all flavors of objects.
01a36ad3
RM
10589 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10590 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10591
424f8c09
RM
10592Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10593
01a36ad3
RM
10594 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10595 * sysdeps/stub/pause.c: Likewise.
10596 * sysdeps/stub/time.c: Likewise.
10597
10598 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10599 locale data format is implemented.
10600 * stdlib/wctomb.c: Likewise.
10601
10602 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10603 gcc bug is fixed.
10604 * mach/errsystems.c: File removed.
10605
10606 * Makeconfig (libc.a): Variable removed.
10607 (+link): Don't use it.
10608
10609 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10610 assuming `yes'.
10611
424f8c09
RM
10612 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10613 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10614 don't use __realloc_hook.
10615 (realloc): New function; call __realloc_hook ?: _realloc_internal.
10616 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10617 don't use __malloc_hook.
10618 (malloc): New function; call __malloc_hook ?: _malloc_internal.
4788ab46 10619 Changes from Germano Caronni <caronni@tik.ethz.ch>:
424f8c09
RM
10620 (initialize): Set up _heaplimit to cover the _heapinfo table.
10621 (morecore_recursing): New static variable.
10622 (morecore): If that is set, return null immediately.
10623 When growing the info table, before getting new core from the
10624 system for it, set morecore_recursing and try moving _heapinfo
10625 with _realloc_internal. When that fails and we get new core, set
10626 _heaplimit to cover the core for the new _heapinfo table.
10627 (register_heapinfo): New function. Record the _heapinfo table's
10628 own blocks in that table and in the statistics variables.
10629 (initialize, _malloc_internal): Use it after allocating new table.
10630
10631Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
10632
10633 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10634 by other packages.
10635 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10636
cfe33fd9
RM
10637Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10638
424f8c09
RM
10639 * mach/errorlib.h (errors): Use const for decl.
10640
10641 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10642 (decode): New inline function; decode signed 32-bit integers, and
10643 sign-extend properly when long is longer than 32 bits.
10644 (__tzfile_read): Changed all uses of uc2ul to decode.
10645 Decode the transition times properly when sizeof (time_t) > 4.
10646
cfe33fd9
RM
10647 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
10648 (printf_function): Make last arg ARGS a vector of pointers instead of a
10649 pointer to va_list.
10650
10651Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10652
424f8c09
RM
10653 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10654 (buffered_vfprintf): Remove line buffer when flush failed.
cfe33fd9
RM
10655
10656Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10657
10658 * time/tzfile.c (struct ttinfo): New member `isgmt'.
10659 (__tzfile_read): Read isgmt flags for each type.
10660 (__tzfile_default): When using TZDEFRULES DST rules, adjust
10661 transition times according to the isstd and isgmt flags for the
10662 types of each transition, and adjust each transition to point to
10663 type index either 0 or 1. Reset type indices 0 and 1 to describe
10664 the user's settings.
10665
d8cc5f0c
RM
10666Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10667
40deae08
RM
10668 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10669 into just CLASS. Add standard/optional flag to all items.
10670
10671 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10672
10673 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10674 Rearrange defn to satisfy compiler.
10675
10676 * locale/localeinfo.h: Declare _nl_current.
10677
ff3d7ed3
RM
10678 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
10679 --enable-shared, --enable-profile, --enable-omitfp; pass settings
10680 through to config.make.
10681 * config.make.in (build-shared, build-profile, build-omitfp): New
10682 config vars.
10683
d8cc5f0c
RM
10684 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10685 (DT_NUM): New macro.
10686
10687 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
10688
10689 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10690
10691 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10692 MAP_COPY to MAP_PRIVATE.
10693
222c4e71
BK
10694Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
10695
06c48879
BK
10696 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10697 that's used inside the alpha sysdep.h.
10698
5638ea42
BK
10699 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10700 keyword.
eded85e0 10701 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
127b3c35 10702
222c4e71
BK
10703 * configure.in: Match `osf*', not `osf1*'.
10704 * configure: Likewise.
134c1236 10705 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
222c4e71 10706
6c2f0507
RM
10707Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10708
10709 * posix/glob/configure.bat: Fixes from DJ.
10710
10711 * time/backward, time/europe, time/northamerica, time/pacificnew,
10712 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10713 time/ialloc.c: Code and data updated from ADO's 95b.
10714 * time/emkdir.c: File removed.
10715 * time/Makefile (distribute, extra-objs, zic): Omit it.
86d2c878 10716
6c2f0507
RM
10717 * time/localtime.c: Deansideclized. Never #define __tzname et al
10718 to non-__ names.
10719
10720 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10721 instead of short int *.
10722 * ctype/ctype-info.c: Likewise.
10723 * ctype/ctype.h: Likewise.
10724
10725 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10726 of EB and EL versions.
10727
28635115
RM
10728Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10729
10730 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10731 (_IS* enum): Use _ISbit to produce values.
10732
933e73fa
RM
10733Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10734
10735 * locale/localeinfo.h: Rewritten for new locale system, using
10736 locale data files and with <langinfo.h> interface.
10737 * locale/setlocale.c: Rewritten to use locale data files.
10738 * langinfo.h: New file.
10739 * locale/langinfo.h: New file.
10740 * locale/nl_langinfo.c: New file.
10741 * locale/loadlocale.c: New file.
10742 * locale/lc-ctype.c: New file.
10743 * locale/lc-messages.c: New file.
10744 * locale/lc-monetary.c: New file.
10745 * locale/lc-numeric.c: New file.
10746 * locale/lc-time.c: New file.
10747 * locale/categories.def: New file.
10748 * locale/Makefile (headers): Remove localeinfo.h.
10749 (distribute): New variable; put localeinfo.h here, and categories.def.
10750 (routines): Add loadlocale.
10751 (categories): New variable.
10752 (aux): Use that to get C-category and lc-category.
10753 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
797fa620
RM
10754 * ctype/ctype-info.c: For initial tables, use
10755 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
86d2c878 10756 locale/C-ctype.c.
933e73fa
RM
10757 * locale/C-ctype.c, locale/C-messages.c: New files.
10758 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10759 Default "C" locale data updated for new locale system.
10760 * locale/C-collate.c: File removed.
10761 * locale/C-ctype_ct.c: File removed.
10762 * locale/C-ctype_mb.c: File removed.
10763 * locale/C-response.c: File removed.
10764 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10765 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10766 stdlib/strtod.c, time/asctime.c, time/strftime.c:
10767 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10768 locale data.
10769 * time/localtime.c: Don't include <localeinfo.h>.
10770 * time/tzset.c: Don't use locale items for default TZ value or
10771 "GMT" string (use "UTC").
10772
10773 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10774 WIDTH>0; update DONE.
10775
10776 * malloc/malloc.c (morecore): Fix last change to calculate by
10777 blocks instead of bytes.
10778
6408bdde
RM
10779Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10780
10781 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10782 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10783 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10784 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10785 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10786 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10787 alias munmap.
10788 * sysdeps/unix/mman/munmap.S: Likewise.
10789 * sysdeps/mach/munmap.c: Likewise.
10790 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10791 alias mmap.
10792 * sysdeps/unix/mman/mmap.S: Likewise.
10793 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10794 * sysdeps/stub/mmap.c: Likewise.
10795
10796 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10797
10798 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10799
10800Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10801
10802 * misc/search.h: Add missing semicolon.
10803
10804 * sysdeps/unix/dirfd.c: Fix typo.
10805
10806 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10807 in decl.
10808
10809 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10810 WIDTH before test.
10811
30e77772
RM
10812Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10813
4933a099
RM
10814 * stdlib/strtod.c: Fixes from drepper.
10815 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10816 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10817 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10818
10819 * stdio/vfprintf.c: Correctly notice Z modifier.
10820
30e77772
RM
10821 * misc/search.h: New file.
10822 * misc/Makefile (headers): Add search.h.
10823 * misc/insremque.c: Include search.h.
10824 (struct qelem): Type removed.
10825
e32a7957
RM
10826Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10827
10828 * elf/libelf.h: New file.
10829 * elf/elf_hash.c: New file.
10830
24b76949
RM
10831Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10832
4788ab46 10833 Changes from Germano Caronni <caronni@tik.ethz.ch>:
24b76949
RM
10834 * malloc/malloc.c (morecore): Account in NEWSIZE for the
10835 malloc_info structures for each new block.
10836
3c46a92d
RM
10837Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10838
10839 * sysdeps/mach/hurd/kill.c: When the process has no message port
10840 registered and we have its task port, translate a few signals to
10841 task_suspend/task_resume/task_terminate.
10842
e66f63fb
RM
10843Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10844
22a1292a
RM
10845 * io/Makefile (routines): Add euidaccess.
10846 * sysdeps/mach/hurd/euidaccess.c: New file.
10847 * sysdeps/stub/euidaccess.c: New file.
10848 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10849
10850 * dirent/Makefile (routines): Add dirfd.
10851 * sysdeps/stub/dirfd.c: New file.
10852 * sysdeps/unix/dirfd.c: New file.
10853 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10854 * dirent/dirent.h (dirfd): Declare new function. Define as macro
10855 _DIR_dirfd if that is defined.
10856 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10857 with `void *__fd'.
10858 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10859 Open the file with `open'; set FD_CLOEXEC on the fd.
10860 * sysdeps/mach/hurd/closedir.c: Likewise.
10861 * sysdeps/mach/hurd/readdir.c: Likewise.
10862 * sysdeps/mach/hurd/dirfd.c: New file.
10863
10864 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10865 directory.
10866 (glob/ChangeLog): Likewise.
10867
10868 * locale/locale.h (LC_*): Use small integers instead of bit masks.
10869
e66f63fb
RM
10870 * stdio/bug4.c: Put temporary files in /tmp.
10871 * stdio/bug3.c: Likewise.
10872 * stdio/bug5.c: Likewise.
10873 * stdio/test-fseek.c: Likewise.
10874 * stdio/test-popen.c: Likewise.
10875
50843ff0
RM
10876Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10877
b5388cb6
RM
10878 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10879
10880 * libc-symbols.h (weak_symbol): New macro.
10881
0677a80c
RM
10882 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10883 elts with null handlers.
10884
50843ff0
RM
10885 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10886
23ad311d
RM
10887Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10888
50843ff0
RM
10889 * stdlib/random.c (__srandom): Change algorithm used to populate
10890 the state array.
10891 (randtbl): Recomputed with new algorithm.
10892
23ad311d
RM
10893 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10894 to original value of `crypt'.
10895 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10896 (crypt): New variable, set to crypt.solar.
10897
daf12887
BK
10898Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
10899
d53f392b
BK
10900 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10901
daf12887
BK
10902 * config.h.in: Put comment around ^L to pacify Solaris as here too.
10903
37f91d33
RM
10904Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10905
67a87b93
RM
10906 * string/Makefile (distribute): Add pagecopy.h.
10907 * sysdeps/mach/pagecopy.h: New file.
10908 * sysdeps/generic/pagecopy.h: New file.
10909 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10910 PAGE_COPY_FWD_MAYBE first when word aligned.
10911 * sysdeps/generic/memmove.c: Likewise.
10912
787126fe
RM
10913 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10914 (getpgrp): Call __getpgid instead of __getpgrp.
10915
01cc0be6
RM
10916 * Makefile (subdirs): Add elf first.
10917 * elf/Makefile: New file.
10918 * elf/elf.h: New file.
10919
8b60020b
RM
10920 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10921 as a macro.
10922 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10923 indirection.
10924
37f91d33
RM
10925 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10926 add crti_s, crtn_s.
10927 (install-lib, extra-objs, generated-, omit-deps): Use that.
10928 (initfini): New canned sequence, broken out of crt[in].s rule.
10929 (crt[in].s rule): Use it.
10930 (crt[in]_s.s): New rule.
10931 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10932 (_init, _fini): Use GLOBAL as storage class.
10933 Add self reference to avoid GCC optimizing out the functions.
10934
10935 * Makefile (headers): Remove $(stddef.h).
10936 * Makeconfig (stddef.h): Variable removed; now require gcc version
10937 >= 2.2.
10938 * stddef.h: File removed.
10939
10940Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10941
10942 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10943 definition.
10944 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10945
10946 * stdlib/strtod.c: Allow the string to start with a decimal point
10947 without a leading zero.
10948
0923c7a5
RM
10949Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10950
41d43dbc
RM
10951 * Makefile (subdirs): Put csu first.
10952
10953 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10954
96f873b9
RM
10955 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10956 to crt[in].o.
10957 (csu-objpfx): New variable.
10958 (+link): Use it to find start.o and $(+preinit), $(+postinit).
10959
10960 * Rules (subdir_lib, all): Depend on objs.
10961
0923c7a5
RM
10962 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
10963
10964 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
10965 access to float.h macros.
10966
10967 * misc/efgcvt.c: New file.
10968 * misc/Makefile (routines): Add efgcvt.
10969
5ace96c8
BK
10970Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
10971
10972 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
10973 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
10974 to avoid a misreference that would override sysdeps/generic/mul.c.
10975 * sysdeps/sparc/Dist: Likewise.
10976
5f9e57ba
RM
10977Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10978
10979 * posix/Makefile (aux): Add environ.
10980 * posix/environ.c: New file.
10981 * sysdeps/unix/sparc/start.c: Remove __environ definition.
10982 * sysdeps/unix/start.c: Likewise.
10983 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10984 * sysdeps/mach/hurd/start.c: Likewise.
10985 * sysdeps/mach/start.c: Likewise.
10986 * sysdeps/stub/start.c: Likewise.
10987
10988 * sysdeps/unix/make_errlist.c: In produced program, test
10989 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
10990 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
10991 Remove extra weak alias.
10992
10993 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
10994 in #include.
10995
10996 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
10997
10998 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
10999 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
11000 $(CPPFLAGS).
11001 (mk-stdiolim): Use it instead.
11002
28f540f4
RM
11003Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11004
5f9e57ba
RM
11005 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
11006 not work to make a weak alias to a bss symbol.
11007
11008 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
11009 (tests): Add test-fwrite.
11010 * stdio/test-fwrite.c: New file.
11011
11012 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
11013 __strtold.
11014
11015 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
11016 there is a CVS directory.
11017 (configure, %/configure): Use $(autoconf-it) for cmds.
11018 * Make-dist: Likewise.
28f540f4
RM
11019 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
11020 if there is a CVS directory.
11021 * sysdeps/sparc/Makefile (divrem output): Likewise.
11022 * sysdeps/alpha/Makefile (divrem output): Likewise.
5f9e57ba 11023 * Makerules ($(gpl2lgpl)): Likewise.
28f540f4
RM
11024
11025 * Makerules (rule to install lib%.a from $(install-lib)): Fix
11026 patsubst to elide ranlib for $(non-lib.a).
11027
11028 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
11029
11030Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
11031
11032 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
11033 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
11034
11035Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11036
11037 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
11038 DEALLOC_REFPORT; deallocate the refport after use only if it
11039 evaluates to nonzero.
11040 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
11041 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
11042
11043 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
11044 *STATE_CHANGE to indicate whether or not we changed *STATE and it
11045 should be committed to the thread.
11046 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
11047 state for a thread, do thread_set_state on that thread. Don't use
11048 SS->intr_port for collecting reply ports, it is not safe to
11049 clobber that when suspending; instead, alloca a temporary array.
11050 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
11051 zero when dying, one when suspending. Pass new arg to abort_rpcs.
11052
11053 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
11054 HURD_FD_PORT_USE will. Don't use critical sections around
11055 HURD_FD_PORT_USE invocations.
11056
11057 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
11058 * sysdeps/posix/stdio_init.c: Likewise.
11059
11060Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11061
11062 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
11063 locking; don't leave the descriptor locked on return.
11064 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
11065 Use a critical section around locking the descriptor.
11066 Check for an empty descriptor and return EBADF.
11067 * sysdeps/mach/hurd/dup2.c: Likewise.
11068 * sysdeps/mach/hurd/fcntl.c: Likewise.
11069 Use HURD_FD_PORT_USE macro for RPCs.
11070 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
11071 using HURD_FD_PORT_USE.
11072 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
11073 to lock the descriptor.
11074 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
11075 locking the descriptor.
11076 * sysdeps/mach/hurd/fdopen.c: Likewise.
11077 * hurd/fd-close.c: Likewise.
11078 Don't expect the descriptor to be locked on entry.
11079 Check for empty descriptor and return EBADF.
11080
11081 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
11082 new functions _hurd_ctty_input and _hurd_ctty_output, each
11083 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
11084 * hurd/ctty-input.c: New file.
11085 * hurd/ctty-output.c: New file.
11086 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
11087 * hurd/fd-read.c: Use _hurd_ctty_input.
11088 * hurd/fd-write.c: Use _hurd_ctty_output.
11089 * sysdeps/mach/hurd/ioctl.c: Likewise.
11090 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
11091
11092Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11093
11094 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
11095 as appropriate to the type.
11096
11097 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
11098 repeating the union.
11099 (HUGE_VAL, __huge_val): Use it.
11100 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
11101 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
11102 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
11103 (STRTOF): Set to __strtold; define strtold as weak alias.
11104 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
11105 (STRTOF): Set to __strtof; define strtof as weak alias.
11106
11107 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
11108 (IEEE754_FLOAT_BIAS): New macro.
11109
11110 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
11111
11112 * stdlib/testmb.c: Add tests from rfg for using normal chars as
11113 multibyte chars.
11114
11115 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
11116 only the `defined but not used' warning, but also to avoid GCC
11117 optimizing out the entire function (!).
11118
11119 * stdlib/wctomb.c: Include ctype.h.
11120
11121 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
11122
11123 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
11124
11125Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11126
11127 * stdio/printf_fp.c: Include "fpioconst.h".
11128 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
11129 (__printf_fp): All references changed.
11130 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
11131 (group_number): Use memmove instead of memcpy, since operands overlap.
11132 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
11133 * stdio/fpioconst.h: New file, header declaring the table data.
11134 * stdio/Makefile (aux): Add fpioconst.
11135 (distribute): Add fpioconst.h.
11136 * stdlib/strtod.c: Complete rewrite from drepper.
11137 * stdlib/strtof.c: New file.
11138 * stdlib/strtold.c: New file.
11139 * stdlib/Makefile (routines): Add strtof, strtold.
11140 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
11141 * sysdeps/stub/mpn2flt.c: New file.
11142 * sysdeps/stub/mpn2dbl.c: New file.
11143 * sysdeps/stub/mpn2ldbl.c: New file.
11144 * sysdeps/ieee754/mpn2flt.c: New file.
11145 * sysdeps/ieee754/mpn2dbl.c: New file.
11146 * sysdeps/ieee754/mpn2ldbl.c: New file.
11147
11148 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
11149 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
11150 appears in $(non-lib.a).
11151
11152Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11153
11154 * stdlib/wctomb.c: A normal ASCII character translates to itself.
11155 * stdlib/mbtowc.c: Likewise.
11156
11157Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11158
11159 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
11160 Remove `const' from prototypes.
11161 * sysdeps/m68k/__longjmp.c: Likewise.
11162 * setjmp/longjmp.c: Likewise.
11163 * sysdeps/i386/__longjmp.c: Likewise.
11164
11165 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
11166 so when we return a name, it is incremented past the value that
11167 produces that same name.
11168
11169 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
11170 * stdio/stdio.h (fgets): Likewise.
11171
11172 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
11173
11174 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
11175 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
11176 and retry the RPC.
11177 * hurd/fd-read.c: Likewise.
11178
11179Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11180
11181 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
11182 <mach/mig_support.h>.
11183 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
11184 * assert/assert.c: Likewise.
11185 * sysdeps/posix/libc_fatal.c: Likewise.
11186
11187Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11188
11189 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
11190 as macros, to satisfy ANSI pedants.
11191
11192 * stdio/internals.c (flushbuf): When there is no new data after
11193 priming the stream, return without writing out the buffer.
11194 * stdio/Makefile (tests): Add bug7.
11195 * stdio/bug7.c: New file.
11196
11197 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
11198 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
11199 is defined.
11200
11201 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
11202
11203 * stdio/Makefile (tests): Add errnobug.
11204 * stdio/errnobug.c: New file.
11205
11206 * mach/mig_strncpy.c: Include string.h.
11207
11208 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
5f9e57ba 11209 inlines cause trouble for files defining global register variables.
28f540f4
RM
11210
11211 * stdio/vfprintf.c: Use _strerror_internal for %m.
11212
11213 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11214
11215 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11216 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11217 * stdio/vfprintf.c (group_number): New function.
11218 (vfprintf): Support %' flag for integer formats, by calling
11219 group_number after formatting the number in WORK.
11220 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11221 (__printf_fp): Implement `group' flag using them.
11222
11223 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11224 (parent-clean): Remove sysd-rules, not sysdirs.
11225 (distclean): Pass avoid-generated=yes to submake.
11226 (distclean-1): Remove $(sysdep-$(distclean-1)).
11227
11228 * Makerules (objects, objs): Depend on $(extra-objs) too.
11229 (include sysd-Makefile): Protect with ifndef avoid-generated.
11230
11231 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11232 (CPPFLAGS): Use $(defines) in place of $(+defines).
11233 Replace -D_LIBC with -include $(..)libc-symbols.h.
11234
11235 * stdio/freopen.c: Set seen bit before calling fclose.
11236
11237Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11238
11239 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11240 successes and each kind of failure. Return EPERM or EACCES only
11241 if every task failed that way.
11242
11243 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11244 correctly.
11245
11246 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11247 or resume the process after frobbing.
11248
11249 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11250 throughout.
11251 (_hurd_thread_sigstate): Don't lock the sigstate lock.
11252 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11253 repeated sequences with calls to it. Don't expect the sigstate
11254 lock to be held on entry; lock it just before examining sigaction.
11255 In handler case, check SS->critical_section after calling
11256 abort_rpcs; if set, mark the signal pending and resume the thread.
11257 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11258 (_hurd_self_sigstate): Don't lock the sigstate lock.
11259 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11260 _hurd_self_sigstate_unlocked.
11261 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11262 the sigstate lock.
11263 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11264 Don't expect _hurd_self_sigstate to lock it. Fix critical section
11265 locking.
11266 * hurd/hurd-raise.c: Likewise.
86d2c878 11267 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
28f540f4
RM
11268 * sysdeps/mach/hurd/sigpending.c: Likewise.
11269 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11270 * sysdeps/mach/hurd/sigaction.c: Likewise.
11271 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11272 * hurd/fd-write.c: Likewise.
11273 * hurd/fd-read.c: Likewise.
11274 * sysdeps/mach/hurd/ioctl.c: Likewise.
11275 * sysdeps/mach/hurd/fork.c: Likewise.
11276 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
86d2c878 11277 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
28f540f4
RM
11278 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11279 * hurd/hurdmsg.c (get_int): Likewise.
11280
11281 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
11282
11283 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11284 global.
11285 (PAD): Caller changed.
11286 * stdio/printf_fp.c (__pad): Function removed.
11287 (PAD): Use __printf_pad instead.
11288
11289Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11290
11291 Merged new FP printer by Ulrich Drepper.
11292 * stdio/printf_fp.c: Rewrite by drepper.
11293 * stdio/Makefile (routines): Add ldbl2mpn.
11294 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11295 member.
11296 (union ieee854_long_double): New type, from drepper.
11297 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11298 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11299 * sysdeps/stub/ldbl2mpn.c: New file.
11300 * math/Makefile (routines): Add isinfl and isnanl.
11301 * sysdeps/ieee754/isinfl.c: New file.
11302 * sysdeps/stub/isinfl.c: New file.
11303 * sysdeps/ieee754/isnanl.c: New file.
11304 * sysdeps/stub/isnanl.c: New file.
11305
11306 * malloc/malloc.c (__malloc_extra_blocks): New variable.
11307 (malloc): When getting more core, get __malloc_extra_blocks extra;
11308 put the new block at the end of the free list and let the next loop
11309 iteration use the initial portion of it.
11310 * malloc/free.c (_free_internal): Account for twice
11311 __malloc_extra_blocks in deciding if we have so much extra memory
11312 we should return it to the system.
11313 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11314 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11315 const in parameter decl.
11316
11317 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11318
11319Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11320
11321 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11322
11323 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11324 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11325 * sysdeps/mips/bsd-setjmp.S: Likewise.
11326 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11327 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11328 Use `long int' for sigcode. Use explicit register numbers instead
11329 of names.
11330 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11331 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11332
11333Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11334
11335 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11336
11337 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
11338 using __stpncpy.
11339
11340 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11341
5f9e57ba 11342 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
28f540f4
RM
11343
11344Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11345
11346 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
11347 vm_size_t instead of size_t for arg and return types.
11348
11349 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11350 already does.
11351
11352Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11353
11354 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11355
11356 * configure.in (friendly stddef.h check): Write override defn for
11357 `stddef.h' Make variable.
11358 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11359
11360 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11361
11362 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11363 empty file.
11364
11365 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11366
11367Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11368
11369 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11370
11371 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11372 mach/machine/syscall_sw.h with this.
11373
11374Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11375
11376 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11377 instead of <lock-intern.h>.
11378 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11379 (_hurd_critical_section_lock): Use spin lock operators.
11380 Don't hold the sigstate lock, unlock it after setting the flag.
11381 (_hurd_critical_section_unlock): Take the sigstate lock
11382 to clear the flag; while holding it, check pending signals. After
11383 unlocking, sig_post ourselves if there were pending signals.
11384
11385 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11386 sigstate lock. If it is locked, clear SS->critical_section and
11387 SS->context, and unlock it.
11388
11389 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11390
11391 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11392 * munch-tmpl.c: Likewise.
11393
11394 * mach/Makefile (routines): Don't filter out syscall_% from
11395 $(mach-syscalls).
11396
11397Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
11398
11399 * posix/fnmatch.c: Declare errno if it's not defined.
11400 That's simpler than testing #if !defined(__GNU_LIBRARY__)
11401 && !defined(STDC_HEADERS).
11402
11403Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11404
11405 * csu/Makefile: New file.
11406 * csu/initfini.c: New file.
11407 * Makefile (+other_dirs): Add csu.
11408 (+init): Variable renamed to libc-init. All references changed.
11409 (aux): Remove start.
11410 (install-lib): Variable removed.
11411 (crt0.o, Mcrt1.o crt1.o): Targets removed.
11412
11413 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11414 and $(objpfx)config.h.
11415 (static deps of RPC alias *.o): Removed.
11416
11417 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11418 Protect macros with this.
11419 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11420 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11421 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11422 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11423 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11424 * sysdeps/unix/mips/sysdep.h: Likewise.
11425
11426Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11427
11428 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11429 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11430
11431 * hurd/intr-rpc.awk: Emit weak alias.
11432
11433 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11434 __getpgrp.
11435
11436 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11437 this.
11438 * sysdeps/unix/i386/sysdep.h: Likewise.
11439 * sysdeps/unix/sparc/sysdep.h: Likewise.
11440
11441 * io/ftw.c: Avoid `ret' as variable name.
11442 * posix/glob.c: Likewise.
11443
11444 * ctype/ctype.h (_ISalpha): Define as its own bit.
11445 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11446
11447 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11448 DEFINE_HOOK with this.
11449
11450Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11451
11452 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11453 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11454 * mach/shortcut.awk: Emit weak alias.
11455 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11456 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11457 __ names.
11458 * mach/Makefile (lock): Remove spin-syms.
11459 (routines): Remove __ names, vm_page_size, msgserver_t.
11460 ($(mach-syscalls) rule): Generate files without __, add weak alias.
11461 Remove symbol alias file rule.
11462 ($(mach-shortcuts) rule): Likewise.
11463 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11464 * mach/Machrules (if-calls.c): Variable and rule removed.
11465 (interface-headers): Don't add $($(if)-calls).
11466 (transform-user-stub): Define to add weak alias.
11467 * set-hooks.h: Use new libc-symbols.h set access macros.
11468 * time/Makefile (routines): Remove __ names.
11469 (aux): Variable removed.
11470 * hurd/Makefile: Likewise.
11471 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11472 (data_start): Define as weak alias for __data_start.
11473 * sysdeps/mach/hurd/start.c: Likewise.
11474 * sysdeps/unix/sparc/start.c: Likewise.
11475 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11476 sys_errlist.
11477 * sysdeps/mach/hurd/errlist.awk: Likewise.
11478 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11479 alias for __environ.
11480 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11481 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11482 * sysdeps/stub/getdomain.c: Likewise.
11483 * sysdeps/stub/vhangup.c: Likewise.
11484 * sysdeps/stub/swapon.c: Likewise.
11485 * sysdeps/stub/sendmsg.c: Likewise.
11486 * sysdeps/stub/recvmsg.c: Likewise.
11487 * sysdeps/stub/acct.c: Likewise.
11488 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
11489 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11490 * sysdeps/posix/libc_fatal.c: Likewise.
11491 * sysdeps/i386/abort.c: Likewise.
11492 * sysdeps/i386/__longjmp.c: Likewise.
11493 * sysdeps/generic/make_siglist.c: Emit defn always for
11494 _sys_siglist. Emit weak alias to sys_siglist.
11495 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11496 * sysdeps/ieee754/log10.c: Likewise.
11497 * time/difftime.c: Likewise.
11498 * stdlib/random.c (srand): Define as weak alias for __srandom.
11499 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
11500 macros for __libc_atexit.
11501 * stdlib/Makefile (routines): Remove __random, srand.
11502 * stdio/gets.c: Use new link_warning macro instead of old
11503 warn_references.
11504 * stdio/Makefile (routines): Remove __ names.
11505 (aux): Remove syms-stdio.
11506 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11507 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11508 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11509 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11510 * stdio/stdio.h: Likewise.
11511 * misc/Makefile (routines): Remove __ names.
11512 (aux): Remove data_start.
11513 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11514 * sysdeps/mach/hurd/brk.c: Likewise.
11515 * hurd/hurdid.c: Likewise.
11516 * hurd/hurdpid.c: Likewise.
11517 * hurd/openport.c: Likewise.
11518 * hurd/hurdsock.c: Likewise.
11519 * hurd/hurdsig.c: Likewise.
11520 * hurd/hurdrlimit.c: Likewise.
11521 * hurd/hurdmalloc.c: Likewise.
11522 * hurd/dtable.c: Likewise.
11523 * hurd/setauth.c: Likewise.
11524 * misc/progname.c: Likewise.
11525 * misc/init-misc.c: Likewise.
11526 * sysdeps/generic/vfork.c: Likewise.
11527 * sysdeps/unix/bsd/init-posix.c: Likewise.
11528 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11529 * time/time.h: Likewise.
11530 * math/Makefile (routines): Remove __ names.
11531 * io/Makefile: Likewise.
11532 * termios/Makefile: Likewise.
11533 * resource/Makefile: Likewise.
11534 * signal/Makefile: Likewise.
11535 * dirent/Makefile: Likewise.
11536 * assert/assert.h: Replace __NORETURN keyword with __attribute__
11537 uses. Functions return void and macros deal with this.
11538 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11539 Return void. Don't include gnu-stabs.h.
11540 * assert/assert.c: Likewise.
11541 * posix/Makefile (routines): Remove __ names, setpgrp. Add
11542 getpgid.
11543 (aux): Remove environ.
11544 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11545 __attribute__ use.
11546 * posix/unistd.h (_exit): Likewise.
11547 (__getpgrp, __setpgrp): Declarations removed.
11548 (__getpgid, getpid): Declare these.
11549
11550 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
11551 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
11552 $libc_link_{sources,dests}.
11553 * sysdeps/unix/configure.in: Remove __ from file names. Don't
11554 create files, just add to libc_link_{dests,sources}.
11555
11556 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11557
11558 * config.h.in: Add #undefs used by sysdeps configures.
11559
11560 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11561 __setpgid, __getpgid.
11562 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11563 from setpgrp.c.
11564 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11565 from __getpgrp.c.
11566 * sysdeps/unix/bsd/getpgrp.c: File removed.
11567 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11568 Call __getpgid with zero.
11569 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11570 weak aliases setpgid and setpgrp.
11571 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11572 * sysdeps/unix/common/setpgid.S: Likewise.
11573 * sysdeps/mach/hurd/setpgid.c: Likewise.
11574 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11575 Use subcall 5 to __pgrpsys.
11576 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11577 weak alias getpgid.
11578 * sysdeps/mach/hurd/getpgid.c: Likewise.
11579 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11580 * sysdeps/unix/common/getpgid.S: Likewise.
11581 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11582 Use subcall 4 to __pgrpsys.
11583 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11584 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11585 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11586 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11587 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11588 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11589 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11590 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11591 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11592 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11593 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11594 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11595
11596 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11597 from __getdents.S.
11598
11599 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11600 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11601 warning.
11602 * sysdeps/stub/fexecve.c: Likewise.
11603 * sysdeps/stub/fchdir.c: Likewise.
11604 * sysdeps/stub/fchflags.c: Likewise.
11605 * sysdeps/stub/chflags.c: Likewise.
11606
11607 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11608 * sysdeps/generic/abort.c: Likewise.
11609 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11610
11611 * hurd/hurdioctl.c: Include hurd/ioctl.h.
11612 (_hurd_ioctl_handler_lists): Define this set.
11613 (_hurd_lookup_ioctl_handler): New function.
11614 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11615 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11616 (_hurd_lookup_ioctl_handler): Declare it.
11617 (ioctl_handler_t): New typedef. Use it throughout.
11618 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11619 (_hurd_ioctl_handler_lists): Don't define.
11620 (__ioctl): Call _hurd_lookup_ioctl_handler.
11621
11622 * stdlib/strtol.c (maxquad): Make this const.
11623 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11624
11625 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11626 any compile tests.
11627
11628 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11629 __msg_sig_post_request, not __sig_post_request.
11630
11631 * misc/getusersh.c: Renamed to getusershell.c.
11632 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11633 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11634 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11635 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11636
11637Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11638
11639 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11640 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11641 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11642 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11643 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11644 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11645 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11646 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11647 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11648 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11649 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11650 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11651 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11652 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11653 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11654 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11655 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11656 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11657 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11658 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11659 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11660 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11661 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11662 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11663 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11664 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11665 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11666 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11667 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11668 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11669
11670 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11671 of __sig_post.
11672 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11673 * sysdeps/mach/hurd/kill.c: Likewise.
11674 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11675
11676 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11677 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11678
11679 * sysdeps/stub/remove.c: New file.
11680 * sysdeps/posix/remove.c: New file.
11681
11682Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11683
11684 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11685 mktime.
11686 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11687 __mig_strncpy.
11688 * mach/msg-destroy.c: Renamed from __msg_dest.c.
11689 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11690 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11691 * time/tzset.c (tzname, daylight, timezone): Define as weak
11692 aliases for __ names.
11693 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11694 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11695 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11696 being defined.
11697
11698Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11699
11700 * string/Makefile (routines): Remove __ names, index, rindex, and
11701 bcmp.
11702 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11703 alias for strchr.
11704 * sysdeps/generic/strchr.c: Likewise.
11705 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11706 alias for strrchr.
11707 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11708 alias for memcmp.
11709
11710 * malloc/free.c (cfree): Define this function, with weak_alias if
11711 available, otherwise a C function.
11712 * malloc/Makefile (gmalloc-routines): Remove cfree.
11713
11714Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11715
11716 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11717 get_limit. This has the effect of no-op'ing properly for zero.
11718
11719 * configure.in: Add AC_CONFIG_HEADER(config.h).
11720 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11721 * config.h.in: New file.
11722
11723 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11724 All code converted to use weak symbols, defined in the files which
11725 define the real code (with the __ names, the non-__ names are weak).
11726 All old symbol alias files removed.
11727 Many files renamed to remove __ prefix since there is now just
11728 the one file for both the __ and non-__ name for each function.
11729 * libc-symbols.h: New file.
11730 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11731 sets.
11732 * gnu-stabs.h: Prepend #error this file is obsolete.
11733 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11734 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11735 access.
11736 * sysdeps/unix/common/__access.S: Likewise.
11737 * sysdeps/mach/hurd/__access.c: Likewise.
11738 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11739 adjtime.
11740 * sysdeps/unix/common/__adjtime.S: Likewise.
11741 * sysdeps/mach/__adjtime.c: Likewise.
11742 * sysdeps/mach/hurd/__adjtime.c: Likewise.
11743 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11744 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11745 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11746 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11747 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11748 * sysdeps/unix/i386/__brk.S: Likewise.
11749 * sysdeps/unix/sparc/__brk.S: Likewise.
11750 * sysdeps/unix/mips/__brk.S: Likewise.
11751 * sysdeps/mach/hurd/__brk.c: Likewise.
11752 * sysdeps/standalone/__brk.c: Likewise.
11753 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11754 * sysdeps/unix/__chdir.S: Likewise.
11755 * sysdeps/mach/hurd/__chdir.c: Likewise.
11756 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11757 * sysdeps/unix/__chmod.S: Likewise.
11758 * sysdeps/mach/hurd/__chmod.c: Likewise.
11759 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11760 * sysdeps/unix/__chown.S: Likewise.
11761 * sysdeps/mach/hurd/__chown.c: Likewise.
11762 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11763 * sysdeps/unix/__close.S: Likewise.
11764 * sysdeps/mach/hurd/__close.c: Likewise.
11765 * sysdeps/standalone/__close.c: Likewise.
11766 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11767 alias copysign.
11768 * sysdeps/ieee754/__copysign.c: Likewise.
11769 * sysdeps/alpha/__copysign.c: Likewise.
11770 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11771 * sysdeps/m68k/fpu/__drem.c: Likewise.
11772 * sysdeps/stub/__drem.c: Likewise.
11773 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11774 * sysdeps/stub/__dup.c: Likewise.
11775 * sysdeps/unix/__dup.S: Likewise.
11776 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11777 * sysdeps/stub/__dup2.c: Likewise.
11778 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11779 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11780 * sysdeps/unix/common/__dup2.S: Likewise.
11781 * sysdeps/mach/hurd/__dup2.c: Likewise.
11782 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11783 execve.
11784 * sysdeps/unix/__execve.S: Likewise.
11785 * sysdeps/mach/hurd/__execve.c: Likewise.
11786 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11787 expm1.
11788 * sysdeps/m68k/fpu/__expm1.c: Likewise.
11789 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11790 fchmod.
11791 * sysdeps/unix/common/__fchmod.S: Likewise.
11792 * sysdeps/mach/hurd/__fchmod.c: Likewise.
11793 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11794 fchown.
11795 * sysdeps/unix/common/__fchown.S: Likewise.
11796 * sysdeps/mach/hurd/__fchown.c: Likewise.
11797 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11798 * sysdeps/unix/__fcntl.S: Likewise.
11799 * sysdeps/mach/hurd/__fcntl.c: Likewise.
11800 * math/__finite.c: Renamed to finite.c; added weak alias finite.
11801 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11802 * sysdeps/stub/__flock.c: Likewise.
11803 * sysdeps/unix/bsd/__flock.S: Likewise.
11804 * sysdeps/mach/hurd/__flock.c: Likewise.
11805 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11806 fopenport.
11807 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11808 * sysdeps/unix/__fork.S: Likewise.
11809 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11810 * sysdeps/unix/i386/__fork.S: Likewise.
11811 * sysdeps/unix/sparc/__fork.S: Likewise.
11812 * sysdeps/unix/mips/__fork.S: Likewise.
11813 * sysdeps/mach/hurd/__fork.c: Likewise.
11814 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11815 alias fpathconf.
11816 * sysdeps/stub/__fpathcon.c: Likewise.
11817 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11818 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11819 * sysdeps/unix/__fstat.S: Likewise.
11820 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11821 * sysdeps/mach/hurd/__fstat.c: Likewise.
11822 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11823 getdelim.
11824 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11825 alias getdents.
11826 * sysdeps/unix/__getdents.c: Likewise.
11827 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11828 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11829 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11830 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11831 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11832 * sysdeps/unix/sysv/__getdents.c: Likewise.
11833 * sysdeps/mach/hurd/__getdents.c: Likewise.
11834 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11835 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11836 alias getdtablesize.
11837 * sysdeps/stub/__getdtsz.c: Likewise.
11838 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11839 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11840 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11841 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11842 getegid.
11843 * sysdeps/unix/__getegid.S: Likewise.
11844 * sysdeps/mach/hurd/__getegid.c: Likewise.
11845 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11846 geteuid.
11847 * sysdeps/unix/__geteuid.S: Likewise.
11848 * sysdeps/mach/hurd/__geteuid.c: Likewise.
11849 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11850 getgid.
11851 * sysdeps/unix/__getgid.S: Likewise.
11852 * sysdeps/mach/hurd/__getgid.c: Likewise.
11853 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11854 alias getgroups.
11855 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11856 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11857 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11858 * sysdeps/unix/common/__getgrps.S: Likewise.
11859 * sysdeps/mach/hurd/__getgrps.c: Likewise.
11860 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
86d2c878 11861 alias gethostname.
28f540f4
RM
11862 * sysdeps/unix/inet/__gethstnm.S: Likewise.
11863 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11864 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11865 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11866 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11867 alias getitimer.
11868 * sysdeps/unix/common/__getitmr.S: Likewise.
11869 * sysdeps/mach/hurd/__getitmr.c: Likewise.
11870 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11871 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11872 alias getpagesize.
11873 * sysdeps/stub/__getpgsz.c: Likewise.
11874 * sysdeps/unix/__getpgsz.c: Likewise.
11875 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11876 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11877 * sysdeps/mach/__getpgsz.c: Likewise.
11878 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11879 getpid.
11880 * sysdeps/unix/__getpid.S: Likewise.
11881 * sysdeps/mach/hurd/__getpid.c: Likewise.
11882 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11883 getppid.
11884 * sysdeps/unix/__getppid.S: Likewise.
11885 * sysdeps/mach/hurd/__getppid.c: Likewise.
11886 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11887 alias gettimeofday.
11888 * sysdeps/stub/__gettod.c: Likewise.
11889 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11890 * sysdeps/unix/common/__gettod.S: Likewise.
11891 * sysdeps/mach/__gettod.c: Likewise.
11892 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11893 getuid.
11894 * sysdeps/unix/__getuid.S: Likewise.
11895 * sysdeps/mach/hurd/__getuid.c: Likewise.
11896 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11897 alias infnan.
11898 * sysdeps/ieee754/__infnan.c: Likewise.
11899 * sysdeps/vax/__infnan.c: Likewise.
11900 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11901 * sysdeps/unix/__ioctl.S: Likewise.
11902 * sysdeps/mach/hurd/__ioctl.c: Likewise.
11903 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11904 isatty.
11905 * sysdeps/stub/__isatty.c: Likewise.
11906 * sysdeps/unix/bsd/__isatty.c: Likewise.
11907 * sysdeps/mach/hurd/__isatty.c: Likewise.
11908 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11909 isinf.
11910 * sysdeps/m68k/fpu/__isinf.c: Likewise.
11911 * sysdeps/stub/__isinf.c: Likewise.
11912 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11913 isnan.
11914 * sysdeps/ieee754/__isnan.c: Likewise.
11915 * sysdeps/m68k/fpu/__isnan.c: Likewise.
11916 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11917 * sysdeps/unix/__kill.S: Likewise.
11918 * sysdeps/mach/hurd/__kill.c: Likewise.
11919 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11920 * sysdeps/unix/__link.S: Likewise.
11921 * sysdeps/mach/hurd/__link.c: Likewise.
11922 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11923 * sysdeps/m68k/fpu/__logb.c: Likewise.
11924 * sysdeps/stub/__logb.c: Likewise.
11925 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11926 * sysdeps/unix/__lseek.S: Likewise.
11927 * sysdeps/mach/hurd/__lseek.c: Likewise.
11928 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11929 lstat.
11930 * sysdeps/stub/__lstat.c: Likewise.
11931 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11932 * sysdeps/unix/common/__lstat.S: Likewise.
11933 * sysdeps/mach/hurd/__lstat.c: Likewise.
11934 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11935 alias memccpy.
11936 * sysdeps/vax/__memccpy.c: Likewise.
11937 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11938 * sysdeps/unix/sysv/__mkdir.c: Likewise.
11939 * sysdeps/unix/common/__mkdir.S: Likewise.
11940 * sysdeps/mach/hurd/__mkdir.c: Likewise.
11941 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11942 * sysdeps/unix/__mknod.S: Likewise.
11943 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11944 * sysdeps/mach/hurd/__mknod.c: Likewise.
11945 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11946 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11947 mach_msg_server.
11948 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11949 * sysdeps/unix/__open.S: Likewise.
11950 * sysdeps/mach/hurd/__open.c: Likewise.
11951 * sysdeps/standalone/__open.c: Likewise.
11952 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11953 alias pathconf.
11954 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11955 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11956 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11957 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
11958 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
11959 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
11960 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
11961 * sysdeps/unix/i386/__pipe.S: Likewise.
11962 * sysdeps/unix/sparc/__pipe.S: Likewise.
11963 * sysdeps/unix/mips/__pipe.S: Likewise.
11964 * sysdeps/mach/hurd/__pipe.c: Likewise.
11965 * stdlib/__random.c: Renamed to random.c; added weak alias random.
11966 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
11967 * sysdeps/unix/__read.S: Likewise.
11968 * sysdeps/mach/hurd/__read.c: Likewise.
11969 * sysdeps/standalone/__read.c: Likewise.
11970 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
11971 alias readlink.
11972 * sysdeps/unix/common/__readlink.S: Likewise.
11973 * sysdeps/mach/hurd/__readlink.c: Likewise.
11974 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
11975 * sysdeps/m68k/fpu/__rint.c: Likewise.
11976 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
11977 * sysdeps/unix/sysv/__rmdir.c: Likewise.
11978 * sysdeps/unix/common/__rmdir.S: Likewise.
11979 * sysdeps/mach/hurd/__rmdir.c: Likewise.
11980 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
11981 * sysdeps/stub/__sbrk.c: Likewise.
11982 * sysdeps/mach/hurd/__sbrk.c: Likewise.
11983 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
11984 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
11985 select.
11986 * sysdeps/unix/common/__select.S: Likewise.
11987 * sysdeps/mach/hurd/__select.c: Likewise.
11988 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
11989 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
11990 setgid.
11991 * sysdeps/unix/__setgid.S: Likewise.
11992 * sysdeps/unix/bsd/__setgid.c: Likewise.
11993 * sysdeps/mach/hurd/__setgid.c: Likewise.
11994 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
86d2c878 11995 setitmr
28f540f4
RM
11996 * sysdeps/unix/common/__setitmr.S: Likewise.
11997 * sysdeps/mach/hurd/__setitmr.c: Likewise.
11998 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
86d2c878 11999 setpgrp
28f540f4
RM
12000 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
12001 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
12002 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
12003 * sysdeps/unix/common/__setpgrp.S: Likewise.
12004 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
12005 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
12006 alias setregid.
12007 * sysdeps/unix/common/__setregid.S: Likewise.
12008 * sysdeps/mach/hurd/__setregid.c: Likewise.
12009 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
12010 alias setreuid.
12011 * sysdeps/unix/common/__setreuid.S: Likewise.
12012 * sysdeps/mach/hurd/__setreuid.c: Likewise.
12013 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
12014 setsid.
12015 * sysdeps/unix/bsd/__setsid.c: Likewise.
12016 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
12017 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
12018 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
12019 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
12020 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
12021 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
12022 * sysdeps/mach/hurd/__setsid.c: Likewise.
12023 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
12024 settimeofday.
12025 * sysdeps/unix/bsd/__settod.S: Likewise.
12026 * sysdeps/unix/sysv/__settod.c: Likewise.
12027 * sysdeps/mach/hurd/__settod.c: Likewise.
12028 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
12029 setuid.
12030 * sysdeps/unix/__setuid.S: Likewise.
12031 * sysdeps/unix/bsd/__setuid.c: Likewise.
12032 * sysdeps/mach/hurd/__setuid.c: Likewise.
12033 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
12034 alias sigblock.
12035 * sysdeps/stub/__sigblock.c: Likewise.
12036 * sysdeps/unix/bsd/__sigblock.S: Likewise.
12037 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
12038 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
12039 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
12040 alias sigpause.
12041 * sysdeps/stub/__sigpause.c: Likewise.
12042 * sysdeps/unix/bsd/__sigpause.S: Likewise.
12043 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
12044 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
12045 alias sigprocmask.
12046 * sysdeps/unix/bsd/__sigproc.c: Likewise.
12047 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
12048 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
12049 * sysdeps/mach/hurd/__sigproc.c: Likewise.
12050 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
12051 alias sigreturn.
12052 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
12053 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
12054 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
12055 * sysdeps/unix/i386/__sigret.S: Likewise.
12056 * sysdeps/unix/mips/__sigret.S: Likewise.
12057 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
12058 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
12059 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
12060 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
12061 sigvec.
12062 * sysdeps/stub/__sigvec.c: Likewise.
12063 * sysdeps/unix/bsd/__sigvec.S: Likewise.
12064 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
12065 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
12066 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
12067 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
12068 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
12069 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
12070 * sysdeps/unix/__stat.S: Likewise.
12071 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
12072 * sysdeps/mach/hurd/__stat.c: Likewise.
12073 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
12074 alias stpncpy.
12075 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
12076 symlink.
12077 * sysdeps/unix/common/__symlink.S: Likewise.
12078 * sysdeps/mach/hurd/__symlink.c: Likewise.
12079 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
12080 alias sysconf.
12081 * sysdeps/stub/__sysconf.c: Likewise.
12082 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
12083 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
12084 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
12085 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
12086 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
12087 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
12088 * sysdeps/unix/bsd/__times.c: Likewise.
12089 * sysdeps/unix/sysv/__times.S: Likewise.
12090 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
12091 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
12092 * sysdeps/unix/__umask.S: Likewise.
12093 * sysdeps/mach/hurd/__umask.c: Likewise.
12094 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
12095 unlink.
12096 * sysdeps/unix/__unlink.S: Likewise.
12097 * sysdeps/mach/hurd/__unlink.c: Likewise.
12098 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
12099 utimes.
12100 * sysdeps/unix/bsd/__utimes.S: Likewise.
12101 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
12102 * sysdeps/mach/hurd/__utimes.c: Likewise.
12103 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
12104 vfork.
12105 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
12106 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
12107 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
12108 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
12109 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
12110 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
12111 * sysdeps/unix/sparc/__vfork.S: Likewise.
12112 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
12113 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
12114 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
12115 * sysdeps/stub/__wait.c: Likewise.
12116 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
12117 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
12118 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
12119 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
12120 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
12121 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
12122 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
12123 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
12124 * sysdeps/unix/i386/__wait.S: Likewise.
12125 * sysdeps/unix/mips/__wait.S: Likewise.
12126 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
12127 * sysdeps/stub/__wait3.c: Likewise.
12128 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
12129 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
12130 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
12131 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
12132 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
12133 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
12134 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
12135 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
12136 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
12137 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
12138 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
12139 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
12140 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
12141 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
12142 * sysdeps/mach/hurd/__wait4.c: Likewise.
12143 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
12144 waitpid.
12145 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
12146 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
12147 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
12148 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
12149 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
12150 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
12151 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
12152 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
12153 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
12154 * sysdeps/unix/__write.S: Likewise.
12155 * sysdeps/mach/hurd/__write.c: Likewise.
12156 * sysdeps/standalone/__write.c: Likewise.
12157 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
12158 alias tcgetattr.
12159 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
12160 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
12161 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
12162 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
12163 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
12164 alias sigaction.
12165 * sysdeps/unix/bsd/__sigact.c: Likewise.
12166 * sysdeps/unix/sysv/__sigact.c: Likewise.
12167 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
12168 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
12169 * sysdeps/mach/hurd/__sigact.c: Likewise.
12170 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
12171 alias sigsetmask.
12172 * sysdeps/stub/__sigstmsk.c: Likewise.
12173 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
12174 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
12175 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
12176 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
12177 alias getrusage.
12178 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
12179 * sysdeps/unix/common/__getrusag.S: Likewise.
12180 * hurd/task2pid.c: File removed.
12181 * hurd/setauth.c: File removed.
12182 * hurd/pid2task.c: File removed.
12183 * hurd/hurdsyms.c: File removed.
12184 * hurd/getdport.c: File removed.
12185 * hurd/fopenport.c: File removed.
12186 * mach/thread-sym.c: File removed.
12187 * mach/spin-syms.c: File removed.
12188 * mach/msgserver_t.c: File removed.
12189 * mach/msgserver.c: File removed.
12190 * mach/msg.c: File removed.
12191 * mach/mig_syms.c: File removed.
12192 * malloc/mcheck-init.c: File removed.
12193 * malloc/cfree.c: File removed.
12194 * io/flock.c: File removed.
12195 * io/write.c: File removed.
12196 * io/unlink.c: File removed.
12197 * io/umask.c: File removed.
12198 * io/symlink.c: File removed.
12199 * io/rmdir.c: File removed.
12200 * io/readlink.c: File removed.
12201 * io/read.c: File removed.
12202 * io/pipe.c: File removed.
12203 * io/open.c: File removed.
12204 * io/mkdir.c: File removed.
12205 * io/lstat.c: File removed.
12206 * io/lseek.c: File removed.
12207 * io/link.c: File removed.
12208 * io/isatty.c: File removed.
12209 * io/stat.c: File removed.
12210 * io/fstat.c: File removed.
12211 * io/fchown.c: File removed.
12212 * io/fchmod.c: File removed.
12213 * io/dup2.c: File removed.
12214 * io/dup.c: File removed.
12215 * io/close.c: File removed.
12216 * io/fcntl.c: File removed.
12217 * io/chmod.c: File removed.
12218 * io/chdir.c: File removed.
12219 * io/access.c: File removed.
12220 * io/chown.c: File removed.
12221 * time/tzset.c: File removed.
12222 * time/timelocal.c: File removed.
12223 * time/syms-time.c: File removed.
12224 * time/settod.c: File removed.
12225 * time/setitmr.c: File removed.
12226 * time/gettod.c: File removed.
12227 * time/getitmr.c: File removed.
12228 * time/adjtime.c: File removed.
12229 * termios/tcgetattr.c: File removed.
12230 * string/stpncpy.c: File removed.
12231 * string/rindex.c: File removed.
12232 * string/memccpy.c: File removed.
12233 * string/index.c: File removed.
12234 * string/bcmp.c: File removed.
12235 * stdlib/srand.c: File removed.
12236 * stdlib/random.c: File removed.
12237 * stdio/vsscanf.c: File removed.
12238 * stdio/vfscanf.c: File removed.
12239 * stdio/syms-stdio.c: File removed.
12240 * stdio/remove.c: File removed.
12241 * stdio/getline.c: File removed.
12242 * stdio/getdelim.c: File removed.
12243 * signal/ssignal.c: File removed.
12244 * signal/sigvec.c: File removed.
12245 * signal/sigsetmask.c: File removed.
12246 * signal/sigret.c: File removed.
12247 * signal/sigproc.c: File removed.
12248 * signal/sigpause.c: File removed.
12249 * signal/sigblock.c: File removed.
12250 * signal/sigaction.c: File removed.
12251 * signal/kill.c: File removed.
12252 * signal/gsignal.c: File removed.
12253 * setjmp/siglongjmp.c: File removed.
12254 * setjmp/_longjmp.c: File removed.
12255 * resource/getrusage.c: File removed.
12256 * posix/waitpid.c: File removed.
12257 * posix/wait4.c: File removed.
12258 * posix/wait3.c: File removed.
12259 * posix/wait.c: File removed.
12260 * posix/times.c: File removed.
12261 * posix/sysconf.c: File removed.
12262 * posix/setuid.c: File removed.
12263 * posix/setsid.c: File removed.
12264 * posix/setpgrp.c: File removed.
12265 * posix/setpgid.c: File removed.
12266 * posix/setgid.c: File removed.
12267 * posix/pathconf.c: File removed.
12268 * posix/getuid.c: File removed.
12269 * posix/getppid.c: File removed.
12270 * posix/getpid.c: File removed.
12271 * posix/getgrps.c: File removed.
12272 * posix/getgid.c: File removed.
12273 * posix/geteuid.c: File removed.
12274 * posix/getegid.c: File removed.
12275 * posix/fpathcon.c: File removed.
12276 * posix/fork.c: File removed.
12277 * posix/execve.c: File removed.
12278 * posix/environ.c: File removed.
12279 * misc/utimes.c: File removed.
12280 * misc/setreuid.c: File removed.
12281 * misc/setregid.c: File removed.
12282 * misc/select.c: File removed.
12283 * misc/sbrk.c: File removed.
12284 * misc/mknod.c: File removed.
12285 * misc/ioctl.c: File removed.
12286 * misc/getpgsz.c: File removed.
12287 * misc/gethstnm.c: File removed.
12288 * misc/getdtsz.c: File removed.
12289 * misc/data_start.c: File removed.
12290 * misc/brk.c: File removed.
12291 * math/scalb.c: File removed.
12292 * math/rint.c: File removed.
12293 * math/logb.c: File removed.
12294 * math/isnan.c: File removed.
12295 * math/isinf.c: File removed.
12296 * math/infnan.c: File removed.
12297 * math/finite.c: File removed.
12298 * math/expm1.c: File removed.
12299 * math/drem.c: File removed.
12300 * math/copysign.c: File removed.
12301 * math/__scalb.c: File removed.
12302 * dirent/getdents.c: File removed.
12303
12304Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12305
12306 * sysdeps/generic/morecore.c (__default_morecore): Use
12307 __malloc_ptrdiff_t; don't cast arg to int.
12308
12309 * resolv/getnetnamadr.c: Include "conf/portability.h".
12310
12311Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12312
12313 * stdlib/strtol.c: Include errno.h.
12314 [QUAD] (ULONG_MAX): Define to a static variable initialized to
12315 ULONG_LONG_MAX. This is to work around a GCC bug in using the
12316 constant in arithmetic.
12317
12318 * posix/unistd.h (daemon): Declare it.
12319
12320 * malloc/mcheck-init.c: Remove GNU ld hacks.
12321 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12322 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12323 (initialize): Call the hook if set.
12324 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12325 (__malloc_initialize_hook): Declare new hook variable.
12326
12327Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12328
12329 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12330 * hurd/hurdpid.c: Likewise.
12331 * hurd/hurdauth.c: Likewise.
12332
12333Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12334
12335 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12336 if any are successful.
12337
12338 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
86d2c878 12339 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
28f540f4
RM
12340 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12341 functions.
12342 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12343
12344 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12345 * hurd/hurd-raise.c: Likewise.
12346 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12347
12348 * sysdeps/mach/hurd/ptrace.c: New file.
12349
12350 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12351 interface, which has normal EINTR semantics. Instead of waiting
12352 for io_select_done notification messages, send io_select messages
12353 with short reply timeout and then wait for io_select_reply
12354 messages.
12355
12356 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12357 EXEC_INHERITED) to file_exec.
12358
12359 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12360 use sig_post_untraced_reply. All callers changed.
86d2c878 12361 (abort_thread, abort_rpcs): Take same new arg and pass it through.
28f540f4
RM
12362 All callers changed.
12363 (_hurd_internal_post_signal): Take new arg UNTRACED.
12364 If zero and process is traced, stop with SIGNO as stop signal. If
12365 nonzero, resume process before delivering signal (unless
12366 ACT==stop). Expand local fn sigwakeup into block at end taken iff
12367 SIGNO!=0.
12368 (signal_allowed): New function, broken out of _S_sig_post.
12369 (_S_sig_post): Call it. Pass UNTRACED arg of false to
12370 _hurd_internal_post_signal.
12371 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
12372 pass true for UNTRACED.
12373 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12374 UNTRACED.
12375 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12376 to _hurd_internal_post_signal (value zero).
12377
12378Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12379
12380 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12381 (_hurd_init): Initialize it from FLAGS arg.
12382 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12383 raise a SIGTRAP signal (with a sigcode of zero).
12384 * hurd/hurd.h (_hurd_exec_flags): Declare it.
12385
12386 * Version 1.09.5.
12387
12388Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12389
12390 * malloc/malloc.c (malloc): Fix 1-off in previous change.
12391
12392Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12393
12394 * posix/glob/Makefile.in: Remove config.h and config.log.
12395
12396Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12397
12398 * posix/glob/configure.in: Add AC_CONST check.
12399
12400 * conf/portability.h: #undef sun.
12401 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12402 * resolv/getnetnamadr.c: Likewise.
12403
12404 * socket/Makefile (headers): Add sockaddrcom.h.
12405 * inet/netinet/in.h: Include <sockaddrcom.h>.
12406 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12407 * socket/sys/un.h (struct sockaddr_in): Likewise.
12408 * socket/sys/socket.h (struct sockaddr): Likewise.
12409 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12410 * sysdeps/generic/sockaddrcom.h: New file.
12411
12412 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12413 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12414 F_FREESP): New macros.
12415 * sysdeps/posix/truncate.c: New file.
12416
12417 * malloc/malloc.c (malloc): Fix typos in RMS's change.
12418
12419 * malloc/Makefile (dist-routines): Add malloc-find.
12420 * malloc/malloc.h (malloc_find_object_address): Declare it.
12421 * malloc/malloc-find.c: New file.
12422
12423 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12424 __malloc_size_t.
12425 (malloc_info): Use that type for member `busy.info.size'.
12426
12427 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12428 `LONG' macro.
12429 [! QUAD] (LONG): Define as long.
12430 [QUAD] (LONG): Define as long long.
12431 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12432 versions.
12433 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12434 * stdlib/Makefile (routines): Add strtoq and strtouq.
12435 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12436 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12437 Declare them.
12438
12439 * stdio/vfprintf.c: If there was a precision specified, ignore the
12440 0 flag and always pad with spaces.
12441
12442 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12443 Use a loop and also stop on first !isascii char.
12444
12445Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12446
12447 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12448
12449 * malloc/malloc.c (malloc): For a multi-block object, store a
12450 negative number into the busy.info.size of all but the first block.
12451
12452Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
12453
12454 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12455 instead of t0, t1, and t2.
12456
12457Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12458
12459 * malloc/memalign.c (__memalign_hook): New variable.
12460 (memalign): Call it if set.
12461 * malloc/malloc.h (__memalign_hook): Declare new variable.
12462
12463Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12464
12465 * conf/portability.h: Include string.h and stdlib.h.
12466 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12467 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12468 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12469 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12470 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12471
12472 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
12473 all uses of `extern __inline' with `__m81_inline'.
12474
12475 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12476 * sysdeps/unix/__fork.S: Swap args in subl.
12477
12478 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12479 compatibility.
12480
12481Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
12482
12483 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12484 of swtch.
12485 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12486 * mach/spin-solid.c (__spin_lock_solid): Likewise.
12487
12488Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12489
12490 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12491 for PBUF.
12492 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12493
12494 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12495
12496Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12497
12498 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12499 in `bis' insn; immediate must be second.
12500
12501 * sysdeps/unix/__fork.S: Use subl instead of decl.
12502 * sysdeps/unix/i386/__fork.S: New file.
12503
12504 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12505 Remove A macro; just use `asm volatile' with proper quotes in each
12506 line.
12507 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12508 jmp target register.
12509
12510 * time/africa, time/asia, time/australasia, time/emkdir.c,
12511 time/europe, time/ialloc.c, time/northamerica, time/private.h,
12512 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12513 and data from ADO 94h distribution.
12514
12515 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12516 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
12517 absolute pointer. Put second store in jmp delay slot.
12518
12519Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12520
12521 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12522 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
12523 absolute pointer.
12524 * sysdeps/sparc/bsd-setjmp.S: Likewise.
12525
12526 * configure.in: Use ; before } in { ... } exprs.
12527
e215c478 12528\f
28f540f4 12529
e215c478 12530See ChangeLog.4 for earlier changes.
This page took 1.36088 seconds and 5 git commands to generate.