]> sourceware.org Git - glibc.git/blame - ChangeLog
Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
[glibc.git] / ChangeLog
CommitLineData
3867ee64
RM
1Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
2
3 * stdio-common/vfscanf.c: Major change. Now read character
4 from stream only if needed. Before it was read after the
5 previous character was used.
6 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
7
8 * stdio-common/tstscanf.c: Change test program so that return
9 value is != 0 if one test failed.
10
ec2ac6d5
RM
11Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
12
3867ee64
RM
13 * sysdeps/m68k/Makefile (crypt): Variable removed.
14 * sysdeps/sparc/Makefile: Likewise.
15
ec2ac6d5
RM
16 * version.h (VERSION): Update to 1.93.
17
18 * Makerules ($(libdir)/libc.so): Depend on
19 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
20
21 * crypt/nocrypt.c: New file.
22 * Makefile (subdirs): Add crypt.
23 * crypt/Makefile: New file.
24
25 * Makerules (soversions.mk): Move this target, include of it, and
26 include of version.mk to ...
27 * Makeconfig: ... here.
28 (soversions.mk): Depend on Makeconfig instead of Makerules.
29
30 * shlib-versions (*-*-*): Set libcrypt=0.
31
8a5776e6
MB
32Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
33
34 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
35 word extends right up to rmargin.
36
37 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
38 output the wrap margin, set point_col to wmargin.
39 Use negative point_col to deal with a wmargin of 0.
40 (line_wrap_point): Return 0 for a negative point_col.
41 (line_wrap_stream): Make wmargin ssize_t.
42 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
43 point_col ssize_t.
44 (line_wrap_stream): Make wmargin ssize_t.
45 (line_wrap_point): Return 0 for a negative point_col.
46
ec2ac6d5
RM
47Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
48
49 * shlib-versions (*-*-gnu*): Set libc=0.0
50
51Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
52
53 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
54 sysdeps/i386/dl-machine.h.
55
8a5776e6
MB
56Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
57
58 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
59 to fiddle __put_limit in conjunction with __linebuf_active.
60
ec2ac6d5
RM
61Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
62
63 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
64 to the strong name, not the file name.
65
f36f8dcf
RM
66Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
67
ec2ac6d5
RM
68 * csu/initfini.c: More magic. Detect if .end is produced and put it
69 in the output iff the compiler does.
70
184b7b46
RM
71 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
72 because that is broken on alpha.
73
f36f8dcf
RM
74 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
75 call as in first.
76
77 * Makerules (make-link): Install the new link with atomic mv -f in
78 case ln itself requires the library being installed.
79
ec42724d
RM
80Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
81
82 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
83 i386/dl-machine.h of 960713.
84
85 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
86 (_dl_sysdep_read_whole_file): Fix result variable declaration.
87
88Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
89
90 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
91 `nodename' member.
92
93Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
94
95 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
96 with pointer to local variable instead of NULL.
97
981996-07-15 Paul Eggert <eggert@twinsun.com>
99
100 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
101
102Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
103
104 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
105 that are already added by other means.
106
107 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
108 caller column to get those syscalls added automagically.
109
05a6a9d6
MB
110Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
111
112 * login/logout.c (logout): Initialize DATA to a state that will
113 make setutent_r happy.
114
2064087b
RM
115Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
116
ec42724d
RM
117 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
118 instead of setting the DT_DEBUG pointer.
119
120 * csu/initfini.c (_init, _fini): Generate .end directives after
121 standalone prologues and filter them out from epilogues.
122
391763e7
RM
123 * Makeconfig (rtld-installed-name): Set to ld.so.1.
124 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
125 removed.
126
127 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
128
129 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
130
a78b0f18
RM
131 * MakeTAGS (extract): Pass --add-comments=TRANS.
132 * sysdeps/gnu/errlist.awk: Write comments into the output with the
133 descriptive paragraphs from the manual preceded by TRANS.
134
b1dbbaa4
RM
135 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
136 (_dl_start): Move RESOLVE defn inside this function and #include
137 "dynamic-link.h" a second time there.
138 [RTLD_START]: Move use of this after _dl_start function.
139
f51d1dfd
RM
140 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
141
142 * elf/rtld.c: Include <string.h>.
143
144 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
145 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
146 Conditionalize defns on [RESOLVE].
147 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
148 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
149 Instead use RESOLVE macro with same args.
150 (elf_machine_rel): Conditionalize defn on [RESOLVE].
151 * elf/dl-reloc.c (RESOLVE): New macro, define before including
152 "dynamic-link.h". It replaces `resolve' local function.
153 * elf/dl-runtime.c: Likewise.
154 * elf/rtld.c: Likewise.
155
c928de79
RM
156 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
157
158 * elf/dl-open.c (_dl_open): Force an indirect call for
159 _dl_relocate_object so there is no chance a PLT fixup will be done
160 and clobber _dl_global_scope before our call happens.
161
162 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
163 to =t; must operate on top of fp reg stack, not second from top.
164 Correct input constraint to 0 from t; must be explicit when input and
165 output are the same register.
166 (floor): Use __volatile instead of volatile.
167 (ceil): Likewise.
168
169 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
170 other targets.
2064087b
RM
171
172Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
173
174 * manual/Makefile (lib): New phony target. Depend on stamp files.
175 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
176
1771996-07-13 Paul Eggert <eggert@twinsun.com>
178
179 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
180 to match Emacs format-time-string specification.
181 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
182
183Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
184
185 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
186 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
187 between MAP and its deps.
188 * elf/link.h: Fix decl.
189 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
190 colon-separated list of names, map those and pass vector of ptrs as
191 PRELOADS list to _dl_map_object_deps.
192 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
193 _dl_map_object_deps with empty preload list.
194 * elf/dl-open.c (_dl_open): Likewise.
195
196 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
197 removed.
198 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
199 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
200 Conditionalize defn on [! MAP_ANON].
201 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
202 on [! MAP_ANON].
203 * elf/rtld.c (dl_main): Likewise.
204 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
205 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
206
207 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
208
209Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
210
211 * stdlib/random.c (__random): Declare as int32_t to be in sync
212 with declaration.
213
214 * socket/Makefile (headers): Add socketbits.h.
215
216 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
217 it that way.
218
219 * grp/initgroups.c (initgroups): Add groups that user is a member
220 of, not the ones he is _not_ a member of.
221
222 * nss/nsswitch.c (known_compare): Make known_compare() a static
223 instead of a local function. The latter are difficult to debug
224 and slow to execute on certain platforms.
225
226 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
227 place of sizeof (dev). The size of a literal string includes the
228 NUL byte.
229
230 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
231
232Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
233
234 * misc/mntent.c (addmntent): Seek to end of file before writing
235 entry. Return 1 on error, not -1.
236
237Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
238
239 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
240 syscall.
241
242Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
243
244 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
245 shift amount for Jensen must be 5 not 4.
246
247Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
248
249 * socket/sys/socket.h (struct osockaddr): New type.
250
251Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
252
253 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
254 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
255 and `long double' versions can be generated.
256 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
257 so that included efgcvt{,_r}.c file generate `long double'
258 versions.
259 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
260 functions.
261
262 * manual/startup.texi: Document new getsubopt function.
263 * manual/examples/subopt.c: New example program for documenting
264 getsubopt function.
265
266Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
267
268 * stdlib/Makefile (routines): Add getsubopt.
269 * stdlib/stdlib.h: Add prototype for getsubopt.
270 * stdlib/getsubopt.c: New file. Implement getsubopt function
271 to handle suboption parsing.
272
adc6ff7f
RM
273Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
274
842907c6
RM
275 * inet/getnetent_r.c: Define NEED_H_ERRNO.
276 * inet/getnetbynm_r.c: Likewise.
277 * inet/getnetent.c: Likewise.
278 * inet/getnetbyad_r.c: Likewise.
279 * inet/getnetbyad.c: Likewise.
280 * inet/getnetbynm.c: Likewise.
281
282 * sysdeps/generic/pselect.c: Include <sys/time.h>.
283
284 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
285 `struct timespec'.
286
e6c9a67a
RM
287 * math/Makefile (calls): Add s_frexp, s_ldexp.
288 (routines): Remove them and &f from here.
289
290 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
291
adc6ff7f
RM
292 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
293 and check it.
294
295 * nss/nss_files/files-XXX.c: Comment fix.
296
297Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
298
299 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
300 of reentrant function.
301 (setup): Pass additional argument with function name we are
302 looking for.
303 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
304 new argument {SET,END,GET}FUNC_NAME_STRING.
305
306 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
307 we return a pointer.
308
309Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
310
311 * nss/nss_files/files-parse.c: Add comment about things to #define.
312
313 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
314
315 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
316 terminator char as an error.
317
318 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
319
320Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
321
322 * catgets/gencat.c (write_out): Move code to determine new
323 best size out of inner loop.
324
e6c9a67a
RM
325Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
326
327 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
328 implementation of frexp() function.
329 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
330 implementation of ldexp() function.
331
332 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
333 out before or'ing.
334
adc6ff7f
RM
335Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
336
337 * misc/mntent.c: Include <sys/types.h>.
338 (endmntent): Return 1 one success, 0 on failure.
339 (getmntent): Chop newline and ignore empty lines.
340
341Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
342
343 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
344 differently based on [RTLD_BOOTSTRAP].
345 (elf_machine_rela): Use it instead of the fn ptr arg directly.
346
c1509239
RM
347Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
348
07a4742f
RM
349 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
350 __glob_closedir_hook): Remove decls.
351
352 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
353
354 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
355 for send and connect syscalls.
356
357 * socket/sys/socket.h: New file, taken from non-sysdep parts of
358 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
359 Declare __ names for send and connect.
360 * sysdeps/generic/socketbits.h: New file.
361 * sysdeps/unix/sysv/linux/socketbits.h: New file.
362 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
363 * sysdeps/generic/sys/socket.h: File removed.
364
365 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
366 * sysdeps/mach/hurd/send.c: Likewise.
367
c1509239
RM
368 * sysdeps/mach/libc-lock.h: New file.
369 * sysdeps/unix/readdir.c: Do locking.
370 * sysdeps/unix/seekdir.c: Likewise.
371 * sysdeps/unix/rewinddir.c: Likewise.
372 * sysdeps/unix/closedir.c: Likewise.
373 * sysdeps/unix/bsd/telldir.c: Likewise.
374 * sysdeps/mach/hurd/seekdir.c: Likewise.
375 * sysdeps/mach/hurd/readdir.c: Likewise.
376 * sysdeps/mach/hurd/closedir.c: Likewise.
377 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
378 * sysdeps/unix/opendir.c: Likewise.
379 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
380 (struct __dirstream): Add lock member using __libc_lock_define.
381 * sysdeps/unix/dirstream.h: Likewise.
382
383 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
384
385 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
386
387 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
388
389Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
390
391 * locale/programs/stringtrans.c: Fix typo in copyright.
392
393 * stdio-common/printf-prs.c: Add casts to prevent
394 signed<->unsigned warnings.
395
396 * stdio-common/printf-parse.h: Initialize state variable before
397 calling mbrlen.
398 * stdio-common/printf-prs.c: Don't initialize state variable here.
399 * stdio-common/vfprintf.c: Don't initialize state variable.
400 (vfprintf): While determining length of multibyte string don't
401 try to be clever in determining characters to use for first
402 call.
403
404 Add real implementation of multibyte<->wide char conversion
405 functions. The functions always convert between the fixed wide
406 char format (ISO 10646 in UCS4) and the UTF8 representation of
407 this character set. Conversion between the currently used
408 8bit character set and ISO 10646 will not take place. This is
409 what iconv() is for.
410 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
411 dummy definition.
412 Add optimized version of `mbrlen' function.
413 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
414 to 0...0x7f.
415 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
416 to 0..0x7f.
417 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
418 This is needed in the wchar.h header.
419 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
420 encoded character to UCS4.
421 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
422 element of `mbstate_t' for initial state.
423 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
424 encoded string to UCS4 string.
425 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
426 character to UTF8 encoded form.
427 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
428 encoded string to UTF8 encoded form.
429
3dbe1581
RM
430Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
431
089b2b8a
RM
432 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
433 variable name, so new a libc with new requirements won't fail to
434 notice an insufficient Linux version.
435
99c57951
RM
436 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
437
438 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
439 instead of 2.0 headers.
440
20121a6a
RM
441 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
442
443 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
444 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
445
3dbe1581
RM
446 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
447 before using it in lhs of weak_alias.
448
449 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
450 Call __nss_lookup when not setting STARTP.
451 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
452 function-calling loop.
453
18c75117
TBB
454Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
455
456 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
457 PENDIN, NOFLSH): Undefine these at start if they are already
458 defined to avoid collision with termbits.h.
459 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
460 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
461
999493cb
RM
462Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
463
464 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
465 already defined to float, long double. Use those macros for _Mdouble_
466 defns when including mathcalls.h.
467 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
468 -D_Mlong_double_=double.
469
470 Add more -lm functions to -lc because ldexp uses them.
471 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
472 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
473 ldexp have both f and l code, and those have f though not l code.
474
18c75117
TBB
475Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
476
477 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
d33f2ad4 478 error is 0. The "placeholder" entries recently added to
18c75117
TBB
479 errno.texi convert to zero since `???/' is at the front of them.
480 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
481
d33f2ad4 482 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
18c75117
TBB
483 __const to conform with unistd.h.
484
18c75117 485 * stdlib/stdlib.h (random): Declare return type to be int32_t.
53163ad0
TBB
486
487 * string/argz-delete.c (argz_delete): Use memmove instead of
999493cb 488 memcpy for possibly overlapping strings.
53163ad0 489
af5b3bc3
RM
490Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
491
492 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
493 storage class. GCC gives an error for non-extern data defns with the
494 alias attribute.
495
467ab247
TBB
496Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
497
498 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
499 memmove instead of memcpy for possible overlapping strings.
500
af5b3bc3
RM
501Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
502
503 * libc-symbols.h (weak_function): New macro.
504 For GCC 2.7+ define as __attribute__ ((weak)).
505 * elf/dl-minimal.c: Use weak_function as keyword in function defns
506 instead of weak_symbol (NAME) after the defn.
507 * stdlib/strtol.c: Likewise.
7702f9b5 508 * stdlib/strtod.c: Likewise.
af5b3bc3
RM
509 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
510
511 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
512 If this is defined, don't declare _dl_rtld_map as weak, and
513 don't check for MAP pointing to it. RESOLVE is always null in this
514 case, so test with #ifdef instead of if.
515
516 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
517 weak_symbol.
518 * csu/initfini.c (_init): Likewise.
519 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
520 * misc/efgcvt_r.c: Likewise.
521 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
522 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
523
524 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
525 It was not used in any assembler code.
526 (weak_symbol_asm): Renamed to weak_extern_asm.
527 (weak_extern): New macro replaces weak_symbol for weak extern refs;
528 define to weak_extern_asm for [!ASSEMBLER].
529
edb8e1d9
RM
530Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
531
af5b3bc3
RM
532 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
533 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
534 define those now as aliases.
535 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
536 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
537 after GCC weak attribute decl.
538
28160ffb
RM
539 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
540 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
541 (element printer): Check for elt in ALIAS, instead of special case
542 for EWOULDBLOCK.
543
faf85e08
RM
544 * io/Makefile (headers): Add sys/vfs.h.
545 * io/sys/vfs.h: New file.
546
edb8e1d9
RM
547 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
548 critical section lock before unlinking dying active resources.
549 The unlock just before return is right (i.e. old code unlocked twice).
550
99ed3e39
MB
551Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
552
edb8e1d9 553 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
99ed3e39
MB
554 Use memmove instead of memcpy where overlap is possible (not
555 necessary using current implementation of memcpy, but...).
556 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
557
558Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
559
e851d072
RM
560 * stdio/linewrap.c (lwupdate): New function, mostly was
561 __line_wrap_update. Use POINT_COL field instead of POINT.
99ed3e39
MB
562 (__line_wrap_output): Use lwupdate.
563 (__line_wrap_update): New function.
564 (ensure_unwrapped, ensure_wrapped): New functions.
565 (line_wrap_set_lmargin, line_wrap_set_rmargin,
566 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
567
e851d072 568 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
467ab247 569 POINT_COL. Add POINT_OFFS field.
99ed3e39
MB
570 (__line_wrap_update): New decl.
571 (line_wrap_set_lmargin, line_wrap_set_rmargin,
572 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
573
2549e758
MB
574Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
575
576 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
577
578 * login/pututline_r.c (pututline_r): Since we assign RESULT from
579 lseek now, check that it's >= 0, not == 0.
580
581Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
582
583 * login/login.c (login): Make a copy of *UT, fill in various
584 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
585 in place of UT.
586
587 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
588 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
589
4c3e8a9e 590Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
f5348425 591
7f4e9608
RM
592 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
593 signal during critical section doing interruptible RPC, if
594 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
595 before thread_resume. If in critical section, pass 0 for SIGNO to
596 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
597
598 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
599
39d69079
RM
600 * sysdeps/unix/sysv/linux/sys/user.h: New file.
601 * sysdeps/unix/sysv/linux/Dist: Add it.
602 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
603
dbe31b9a
RM
604 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
605 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
606 itself, no need to skip past a NUL.
607
608 * nss/nsswitch.h (known_function): Comment fix.
609 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
610 directly. Do the lookup and insertion with a single call, and fill in
611 the tree node afterwards if new.
612 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
613
614 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
615 (struct timeval): Add bodiless decl for scope.
616
617 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
618 Move struct timespec defn outside [_TIME_H] so it can be got with
619 #define __need_timespec.
620
621 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
622 for `struct timespec' member names.
623 (TIMESPEC_TO_TIMEVAL): Likewise.
624
625 * nss/Makefile (extra-libs-others): New variable.
626
627 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
628 $(lib) in $(extra-libs-others).
629 * sunrpc/Makefile (extra-libs-others): New variable.
630 (librpcsvc-no-lib-dep): Variable removed.
631
f5348425
RM
632 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
633 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
634 _dl_rtld_map.
635 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
636 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
637 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
638 _dl_rtld_map weak only here.
639
640 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
641
dbe31b9a
RM
642Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
643
644 * login/utmp.h: Fix typos.
645
646 * misc/syslog.c (vsyslog): Use __send instead of send and
647 __connect instead of connect to avoid name-space collisions (e.g.,
648 with psgetty).
649
503054c0
RM
650Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
651
652 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
653
654 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
655
656 * malloc/malloc-size.c (malloc_usable_size): Renamed from
657 malloc_object_allocation_size.
658 * malloc/malloc.h: Fix decl.
659
660 * sys/select.h: New file, wrapper header.
661
662 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
663 fd_set, associated macros, and select decl.
664
665 * sysdeps/posix/isfdtype.c: New file.
666
667Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
668
669 The latest Japanese proposal for POSIX locales renames the
670 CHARMAP keyword in locale definition files to CHARCONV.
671 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
672 function ctype_is_charmap to ctype_is_charconv.
673 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
674 charconv.
675 * locale/programs/locfile-token.h: Add definition of token
676 charconv.
677 * locale/programs/locfile.c: Recognize charconv keyword. Rename
678 lables according to this.
679
680 * locale/weight.h (get_weight): Cast constants to prevent
681 warnings.
682
683 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
684 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
685 warnings.
686
687 New stuff described in P1003.1g.
688 * misc/Makefile (headers): Add sys/select.h.
689 (routines): Add pselect.
690 * misc/sys/select.h: New file. Declare select functions and
691 needed data types and macros.
692 * sysdeps/generic/pselect.c: New file. Add generic implementation
693 of pselect() function which uses select().
694
695 * posix/getconf.c: Recognize new variables from P1003.1g.
696 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
697 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
698 * posix/unistd.h: Add description of the P1003.1g variables.
699 * sysdeps/generic/confname.h: Define _SC_* values for new
700 variables.
701 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
702 _PC_SOCK_MAXBUF.
703 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
704 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
705 P1003.1g variables.
706 * sysdeps/stub/sysconf.c (sysconf): Ditto.
707 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
708 _POSIX_SELECT since Linux has this.
709
710 * socket/Makefile (routines): Add isfdtype.
711 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
712 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
713 isfdtype.
714
715 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
716
8a594e3c
RM
717Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
718
175b633d
RM
719 * elf/Makefile (LDFLAGS-dl.so): New variable.
720 (libdl.so): Depend on eval.so.
721 (distribute): Add eval.c.
722 * elf/eval.c: New file.
723
8a594e3c
RM
724 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
725 in case it wrote fewer than MAXDIGITS chars.
726
727 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
728 newline from flushing full buffer in loop, fix test so no fflush is
729 done when last byte written exactly fills the buffer.
730
731 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
732
733 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
734 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
735
736 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
737 extracting _dl_rtld_map.l_addr.
738
739 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
740 weak.
741 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
742
743 * shlib-versions (*-*-*): Set libnss_db=1.
744
ffee1316
RM
745Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
746
8a594e3c
RM
747 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
748
66da789f
RM
749 * rpm/template (%build): Use @prefix@ instead of always /usr.
750 Set up configparms only if @prefix@ is in fact /usr.
751 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
752
f49bc43f
RM
753 * elf/Makefile: Add missing endif.
754
54955962
RM
755 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
756
96bda0ea
RM
757 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
758 (DATABASE): Define this instead of DATAFILE.
759 * nss/nss_files/files-hosts.c: Likewise.
760 (hostbyname): Use LOOKUP_NAME macro.
761
762 * nss/nss_db/db-XXX.c: New file.
763 * nss/Makefile (services): Add db.
764 (libnss_db-inhibit-o): New variable.
765 (libnss_db-routines): New variable.
766 (distribute): Append db-XXX.c.
767 (libnss_db.so): Depend on libdb.so and libnss_files.so.
768 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
769
770 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
771 args, ignored.
772 (DATAFILE): New macro.
773 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
774 "files-XXX.c".
775 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
776 Pass db key args to DB_LOOKUP.
777 (DATAFILE): Macro removed.
778 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
779 * nss/nss_files/files-service.c: Likewise.
780 * nss/nss_files/files-pwd.c: Likewise.
781 * nss/nss_files/files-proto.c: Likewise.
782 * nss/nss_files/files-grp.c: Likewise.
783 * nss/nss_files/files-ethers.c: Likewise.
784
785 * elf/linux-compat.c: File removed.
786 * elf/Makefile (distribute): Remove linux-compat.c.
787 (ld-linux.so.1): Remove target and associated variables.
788
789 * sunrpc/xdr.c: Remove malloc decl.
790 * sunrpc/portmap.c: Likewise.
791
792 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
793 casting abort to fn returning bool_t.
794
795 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
796 the parser function.
797 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
798 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
799 * nss/nss_files/files-grp.c: Likewise.
800
801 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
802
803 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
804
805 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
806 of ld.so so lookups for that soname find it.
807
808 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
809 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
810
ffee1316
RM
811 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
812 define parse_line function.
813 (parse_line): #define to _nss_files_parse_pwent and
814 add extern decl for that.
815
816 * nss/nss_files/files-XXX.c (internal_getent): Return
817 NSS_STATUS_TRYAGAIN for ERANGE error.
818
819 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
820 of null, so next round returns null again instead of bombing. Fix
821 from drepper.
822
823 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
824 Remove ; after `ENTDATA_DECL (data)'.
825 Truncate line at strpbrk (line, EOLSET "\n").
826 (ENTDATA_DECL): Put ; at end.
827 (MIDLINE_COMMENTS): Macro removed.
828 * nss/nss_files/files-ethers.c: Pass new argument.
829 * nss/nss_files/files-hosts.c: Likewise.
830 * nss/nss_files/files-network.c: Likewise.
831 * nss/nss_files/files-parse.c: Likewise.
832 * nss/nss_files/files-proto.c: Likewise.
833 * nss/nss_files/files-rpc.c: Likewise.
834 * nss/nss_files/files-service.c: Likewise.
835 * grp/fgetgrent.c: Likewise.
836 * pwd/fgetpwent.c: Likewise.
837 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
838 fgetpwent.c already defines it.
839 * nss/nss_files/files-grp.c: Likewise.
840
841 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
842 as well as any matching with l_libname. Fix DT_SONAME lookup to use
843 string table properly.
844
845 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
846 invoked directly, and l_libname from that if PT_INTERP missing.
847 Set l_name from l_libname only if not set from argv.
848
849 * time/europe, time/northamerica: Updated from ADO 96i.
850
eb48c963
RM
851Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
852
ffee1316
RM
853 * stdio-common/tst-ungetc.c: Include unistd.h.
854
eb48c963
RM
855 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
856
6ce16797
MB
857Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
858
25f329f7
MB
859 * hurd/report-wait.c (describe_number): Make I unsigned long.
860
6ce16797
MB
861 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
862 actually found any entry.
863
864 * login/pututline_r.c (pututline_r): If not located after any
865 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
866 Lock the file before stating.
867
eb48c963
RM
868Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
869
870 * nss/Makefile (databases): Change host to hosts.
871 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
872
873 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
874
875 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
876
877 * string/string.h (strndupa): Pass missing arg to strnlen.
878
879 * inet/getnetbypt_r.c: Renamed to ...
880 * inet/getnetbyad_r.c: this; fixed function name.
881 * inet/getnetbypt.c: Renamed to ...
882 * inet/getnetbyad.c: this; fixed function name.
883
884Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
885
886 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
887 struct passwd.
888
2baf7c31
MB
889Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
890
891 * login/login.c (login): Initialize DATA so that setutent_r will
892 actually do something.
893
eb48c963
RM
894Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
895
896 * resolv/res_hconf.c (strndup): Remove function.
897
898 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
899 using ElfW() instead of Elf32_*.
900
901 * sysdeps/unix/sysv/linux/alpha/init-first.h,
902 sysdeps/unix/sysv/linux/m68k/init-first.h,
903 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
904 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
905 init-first.h to make abstract machine dependent parts of
906 initialization.
907
908 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
909 error handling. It's safer that way.
910
911 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
912 Fix by Richard Henderson.
913
914 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
915 typo/extraneous whitespace.
916
917 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
918 determine what integer sizes we're dealing with.
919
d7126ae6
RM
920Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
921
eb48c963
RM
922 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
923 check for signal zero, repair logical sense of test by
924 parenthesizing correctly.
925
d7126ae6
RM
926 * hurd/hurdsig.c (_hurd_internal_post_signal): In
927 check-for-pending signals code, release _hurd_siglock before
928 jumping to deliver_pending.
929
eb48c963
RM
930Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
931
932 * configure.in (config_machine): Make ELF the default even for
933 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
934 is specified.
935
de6b0623
RM
936Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
937
eb48c963
RM
938 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
939 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
940 member only #ifdef ENTDATA.
941 (ENTDATA_DECL): New macro.
942 (LINE_PARSER): Use it for entdata decl.
943 (parse_list): Find the space for LIST from DATA->linebuffer instead of
944 from the input LINE, which might not be writable buffer space.
945 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
946 [ENTDATA] (parser_stclass): #define to `static inline'.
947 [!ENDATA] (parser_stclass): #define to empty.
948 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
949 function is exported to -lnss_files users.
950
951 * string/strndup.c: Add missing arg.
952
de6b0623 953 * string/string.h (strndupa): Likewise.
eb48c963 954 * string/strndup.c (strndup): Always terminate the string.
de6b0623
RM
955
956Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
957
958 * stdio/Makefile (routines): Add vscanf.
959 * stdio-common/Makefile (routines): Remove vscanf.
960 * stdio-common/vscanf.c: Move to ...
961 * stdio/vscanf.c: here.
962
963 * rpm/Makefile (headers, install-lib, install-lib.so,
964 versioned, install-bin, install-sbin, install-data,
965 install-others): Add $(-VARIABLE).
966
6dbe2837
RM
967Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
968
969 * nss/Makefile (databases): New variable.
970 (routines, libnss_files-routines): Use it.
971 (subdir-dirs): Compute from $(services).
972
973 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
974 init_module, klogctl): Use EXTRA in the "caller" column so these get
975 added to unix-extra-syscalls and thus compiled in misc.
976
977 * string/Makefile (routines): Add strndup.
978 * string/strndup.c: New file.
979 * string/string.h: Declare strndup.
980 (strndupa): New macro.
981
982 * string/string.h: Declare __strdup.
983 * string/strdup.c: Deansideclized. Define __ name and weak alias.
984
985 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
986
6dbe2837
RM
987Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
988
989 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
990
991 * grp/initgroups.c (initgroups): De-ansi-fy.
992 Move declaration of NGROUPS and GROUPS outside #if so that
993 the code compiles for NGROUPS_MAX != 0.
994
995 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
996 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
997 ether_ntoa, ether_ntoa_r, and ether_ntoh.
998 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
999 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1000 inet/ether_ntoh.c: New files. Implementation of functions to
1001 handle Ethernet address to host mapping.
1002 * inet/netinet/ether.h: New file. Declare ether_* functions.
1003 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1004 compilation.
1005 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1006 * nss/Makefile (routines): Add ethers-lookup.
1007 (libnss_files-routines): Add files-ethers.
1008
1009 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1010 with _r suffix.
1011
1012 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1013 KEEP_STREAM every time called.
1014 (_nss_files_end): Reset KEEP_STREAM here instead.
1015 (internal_getent): If STREAM == NULL try to open instead of
1016 signalling error.
1017 Use cast to prevent warning.
1018 Terminate read line in case the buffer is too small.
1019
1020 * nss/nss_files/files-ethers.c: New file. Implementation of
1021 Ethernet adress<->hostname lookup through files interface.
1022
1023 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1024 * stdlib/mbtowc.c: Define based on mbrtowc().
1025 * stdlib/wcstombs.c: Define based on wcsrtombs().
1026 * stdlib/wctomb.c: Define based on wcrtomb().
1027
1028 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1029 unexpected_sizes_in_xdr_u_int.
1030
1031 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1032 of `struct ether_addr'.
1033 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1034 declaration of `struct ether_addr'.
1035
1036 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1037 * wcsmbs/mbsrtowcs.c: Ditto.
1038 * wcsmbs/wcrtomb.c: Ditto.
1039 * wcsmbs/wcsrtombs.c: Ditto.
1040
1041 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1042
f34e0ae3
MB
1043Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1044
a5d96b25
MB
1045 * hurd/get-host.c <fcntl.h>: New include.
1046 * hurd/set-host.c <fcntl.h>: New include.
1047 (_hurd_set_host_config): Include NEW in args to dir_link.
1048 Return NWROTE, not NREAD.
1049
f34e0ae3
MB
1050 * sysdeps/mach/hurd/getcwd.c
1051 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1052 DOTID & DOTDEVID until we're finished with them (we need to keep
1053 them at least until we've fetched the next level of id ports, so
1054 that mach will be able to use the same name if they're the same).
1055 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1056 jumps to errlose, for those places where such cleanup is needed.
1057
bba7bb78
RM
1058Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1059
1060 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1061
1062 Move DB code into separate -ldb library.
1063 * db/Makefile (extra-libs): New variable, list libdb.
1064 (routines): Renamed to libdb-routines.
1065 * shlib-versions: Add libdb=2.
1066
1067 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1068 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1069
1070 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1071 of strncasecmp. Extend syntax to grok [!foo=bar].
1072
1073 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1074 weak alias.
1075 * string/string.h: Declare __strncasecmp.
1076
1077 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1078 (service_alias): Variable removed.
1079 (nss_parse_service_list): New function, broken out of nss_getline.
1080 Remove alias conversion; we will just use symlinks.
1081 (__nss_database_lookup): Take new string arg DEFCONFIG.
1082 If no entry exists, make one with service list parsed from that.
1083 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1084 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1085 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1086
1087 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1088 list size.
1089
1090 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1091
1092Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1093
1094 * locale/programs/locale.c (long_options): Short form of
1095 --version option is `-V'.
1096 (main): Recognize `-V' as option, not `-v'.
1097 Call `usage' instead of printing error message for illegal
1098 option.
1099 (usage): Document `-V'.
1100
23586dcc
MB
1101Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1102
1103 * sysdeps/mach/hurd/getcwd.c
1104 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1105 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1106
622586fb
RM
1107Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1108
1109 * inet/getrpcent.c: Fix macros.
1110 * inet/getrpcent_r.c: Fix macros.
1111
1112 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1113
1114 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1115
a4242e25
RM
1116Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1117
1118 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1119 size_t.
1120 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1121 cast it to (unsigned long) to make it work both on 32 and 64
1122 bit architectures.
1123
1124Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1125
1126 * locale/Makefile (distribute): Add `programs/' prefix to all
1127 files in that directory.
1128
1129 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1130 subdir' works.
1131
1132 * MakeTAGS (sources, headers): Make them simply expanded variables
1133 so that all-dist is expanded before it is changed.
1134
5f0e6fc7
RM
1135Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1136
5325738c 1137 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
748050b3
RM
1138 * Makefile (subdirs): Remove crypt.
1139 * crypt: Directory removed. It will be made an independent library
1140 distribution.
1141
1142 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1143
ad8da79b
RM
1144 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1145
dcea62dd
RM
1146 * inet/getrpcbynumber.c (BUFLEN): New macro.
1147
1148 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1149
3d3ac840
RM
1150 * Makefile (headers): Add libc-lock.h.
1151 * sysdeps/stub/libc-lock.h: New file.
1152
1153 * inet/getrpcbynumber.c: Remove _r typo.
1154
1155 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1156
c66273aa
RM
1157 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1158 after the first!
1159
1160 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1161 or doesn't mention DATABASE, use an internal default equivalent to
1162 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1163 (nss_lookup_function): Call nss_new_service as needed.
1164 (nss_parse_file): Don't bother calling nss_new_service here.
1165
1166 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
1167 * pwd/fgetpwent.c: Likewise.
1168
5f0e6fc7
RM
1169 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
1170 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
1171 * malloc/malloc-size.c: New file.
1172 * malloc/malloc-walk.c: New file.
1173
1174 * malloc/malloc-find.c (malloc_find_object_address): Return null if
1175 PTR is outside the heap.
1176
1177 * elf/dl-load.c (_dl_map_object): If the requested name matches the
1178 soname of a loaded object, use that object.
1179
1180Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1181
1182 * Makefile (subdirs): Add nss.
1183
1184 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
1185 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
1186 * inet/getrpcbynumber_r.c: New file.
1187 * inet/getrpcbynumber.c: New file.
1188 * inet/getrpcbyname.c: New file.
1189 * inet/getrpcbyname_r.c: New file.
1190 * inet/getrpcent_r.c: New file.
1191 * inet/getrpcent.c: New file.
1192 * nss/rpc-lookup.c: New file.
1193 * nss/nss_files/files-rpc.c: New file.
1194 * nss/Makefile (routines): Add rpc-lookup.
1195 (libnss_files-routines): Add files-rpc.
1196 * sunrpc/Makefile (routines): Remove getrpcent.
1197 * sunrpc/getrpcent.c: File removed.
1198
1199 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
1200 non-null on entry.
1201
1202 * Makeconfig (rpath-link): Add $(nssobjdir).
1203 (nssobjdir): New variable.
1204
1205 * Makerules: Move shared library building before objects rules, so
1206 versions are known before extra-lib.mk gets included.
1207 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
1208
1209 * pwd/getpwuid.c: Rewritten using nss.
1210 * pwd/getpwnam.c: Likewise.
1211 * pwd/getpwent.c: Likewise.
1212 * grp/getgrnam.c: Likewise.
1213 * grp/getgrgid.c: Likewise.
1214 * grp/getgrent.c: Likewise.
1215 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
1216 * pwd/getpwent_r.c: New file.
1217 * pwd/getpwnam_r.c: New file.
1218 * pwd/getpwuid_r.c: New file.
1219 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
1220 * grp/getgrnam_r.c: New file.
1221 * grp/getgrgid_r.c: New file.
1222 * grp/getgrent_r.c: New file.
1223 * grp/Makefile (routines): Remove grpopen, grpread.
1224 * pwd/Makefile (routines): Remove pwdopen, pwdread.
1225 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
1226
1227 * pwd/fgetpwent.c: Rewritten using files-parse.c.
1228 * grp/fgetgrent.c: Likewise.
1229
1230 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
1231 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
1232 * nss/nss_files/files-grp.c: New file.
1233 * nss/nss_files/files-pwd.c: New file.
1234
1235 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
1236
1237 * nss/nss_files/files-parse.c: New file.
1238 * nss/nss_files/files-XXX.c: New file.
1239 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
1240 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
1241 Rewritten using them.
1242
1243 * nss/Makefile (libnss_files-routines): Remove files-host.
1244 Add files-hosts, files-grp, files-pwd.
1245
1246 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
1247
1248Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
1249
1250 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
1251 A .plt entry now loads the .rela.plt offset directly rather
1252 than making us calculate it.
1253
1254Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1255
1256 * time/Makefile ($(installed-localtime-file) rule): Do
1257 $(make-target-directory) first.
1258
1259 * resolv.h: Fix wrapper for resolv/resolv.h.
1260
1261 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
1262 Compile dummy file and pass -nostdlib -nostartfiles so as not to
1263 require installed libraries.
1264
1265 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
1266 libnss_dns=1.
1267
1268Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
1269
282d8743
RM
1270 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
1271 and mapv4v6hostent.h.
1272 (routines): Move res* and gethnamaddr into libresolv-routines.
1273 (libresolv-routines): New variable, put them there.
1274 (extra-libs): New variable, list libresolv.
1275 (CPPFLAGS): Add -D for get*by* to res_get*by*.
1276
5f0e6fc7
RM
1277 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
1278
1279 * inet/herrno.c: New file.
1280
1281 * resolv/res_init.c: Remove res_hconf calls.
1282
1283 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
1284 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
1285 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
1286 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
1287 nss/service-lookup.c: New files. Implementation of name
1288 service switch, following the approach in Solaris.
1289 Interface specification and general structure inspired by Peter
1290 Eriksson <pen@lysator.liu.se>.
1291 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
1292 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
1293 Implementation of libnss_files.so module for file based databases
1294 in NSS service.
1295 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
1296 if libnss_dns.so module for DNS name lookup in NSS service.
1297
1298 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
1299 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
1300 Changed to serve as interface to NSS.
1301 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
1302 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
1303 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
1304 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
1305 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
1306 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
1307 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
1308 interfaces to NSS, including reentrant functions.
1309
1310 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
1311 resolv/sethostent.c: Removed: Obsoleted by NSS.
1312
1313 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
1314 gethnamaddr.c. These private functions are now used in more
1315 than one file.
1316
1317 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
1318
1319Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1320
1321 * rpm/Makefile ($(config)): Make sure the word list in the for
1322 loop is syntactically non-empty.
1323
7f811679
RM
1324Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1325
1326 * Version 1.92 test release.
1327
1328Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1329
1330 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
1331 to klogctl to match prototype in sys/klog.h.
1332
1333 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
1334 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
1335
1336 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
1337 Remove. Code is now part of __getcwd again. The old function
1338 never really worked for anything but THISDIR==".".
1339
1340 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
1341 only when building ELF version of library.
1342
1343 * libio/libioP.h (_IO_vscanf): Add prototype.
1344
1345 * posix/unistd.h (syscall): Change sysno arg and return value
1346 to int long.
1347
78b5ba3e
RM
1348Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1349
7f811679 1350 * version.h (VERSION): Updated to 1.92.
072ebcef
RM
1351
1352 * misc/Makefile (headers): Add ar.h.
1353 * misc/ar.h: New file.
1354
1355 * config.make.in (BUILD_CC): New variable.
1356 * configure.in: Check for BUILD_CC if $host != $build.
1357
1358 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
1359
1360 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
1361 (stamp$o files): New targets, create them empty, no deps.
1362
78b5ba3e
RM
1363 * rpm/template (Source): New field.
1364 (%prep, %build, %install): New sections.
1365 (%files): Add %doc FAQ NEWS NOTES README.
1366 * rpm/rpmrc (builddir): Removed.
1367
51fbd1f6
RM
1368Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1369
0d3726c3
RM
1370 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
1371 guessing to not assume p_vaddr of first load cmd is zero.
1372
4f54cdb1
RM
1373 * sysdeps/sparc/elf/start.S: New file.
1374 * sysdeps/sparc/dl-machine.h: New file.
1375
1376 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
1377 only for ?s, not for *s. Fix from Chet Ramey.
1378
1379 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
1380 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
1381 Use __{BEGIN,END}_DECLS.
1382 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
1383 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
1384 New macros, moved here from sysdeps/gnu/utmpbits.h.
1385 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
1386 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
1387 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
1388 Use sizeof instead of UT_*SIZE.
1389 * login/logwtmp.c: Likewise.
1390
1391 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
1392
1393 * version.c (banner): Add trailing newline.
1394
51fbd1f6
RM
1395 * login/utmp.h: Declare login_tty.
1396
1397Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
1398
1399 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
1400 Changed to a 12-byte PLT entry to remove dependency on $gp.
1401 Take a new got_addr parameter.
1402 (elf_machine_rela): Pass the new parameter.
1403 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
1404 (RTLD_START): Do normal linkage with program entry.
1405
51ec5cb2
MB
1406Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
1407
1408 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
1409
1410 * hurd/getuids.c (getuids): New weak link to __getuids.
1411
bf0f4720
MB
1412Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
1413
1414 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
51fbd1f6
RM
1415 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
1416 argument.
bf0f4720
MB
1417 Rename nested function lookup to lookup_op.
1418 (__file_name_lookup, __file_name_lookup_under):
1419 Pass 0 for lookup arg to __hurd_file_name_lookup.
1420 (__file_name_split): Likewise for __hurd_file_name_split.
1421 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
1422 Rename nested function lookup to scan_lookup.
1423 (file_name_path_lookup): Pass 0 for lookup arg to
1424 hurd_file_name_path_lookup.
1425 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
51fbd1f6 1426 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
bf0f4720
MB
1427 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
1428 Add LOOKUP argument.
1429 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
1430 __hurd_file_name_lookup.
1431
e50ec9f9
RM
1432Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1433
1434 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
1435 up a huge list just to discard most of it.
1436
1437 * configure.in (sysnames): Avoid fgrep by using the case shell
1438 builtin.
1439
1440 * Makeconfig (config.status): Fix dependency on Implies files.
1441
6990326c
RM
1442Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1443
1444 * math/Makefile (distribute): Add ieee-math.c.
1445
1446Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
1447
1448 * locale/codeset_name.c: New file. Provide function for information
1449 about currently used character set.
1450 * locale/Makefile (routines): Add codeset_name.
1451 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
1452 * locale/localeinfo.h: Change magic number because of incompatible
1453 change.
1454 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
1455 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
1456
1457 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
1458 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
1459
1460 * locale/setlocale.c (setlocale): Initialize local variables to
1461 prevent warnings.
1462
a1470b6f
RM
1463Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
1464
1465 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
1466
1467 * locale/programs/locale.c: Include string.h.
1468
1469 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
1470 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
1471 appropriate sign-extension is performed on machines with
1472 sizeof(long) > 4.
1473
1474 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
1475 sizeof(int)<sizeof(long), we need to go through a temporary
1476 variable.
1477
1478 * locale/programs/ld-numeric.c: Include <alloca.h>
1479
1480 * libio/stdio.h (__libc_fatal): Add prototype.
1481
1482 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
1483 in efect.
1484
1485 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
1486 volatile to avoid "might get clobbered by longjmp" warning.
1487
1488 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
1489 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
1490 probability is a sure loser).
1491 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
1492
1493 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
1494 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
1495
1496 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
1497 to be Linux FSSTND compliant.
1498
1499Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
1500
1501 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
1502
1503 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
1504 sysdeps/unix/sysv/linux/alpha/brk.S,
1505 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
1506 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
1507 sysdeps/unix/sysv/linux/alpha/llseek.S,
1508 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
1509 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
1510 __syscall_error to avoid intruding application name space.
1511
1512 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
1513 to SYS_get?id so that syscall stubs in sysdeps/unix define
1514 these syscalls in terms of getxpid/getxuid/getxgid.
1515
1516 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
1517 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
1518 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
1519 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
1520
1521 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
1522 (PSEUDO_END): Rename END() to PSEUDO_END().
1523
1524 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
1525 to PSEUDO_END to improve branch-prediction. Include .frame
1526 directive to make syscalls debugabble.
1527 (PSEUDO_END): New macro.
1528
1529 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
1530 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
1531 latter is illegal under DEC Unix.
1532
1533 * sysdeps/unix/alpha/sysdep.S: Renamed from
1534 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
1535 as well.
1536 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
1537 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
1538 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
1539
1540 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
1541 address register in the .frame directive.
1542
1543 * sysdeps/alpha/copysign.c: Remove.
1544
1545 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
1546 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
1547
1548 * errno.h: Move __END_DECLS to correct place to make file
1549 compilable under c++.
1550
1551 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
1552 d_ino only if <direntry.h> hasn't defined d_fileno.
1553
1554 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
1555 arguments to weakext to make .weakext detection work on ECOFF systems.
1556
1557 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
1558 that _validuser() has been replaced by __ivaliduser().
1559
1560Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
1561
1562 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
1563 as unsigned long, not as int (to avoid incorrect int->long
1564 promotion).
1565
96383fc7
RM
1566Tue Jun 18 17:56:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1567
bd1be8ec
RM
1568 * Version 1.91 test release.
1569
36dbcbc9
RM
1570 * Makerules ($(common-objpfx)distinfo-$(subdir)): Change target from
1571 distinfo to this.
1572 (distinfo): Make phony target depending on that.
1573 (TAGS, po/%.pot, dist): Change deps.
1574 (common-clean): Remove that file.
1575 * rpm/Makefile (distinfo): Change names.
1576
96383fc7
RM
1577 * rpm/Makefile (clean): New target.
1578
1579 * stdlib/test-canon.c: New test program contributed by David Mosberger.
1580 * stdlib/Makefile (tests): Add test-canon.
1581 * stdlib/canonicalize.c: Rewritten by David Mosberger.
1582
2cc7dc4d
RM
1583Mon Jun 17 17:53:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1584
96383fc7
RM
1585 * mach/Machrules (%_server.c %_server.h rule): Remove gratuitous
1586 mention of $< in mig cmd. Thanks to Shantanu Goel.
1587
2cc7dc4d
RM
1588 * sysdeps/mach/hurd/brk.c (___brk_addr): Define as weak alias for
1589 _hurd_brk.
1590
1591 * libio/stdio.h [__USE_SVID]: Declare tempnam.
1592
1593Fri Jun 14 19:28:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1594
1595 * sysdeps/unix/sysv/linux/syscalls.list: Add swapon with two
1596 parameters.
1597
1598Wed Jun 12 20:40:51 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1599
1600 * sysdeps/m68k/dl-machine.h (RTLD_START): Fix access to
1601 _dl_default_scope.
1602
3433189e
RM
1603Sun Jun 16 03:22:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1604
2cc7dc4d
RM
1605 * sysdeps/stub/elfclass.h: New file.
1606
61ee476c
RM
1607 * Make-dist (subdir): Make empty value really empty.
1608
4c904bd4
RM
1609 * version.h (VERSION): Update to 1.91.
1610
26da047f
RM
1611 * hurd/hurdinit.c (map0): Remove [!PIC] conditional.
1612
1613 * shlib-versions (*-*-*): Add libutil=1.
1614
1615 * rpm/Makefile (install-lib): Add libc.a et al.
1616 (install-others): Only add libc.so if $(build-shared) is yes.
1617
1618 * math/Makefile (install-lib): New variable, list libieee.a.
1619 (non-lib.a): Likewise.
1620 (extra-objs): Likewise, and ieee-math.o.
1621 ($(objpfx)libieee.a): New target, link to ieee-math.o.
1622 * math/ieee-math.c: New file.
1623 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]: Remove setfpucw
1624 and libieee.a stuff.
1625 * sysdeps/unix/sysv/linux/ieee-fpucw.c: File removed.
1626 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c: File removed.
1627
3433189e
RM
1628 * sysdeps/unix/sysv/Makefile (sysdep_headers): Make append of termio.h
1629 and rule for it conditional on termio.h not already being in
1630 sysdep_headers.
1631
1632 * rpm/Makefile (install-others) [libc.so-version]: Get libc.so from
1633 $(libdir), only the versioned named from $(slibdir).
1634 (instfiles): New variable.
1635 (glibc-$(version).$(config).rpm): New target. Run rpm -bb.
1636 * rpm/rpmrc: New file. A third of the options controlling rpm can
1637 only be given here (another third is on the command line, and a third
1638 cannot be specified in any way shape or form).
1639
6a441471
RM
1640Sun Jun 16 02:44:22 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1641
1642 * rpm/template: New file.
1643 * rpm/Makefile: New file.
1644
1645 * Makeconfig (sysdep-configures): Remove empty variable.
1646
1647 * Makerules (distinfo-vars): Write defns for $(install-lib.so) and
1648 $(versioned).
1649
1650 * manual/Makefile (subdir_%): Add new rule with no deps, secondary to
1651 to rule w/dep on %, with no-op commands.
1652
1653 * Makerules (subdir_distinfo): New phony target; depend on distinfo.
1654 * Makefile (rpm/%): New rule.
1655 (+subdir_targets): Add subdir_distinfo.
1656
a3b58440
RM
1657Sun Jun 16 00:40:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1658
6a441471
RM
1659 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add
1660 fpu_control.h here.
1661
a3b58440
RM
1662 * time/Makefile ($(installed-localtime-file)): If target exists, do
1663 nothing but print a message; if not, make it an absolute symlink.
1664
1665 * time/tzset.c (__tzset): After stripping leading :, call
1666 __tzfile_read on TZ even if it's empty or null.
1667 * time/tzfile.c (__tzfile_read): Use "Universal" if passed "".
1668
a23db8e4
RM
1669Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1670
5fbef188
RM
1671 * hurd/Makefile (routines): Add get-host, set-host.
1672 (distribute): Add hurdhost.h.
1673 * hurd/hurdhost.h: New file.
1674 * sysdeps/mach/hurd/gethostname.c: Use _hurd_get_host_config.
1675 * sysdeps/mach/hurd/gethostid.c: Likewise.
1676 * sysdeps/mach/hurd/sethostname.c: Use _hurd_set_host_config.
1677 * sysdeps/mach/hurd/sethostid.c: Likewise.
1678 * hurd/get-host.c: New file.
1679 * hurd/set-host.c: New file.
1680
1681 * math/Makefile (headers): Add fpu_control.h.
1682 (aux): New variable, list fpu_control and setfpucw.
1683 * sysdeps/generic/fpu_control.c: New file.
1684 * sysdeps/stub/fpu_control.h: New file.
1685 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ...
1686 * sysdeps/m68k/fpu_control.h: here.
1687 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ...
1688 * sysdeps/i386/fpu_control.h: here.
1689 * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ...
1690 * sysdeps/alpha/fpu/fpu_control.h: here. Fixed copyright.
1691 * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
1692 setfpucw, fpu_control.
1693 * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed.
1694 * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ...
1695 * sysdeps/generic/setfpucw.c: here.
1696 (__fpu_control): Variable removed.
1697 (__setfpucw): Use SET even if zero.
1698
f9496a7b
RM
1699 * elf/dl-deps.c (_dl_map_object_deps): Set MAP's mark bit before loop.
1700 Set mark bits of deps as opened, instead of as scanned.
1701
1702 * elf/rtld.c (dl_main): Remove _dl_rtld_map from chain unconditionally.
1703 Then if it has a nonzero l_opencount, add it back in search order.
1704
1705 * elf/dl-load.c (_dl_map_object): Don't use _dl_loaded's DT_RPATH if
1706 it ain't got one!
1707
a23db8e4
RM
1708 * sysdeps/unix/sysv/linux/Dist: Add sys/klog.h.
1709
1710 * elf/dl-open.c (_dl_open): Remove PARENT argument, pass null.
1711 * elf/link.h: Update prototype.
1712 * elf/dl-load.c (_dl_map_object): If dependents' DT_RPATHs don't find
1713 NAME, try the DT_RPATH of the executable itself if dynamic.
1714 * elf/dlopen.c (dlopen): Don't pass first arg to _dl_open.
1715
1716 * elf/dl-load.c (_dl_map_object): Exit DT_RPATH checking loop when an
1717 open succeeds.
1718
1719 * Makerules (build-shlib): Give -L opts for each elt of $(rpath-link).
1720
1721 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): Variable removed.
1722 (rpath-link): Append to this instead.
1723
f332db02
RM
1724Fri Jun 14 01:51:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1725
1726 * version.c (banner): New static const variable, complete version
1727 banner text.
1728 (__libc_print_version): Use it, and use __write instead of printf.
1729
1730 * configure.in (sysnames): Don't cache the value, because it
1731 depends only on libc sources. Merge uniquifying third pass into
1732 Implies/parent expansion second pass. Report each unique name as
1733 it is added in partial report string, terminated when finished.
1734
1735 * Makeconfig (sysdep_dir): Move defn before config.status rule that
1736 expands it.
1737 (sysdep-configures): Variable removed.
1738 (config.status): Use its contents directly, tighten up a bit, and
1739 include Implies files.
1740
1741 * elf/dl-open.c (_dl_open) [PIC]: Set PARENT to _dl_loaded if null.
1742
1743 * elf/Makefile ($(objpfx)$(rtld-installed-name)): Make a symlink.
1744
5c5ae36f
MB
1745Thu Jun 13 14:29:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
1746
1747 * hurd/hurdsig.c (_hurd_internal_post_signal): Rename `deliver:'
1748 label to `deliver_pending:' to match goto.
1749
4d6acc61
RM
1750Thu Jun 13 00:02:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1751
f332db02
RM
1752 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1753 Add comment.
1754
1755 * elf/rtld.c (dl_main): Close _dl_zerofd after mapping deps.
1756
1757 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Define mcount as
1758 weak alias for _mcount.
1759 * sysdeps/alpha/_mcount.S (mcount): Define as weak alias.
1760
4d6acc61
RM
1761 * elf/dl-lookup.c (_dl_lookup_symbol): If no value and *REF is
1762 null, consider it a strong reference and give the error.
1763
1764Wed Jun 12 15:52:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1765
1766 * elf/dl-open.c (_dl_open): Correctly terminate relocating loop
1767 after relocating NEW when it's the only new object.
1768
1769 * elf/dl-init.c (_dl_init_next): When out of initializers, set
1770 _r_debug.r_state to RT_CONSISTENT and call _dl_debug_state just
1771 before return.
1772
1773 * elf/rtld.c (dl_main): Move _dl_debug_initialize call after
1774 relocation. Call it unconditionally and only fill in DT_DEBUG
1775 if it's present. Then call _dl_debug_state with r_state RT_ADD
1776 before running initializers.
1777
1778 * elf/dl-open.c (_dl_open): Call _dl_debug_initialize and then call
1779 _dl_debug_state with r_state RT_ADD before running initializers
1780 * elf/dl-close.c (_dl_close): Call _dl_debug_state with r_state
1781 RT_DELETE before running finalizers and with RT_CONSISTENT just
1782 before return.
1783
1784 * elf/Makefile (dl-routines): Add dl-debug.
1785 * elf/dl-debug.c: New file.
1786 * elf/rtld.c (_dl_r_debug): Rename to _r_debug and move to dl-debug.c.
1787 (_dl_r_debug_state): Rename to _dl_debug_state and likewise move.
1788 (dl_main): Use _dl_debug_initialize.
1789 * elf/link.h: Fix name to _dl_debug_state in decl.
1790 (_dl_debug_initialize): Declare new function from dl-debug.c.
1791 (_r_debug): Declare it.
1792
1793 * Makerules (distinfo-vars): Add install-{lib,data,bin,sbin,others}.
1794 In distinfo set $(subdir)-VAR and then set VAR to $($(subdir)-VAR).
1795
1796 * Makeconfig (rpath-link): New variable; add $(elfobjdir).
1797 (default-rpath): Use it.
1798 (built-program-cmd): Use it in LD_LIBRARY_PATH.
1799
1800 * Makeconfig (sysdep-configures): Prepend $(sysdep_dir) to names tried.
1801
1802 * sysdeps/unix/Dist: Add make-syscalls.sh.
1803
1804 * misc/Makefile (headers): Add sys/swap.h.
1805 * posix/unistd.h: Remove decls for swapon, swapoff.
1806 * sysdeps/generic/sys/swap.h: New file.
1807 * sysdeps/unix/sysv/linux/sys/swap.h: New file.
1808
1809 * sysdeps/unix/sysv/linux/gnu/types.h: Remove temporary hack #define
1810 of __kernel_fsid_t. It is correctly defines in <linux/types.h> now.
1811
463e148b
RM
1812Tue Jun 11 23:23:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1813
1814 * Makerules (LDFLAGS-c.so): Use __libc_main instead of
1815 __libc_print_version as entry point for shared object.
1816 * version.c [HAVE_ELF] (__libc_main): New function.
1817
1818 * elf/dl-load.c (_dl_map_object_from_fd): Relocate l_entry with the
1819 load address.
1820
8d6468d0
RM
1821Tue Jun 11 19:13:04 1996 Richard Henderson <rth@tamu.edu>
1822
4d5da9a6
RM
1823 * sysdeps/alpha/dl-machine.h: New file.
1824
8d6468d0
RM
1825 * elf/dl-close.c: Include <string.h> for memcpy.
1826 * elf/dl-lookup.c: Same.
1827
1828 * elf/elf.h: Add Elfxx_Symndx for symbol indices.
1829 * elf/dl-lookup.c (_dl_lookup_symbol): Use it.
1830 (_dl_setup_hash): Use it.
1831 * elf/link.h (struct link_map): Use it.
1832
1833 * elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
1834 for getting the argc/argv/envp block. Instead, make it the argument.
1835 sysdeps/i386/dl-machine.h (RTLD_START): Do that.
1836 sysdeps/m68k/dl-machine.h (RTLD_START): Same.
1837
1838 * shlib-versions: Add version numbers for alpha-linux. To avoid
1839 user confusion, make them the same as i386-linux.
1840
1841 * sysdeps/alpha/Makefile [subdir elf]: Add -mno-fp-regs to
1842 sysdep-CFLAGS so that _dl_runtime_resolve doesn't have to save them.
1843 Add -mbuild-constants to CFLAGS-rtld.c to that we can bootstrap
1844 without using literal data.
1845
1846 * sysdeps/generic/dl-sysdep.c: Include <string.h> for memcpy.
1847 Finish Elf32 -> ElfW migration.
1848
6ba35316
RM
1849Tue Jun 11 15:09:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1850
6e86a7c2
RM
1851 * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
1852
1853 * elf/Makefile (routines): Remove init-first.
1854 * csu/Makefile (routines): New variable; put it here instead.
1855
1856 * config.make.in (CFLAGS): New variable.
1857
1858 * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
1859 not __USE_GNU.
1860 * string/string.h (strncasecmp): Likewise.
1861
a89d30d4
RM
1862 * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
1863 to after `include ../Rules', so $(rtld-installed-name) is defined.
1864
d8c7ef98
RM
1865 * string/basename.c (basename): Cast FILENAME to char * for return.
1866
1867 * Makerules ($(libdir)/libc.so): Put $(rtld-installed) name between
1868 libc.so and libc.a in the deps.
1869
852fc4b9
RM
1870 * elf/Makefile ($(objpfx)$(rtld-installed-name)): New target to make
1871 link to ld.so if that is not the installed name.
1872 (lib-noranlib): Depend on the installed name in the build directory
1873 instead of on ld.so.
1874
1875 * Makeconfig (link-libc): Include $(elfobjdir)/$(rtld-installed-name)
1876 between libc.so and libc.a, because with libc.so's DT_NEEDED for ld.so
1877 ld searches libc.a before ld.so (is that an ld bug?).
1878 Add $(elfobjdir) to -rpath-link.
1879
1880 * Makerules (elfobjdir): Define as . when $(subdir) is elf.
1881
1882 * sysdeps/i386/dl-machine.h (elf_machine_rel): In R_386_32 case when
1883 relocating _dl_rtld_map, subtract SYM's value from final reloc value,
1884 but don't change *RELOC_ADDR before calling *RESOLVE, because it might
1885 call the function we are relocating!
1886
6ba35316
RM
1887 * string/basename.c: New file.
1888 * string/Makefile (routines): Add basename.
1889
266180eb
RM
1890Mon Jun 10 06:14:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1891
ba79d61b
RM
1892 * Makerules ($(common-objpfx)libc.so): Depend on $(elfobjdir)/ld.so.
1893
1894 * elf/dl-close.c: New file.
1895 * elf/link.h: Declare _dl_close.
1896 * elf/Makefile (routines): Add dl-close.
1897 * elf/dlclose.c (dlclose): Use _dl_close.
1898
1899 * elf/Makefile ($(objpfx)librtld.so): Remove libelf from deps.
1900
1901 * elf/dl-runtime.c (_dl_global_scope): New variable.
1902 (_dl_object_relocation_scope): New function.
1903 (fixup): Use it.
1904 * elf/rtld.c (dl_main): Use it.
1905 * elf/dl-open.c (_dl_open): Use it. If (MODE & RTLD_GLOBAL), set the
1906 l_global bit and append the new map to _dl_global_scope.
1907 * elf/link.h: Declare _dl_global_scope, _dl_global_scope_alloc,
1908 and _dl_object_relocation_scope.
1909
1910 * elf/link.h (struct link_map): Add l_loader member.
1911 Remove _dl_map_object_from_fd decl.
1912 * elf/dl-load.c (_dl_map_object): Pass LOADER to ...
1913 (_dl_map_object_from_fd): Take new arg LOADER and set l_loader member.
1914 (_dl_map_object): Try DT_RPATH from all loaders up the chain.
1915
1916 * elf/dl-object.c (_dl_loaded): Variable removed.
1917 (_dl_default_scope): New variable replaces it.
1918 * elf/link.h (_dl_loaded): Remove variable decl; instead define as
1919 macro for _dl_default_scope[2].
1920 (_dl_default_scope): Declare it.
1921 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_default_scope[2]
1922 instead of _dl_loaded.
1923 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1924 * elf/rtld.c (dl_main): Use _dl_default_scope for symbol lookups.
1925
1926 * elf/dl-reloc.c (_dl_relocate_object): Remove check for _dl_rtld_map.
1927 * elf/rtld.c (dl_main): Pass 0 for LAZY flag when re-relocating self.
1928
1929 * elf/link.h (struct link_map.l_type): Remove lt_interpreter.
1930 (struct link_map): Add new flag member l_global.
1931
1932 * elf/dl-reloc.c (_dl_relocate_object): Check for _dl_rtld_map
1933 directly instead of looking for lt_interpreter.
1934 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1935 * elf/rtld.c (_dl_start): Don't bother setting BOOTSTRAP_MAP.l_type.
1936 (dl_main): Set _dl_rtld_map.l_type to lt_library.
1937
1938 * elf/dl-deps.c (_dl_map_object_deps): Propagate MAP->l_type to
1939 dependencies loaded, downgrading lt_executable -> lt_library.
1940
1941 * elf/dl-load.c (_dl_map_object_from_fd): Take new arg TYPE and set
1942 l_type from that, translating lt_library->lt_executable based on the
1943 file's ELF type.
1944 (_dl_map_object): Likewise.
1945 * elf/link.h: Update prototypes.
1946 * elf/dl-open.c: Pass type lt_loaded.
1947 * elf/rtld.c: Pass type lt_library.
1948
1949 * elf/dl-load.c (_dl_map_object_from_fd): Handle null return from
1950 _dl_new_object.
1951 (_dl_map_object_from_fd: lose): Unchain and free L if it's not null.
1952 Free REALNAME, and just use NAME in error message.
1953 * elf/dl-object.c (_dl_new_object): If malloc fails, return null
1954 instead of calling _dl_signal_error.
1955
1956 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before signalling
1957 error for _dl_zerofd setup failure.
1958
1959 * elf/dl-object.c (_dl_startup_loaded): Variable removed.
1960 * elf/link.h: Remove its decl.
1961
1962 * elf/dl-reloc.c (_dl_relocate_object): Take new SCOPE arg and pass it
1963 through to _dl_lookup_symbol.
1964 * elf/link.h (_dl_relocate_object): Update comment and prototype.
1965 * elf/rtld.c (dl_main): Pass scope vector to _dl_relocate_object.
1966
1967 * elf/dl-lookup.c (_dl_lookup_symbol): Arg SYMBOL_SCOPE is now a
1968 null-terminated vector of pointers, no longer a vector of exactly two.
1969 * elf/link.h (_dl_lookup_symbol): Update comment and prototype.
1970
1971 * elf/dl-runtime.c (fixup): Set up scope for symbol lookup properly as
1972 done in _dl_relocate_object.
1973
1974 * elf/dlopen.c: Pass "" to _dl_open when FILE is null.
1975
567c63af
RM
1976 * elf/link.h: Include elfclass.h to define __ELF_NATIVE_CLASS.
1977 (ElfW, ELFW): Use it.
1978 * elf/Makefile (headers): Add elfclass.h.
1979 * sysdeps/wordsize-32/elfclass.h: New file.
1980 * sysdeps/wordsize-64/elfclass.h: New file.
1981 * sysdeps/alpha/Implies: Add wordsize-64.
1982 * sysdeps/i386/Implies: Add wordsize-32.
1983 * sysdeps/m68k/Implies: Add wordsize-32.
1984 * sysdeps/mips/Implies: Add wordsize-32.
1985 * sysdeps/sparc/Implies: Add wordsize-32.
1986
266180eb
RM
1987 * sysdeps/mach/hurd/dl-sysdep.c (__open): Define this instead of open.
1988 (__close, __mmap): Likewise define with __ names now.
1989
1990Mon Jun 10 05:13:18 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1991
1992 * elf/dl-support.c: New file.
1993 * elf/Makefile (CFLAGS-dl-support.c): New variable.
1994 (routines, elide-routines.so): Add dl-support.
1995
1996 * elf/dl-minimal.c (_dl_pagesize): Remove common defn.
1997 * elf/dl-load.c (_dl_pagesize): Define it here.
1998 (_dl_map_object_from_fd): Initialize it if zero.
1999 * elf/link.h (_dl_pagesize): Remove const.
2000
2001Sun Jun 9 04:04:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2002
2003 * elf/Makefile (routines): Add dl-symbol.
2004 * elf/dl-lookup.c (_dl_symbol_value): Moved to ...
2005 * elf/dl-symbol.c: New file.
2006
2007 * elf/elf.h (Elf32_Xword, Elf32_Sxword): New types.
2008 (Elf32_Section, Elf64_Section): New types, 16 bits.
2009 (Elf32_Sym, Elf64_Sym): Use it.
2010
2011 * elf/dl-deps.c (_dl_open): Moved to ...
2012 * elf/dl-open.c: New file.
2013 * Makefile (routines): Add dl-open.
2014
2015 * elf/Makefile (dl-routines): New variable.
2016 (routines): Add $(dl-routines).
2017 (elide-routines.so): New variable, set to $(dl-routines).
2018 (libdl-inhibit-o): Variable removed; build all flavors of -ldl.
2019 (rtld-routines): All but rtld, dl-sysdep, and dl-minimal moved to
2020 $(dl-routines).
2021
2022 * elf/dl-lookup.c (_dl_lookup_symbol): Remove magic symbol grokage.
2023
2024 * elf/dladdr.c: Use ELFW(ST_BIND) in place of ELF32_ST_BIND.
2025
2026 * elf/dl-load.c (open_path): Use __ names for open and close. Avoid
2027 using strdup.
2028 (_dl_map_object): Likewise.
2029 (_dl_map_object_from_fd): Use __ names for mmap, munmap, and mprotect.
2030 * elf/dl-minimal.c (malloc): Likewise.
2031 * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2032
2033 * elf/dl-minimal.c (_dl_pagesize): New variable.
2034 (malloc): Use that instead of a static variable.
2035 * elf/dl-reloc.c (_dl_relocate_object): Use _dl_pagesize instead of
2036 calling getpagesize.
2037 * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2038 * elf/link.h: Declare _dl_pagesize.
2039
2040 * elf/rtld.c (dl_r_debug): Renamed to _dl_r_debug.
2041
2042 * elf/link.h (struct link_map): Use Half for l_phnum instead of Word.
2043 * elf/rtld.c (dl_main): Use Half for phdr count arg.
2044 (_dl_sysdep_start): Update prototype of DL_MAIN function ptr arg.
2045
2046 * elf/dl-load.c (_dl_map_object_from_fd): Use explicit Elf32_Word to
2047 extract 4-byte magic number, not ElfW(Word). Match EI_CLASS against
2048 native wordsize, either 32 or 64.
2049
2050 * elf/elf.h (Elf64_Byte, Elf64_Section): Typedefs removed. In C a
2051 char is always a byte, no need for a typedef. Section indices are
2052 16-bit quantities in elf64, which already have a typedef Elf64_Half.
2053
2054 Remove partial -lelf implementation. There is now a
2055 separately-distributed `libelf' package that implements it.
2056 * elf/dl-lookup.c: Don't #include <libelf.h> any more.
2057 (_dl_elf_hash): New function, moved from
2058 libelf.h:elf_hash.
2059 (_dl_lookup_symbol): Use it instead of elf_hash.
2060 * elf/libelf.h: File removed.
2061 * elf/elf_hash.c: File removed.
2062 * elf/Makefile (headers): Remove libelf.h.
2063 (extra-libs): Remove libelf.
2064 (libelf-routines): Variable removed.
2065
2066 * elf/Makefile (libdl.so): Remove commands from this target. The
2067 implicit rule commands are correct, this explicit rule just serves to
2068 add some dependencies.
2069
2070 * elf/dl-lookup.c (_dl_lookup_symbol): Use ELFW(ST_TYPE) in place of
2071 ELF32_ST_TYPE. Likewise ST_BIND.
2072 * elf/do-rel.h (elf_dynamic_do_rel): Likewise R_SYM.
2073
2074 * elf/link.h (ElfW): New macro for wordsize-independent ElfXX_* type
2075 naming.
2076 (ELFW): New macro, likewise for ELFXX_* macro naming.
2077 (_ElfW, _ElfW_1): New macros, subroutines of ElfW and ELF.
2078
2079Sat Jun 8 20:52:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2080
2081 * elf/link.h, elf/do-rel.h, elf/dynamic-link.h, elf/dl-deps.c,
2082 elf/dl-init.c, elf/dl-load.c, elf/dl-lookup.c, elf/dl-reloc.c,
2083 elf/dl-runtime.c, elf/dladdr.c, elf/dlclose.c, elf/dlsym.c,
2084 elf/linux-compat.c, elf/rtld.c: Change all uses of `Elf32_XXX' to
2085 `ElfW(XXX)' for wordsize-independence.
2086
2087Sat Jun 8 20:50:42 1996 Richard Henderson <rth@tamu.edu>
2088
2089 * elf/elf.h: Move Elf64_* types in parity with Elf32 counterparts.
2090 (Elf64_auxv_t): New type.
2091 (EM_ALPHA, R_ALPHA_*): New macros for elf64-alpha format.
2092
564210fe
RM
2093Mon Jun 10 02:22:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2094
2095 * sysdeps/unix/sysv/linux/configure.in: New file, start with configure.
2096 Add check for installed <linux/version.h> being v2.0 or later.
2097
2098 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill): Call __open
2099 instead of open.
2100 (_dl_sysdep_fatal): Call __write instead of write.
2101 (_dl_sysdep_message): Likewise.
2102
2103Sun Jun 9 20:40:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2104
2105 * sysdeps/m68k/fpu/e_acosl.c: New file.
2106
dcfb26a7
RM
2107Sun Jun 9 01:11:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2108
564210fe
RM
2109 * Makerules (o-objects): New variable. Use it in place of
2110 $(objects:.o=$o); it filters out $(elide-routines$o).
2111 Use o-iterator for ar and ranlib rules so they use the per-type object
2112 list.
2113
6d9756c9
RM
2114 * elf/dl-load.c (_dl_map_object_from_fd): Close FD before return.
2115
2116 * sysdeps/mach/mprotect.c: Define with __ name and weak alias.
2117 * sysdeps/stub/mprotect.c: Likewise.
2118 * sysdeps/unix/mman/syscalls.list (mprotect): Likewise.
2119 * sysdeps/generic/sys/mman.h: Declare __mprotect.
2120 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2121 * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2122 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2123 * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
564210fe 2124 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
6d9756c9 2125
9dd2fc5d
RM
2126 * Make-dist ($(tardir).tar): Use sed to check for file names longer
2127 than 14 chars, instead of doschk which checks for other things we
2128 don't care about.
2129
780b91d9
RM
2130 * Version 1.90 test release.
2131
dcfb26a7
RM
2132 * Makerules (make-target-directory): Use ./mkinstalldirs so we do not
2133 assume . is in PATH.
2134
2135Sat Jun 8 22:05:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2136
2137 * math/Makefile (distribute): Comment out addition of
2138 $(long-m-routines) sources until they are all written.
2139
2140 * math/Makefile (distribute): Append long double source names to this
2141 instead of using elided-routines.
2142
2143Sat Jun 8 15:15:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2144
2145 * mach/mach_shortcuts.c: Obsolete file removed.
2146 * mach/mach_syscalls.h: Likewise.
2147
2148 * hurd/Makefile (distribute): Consolidate defns into one.
2149
2150 * time/Makefile (tzfiles): Add solar87 solar88 solar89.
2151
bf668fc8
RM
2152Fri Jun 7 16:48:13 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2153
2154 * sysdeps/unix/sysv/linux/i386/Dist: New file, list sys/perm.h and
2155 sys/vm86.h.
2156
2157 Removed old math code no longer used since the fdlibm integration.
2158 * sysdeps/stub/acos.c: File removed.
2159 * sysdeps/stub/asin.c: File removed.
2160 * sysdeps/stub/atan2.c: File removed.
2161 * sysdeps/stub/cosh.c: File removed.
2162 * sysdeps/stub/exp.c: File removed.
2163 * sysdeps/stub/fmod.c: File removed.
2164 * sysdeps/stub/frexp.c: File removed.
2165 * sysdeps/stub/log.c: File removed.
2166 * sysdeps/stub/log10.c: File removed.
2167 * sysdeps/stub/sinh.c: File removed.
2168 * sysdeps/stub/tan.c: File removed.
2169 * sysdeps/stub/tanh.c: File removed.
2170 * sysdeps/generic/acos.c: File removed.
2171 * sysdeps/generic/acosh.c: File removed.
2172 * sysdeps/generic/asin.c: File removed.
2173 * sysdeps/generic/asinh.c: File removed.
2174 * sysdeps/generic/atan.c: File removed.
2175 * sysdeps/generic/atan2.c: File removed.
2176 * sysdeps/generic/atanh.c: File removed.
2177 * sysdeps/generic/cabs.c: File removed.
2178 * sysdeps/generic/ceil.c: File removed.
2179 * sysdeps/generic/copysign.c: File removed.
2180 * sysdeps/generic/cosh.c: File removed.
2181 * sysdeps/generic/exp.c: File removed.
2182 * sysdeps/generic/expm1.c: File removed.
2183 * sysdeps/generic/fabs.c: File removed.
2184 * sysdeps/generic/floor.c: File removed.
2185 * sysdeps/generic/fmod.c: File removed.
2186 * sysdeps/generic/frexp.c: File removed.
2187 * sysdeps/generic/hypot.c: File removed.
2188 * sysdeps/generic/infnan.c: File removed.
2189 * sysdeps/generic/isnan.c: File removed.
2190 * sysdeps/generic/ldexp.c: File removed.
2191 * sysdeps/generic/log.c: File removed.
2192 * sysdeps/generic/log10.c: File removed.
2193 * sysdeps/generic/log1p.c: File removed.
2194 * sysdeps/generic/modf.c: File removed.
2195 * sysdeps/generic/pow.c: File removed.
2196 * sysdeps/generic/rint.c: File removed.
2197 * sysdeps/generic/sinh.c: File removed.
2198 * sysdeps/generic/tan.c: File removed.
2199 * sysdeps/generic/tanh.c: File removed.
2200 * sysdeps/ieee754/cabs.c: File removed.
2201 * sysdeps/ieee754/copysign.c: File removed.
2202 * sysdeps/ieee754/frexp.c: File removed.
2203 * sysdeps/ieee754/hypot.c: File removed.
2204 * sysdeps/ieee754/infnan.c: File removed.
2205 * sysdeps/ieee754/ldexp.c: File removed.
2206 * sysdeps/ieee754/log10.c: File removed.
2207
2208 * posix/Makefile (headers): Add schedbits.h.
2209
2210 * math/Makefile (elided-routines): Add long double routines.
dcfb26a7 2211
268eb642
MB
2212Fri Jun 7 11:02:22 1996 Miles Bader <miles@gnu.ai.mit.edu>
2213
9646d934
MB
2214 * sysdeps/mach/hurd/getpriority.c (getpriority): Use new interface
2215 to __proc_getprocinfo.
2216
268eb642
MB
2217 * login/login.c (tty_name): New function.
2218 (login): Use it.
2219 (PATH_MAX): MACRO removed.
2220 <stdlib.h>: New include.
2221
bf668fc8
RM
2222Fri Jun 7 09:11:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2223
2224 * sysdeps/unix/sysv/linux/Dist: Add sys/sysinfo.h, sys/mount.h,
2225 sys/kdaemon.h, sys/io.h, sys/mount.h, sysctl.c.
2226
2227 * gmon/Makefile (distribute): Add profil-counter.h.
2228
2229 * sysdeps/unix/sysv/linux/alpha/Dist: New file.
2230
2231 * sysdeps/unix/Dist: Add s-proto.S.
2232
2233 * sysdeps/unix/common/mk-local_lim.c: Obsolete file removed.
2234
2235 * Make-dist (+sysdep-tsrcs): Get all syscalls.list files too.
2236
2237 * csu/Makefile (distribute): Add start.c.
2238
2239 * elf/Makefile (distribute): Add dl-machine.h.
2240
2241 * sysdeps/alpha/Dist: Add _mcount.S.
2242
2243 * sysdeps/alpha/Makefile (sysdep_routines): Append instead of
2244 resetting; don't add bb_init_func.
2245
2246 * string/Makefile (routines): Add strerror_r.
2247 * string/string.h (strerror_r): Use int for BUFLEN arg.
2248
2249 * Makefile (distribute): Add shlib-versions.
2250
2251 * po/Makefile (distribute): Add SYS_libc.pot.
2252
2253 * misc/Makefile (routines): Add lsearch.
2254
2255 * manual/lang.texi (Consistency Checking): Merge in assert_perror defn
2256 and other changes inadvertently made to the obsolete assert.texi.
2257 * manual/assert.texi: File removed.
2258
2259 * mach/mach_syscalls.c: Obsolete file removed.
2260 * mach/mach_syscalls.h: Likewise.
2261 * mach/mach_traps.S: Likewise.
2262 * mach/msg_destroy.c: Likewise.
2263 * mach/vm_page_size.c: Likewise.
2264
2265 * locale/Makefile (distribute): Add weight.h, charset.h.
2266
2267 * Makefile (distribute): Add version.h.
2268
2269 * hurd/Makefile (headers): Add hurd/ioctl.h.
2270 (distribute): Add intr-rpc.d, intr-rpc.h, faultexc.defs.
2271
2272 * csu/Makefile (distribute): Add gmon-start.c.
2273
2274 * Makefile (distribute): Add config.h.in.
2275
1c2f546b
RM
2276Wed Jun 5 22:06:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2277
2278 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Fix type of reloc
2279 argument.
2280 [case R_68K_32]: Check for resolve being null.
2281 (RTLD_START): Add missing label.
2282
1be6ec30
RM
2283Fri Jun 7 1996 05:29:32 Ulrich Drepper <drepper@cygnus.com>
2284
2285 * misc/lsearch.c: New file. Implementation of lfind and
2286 lsearch functions.
2287
2288 * misc/search.h: Add prototype for functions from tsearch
2289 family with __ prefix.
2290 Correct prototype for lsearch: BASE parameter must not be
2291 const.
2292
2293 * misc/tsearch.c: prepend all global function names with __
2294 and make normal names weak aliases.
2295
2296Fri Jun 7 00:15:24 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2297
2298 * Make-dist (sysdep_dirs): Skip CVS dirs.
2299
4d02a5b1
RM
2300Thu Jun 6 16:12:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2301
c035afc9
RM
2302 * malloc/Makefile (distribute): Change malloc/gmalloc-head.c to
2303 gmalloc-head.c.
2304 (malloc/gmalloc.c): Depend on malloc/gmalloc-head.c.
2305 (malloc/Makefile): Do $(make-target-directory) first.
2306 * malloc/gmalloc-head.c: New file.
2307
2308 * po/Makefile (linguas.mo): Don't commit .mo files to cvs.
2309
4d02a5b1
RM
2310 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO==0 pending
2311 check, deliver a pending blocked signal if its action might be to
2312 ignore.
2313 * sysdeps/mach/hurd/sigaction.c: If new action is SIG_IGN or SIG_DFL
2314 and SIG is pending, wake up signal thread to check us.
2315
2316 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't mark a signal
2317 pending while blocked or stopped when the action is to ignore it.
2318
e60062b7
RM
2319Thu Jun 6 12:56:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2320
4d02a5b1
RM
2321 * hurd/hurdsig.c (_hurd_internal_post_signal: resume): Only set
2322 SS_SUSPENDED when the thread is really suspended.
2323
2324 * elf/rtld.c (dl_main): Don't dereference _dl_rtld_map.l_next if null.
2325
e60062b7
RM
2326 * Makerules (headers): Move append of $(sysdep_headers) after include
2327 of sysdep makefiles.
2328
2329 * sysdeps/mach/hurd/errlist.c: File removed.
2330
02eec644
MB
2331Thu Jun 6 07:32:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
2332
2333 * resolv/gethnamaddr.c (struct hstorage): Make NAME field a pointer.
2334 (_gethtbyname2): Remove ALIAS variable.
2335 Initialize NAME field of SELF and TARGET to 0.
2336 Add SELF_NAME_SIZE static variable.
2337 Add loop to call gethostname until the space we allocated is enough.
2338 Use malloced strings instead of fixed size buffers.
2339 <stdlib.h>, <unistd.h>: New includes.
2340 * sysdeps/generic/sys/socket.h (PF_INET6, AF_INET6): New macros.
2341
2342 * sysdeps/mach/hurd/errlist.c (_sys_errlist): Add EILSEQ.
2343 (_sys_nerr): Initialize to 107.
2344 Update _HURD_ERRNOS consistency check.
2345
2346 * stdlib/canonicalize.c (canonicalize): Use pathconf for PATH_MAX,
2347 not sysconf.
2348
2349 * login/login.c [!PATH_MAX] (PATH_MAX): Define to be 1024 if not
2350 already defined.
2351
2352 * sysdeps/mach/hurd/setitimer.c (timer_thread): Supply SIGCODE
2353 argument to __msg_sig_post_request.
2354
2355 * hurd/hurdmalloc.c: Changes to bring in line with the hurd
2356 libthreads/malloc.c:
2357 (more_memory): Use assert_perror instead of MACH_CALL.
2358 "cthread_internals.h": Include removed.
2359 (realloc): Use LOG2_MIN_SIZE.
2360 (LOG2_MIN_SIZE): New macro.
2361 (realloc): Don't bother allocating a new block if the
2362 new size request fits in the old one and doesn't waste any space.
2363 Only free the old block if we successfully got a new one.
2364 [MCHECK] (struct header): New type.
2365 (union header): Only define if !MCHECK.
2366 (HEADER_SIZE, HEADER_NEXT, HEADER_FREE, HEADER_CHECK): New macros.
2367 [MCHECK] (MIN_SIZE): Add correct definition for this case.
2368 (more_memory, malloc, free, realloc): Use above macros, and add
2369 appropiate checks & frobs in MCHECK case.
2370
92f3773b
RM
2371Thu Jun 6 02:00:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2372
2373 * Makerules (distinfo-vars): Don't write constant line to frob sources.
2374 * Make-dist (sources): Append $(elided-routines) and $(extra-libs)
2375 routines.
2376
8f30ca23
RM
2377Tue Jun 4 22:03:02 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2378
2379 * sysdeps/m68k/fpu/__math.h: Define long double versions of
2380 the inline functions.
8f30ca23
RM
2381 * sysdeps/m68k/fpu/e_asinl.c, sysdeps/m68k/fpu/e_atanl.c,
2382 sysdeps/m68k/fpu/e_acosl.c, sysdeps/m68k/fpu/e_expl.c,
2383 sysdeps/m68k/fpu/e_fmodl.c, sysdeps/m68k/fpu/e_log10l.c,
2384 sysdeps/m68k/fpu/e_logl.c, sysdeps/m68k/fpu/e_powl.c,
2385 sysdeps/m68k/fpu/e_remainderl.c, sysdeps/m68k/fpu/e_scalbl.c,
2386 sysdeps/m68k/fpu/e_sinhl.c, sysdeps/m68k/fpu/e_sqrtl.c,
2387 sysdeps/m68k/fpu/k_cosl.c, sysdeps/m68k/fpu/k_sinl.c,
2388 sysdeps/m68k/fpu/k_tanl.c, sysdeps/m68k/fpu/s_atanl.c,
2389 sysdeps/m68k/fpu/s_ceill.c, sysdeps/m68k/fpu/s_cosl.c,
2390 sysdeps/m68k/fpu/s_expm1l.c, sysdeps/m68k/fpu/s_fabsl.c,
2391 sysdeps/m68k/fpu/s_finitel.c, sysdeps/m68k/fpu/s_floorl.c,
2392 sysdeps/m68k/fpu/s_frexpl.c, sysdeps/m68k/fpu/s_ilogbl.c,
2393 sysdeps/m68k/fpu/s_isinfl.c, sysdeps/m68k/fpu/s_isnanl.c,
2394 sysdeps/m68k/fpu/s_ldexpl.c, sysdeps/m68k/fpu/s_log1pl.c,
2395 sysdeps/m68k/fpu/s_logbl.c, sysdeps/m68k/fpu/s_modfl.c,
2396 sysdeps/m68k/fpu/s_rintl.c, sysdeps/m68k/fpu/s_scalbnl.c,
2397 sysdeps/m68k/fpu/s_significandl.c, sysdeps/m68k/fpu/s_sinl.c,
bf668fc8 2398 sysdeps/m68k/fpu/e_atanhl.c, sysdeps/m68k/fpu/e_coshl.c: New files.
8f30ca23
RM
2399
2400 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_fmod.c,
2401 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_sin.c,
2402 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/s_atan.c,
2403 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_ilogb.c,
2404 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_ldexp.c,
2405 sysdeps/m68k/fpu/s_modf.c: Define generic functions using FUNC and
2406 float_type with appropriate defaults.
2407
2408 * sysdeps/m68k/fpu/e_acosf.c, sysdeps/m68k/fpu/e_fmodf.c,
2409 sysdeps/m68k/fpu/k_cosf.c, sysdeps/m68k/fpu/k_sinf.c,
2410 sysdeps/m68k/fpu/k_tanf.c, sysdeps/m68k/fpu/s_atanf.c,
2411 sysdeps/m68k/fpu/s_frexpf.c, sysdeps/m68k/fpu/s_ilogbf.c,
2412 sysdeps/m68k/fpu/s_isinff.c, sysdeps/m68k/fpu/s_ldexpf.c,
2413 sysdeps/m68k/fpu/s_modff.c: Include the corresponding double
2414 versions with appropriate definitions to get float functions,
2415 instead of defining them directly.
2416
2417 * sysdeps/m68k/fpu/acos.c: File removed.
2418 * sysdeps/m68k/fpu/asin.c: File removed.
2419 * sysdeps/m68k/fpu/atan.c: File removed.
2420 * sysdeps/m68k/fpu/atan2.c: File removed.
2421 * sysdeps/m68k/fpu/atanh.c: File removed.
2422 * sysdeps/m68k/fpu/ceil.c: File removed.
2423 * sysdeps/m68k/fpu/cos.c: File removed.
2424 * sysdeps/m68k/fpu/cosh.c: File removed.
2425 * sysdeps/m68k/fpu/drem.c: File removed.
2426 * sysdeps/m68k/fpu/exp.c: File removed.
2427 * sysdeps/m68k/fpu/expm1.c: File removed.
2428 * sysdeps/m68k/fpu/fabs.c: File removed.
2429 * sysdeps/m68k/fpu/fl.h: File removed.
2430 * sysdeps/m68k/fpu/floor.c: File removed.
2431 * sysdeps/m68k/fpu/fmod.c: File removed.
2432 * sysdeps/m68k/fpu/frexp.c: File removed.
2433 * sysdeps/m68k/fpu/isinf.c: File removed.
2434 * sysdeps/m68k/fpu/isinfl.c: File removed.
2435 * sysdeps/m68k/fpu/isnan.c: File removed.
2436 * sysdeps/m68k/fpu/isnanl.c: File removed.
2437 * sysdeps/m68k/fpu/ldexp.c: File removed.
2438 * sysdeps/m68k/fpu/log.c: File removed.
2439 * sysdeps/m68k/fpu/log10.c: File removed.
2440 * sysdeps/m68k/fpu/log1p.c: File removed.
2441 * sysdeps/m68k/fpu/logb.c: File removed.
2442 * sysdeps/m68k/fpu/pow.c: File removed.
2443 * sysdeps/m68k/fpu/rint.c: File removed.
2444 * sysdeps/m68k/fpu/sin.c: File removed.
2445 * sysdeps/m68k/fpu/sinh.c: File removed.
2446 * sysdeps/m68k/fpu/sqrt.c: File removed.
2447 * sysdeps/m68k/fpu/tan.c: File removed.
2448 * sysdeps/m68k/fpu/tanh.c: File removed.
2449
f127cd28
RM
2450Thu Jun 6 00:02:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2451
8f30ca23
RM
2452 * sysdeps/unix/sysv/linux/syscalls.list: Add select (the syscall name
2453 is _newselect).
2454 * sysdeps/unix/sysv/linux/select.S: File removed.
2455
2456 * sysdeps/unix/sysv/linux/m68k/select.S: File removed; obsolete with
2457 current kernels, generic linux version is fine.
2458
f127cd28
RM
2459 * locale/Makefile: Add vpath for %.gperf to programs.
2460
2461 * Make-dist (+tsrcs): Variable removed.
2462 (dist): Process $^ here instead of using $(+tsrcs).
2463
2464 * sysdeps/unix/sysv/linux/Makefile (install-others): Don't set.
2465 ($(includedir)/sys/syscall.h): Target removed.
2466 (sysdep_headers): Add syscall-list.h.
2467 ($(objpfx)syscall-%.[dh]): New rule to build syscall-list.[dh].
2468 (generated): Add those.
2469 * sysdeps/unix/sysv/linux/syscall.h: Include <syscall-list.h>.
2470
92702b91
RM
2471Wed Jun 5 15:57:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2472
f127cd28
RM
2473 * misc/sys/syscall.h: New file.
2474 * misc/Makefile (headers): Add sys/syscall.h.
2475
dfe1754a
RM
2476 * time/tzfile.h, time/private.h, time/zdump.c, time/zic.c,
2477 time/africa, time/asia, time/australasia, time/europe,
2478 time/northamerica, time/southamerica: Updated from ADO 96h.
2479
2480 * Make-dist (all-headers): Filter $(sysdep_headers) out of $(headers).
2481 (try-sysdeps, +sysdep-names): Check sysdeps/libm-ieee754 too.
2482
2483 * Makerules (distinfo-vars): Add sysdep_headers.
2484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Append to
2485 this instead of $(headers).
2486 * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
f127cd28 2487 * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
dfe1754a
RM
2488
2489 * Make-dist [subdirs-dirs]: Don't prefix $(subdir-dirs) with
2490 $(subdir); we are already there.
2491
2492 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: Removed.
2493
92702b91
RM
2494 * mach/Machrules: Undo last change.
2495 (mach-generated): List .uh and .__h files only for $(user-interfaces),
2496 not for each .h in $(interface-headers); server-interfaces have no .uh
2497 or .__h files.
2498
b13aa0b8
MB
2499Wed Jun 5 15:42:51 1996 Miles Bader <miles@gnu.ai.mit.edu>
2500
2501 * mach/Machrules (%_server.uh, %_server.__h): New rules, so that the
2502 corrsponding .defs file with without the `_server' will be used.
92702b91
RM
2503
2504 * mach/Makefile (mach/mach_interface.defs): Renamed from
2505 mach_interface.defs.
b13aa0b8
MB
2506 (mach/memory_object_user.defs): New variable.
2507
92702b91
RM
2508Wed Jun 5 15:10:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2509
2510 * Make-dist [subdir-dirs]: Set vpath for %, not just %.c.
2511
2512 * locale/Makefile (subdir-dirs): New variable.
2513
1c384dcd
RM
2514Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2515
aa592a63
RM
2516 * Makerules (distinfo-vars): Add sysdep_routines.
2517
2518 * mach/Machrules (include-%.defs): New canned sequence.
2519 Change all uses of `#include <$*.defs>' in cmds to use it.
2520 * mach/Makefile (mach_interface.defs): New variable, set to mach.defs.
2521
2522 * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle RESOLVE being
2523 null in all cases but R_386_COPY.
2524 (elf_machine_rel):
2525
92702b91
RM
2526Wed Jun 5 00:01:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2527
aa592a63
RM
2528 * sysdeps/unix/bsd/ultrix4/mips/Dist: Updated.
2529 * sysdeps/unix/bsd/ultrix4/Dist: Removed.
2530 * sysdeps/unix/sysv/sysv4/Dist: Updated.
2531 * sysdeps/unix/sysv/sco3.2.4/Dist: Removed.
2532 * sysdeps/unix/sysv/irix4/Dist: Updated.
2533 * sysdeps/unix/sysv/linux/i386/Dist: Removed.
2534 * sysdeps/unix/sysv/Dist: Updated.
2535 * sysdeps/unix/bsd/sun/sunos4/Dist: Removed.
2536 * sysdeps/unix/bsd/sony/newsos4/Dist: Removed.
2537 * sysdeps/gnu/Dist: New file.
2538 * sysdeps/alpha/Dist: Updated.
2539 * sysdeps/mach/hurd/Dist: Updated.
2540
2541 * Make-dist [subdir-dirs]: Set a vpath for %.c.
2542
2543 * Make-dist (README): Fix typo in cvs cmd.
2544
1c384dcd
RM
2545 * elf/dl-lookup.c (_dl_lookup_symbol): Fix typos in last change.
2546 Comment out ref to nonexistent _dl_close.
2547
ee188d55
RM
2548Tue Jun 4 21:01:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2549
58e07151
RM
2550 * math/Makefile (libm-support, libm-calls): New variables.
2551 (libm-routines): Construct this from those.
2552 (calls): New variable.
2553 (routines): Construct this from it.
2554
2555 * resolv/res_debug.c: Add missing #include <ctype.h>.
2556
2557 * sysdeps/unix/getlogin.c: Must pass struct utmp ptr to getutline_r.
2558 * sysdeps/unix/getlogin_r.c: Likewise.
2559
2560 * sysdeps/libm-ieee754/w_hypotl.c: Fix typo.
2561
2562 * sysdeps/libm-ieee754/w_cabsl.c: __cabsl_complex -> __cabs_complexl
2563
2564 * math/Makefile (long-m-routines): Define recursive variable as
2565 $(long-m-$(long-double-fcts)).
2566 (long-m-yes): Put list of routines here.
2567 (long-c-routines, long-c-yes): Likewise.
2568
2569 * sysdeps/unix/sysv/linux/schedbits.h: File removed.
2570
2571 * sysdeps/i386/Makefile (long-double-fcts): New variable, set to yes.
2572 * sysdeps/m68k/Makefile: Likewise.
2573
2574 * math/Makefile [$(long-double-fcts)!=yes] (CPPFLAGS): Append
2575 -DNO_LONG_DOUBLE.
2576
ee188d55
RM
2577 * sysdeps/mach/hurd/getlogin_r.c: New file.
2578
2579Wed Jun 5 02:11:30 1996 Ulrich Drepper <drepper@cygnus.com>
2580
2581 * io/Makefile (routines): Add ttyname_r.
2582
2583 * resolv/res_debug.c, resolv/resolv.h: Update from bind-4.3.4-T4A.
2584
2585 * sysdeps/libm-i387/e_asinl.S, sysdeps/libm-i387/e_atan2l.S,
2586 sysdeps/libm-i387/e_expl.S, sysdeps/libm-i387/e_fmodl.S,
2587 sysdeps/libm-i387/e_log10l.S, sysdeps/libm-i387/e_logl.S,
2588 sysdeps/libm-i387/e_remainderl.S, sysdeps/libm-i387/e_scalbl.S,
2589 sysdeps/libm-i387/e_sqrtl.S, sysdeps/libm-i387/s_atanl.S,
2590 sysdeps/libm-i387/s_cosl.S, sysdeps/libm-i387/s_ilogbl.S,
2591 sysdeps/libm-i387/s_log1pl.S, sysdeps/libm-i387/s_logbl.S,
2592 sysdeps/libm-i387/s_scalbnl.S, sysdeps/libm-i387/s_sinl.S,
2593 sysdeps/libm-i387/s_tanl.S: New files. i387 assembler versions
2594 of `long double' math functions.
2595
2596 * sysdeps/libm-ieee754/k_standard.c: Add handling for errors
2597 in long double functions.
2598
2599 * sysdeps/libm-ieee754/s_ilogbl.c, sysdeps/libm-ieee754/s_logbl.c,
2600 sysdeps/libm-ieee754/s_modfl.c: New files. Generic versions
2601 of `long double' math functions.
2602
2603 * sysdeps/libm-ieee754/s_isinf.c [NO_LONG_DOUBLE]: Add string
2604 alias for __isinfl.
2605
2606 * sysdeps/libm-ieee754/w_acoshl.c, sysdeps/libm-ieee754/w_acosl.c,
2607 sysdeps/libm-ieee754/w_asinl.c, sysdeps/libm-ieee754/w_atan2l.c,
2608 sysdeps/libm-ieee754/w_atanhl.c, sysdeps/libm-ieee754/w_cabsl.c,
2609 sysdeps/libm-ieee754/w_coshl.c, sysdeps/libm-ieee754/w_dreml.c,
2610 sysdeps/libm-ieee754/w_expl.c, sysdeps/libm-ieee754/w_fmodl.c,
2611 sysdeps/libm-ieee754/w_gammal.c, sysdeps/libm-ieee754/w_gammal_r.c,
2612 sysdeps/libm-ieee754/w_hypotl.c, sysdeps/libm-ieee754/w_j0l.c,
2613 sysdeps/libm-ieee754/w_j1l.c, sysdeps/libm-ieee754/w_jnl.c,
2614 sysdeps/libm-ieee754/w_lgammal.c, sysdeps/libm-ieee754/w_lgammal_r.c,
2615 sysdeps/libm-ieee754/w_log10l.c, sysdeps/libm-ieee754/w_logl.c,
2616 sysdeps/libm-ieee754/w_powl.c, sysdeps/libm-ieee754/w_remainderl.c,
2617 sysdeps/libm-ieee754/w_scalbl.c, sysdeps/libm-ieee754/w_sinhl.c,
2618 sysdeps/libm-ieee754/w_sqrtl.c: New files. Wrapper functions
2619 around long double function implementations.
2620
2621 * sysdeps/posix/ttyname_r.c (ttyname_r): Use _D_EXACT_NAMLEN
2622 to determine length of directory entry name.
2623
2624 * posix/Makefile (routines): Add getlogin_r.
2625 * posix/unistd.h: Add prototype for getlogin_r.
2626 * sysdeps/stub/getlogin_r.c: New file. Reentrant version of
2627 getlogin function, specified in P1003.1c/D6. Stub version.
2628 * sysdeps/unix/getlogin.c (getlogin): Use ttyname_r instead of
2629 ttyname. This avoids saving and restoring the old content.
2630 Also use setutent_r, getutline_r and endutent_r instead of
2631 accing UTMP file directly.
2632 * sysdeps/unix/getlogin_r.c: New file. Reentrant version of
2633 getlogin function, specified in P1003.1c/D6.
2634
2635Tue Jun 4 20:10:09 1996 J.T. Conklin <jtc@cygnus.com>
2636
2637 * sysdeps/libm-i387/s_finitef.S: Fix mask for exponent.
2638
f68b86cc
RM
2639Tue Jun 4 18:57:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2640
ee188d55
RM
2641 * elf/dl-lookup.c (_dl_lookup_symbol): Grok magical undefined symbols
2642 _GNU_libc_dl_{open,close,symbol} and resolve them to dl functions.
2643
2644 * elf/rtld.c (rtld_map): Renamed to _dl_rtld_map, made global.
2645 * elf/link.h: Declare _dl_rtld_map.
2646
2647 * elf/dl-lookup.c (_dl_symbol_value): New function.
2648 * elf/link.h: Declare it.
2649
f68b86cc
RM
2650 * elf/dladdr.c: Remove #include <setjmp.h>, we don't use it.
2651
2652 * shlib-versions: Set libdl=2.
2653
2654 * elf/dl-deps.c (_dl_map_object_deps): Use a linked list of alloca'd
2655 elements and then scan it to fill the single malloc'd array, instead
2656 of using realloc to grow the array in the first pass. _dl_map_object
2657 may do some mallocs that break our stream of reallocs, and the minimal
2658 realloc can't handle that.
2659
2660 * elf/dl-init.c (_dl_init_next): Take argument, link_map whose
2661 searchlist describes the piece of the DT_NEEDED graph to be
2662 initialized.
2663 * elf/link.h: Update prototype.
2664 * sysdeps/i386/dl-machine.h (RTLD_START): Pass _dl_loaded as argument
2665 to _dl_init_next.
2666 * sysdeps/m68k/dl-machine.h: Likewise.
2667 * elf/dl-deps.c (_dl_open): Pass new object as arg to _dl_init_next.
2668
2669 * elf/link.h (struct link_map): Add `l_reserved' member, soaking up
2670 extra bits in last byte.
2671 * elf/dl-deps.c (_dl_map_object_deps): Use that for mark bit to avoid
2672 putting dup elts in search list.
2673
2674 * elf/dlclose.c: Use MAP->l_searchlist to find deps to close.
2675
2676 * elf/dlsym.c: Don't tweak linked list. Scope array given to
2677 _dl_lookup_symbol does the right thing.
efec1d0c 2678
14d898ae
RM
2679 * elf/Makefile (subdir_lib): Change this target to lib-noranlib.
2680 (lib-noranlib): Depend on on $(extra-objs).
2681
2682 * errno.h: Move __END_DECLS out of #ifdef's so it matches
2683 __BEGIN_DECLS.
2684
f68b86cc
RM
2685Tue Jun 4 02:25:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2686
a2b934be
RM
2687 * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as
2688 macro. _IO_size_t is just an alias for the real size_t anyway.
2689
2690 * elf/Makefile (libdl-routines): Add dladdr.
2691 * elf/dladdr.c: New file.
2692 * elf/dlfcn.h (Dl_info): New typedef.
2693 (dladdr): Declare it.
2694
55f3aaff 2695 * sysdeps/libm-i387/s_finite.S: Use `setne' instead of `setnel'.
fa00327f
RM
2696
2697 * intl/l10nflist.c: Fix conditional on #include <argz.h>.
2698
2699 * libio/stdio.h (FOPEN_MAX, FILENAME_MAX, TMP_MAX, L_tmpnam): Macros
2700 removed. Instead, include <stdio_lim.h>.
2701
2702 * libio/_G_config.h: New file.
2703 * libio/Makefile (headers): Add _G_config.h.
2704
2705 * MakeTAGS (po/errlist.pot): Extract from sysdeps/gnu/errlist.c.
2706
bf18dbd7
RM
2707 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Define
2708 this macro too; current Linux kernels test that instead of
2709 _LINUX_TYPES_DONT_EXPORT.
2710
efec1d0c
RM
2711 * elf/linux-compat.c (_init): Pass reloc_addr arg to _dl_lookup_symbol.
2712
2713 * elf/dl-lookup.c (_dl_lookup_symbol): Use l_searchlist.
2714
2715 * elf/dl-deps.c: New file.
2716 * elf/Makefile (rtld-routines): Add dl-deps.
2717 * elf/link.h: Declare _dl_map_object_deps, _dl_open.
2718 * elf/rtld.c (dl_main): Use _dl_map_object_deps.
2719 * elf/dlopen.c: Use _dl_open.
2720
2721 * elf/rtld.c (dl_main): Remove BEFORE_RTLD variable and list
2722 frobnication based on its value. Detach RTLD_MAP from the chain if
2723 its l_opencount is zero after loading deps.
2724
2725 * elf/dlfcn.h (RTLD_BINDING_MASK): New macro.
2726
2727 * elf/link.h (struct link_map): Replace l_deps_loaded flag member with
2728 `struct link_map **l_searchlist' and `unsigned int l_nsearchlist'.
2729 * elf/dl-lookup.c (_dl_lookup_symbol): Make SYMBOL_SCOPE arg an array
2730 of two link_map ptrs. Search the maps in the l_searchlist of each
2731 elt that is not null.
2732 * elf/dl-reloc.c (_dl_relocate_object): Pass proper SCOPE array.
2733 * elf/dl-runtime.c: Likewise.
2734 * elf/dlsym.c: Likewise.
2735 * elf/rtld.c (dl_main): Likewise.
2736
2737 * elf/dl-minimal.c (realloc): Support realloc of the block most
2738 recently returned by the minimal malloc.
2739
b25ae9c6
RM
2740Tue Jun 4 00:16:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2741
2742 * sysdeps/gnu/errlist.awk: Produce N_("..."), not _N("...").
2743
2744 * intl: Updated from gettext-0.10.13.
efec1d0c 2745 * intl/localealias.c, intl/dcgettext.c [_LIBC]: Define HAVE_ALLOCA.
b25ae9c6
RM
2746
2747 * signal/siggetmask.c: New file. Wrapper around sigblock with
2748 link_warning about obsolescence.
2749 * signal/Makefile (routines): Add siggetmask.
2750
2751 * sysdeps/gnu/errlist.awk: New file, adapted from ...
2752 * sysdeps/mach/hurd/errlist.awk: File removed, above file replaces it.
2753 * sysdeps/mach/hurd/Makefile (errlist.c): Target removed.
2754 * sysdeps/gnu/Makefile: New file.
2755 (sysdeps/gnu/errlist.c): Make the errlist.c generation rule into this.
2756
5f2eab42
RM
2757Mon Jun 3 21:03:54 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2758
b25ae9c6
RM
2759 * manual/errno.texi (Error Codes): Add placeholder items for missing
2760 Linux/i386 errno codes, with perror text but no documentation.
2761 Some existing perror texts changed.
2762
5f2eab42
RM
2763 * malloc/mcheck.c (freehook, reallochook): Handle null pointer args.
2764
2765 * hurd/hurdsig.c (_hurd_internal_post_signal): When setting ACT to
2766 `ignore, resume the thread if SS_SUSPENDED, regardless of old action.
2767
2768Sun Jun 2 20:14:30 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2769
2770 * locale/programs/linereader.c (lr_open): Don't pass NULL to
2771 xstrdup; fix memory leak.
2772 (lr_close): Fix memory leak.
2773
9f195df2
TBB
2774Mon Jun 3 15:58:22 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2775
5f2eab42 2776 * hurd/hurdsig.c (_hurd_internal_post_signal): When turning the action
9f195df2
TBB
2777 for a HANDLE signal to IGNORE because the signal is blocked, clean
2778 up any pending suspension left over from a call to resume.
2779
710f7bab
RM
2780Mon Jun 3 00:30:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2781
2782 * elf/dl-lookup.c (_dl_lookup_symbol): Take new arg RELOC_ADDR and
2783 don't allow a defn resolving to that address.
5f2eab42 2784
710f7bab
RM
2785 * elf/link.h: Update prototype and comment.
2786 * elf/dl-runtime.c (fixup): Define local `resolve' function and pass
2787 it to elf_machine_relplt.
2788 * elf/dl-reloc.c (_dl_relocate_object: resolve): Take new arg
2789 RELOC_ADDR and pass it through to _dl_lookup_symbol.
2790 * elf/do-rel.h (elf_dynamic_do_rel): Pass RESOLVE to elf_machine_rel
2791 instead of calling it ourselves and passing its results.
2792 (elf_dynamic_do_rel): RESOLVE fn takes new arg RELOC_ADDR.
2793 * elf/rtld.c (dl_main): Pass 0 for RELOC_ADDR to _dl_lookup_symbol.
2794 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove SYM_LOADADDR
2795 arg. Add RESOLVE function ptr arg. Call *RESOLVE as necessary.
2796 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
2797 * sysdeps/stub/dl-machine.h: Likewise.
2798
9004bc20
RM
2799Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2800
710f7bab
RM
2801 * csu/initfini.c (_fini): Add extern decl for i_am_not_a_leaf.
2802
2803 * elf/dlfcn.h (dl_open_mode): Enumerated type removed.
2804 (RTLD_LAZY, RTLD_NOW): Define these as macros instead.
2805 (RTLD_GLOBAL): New macro.
2806 (dlopen): Take arg of type int instead of dl_open_mode.
2807 * elf/dlopen.c: Likewise.
2808
2809 * math/math.h (_Mldbl): New macro, either produces L suffix or not.
2810 (M_*): Use it for these constants.
2811
6c03c2cf
RM
2812 * elf/dl-lookup.c (_dl_lookup_symbol): Arg NOSELF renamed to NOPLT.
2813 Reject SHN_UNDEF defns iff NOPLT is nonzero.
2814 * elf/link.h (_dl_lookup_symbol): Update prototype and comment.
2815 * elf/dl-runtime.c (fixup): Pass 1 to _dl_lookup_symbol for NOPLT.
2816 * elf/dlsym.c (dlsym): Pass 0.
2817 * elf/rtld.c (dl_main): Likewise.
2818 * elf/dl-reloc.c (_dl_relocate_object: resolve): Second arg R_OFFSET
2819 replaced with NOPLT flag. Pass it through to _dl_lookup_symbol.
2820 * elf/do-rel.h (elf_dynamic_do_rel): Update prototype of RESOLVE arg.
2821 Pass `elf_machine_pltrel_p (R->r_type)' result as NOPLT flag value.
2822 * sysdeps/i386/dl-machine.h (elf_machine_pltrel_p): New macro.
2823 * sysdeps/m68k/dl-machine.h (elf_machine_pltrel_p): Likewise.
2824 * sysdeps/stub/dl-machine.h (elf_machine_pltrel_p): Likewise.
2825
9004bc20
RM
2826 * login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
2827
2828 * sysdeps/generic/gnu/types.h (__clock_t): New type.
2829
84724245
RM
2830Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2831
9004bc20
RM
2832 * sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
2833 using kernel types.
2834 * time/time.h (clock_t): Include <gnu/types.h> and define using
2835 __clock_t.
2836
84724245
RM
2837 * time/Makefile (tests): Add test-tz.
2838
2839 * time/test-tz.c: New test.
2840
2841 * time/clocktest.c: Rewrite to test more meaningfully.
2842
2843 * sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
2844 create_module, delete_module, get_kernel_syms, init_module,
2845 klogctl.
2846
2847 * sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
2848 instead of SYMLOOP_MAX, which is nowhere to be found.
2849
2850 * sysdeps/unix/sysv/linux/sys/msq_buf.h,
2851 sysdeps/unix/sysv/linux/sys/sem_buf.h,
2852 sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
2853 control ops and datastructures.
2854
2855 * sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
2856 I/O related functions.
2857
2858 * sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
2859 daemon related functions/operations.
2860
2861 * sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
2862 logging related functions/operations.
2863
2864 * sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
2865 module related functions/operations.
2866
2867 * sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
2868 for non-Alpha based Linux systems.
2869
2870 * sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
2871
2872 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
2873 sys/io.h, sys/klog.h, and sys/kdaemon.h.
2874
2875 * sysdeps/unix/sysdep.h (END): Define empty END macro for
2876 platforms that don't need some sort of end directive at the
2877 end of functions.
2878
2879 * sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
2880 syscall wrapper to allow correct generation of debugging
2881 information.
2882
2883 * sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
2884 directive for both ELF and ECOFF.
2885 (ret): Delete macro. It was a dangerous macro and unnecessary
2886 since the Alpha assemblers recognizes "ret" as a macro themselves.
2887
2888 * sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
2889 ut_session to guarantee long alignment. This is important for
2890 Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
2891 This will all get cleaned up as programs start to use ut_tv
2892 instead ut_time.
2893
2894 * sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
2895
2896 * sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
2897 _setjmp.
2898
2899 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
2900 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
2901 sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
2902 sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
2903 sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
2904 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
2905 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2906 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2907 sysdeps/unix/sysv/linux/alpha/llseek.S,
2908 sysdeps/unix/sysv/linux/alpha/pipe.S,
2909 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2910 sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
2911 .end directive.
2912
2913 * csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
2914 function by having it contain a dummy function call.
2915
2916 * configure.in (config_machine): Don't make ELF the default for
2917 Linux/Alpha just yet (use --with-elf instead).
2918 (.init/.fini check): Generate .text to ensure function start and
2919 end are in same section.
2920
2921 * sysdeps/unix/bsd/osf/alpha/brk.S,
2922 sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
2923 break value, not just the low 32 bits to accomodate large
2924 memories.
2925
2926Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
2927
2928 * sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
2929 dynamically resolve _end for initializing __curbrk, support the
2930 brk(0) query idiom.
2931
2932 * sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
2933
2934 * sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
2935
2936Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
2937
2938 * stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
2939 stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
2940
2941Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
2942
2943 * sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
2944 sys/klog.h, and sys/kdaemon.h.
2945
2946 * sysdeps/unix/sysv/linux/sys/io.h: New file.
2947 * sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
2948 * sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
2949
2950 * sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
2951 dangerous and unnecessary since both OSF/1 as and gas define "ret"
2952 as a pseudo-instruction.
2953
2954Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2955
2956 * time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
2957 them. Bug found by David Mosberger-Tang.
2958
2959 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
2960 of PTR.
2961
2962 * extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
2963 to work around Make bug when A contains var ref.
2964
2965Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2966
2967 * string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
2968
2969 * sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
2970 strong names and [gs]etpgid as weak aliases.
2971
76060ec0
RM
2972Thu May 30 11:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2973
84724245
RM
2974 * math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
2975
76060ec0
RM
2976 * po/header.pot: Replace with exact boilerplate pinard dictates.
2977
2978 * sysdeps/i386/strtok.S (Lillegal_argument): Remove this code to set
2979 errno and the check that jumped to it.
2980
2981 * sysdeps/mach/hurd/Makefile (errnos.d): Use $(sed-remove-objpfx).
2982
2983Thu May 30 03:21:57 1996 Ulrich Drepper <drepper@cygnus.com>
2984
2985 * FAQ: Document need of gperf program for developers.
2986
2987 * elf/elf.h: Fix typos in comments.
2988
2989 * libio/stdio.h [!__STRICT_ANSI__ || _POSIX_SOURCE]: Add
2990 prototypes for `ctermid' and `cuserid'.
2991
2992 * locale/programs/locale.c: Switch to user selected locale
2993 before printing variables.
2994
2995 * math/Makefile [$(long-double-fcts)==yes]: Define long-m-routines
2996 and long-c-routines. Only if the `long double' data type is
2997 available we need to compile the functions.
2998 (libm-routines): Add $(long-m-routines).
2999 (routines): Remove isinfl, isnanl. Use new file s_isinfl and
3000 s_isnanl instead if `long double' is available.
3001
3002 * math/math.h: Include <mathcalls.h> again to define `long double'
3003 functions.
3004
3005 * math/math_private.h: Define data types, prototypes and access
3006 macros for `long double'.
3007
3008 * stdlib/stdlib.h: Add prototypes for `strtoll' and `strtoull'.
3009 [GCC2 && OPTIMIZE]: Define strto{,u}ll as inline function which
3010 calls __strto{,u}q_internal.
3011
3012 * stdlib/strfmon.c: Replace PTR by `void *'.
3013
3014 * stdlib/strtoq.c: Define strtoll as weak alias.
3015 * stdlib/strtouq.c: Define strtoull as weak alias.
3016
3017 * string/tester.c: Correct `strsep' test.
3018
3019 * sysdeps/generic/strsep.c: Make compatible with BSD version.
3020 Trailing characters of skip set are not skipped. In this case
3021 empty tokens are returned.
3022
3023 * sysdeps/i386/isinfl.c, sysdeps/i386/isnanl.c,
3024 sysdeps/ieee754/isinf.c, sysdeps/ieee754/isinfl.c,
3025 sysdeps/ieee754/isnan.c, sysdeps/ieee754/isnanl.c: Removed. We
3026 now use the versions part of libm.
3027
3028 * sysdeps/i386/strsep.S: Removed. Generic C version is of
3029 similar speed.
3030 * sysdeps/i386/strtok.S: Remove support for `strsep'.
3031
3032 * sysdeps/libm-i387/e_acosl.S, sysdeps/libm-i387/s_ceill.S,
3033 sysdeps/libm-i387/s_copysignl.S, sysdeps/libm-i387/s_finitel.S,
3034 sysdeps/libm-i387/s_floorl.S, sysdeps/libm-i387/s_isinfl.c,
3035 sysdeps/libm-i387/s_isnanl.c, sysdeps/libm-i387/s_nextafterl.c,
3036 sysdeps/libm-i387/s_rintl.S, sysdeps/libm-i387/s_significandl.S:
3037 New i387 specific math functions implementing `long double'
3038 versions.
3039
3040 * sysdeps/libm-ieee754/s_ceill.c,
3041 sysdeps/libm-ieee754/s_copysignl.c,
3042 sysdeps/libm-ieee754/s_fabsl.c, sysdeps/libm-ieee754/s_finitel.c,
3043 sysdeps/libm-ieee754/s_floorl.c, sysdeps/libm-ieee754/s_isinfl.c,
3044 sysdeps/libm-ieee754/s_isnanl.c,
3045 sysdeps/libm-ieee754/s_nextafterl.c,
3046 sysdeps/libm-ieee754/s_rintl.c, sysdeps/libm-ieee754/s_scalbnl.c,
3047 sysdeps/libm-ieee754/s_significandl.c: New generic `long double'
3048 versions of libm functions.
3049
3050 * sysdeps/libm-i387/e_exp.S: Add a few comments to explain the
3051 Intel FPU nonsense.
3052
3053 * sysdeps/libm-i387/s_ceil.S, sysdeps/libm-i387/s_ceilf.S,
3054 sysdeps/libm-i387/s_floor.S, sysdeps/libm-i387/s_floorf.S: Correct
3055 handling of local variables. The old version created a stack
3056 frame but stored the values outside.
3057
3058 * sysdeps/libm-ieee754/s_isinf.c, sysdeps/libm-ieee754/s_isnan.c
3059 [!NO_LONG_DOUBLE]: Define alias with `long double' versions name.
3060
c3352e62
RM
3061Wed May 29 12:53:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3062
76060ec0
RM
3063 * login/pututline_r.c: Include sys/stat.h. Fix typos.
3064
c3352e62
RM
3065 * version.h (VERSION): Set to 1.90.
3066
3067 * Makerules (distinfo-vars): Write extra-libs and *-routines for each
3068 of its elts.
3069 * MakeTAGS (sources): Add those sources.
3070
3071 * MakeTAGS (all-sources): Add $(others:=.c) and $(tests:=.c).
3072
3073Wed May 29 08:53:08 1996 Miles Bader <miles@gnu.ai.mit.edu>
3074
3075 * hurd/report-wait.c (_S_msg_report_wait): Return `itimer' for the
3076 itimer thread.
3077
3078 * hurd/hurdinit.c (_hurd_init): Set _HURDSIG_TRACED before calling
3079 _hurd_proc_init.
3080
d06b536d
RM
3081Wed May 29 00:52:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3082
c3352e62
RM
3083 * string/tester.c (main): Fix strsep tests 6, 7, 20 to expect null
3084 token instead of it being implicitly skipped.
3085
77aae366
RM
3086 * sysdeps/i386/fpu/__math.h (logb): Correct contraint from =u to =t.
3087 Must operate on top of fp reg stack, not second from top.
3088
d06b536d
RM
3089 * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
3090 (others): Instead, make this depend on it.
3091
0200214b
RM
3092Tue May 28 04:38:10 1996 Ulrich Drepper <drepper@cygnus.com>
3093
3094 * limits.h: Change MB_LEN_MAX to 6. A 31-bit ISO 10646
3095 character in UTF-8 encoding has that many bytes.
3096
3097 * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
3098 * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
3099 * locale/Makefile (routines): Add mb_cur_max.
3100 * locale/mb_cur_max.c: New file. This function gets called
3101 when the macro MB_CUR_MAX is used.
3102 * locale/C-ctype.c: Initialize new mb_cur_max field.
3103 * locale/localeinfo.h: Change magic value because of incompatible
3104 change.
3105 * locale/programs/ld-ctype.c: Determine value of mb_cur_max
3106 according to current character set and write it out with the rest.
3107 * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore. Get value
76060ec0 3108 according to currently used locale for category LC_CTYPE by
0200214b
RM
3109 calling the function __ctype_get_mb_cur_max.
3110
3111Tue May 28 03:27:46 1996 Ulrich Drepper <drepper@cygnus.com>
3112
3113 * FAQ: Fix some typos.
3114 Tell that for Linux the kernel header files are necessary.
3115
3116 * PROJECTS: New file. List of open jobs for glibc.
3117 * Makefile (distribute): Add PROJECTS.
3118
3119 * crypt/GNUmakefile (headers): New variable. Mention crypt.h.
3120 * crypt/crypt.h: Header for crypt functions.
3121
3122 * elf/elf.h: Add some new constants from recent Cygnus ELF
3123 header files.
3124
3125 * login/getutid_r.c: Test for correct type.
3126 Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
3127 _HAVE_UT_ID resp. are defined.
3128 Make really compliant with specification.
3129
3130 * login/getutline_r.c, login/pututline_r.c: Don't depend on
3131 ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
3132 defined.
3133 Make really compliant with specification.
3134
3135 * login/setutent_r.c: Don't depend on ut_type and ut_id unless
3136 _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
3137
3138 * login/login.c, login/logout.c, login/logwtmp.c: Complete
3139 rewrite. Now based on getut*/setut* functions.
3140
3141 * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
3142 This prevented using this file in other GNU packages.
3143
3144 * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
3145 and _HAVE_UT_TV because struct utmp has these members.
3146
3147 * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
3148
3149 * utmp.h: New file. Wrapper around login/utmp.h.
3150
215dbbb1
RM
3151Tue May 28 13:11:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3152
0200214b
RM
3153 * elf/dl-error.c (struct catch): New type.
3154 (catch): New static variable, struct catch *.
3155 (catch_env, signalled_errstring, signalled_objname): Variables removed.
3156 (_dl_signal_error): If CATCH is non-null, set its errstring and
3157 objname members and jump to CATCH->env. If it is null, call
3158 _dl_sysdep_fatal with a standard message.
3159 * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
3160 No longer use _dl_catch_error.
3161
215dbbb1
RM
3162 * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
3163 continuation line.
3164
3165 * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
3166 setting %ecx to 2nd syscall arg: we have pushed nothing, so function
3167 args are found at 4(%esp), not 8(%esp).
3168
4e395306
RM
3169Mon May 27 10:10:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3170
13a0be88
RM
3171 * Makefile ($(includedir)/stubs.h): Add missing backslash.
3172
2a4dcf76
RM
3173 * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
3174 can be aliased.
3175
80791291
RM
3176 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
3177 Append termio.h.
3178
3179 * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
3180
3181 * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
3182 defined.
3183
3184 * sysdeps/unix/sysv/linux/termio.h: New file.
3185 * sysdeps/unix/sysv/linux/Dist: Add it.
3186
3187 * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
3188 kernel header <asm/termios.h>.
3189
3190 * misc/Makefile (headers): Add ioctl-types.h.
3191 * sysdeps/generic/ioctl-types.h: New file.
3192 * misc/sys/ioctl.h: Include <ioctl-types.h>.
3193 (struct tchars, struct ltchars, struct sgttyb, struct winsize,
3194 struct ttysize): Types moved there.
3195
d36e7692
RM
3196 * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
3197 identical.
3198
4e395306
RM
3199 * time/Makefile (z.% rule): Generate generic zone%/ rule after
3200 zone%/right/ and zone%/posix/ rules so they match first.
3201
59dd8641
RM
3202Sun May 26 15:15:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3203
5f160cde
RM
3204 * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
3205 _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
e463fcfb 3206
71a40c74
RM
3207 * time/Makefile (tzcompile): Add missing backslash.
3208
59dd8641
RM
3209 * stdlib/ldiv.c: Deansideclized.
3210
71a40c74
RM
3211 * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
3212 [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
3213 stddef.h doesn't define it.
3214 * wcsmbs/wchar.h: Likewise.
3215 * stdlib/strtod.c: Likewise.
3216
3217 * wcsmbs/wcstok.c: Fix argument name typo.
3218
59dd8641
RM
3219Sun May 26 19:39:53 1996 Ulrich Drepper <drepper@cygnus.com>
3220
3221 * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
3222 after malloc.
3223
3224 * string/Makefile (tester-ENV): New variable to suppress message
3225 translation in test.
3226
3227 * string/tester.c: Add tests for strtok_r and strsep.
3228
3229 * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
3230 <-> 32 bit operand conflicts.
3231
3232 * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
3233 to produce strsep function.
3234 * sysdeps/i386/strtok.S: Optimized implementation of strtok
3235 function.
3236 * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
3237 to produce strtok_r function.
3238
3239 * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
3240 Corrected example in comment.
3241
3242 * string/Makefile (routines): Add strtok_r.
3243 * sysdeps/generic/strtok_r.c: New file. Implement reentrant version
3244 of strtok_r.
3245 * string/string.h: Add prototype for strtok_r.
3246 * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
3247 as in strtok_r.
3248
3249Sun May 26 13:28:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3250
3251 * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
3252 first and fall back to 1003.1 syntax only if it fails.
3253
3254 * time/Makefile (install-others): Also install posix/ZONE and
3255 right/ZONE for each ZONE in $(zonenames).
3256 (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
3257 the difference begin leapseconds vs /dev/null as 3rd dep. For
3258 original ZONE targets use $(leapseconds), to be set in Makeconfig.
3259 (target-zone-flavor): New variable.
3260 (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
3261 * Makeconfig (leapseconds): New variable.
3262
3263 * mach/Machrules (%.udeps rule): Depend on Machrules.
3264 Emit deps for .uh and .__h files.
3265 (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
3266 instead.
3267
3268Sun May 26 01:06:47 1996 Ulrich Drepper <drepper@cygnus.com>
3269
3270 * stdlib/Makefile (routines): Add llabs, lldiv.
3271 * stdlib/llabs.c: New file. Implementation of return
3272 absolute value of long long argument.
3273 * stdlib/lldiv.c: New file. Implementation of division with remainder
3274 of long long argument.
3275 * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
3276 function.
3277 Define prototypes for lldiv and llabs functions.
3278
3279 * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
3280
3281 * stdlib/strtod.c: Replace wchar_t with wint_t. The later is
3282 really the type for a single wide character.
3283
3284 * string/strxfrm.c (print_val): Define separate version for
3285 use as wcsxfrm. Here we don't need UTF8 encoding.
3286
3287 * wcsmbs/wchar.h: gcc-2.7.2-960517 finally introduces wint_t
3288 in <stddef.h>. Use this value and only for older gcc version
3289 define in place.
3290 (uwchar_t): Remove definition.
3291
3292 * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
3293 wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
3294 type. wint_t is intended for this.
3295
3296Sat May 25 14:10:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3297
3298 * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
3299 quiet -ansi -pedantic.
3300 * sysdeps/unix/common/direntry.h: Likewise.
3301
3302 * login/Makefile (headers): Add lastlog.h.
3303 * login/lastlog.h: New file.
3304
3305 * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
3306 * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
3307 with #ifdef __USE_REENTRANT.
3308
3309 * features.h (__GNU_LIBRARY__): Set to 6.
3310 [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
3311 _SVID_SOURCE): Make sure they are all defined.
3312
3313 * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
3314 <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
3315 include <linux/types.h>.
3316
3317 * resource/sys/resource.h: Remove trailing commas from enums.
3318
41f27456
RM
3319Fri May 24 17:30:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3320
59dd8641
RM
3321 * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
3322 * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3323
27a11070
RM
3324 * login/getutline_r.c: Include string.h.
3325
5790c439
RM
3326 * Rules (static-only-routines): Restore the rule to make these .so's
3327 empty objects.
3328
41f27456
RM
3329 * login/pututline_r.c: Use struct assignment instead of memcpy.
3330
3331 * login/getutline_r.c: Use strncmp instead of comparing two pointers
3332 that will only be equal if you are overwriting the data and screwing
3333 yourself anyway.
3334
613a76ff
RM
3335Fri May 24 02:31:36 1996 Ulrich Drepper <drepper@cygnus.com>
3336
3337 * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
3338
3339Thu May 23 23:09:33 1996 Ulrich Drepper <drepper@cygnus.com>
3340
3341 * FAQ: Add answer for 100% source code compatibility to Linux
3342 libc by David Mosberger-Tang.
3343
072ebcef 3344 Update from bind-4.9.4-T3B.
613a76ff
RM
3345 * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
3346 inet_nsap_addr, and inet_nsap_ntoa.
3347 * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
3348 remove fourth argument to inet_pton and correct handling of
3349 host_addr passing.
3350 * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
3351 * resolv/inet_pton.c: Remove fourth argument.
3352 * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
76060ec0 3353 inet_nsap_ntoa. Now in <arpa/inet.h>.
613a76ff
RM
3354
3355 * stdlib/gmp-impl.h: Add prototypes for internal functions.
3356
3357Thu May 23 22:49:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3358
3359 * Rules (subdir_install): Remove dep on sor-$(subdir).
3360 (static-only-routines): Removed variable and associated rules.
3361
510ca033
RM
3362Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
3363
3364 * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
3365 460800 baud.
3366
3367 * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3368
613a76ff 3369 * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
510ca033
RM
3370 alpha/ptrace.h.
3371 * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
3372
3373 * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
3374 scalbnf.
3375
3376 * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
3377 __sigdelset): Add declaration to keep ANSI compilers quiet.
3378
3379 * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
3380 __cabs_complex member names in call to __hypot().
3381
3382 * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
3383
3384 * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
3385 name collision with math library.
3386
3387 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
3388 sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
3389 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
3390 of divrem.S.
3391
3392 * sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
3393 to simplify declaration of leaf functions.
3394
3395 * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
613a76ff 3396 sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
510ca033
RM
3397 sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
3398 sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
3399 sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
3400 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3401 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3402 sysdeps/unix/sysv/linux/alpha/pipe.S,
613a76ff 3403 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
510ca033 3404 sysdeps/unix/sysv/linux/alpha/syscall.S,
613a76ff 3405 sysdeps/unix/sysv/linux/alpha/start.S,
510ca033
RM
3406 sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
3407 sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
3408 framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
3409
3410 * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
3411 define.
3412
3413 * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
3414 ptrace, and sysctl.
3415
3416 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
3417
3418 * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
3419 dynamic recognition of platform type.
3420 (_bus_base): New function.
3421
3422 * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
3423
3424 * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
3425 they produce ugly warnings by gcc.
3426
3427 * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
3428
3429Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
3430
3431 * sysdeps/alpha/setjmp.S: Must establish global pointer before
3432 address of __sigsetjmp_aux can be loaded.
3433
fa0bc87c
RM
3434Wed May 22 22:10:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3435
3436 * stdlib/canonicalize.c: New file.
3437 * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
3438 * stdlib/Makefile (routines): Add canonicalize.
3439
3440 * posix/unistd.h: Declare __canonicalize_directory_name_internal.
3441
3442Thu May 23 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
3443
3444 * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
3445 same #if condition as in the other db files.
3446
3447 * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
3448 bindtextdom.c, finddomain.c, and localealias.c.
3449
3450 * intl/dcgettext.c: Don't define prototype for getcwd() when
3451 compiling in glibc.
3452
3453 * libio/cleanup.c: Add prototype for _IO_register_cleanup.
3454
3455 * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
3456 define _POSIX_SOURCE unconditionally.
3457
3458 * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
3459 compiling in glibc.
3460
3461 * libio/fileops.c (_IO_file_close_it): Don't sync file, call
3462 flush instead. This relaxes the rules from POSIX.1 about
3463 changing the active handle a bit.
3464
3465 * libio/iofopncook.c (struct _IO_cookie_file): Move definition
3466 into <libio.h>.
3467 Add prototypes for local functions to prevent warnings.
3468
3469 * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
76060ec0 3470 _IO_dup2 to contain complete parameter list.
fa0bc87c
RM
3471
3472 * libio/libio.h: Add definition of struct _IO_cookie_file.
3473
3474 * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
3475 and _IO_vsnprintf.
3476
3477 * libio/memstream.c: Include <stdio.h>.
3478
3479 * libio/stdio.h: Add prototypes for fopencookie,
3480 __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
3481
3482 * libio/strops.c: Avoid useless expression in `for' initializer.
3483
3484 * locale/findlocale.c: Add some casts to prevent warnings.
3485
3486 * locale/programs/locfile.c (write_locale_data): Don't use
3487 double `/' in locale binary file.
3488
3489 * posix/unistd.h: Remove prototype for `reboot'.
3490
3491 Update from bind-4.9.4-T1A.
3492 * resolv/Makefile (routines): Add inet_ntop and inet_pton.
3493 * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
3494 * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
3495 resolv/res_debug.c, resolv/res_init.c
3496
3497 * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
3498
3499 * resolv/resolv.h: Add RES_USE_INET6 flag.
3500 (__dn_isvalid): Renamed to __res_dnok.
3501 Add prototypes for __res_ownok and __res_mailok.
3502
3503 * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
3504
3505 * stdio-common/getline.c, stdio-common/vfscanf.c,
3506 sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
3507
3508 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
3509 (sysdep_routines): Add s_reboot.
3510 (install-others): Add $(includedir)/sys/syscall.h.
3511 New rule for $(includedir)/sys/syscall.h to produce from
3512 <asm/unistd.h>.
3513
3514 * sysdeps/unix/sysv/linux/reboot.c: New file. Make single
3515 argument function call 3 argument system call.
3516
3517 * sysdeps/unix/sysv/linux/sys/reboot.h: New file. Linux specific
3518 definition for reboot function.
3519
3520 * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
3521 comment.
3522
3523 * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
3524 reboot syscall to __syscall_reboot.
3525
3526 * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
3527 __USE_GNU, not USE_GNU.
3528
3529Tue May 21 21:55:49 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3530
3531 * locale/programs/charset.c, locale/programs/ld-collate.c:
3532 Add casts to prevent warnings on 64-bit machines.
3533
3534 * locale/programs/ld-monetary.c: Don't do unnecessary tests for
3535 int_frac_digits and frac_digits which only produce warnings.
3536
3537Mon May 13 23:45:29 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3538
3539 * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
3540 * resolv/inet_addr.c: Likewise.
3541
3542 * resolv/Makefile (distribute): Add res_hconf.h
3543 (routines): Add res_hconf.
3544
3545 * resolv/gethnamaddr.c: Add support for /etc/host.conf.
3546
3547 * resolv/res_init.c: Initialize /etc/host.conf reader.
3548
3549 * resolv/res_hconf.c, resolv/res_hconf.h: New files.
3550 Implementation of reading /etc/host.conf.
3551
3552Wed May 22 21:21:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3553
3554 * Rules (%.out rules): Prepend $($*-ENV) to the command.
3555
3556 * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
3557 alias for __curbrk.
3558
3559Wed May 22 19:37:27 1996 Miles Bader <miles@gnu.ai.mit.edu>
3560
3561 * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
3562 * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
3563
3564Wed May 22 18:47:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3565
3566 * sysdeps/mach/hurd/getcwd.c
3567 (_hurd_canonicalize_directory_name_internal): New function, broken out
3568 of __getcwd.
3569 (__getcwd): Use it.
3570 (__canonicalize_directory_name_internal): New function using it.
3571
3572 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
3573 function, broken out of __getcwd.
3574 (__getcwd): Use it.
3575
3576Wed May 22 18:14:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3577
3578 * string/argz-create.c (__argz_create): Correctly calculate length.
3579
3580 * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
3581 * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
3582
0b0fc9d3
RM
3583Wed May 22 17:22:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3584
3585 * posix/glob.c [VMS]: Don't include <pwd.h>.
fa0bc87c
RM
3586 [HAVE_VMSDIR_H]: Include "vmsdir.h".
3587 (glob) [VMS]: Don't grok ~.
0b0fc9d3 3588
a8fd3594
RM
3589Wed May 22 14:46:53 1996 Miles Bader <miles@gnu.ai.mit.edu>
3590
0b0fc9d3
RM
3591 * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
3592 back from argz_extract.
a8fd3594
RM
3593
3594Wed May 22 13:56:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3595
3596 * configure.in: Remove checks for objdump, objcopy, and awk.
3597 * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
3598 * Makefile (distribute): Remove extract-dynsym.
3599 * extract-dynsym: File removed.
3600
3601Tue May 21 22:17:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3602
3603 * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
3604
b8fe19fa
RM
3605Wed May 22 01:48:54 1996 Ulrich Drepper <drepper@cygnus.com>
3606
3607 * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
3608 macros if they are not available.
3609 (WEAKNAME): New macro to declare argument as weak.
3610 Define function with __ prefix and add normal name as weak alias.
3611
3612 * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
3613 these macros if not already available based on R_OK, W_OK, and
3614 X_OK.
3615
3616Tue May 21 18:48:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3617
3618 * misc/sys/syslog.h (__need___va_list): Define this instead of
3619 __need_va_list before including <stdarg.h>.
3620
3621 * Makerules (o-iterator): Use $(object-suffixes-left) instead
3622 of $(object-suffixes) to produce repetitions; this is used for other
3623 lists than just that one.
3624 [versioned]: Use $(o-iterator) properly.
3625
3626 * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
3627 * sysdeps/mach/hurd/Implies: Likewise.
3628
3629Sat May 18 02:57:46 1996 Ulrich Drepper <drepper@cygnus.com>
3630
3631 * login/Makefile: New file. This directory contains functions
3632 for user administration.
3633 * Makefile (subdirs): Add login.
3634
3635 * misc/Makefile (headers): Remove utmp.h. Now in login/utmp.h.
3636 (extra-libs, libutil-routines): Ditto.
3637 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3638 misc/utmp.h: Moved to misc/.
3639 * login/login.c, login/login_tty.c, login/logout.c,
3640 login/logwtmp.c, login/utmp.h: Moved to here from misc/.
3641
3642 * login/utmp.h: Split file. Definitions of data structures
3643 and constants are now in the system dependent utmpbits.h file.
3644
3645 * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
3646 login/endutent.c, login/getutent_r.c, login/getutent.c,
3647 login/getutid_r.c, login/getutid.c, login/getutline_r.c,
3648 login/getutline.c, login/pututline_r.c, login/pututline.c:
3649 New files. Routines to handle utmp-style files.
3650
3651 * sysdeps/gnu/utmpbits.h: New file. Contains GNU/Linux
3652 specific definitions of utmp data structures and constants.
3653
3654 * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
3655
3656 * sysdeps/generic/utmpbits.h: New file. Generic (BSDish) version of
3657 definitions of utmp data structures and constants.
3658
3659Fri May 17 00:01:31 1996 Ulrich Drepper <drepper@cygnus.com>
3660
3661 * locale/C-monetary.c: Default value for mon_decimal_point should be
3662 '.'.
3663
3664 * stdio-common/printf.h: Remove Linux libc compatibility stuff.
3665 Add `extra' flag. Currently used in __printf_fp.
3666
3667 * stdio-common/printf_fp.c (__guess_grouping): Renamed from
3668 `guess_grouping' and extend visibility to extern. This function
3669 is now used in `strfmon'.
3670 (__printf_fp): Recognize new bit flag in info struct. This
3671 triggers to use the grouping information and decimal point from
3672 the LC_MONETARY category instead of the LC_NUMERIC category.
3673
3674 * stdio-common/vfprintf.c (process_arg): Correct major bug. In
3675 `complicated' loop we must not use the varargs because the args
3676 are already available in the ARGS_VALUE array.
3677
3678 * stdlib/Makefile (headers): Add monetary.h.
3679 (routines): Add strfmon.
3680 * stdlib/monetary.h: New file. Header for strfmon function.
3681 * stdlib/strfmon.c: New file. Implement strfmon function to print
3682 monetary amounts according to current locale's rules.
3683
3684 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
3685 now (>= Linux-1.3.100) called <asm/vm86.h>.
3686
20c81189
RM
3687Thu May 16 00:31:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3688
3689 * Makerules [versioned]: Make symlinks in the build directory, because
3690 the versioned names might be referenced by a DT_NEEDED in another
3691 library.
3692
46d9215f
RM
3693Wed May 15 18:59:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3694
3695 * manual/examples/longopt.c: Include stdlib.h and getopt.h.
3696
0adc881c
RM
3697Tue May 14 03:36:21 1996 Ulrich Drepper <drepper@cygnus.com>
3698
3699 * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
3700 Add sys/acct.h and sys/sysctl.h.
3701
f8adc70c
RM
3702Tue May 14 19:42:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3703
3704 * sysdeps/generic/strrchr.c: Deansideclized.
3705
3706 * elf/Makefile (ldd): Depend on Makefile.
3707 Find ld.so in $(slibdir) instead of $(libdir).
3708
3709 * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
3710 %esi'; gas misassembles the latter into `testb $3, %dh'.
3711
3712 * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
3713
3714Tue May 14 16:38:44 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3715
3716 * sunrpc/getrpcent.c (interpret): Declare args. Rewrite parsing using
3717 strpbrk.
3718
3719Tue May 14 20:18:38 1996 Ulrich Drepper <drepper@cygnus.com>
3720
3721 * time/Makefile (routines): Add strptime.
3722 * time/time.h: Add prototype for strptime.
3723 * time/strptime.c: New file. Implementation according to XPG4.
3724
64166d98
RM
3725Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3726
3727 * libc-symbols.h (lint): Macro removed. The sunrpc code does some
3728 really stupid things #ifdef lint.
3729
3730 * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
3731 struct member name: sc_eip -> eip.
3732
1796d83f
RM
3733Mon May 13 19:52:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3734
7cdef098
RM
3735 * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
3736 output redirect outside it.
3737
1796d83f
RM
3738 * elf/Makefile (subdir_lib): Depend on ld.so.
3739
70c71518
RM
3740Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
3741
3742 * stdio-common/vfprintf.c: Correct handling of unsigned short
3743 values.
3744
7da3079b
RM
3745Mon May 13 12:03:03 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3746
70c71518
RM
3747 * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
3748 $(common-objpfx).
3749 * Makerules [install-lib.a]: Find them there.
3750
7f0d69db
RM
3751 * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
3752
a13dab1c
RM
3753 * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
3754
3755 * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
3756
a5b7bf0e
RM
3757 * configure.in (--with-fp): Note in help string that it's the default.
3758
3759 * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
3760 instead of unsigned int for map_collection_max and map_collection_act.
3761
3762 * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
3763 Macros removed; they are in <stdio.h>.
3764 * stdio-common/vfscanf.c: Likewise.
3765
9fb16eea
RM
3766 * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
3767 (glob): Remove bogus & in call to globfree.
3768 [_AMIGA]: Use AmigaDOS file name conventions.
3769
45086082
RM
3770 * time/Makefile (zonenames): Target removed.
3771 (extra-objs): Remove it from here.
3772 Include the z.* files directly instead of including zonenames; use
a5b7bf0e 3773 `-include' to not complain before they exist.
45086082
RM
3774
3775 * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
3776 $(common-objpfx) instead of $(objpfx).
3777
01dbca86
RM
3778 * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
3779 names without __.
3780
d929664a
RM
3781 * Makerules [install-lib-non.a]: Find these things with $(objpfx)
3782 instead of $(common-objpfx).
3783
7da3079b
RM
3784 * Makeconfig (sysdep-configures): New variable.
3785 (config.status): Depend on $(sysdep-configures).
3786
3787Fri May 10 20:07:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3788
3789 * sysdeps/unix/sysv/linux/profil.c: New file.
3790
3791Fri May 10 19:59:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3792
3793 * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
3794
3795Fri May 10 19:55:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3796
3797 * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
3798
aa1075ea
RM
3799Sun May 12 11:16:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3800
7da3079b
RM
3801 * string/envz.c: Fix uses of unsigned to size_t.
3802
0f90ef96
RM
3803 * Makerules ($(libdir)/libc.so): Make the file an ld script.
3804
3805 * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
3806
3807 * sysdeps/mach/configure.in: File removed.
3808 * sysdeps/mach/configure: File removed.
3809
aa1075ea
RM
3810 * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
3811 (%_server.[ch] rule): Don't depend on %.defs; use #include to get
3812 installed .defs file.
3813
3814 * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
3815 nothing for stdio. Fix fUNlockfile -> funlockfile for libio.
3816 * stdio-common/vfscanf.c: Likewise.
3817
3818Sat May 11 13:43:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3819
3820 * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
3821
3822 * mach/Machrules (%.ir rule): Don't produce deps for imports.
3823
3824 * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
3825
3826 * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
3827 [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
3828 these targets and install dep on $(libdir)/libc.so with this.
3829
3830 * hurd/Makefile: Removed all rules and defns for using code from Hurd
3831 sources and installing headers from there.
3832
3833 * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
3834 set it. In Mach error matching clause, only match if FILENAME is
3835 still the same value.
3836
3837 * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
3838 $(mach-srcdir) no longer exists.
3839 (hurd-srcdir): Variable removed.
3840 (includes): Don't append -I$(hurd-srcdir).
3841 (last-includes): Variable removed.
3842 Remove vpath specs using $(hurd-srcdir).
3843 (mach-errno-h): New canned sequence.
3844 ($(common-objpfx)errnos.d): New target, generated included makefile
3845 to determine absolute file names of Mach headers to search for error
3846 codes and set variable mach-errnos-deps.
3847 ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
3848 of prior explicit list.
3849 (generated): Add errnos.d, stamp-errnos.
3850
3851 * mach/Machrules (some-if-rtn): New variable and target; compute deps
3852 of some if routine and make all if routines depend on that .d file
3853 instead of static list of .h files.
3854
3855 * mach/Makefile (mach/mach_interface.defs,
3856 mach/memory_object_user.defs): Targets removed.
3857 ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
3858 directly on Mach sources.
3859
3860 * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
3861 (includes): Don't append -I$(mach-srcdir).
3862 Remove vpath specs using $(mach-srcdir).
3863
3864 * hurd/Makefile (server-interfaces): Add faultexc.
3865 (sig): Remove it from here.
3866 (fault%.[ch]): Rule removed.
3867 (MIGFLAGS-faultexc): New variable.
3868
3869 * hurd/faultexc.defs: New file.
3870
3871 * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
3872 (%_server.[ch] rule): Likewise.
3873
3874 * mach/Makefile: Removed all rules and defns for using code from Mach
3875 sources and installing headers from there.
3876
3877 * Makeconfig [$(build-shared)=yes] (link-libc): Append
3878 $(libc.so-version) to libc.so.
3879
f8cac037
RM
3880Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3881
aa1075ea
RM
3882 * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
3883 (%.udeps): New rule parallel to that one, generating included
3884 makefiles with -M output from `#include <%.defs>'.
3885
3886 * Makerules (sed-remove-objpfx): Remove space before \ at eol.
3887
d617ac4e 3888 * Makefile (distribute): Add FAQ.
f8cac037
RM
3889 * FAQ: New file contributed by drepper.
3890
3891 * time/Makefile (headers): Add timebits.h.
3892 * sysdeps/unix/sysv/linux/timebits.h: New file.
3893 * sysdeps/stub/timebits.h: New file.
3894 * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
3895 (CLOCKS_PER_SEC): Remove this macro. Instead #include <timebits.h>.
3896
4d4b4875
TBB
3897Fri May 10 16:22:44 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3898
3899 * string/argz-create.c (__argz_create): Restore const keyword to
3900 ARGV parm.
3901 * string/argz.h (__argz_create, argz_create): Restore const
3902 keyword.
9635799d 3903 * string/envz.c (envz_get): Don't declare ENTRY const.
f8cac037 3904
4d4b4875
TBB
3905Fri May 10 11:48:03 1996 Miles Bader <miles@gnu.ai.mit.edu>
3906
3907 * string/argz.h (argz_create): Fix param type.
3908 * string/argz-create.c (__argz_create): Remove const from param type.
3909 * string/envz.c (envz_get): Remove const from return type.
3910
7cf6f3e0
TBB
3911Fri May 10 09:41:54 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3912
3913 * string/argz.h (__argz_create, argz_create): Omit const keyword
3914 from declaration of ARGV.
349e97bd
TBB
3915 * string/envz.h (envz_get): Omit const from declaration of return
3916 type.
f8cac037 3917
782e8650
RM
3918Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3919
6e85aaf7
TBB
3920 * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
3921
c28fb3c8
RM
3922 Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
3923 * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
3924 * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
3925 RPC_ANYSOCK.
3926 * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
3927 CLNT_DESTROY already has.
3928 (pmap_unset): Likewise.
3929 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
3930 * sunrpc/pm_getport.c (pmap_getport): Likewise.
3931 * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
3932 * sunrpc/portmap.c (callit): Likewise.
3933
05d4c982
RM
3934 * Makerules (versioned): Strip whitespace.
3935
3936 * Rules (static-only-routines rule): Remove spurious space in dep.
3937
3938 * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
3939 Cast string constants to char *.
3940
3941 * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
3942 New files, AmigaDOS support from Aaron Digulla.
3943 * posix/Makefile (glob.tar): Add AmigaDOS support files.
3944
8942a07a
RM
3945 * sysdeps/unix/sysv/linux/net/if.h: New file.
3946 * sysdeps/unix/sysv/linux/Dist: Add it.
3947 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
3948 net/if.h.
3949
3950 * Makeconfig (link-libc): Add libc.a after libc.so in link.
3951
3952 * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
3953 (empty.o): New target.
3954 (generated): Add empty.c, empty.o.
3955
55707265
RM
3956 * resolv: Code updated from BIND-4.9.3P2C3.
3957
782e8650
RM
3958 * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
3959
7c713e28
RM
3960Wed May 8 20:04:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3961
03d0a7e2
RM
3962 * extract-dynsym: New file.
3963 * Makefile (distribute): Add it.
7c713e28
RM
3964 * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
3965 [! libc.so-version]: Clear static-only-routines.
3966 ($(common-objpfx)sor-$(subdir)): New target.
3967 [static-only-routines]: New static pattern rule for these .so's.
3968 * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
3969 [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
3970 New targets replace it.
3971 (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
3972 $(slibdir)/libc.so.
3973 * io/Makefile (static-only-routines): New variable.
3974 * configure.in: Check for tools objdump and objcopy, and for awk.
3975 * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
3976
3977Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
3978
3979 * locale/programs/config.h: Remove definition of wint_t.
3980
3981 * locale/programs/ld-collate.c: Include <wchar.h> instead of
3982 <wcstr.h>.
3983
3984 * manual/time.texi: Add some more description for %U and %W
3985 format of strftime. Describe new format %V of strftime.
3986
3987 * resolv/gethnamaddr.c: Prevent warning by preventing variable
3988 definition.
3989 * stdio-common/_itoa.c: Ditto.
3990
3991Tue May 7 23:43:07 1996 Ulrich Drepper <drepper@cygnus.com>
3992
3993 * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
3994 libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
3995 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
3996 libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
3997 libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
3998 libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
3999 libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
4000 libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
4001 libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
4002 libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
ee188d55 4003 stdio-common/vfscanf.c: Prepare for reentrant libio.
7c713e28
RM
4004
4005 * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
4006 libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
4007 libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
ee188d55 4008 Used in reentrant libio.
7c713e28
RM
4009
4010 * misc/getusershell.c: Prevent warnings.
4011
c17097f1
RM
4012Wed May 8 12:08:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4013
f0523145
RM
4014 * Makerules (install-lib.so rules): Undouble $s in target and dep
4015 parts of o-iterator-doit defns.
4016 (unversioned libraries install rule): Fix pattern.
4017
4018 * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
4019 $(config-machine).
4020 ($(includedir)/machine): Likewise.
4021
4022 * config.make.in (base-machine): New variable.
4023 * configure.in (machine): Move case stmt to set $machine out of sysdep
4024 dirs AC_CACHE_CHECK.
4025 (base_machine): New variable, set in that switch and AC_SUBST'd.
4026
4027 * Makerules (stub-$(subdir)): Use file name in directory as output,
4028 since cmd is cd'd.
4029
c17097f1
RM
4030 * configure.in (MSGFMT): Use : if none found.
4031
4032 * po/Makefile: Include ../Rules instead of ../Makerules.
4033
ce4d8b66
RM
4034Tue May 7 23:18:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4035
4036 * po/Makefile: New file.
4037 * Makefile (subdirs): Add po.
4038
4039 * configure.in: Check for msgfmt.
4040 * config.make.in (MSGFMT): New variable.
4041
4042Sun May 5 23:49:10 1996 Ulrich Drepper <drepper@cygnus.com>
4043
4044 * misc/Makefile (routines): Add swapoff.
4045
4046 * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
4047
4048 * sysdeps/unix/sysv/linux/sys/quota.h: New file. Wrapper around
4049 kernel header file.
4050
0e3426bb
RM
4051Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4052
4053 * string/argz-extract.c: Remove const from decl.
4054 * string/argz.h: Here too.
4055
4056 * Makeconfig (version.mk): Fix regexp in sed cmd.
4057 Depend on $(..)Makeconfig.
4058
4059 * GMP code updated from gmp-2.0 release.
4060 * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
4061 * sysdeps/generic/add_1.c: File removed.
4062 * stdlib/strtod.c: mp_limb is now mp_limb_t.
4063 * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
4064 * stdio-common/_itoa.c: Likewise.
4065 * stdio-common/printf_fp.c: Likewise.
4066 Don't include ansidecl.h.
4067
4068 * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
4069
4070 * shlib-versions: New file.
4071 * Makerules (soversions.mk): New target, include file generated from
4072 shlib-versions. Moved shared library rules before installation rules.
4073 Rewrote shared library installation rules for versioned libraries.
4074 * math/Makefile (libm.so-version): Variable removed.
4075
4076 * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
4077
4078 * hurd/report-wait.c (_S_msg_describe_ports): New function.
4079
4080 * configure.in: Add AC_PROG_LN_S check.
4081 * config.make.in (LN_S): New variable.
4082
4083Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
4084
4085 * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
4086 not know about weak aliases now and optimizes necessary `if'
4087 statement away.
4088
4089 * posix/unistd.h: Add swapoff prototype.
4090
4091 * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
4092
4093 * sysdeps/posix/fpathconf.c (__fpathconf): Get information
4094 for _PC_PATH_MAX from fstatfs function if available.
4095
4096 * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
4097 _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
4098 _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
4099 _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
4100 _SC_TIMER_MAX.
4101 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4102
4103 * sysdeps/stub/swapoff.c: New file. Stub version for swapoff
4104 function.
4105
4106 * sysdeps/unix/syscalls.list: Add swapoff.
4107
4108 * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
4109
4110 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
4111 (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
4112 sysinfo, and uselib.
4113 (headers): Add sys/sysinfo.h.
4114
4115 * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
4116
4117 * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
4118 (sysdep_routines): Add ioperm, iopl, and vm86.
4119 (headers): Add sys/perm.h and sys/vm86.h.
4120
4121 * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
4122 prototypes for iopl and ioperm.
4123
4124 * sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
4125 prototype for vm86.
4126
4127 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
4128 vm86 system call.
4129
4130 * sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
4131 prototypes for acct function.
4132
4133 * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
4134 file with prototypes.
4135
4136 * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
4137 prototype for sysinfo function.
4138
4139 * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
4140 llseek, setfsgid, setfsuid, sysinfo, and uselib.
4141
4142 * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
4143 posix/sysconf.c now only handle cases different to that
4144 implementation.
4145
4146Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
4147
4148 * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
4149 (all references changed). Now exported.
4150
4151 * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
4152 (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
4153 line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
4154 instead of struct data.
4155 (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
4156 occurences of `wrap' and `wrapmargin' to `wmargin'.
4157 (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
4158 line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
4159 line_wrap_set_wmargin, line_wrap_point): New functions.
4160 * stdio/linewrap.h: New file.
4161 * stdio/Makefile (headers): Add linewrap.h.
4162
4163Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4164
4165 * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
4166
4167 * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
4168
4169 * sysdeps/unix/sysv/linux/schedbits.h: New file.
4170
4171Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4172
4173 * stdio/linewrap.c (struct data): Make margin fields not-pointers.
4174 (lwoutput): Adjust uses acordingly.
4175
93a470c7
RM
4176Tue May 7 10:51:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4177
0e3426bb
RM
4178 * sysdeps/mach/hurd/fdatasync.c: New file.
4179 * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
4180
4181 * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
4182 * sysdeps/mach/hurd/symlink.c: Likewise.
4183 * sysdeps/mach/hurd/link.c: Likewise.
4184 * sysdeps/mach/hurd/bind.c: Likewise.
4185 * hurd/hurdsig.c (write_corefile): Likewise.
4186
4187 * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
4188
4189 * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
4190
4191 * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
4192 proc_mark_exit.
4193 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
4194
4195 * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
4196
4197 * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
4198
4199 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
4200 hurd_signal_detail.
4201 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4202 * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
4203 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4204 Likewise.
4205 * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
4206
4207 * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
4208
4209 * hurd/hurdsig.c (write_corefile): Take const struct
4210 hurd_signal_detail * arg. Pass all details to crash_dump_task.
4211 (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
4212 (_hurd_internal_post_signal: suspend): Pass code and error to
4213 proc_mark_stop.
4214
4215 * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
4216 proc_getprocinfo by reference.
4217
93a470c7
RM
4218 * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
4219
4220 * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
4221
4222 * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
4223 * sysdeps/stub/sched_sets.c: Likewise.
4224 * sysdeps/stub/sched_setp.c: Likewise.
4225 * sysdeps/stub/sched_rr_gi.c: Likewise.
4226 * sysdeps/stub/sched_gets.c: Likewise.
4227
4228 * hurd/hurdsig.c: Use struct hurd_signal_detail.
4229 * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
4230 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
4231
4ddc1f9d
RM
4232Mon May 6 09:51:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4233
4234 * stdio/linewrap.c: New file.
4235 * stdio/Makefile (routines): Add linewrap.
4236 * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
4237 line_unwrap_stream.
4238
4239Mon May 6 14:53:26 1996 Ulrich Drepper <drepper@cygnus.com>
4240
4241 * time/strftime.c (week): Add third parameter telling how
4242 many days must be in new year so that it is called week 1.
4243 (Following ISO 8601).
4244 Correct computation for %U and %V formats when day was first
4245 day of the week.
4246 (strftime): Implement %V format according to Spec1170.
4247
cee8df03
TBB
4248Mon May 6 17:01:09 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
4249
4250 * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
4251
8f0c527e
RM
4252Sat May 4 05:44:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4253
4ddc1f9d
RM
4254 * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
4255 prototype of `preempter' elt to use struct hurd_signal_detail.
4256
4257 * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
4258 (struct hurd_sigstate): Make `pending_data' member an array of that.
4259 Use the new type in several decls.
4260
db2286f6
RM
4261 * locale/setlocale.c (_nl_C_name): Variable removed.
4262 * locale/C_name.c: New file.
4263 (_nl_C_name): Put it here instead.
4264 * locale/Makefile (aux): Add C_name.
4265
4266 * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
4267 auth_user_authenticate rpc.
4268 (open): Avoid using strtol in digit conversion for "fd/N" magic.
4269 (_dl_sysdep_start): Likewise for memobj name in magic switches.
4270
4271 * elf/Makefile (reloc-link): New variable.
4272 (dl-allobjs.so): New target, link together $(rtld-routines).
4273 (librtld.so): Depend on that instead of the rtld components.
4274 (generated): Add dl-allobjs.so.
4275
8f0c527e
RM
4276 * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
4277 rpc.
4278
4279 * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
4280 instead of _hurd_split_args.
4281 (_S_msg_*_exec_flags): Functions removed.
4282 (_S_msg_startup_dosync): Stub removed.
4283
4284Sat May 4 02:11:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4285
4286 * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
4287 EXEC_TRACED bit in _hurd_exec_flags.
4288 Pass sigcode arg in msg_sig_post_untraced rpc.
4289
4290 * sysdeps/mach/hurd/access.c: Don't pass io port in
4291 auth_user_authenticate rpc.
4292
4293 * posix/sched.h: Fix typos.
4294
4295 * sysdeps/mach/hurd/fork.c: Use new critical section lock.
4296 Clear _hurdsig_traced instead of EXEC_TRACED.
4297
4298 * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
4299
4300 * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
4301 * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
4302 * wcsmbs/wcstod.c: Likewise.
4303 * wcsmbs/wcstold.c: Likewise.
4304
4305 * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
4306
4307 * string/envz.c (envz_entry): Use const.
4308 (envz_get, envz_remove): Likewise.
4309 (envz_entry): Return char *, not const char *.
4310
4311 * string/envz.h: Fix decl.
4312
4313 * string/argz-create.c: Use const in prototype.
4314 * string/argz-next.c: Likewise.
4315
7a12c6bb
RM
4316Fri May 3 13:32:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4317
8f0c527e
RM
4318 * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
4319 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4320 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4321 * sysdeps/mach/hurd/kill.c: Likewise.
4322
4323 * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
4324 * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
4325 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
4326 * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
4327 Likewise.
4328 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
4329 * sysdeps/mach/hurd/sigaction.c: Likewise.
4330
4331 * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
4332 change meaninglessly.
4333
4334 * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
4335 flag with a spin lock.
4336 (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
4337 get it. No need to take SS->lock at all.
4338 (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
4339 instead of clearing the old flag member.
4340 * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
4341 test the critical section state.
4342
4343 * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
4344
4345 * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
4346
4347 * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
4348 instead of testing (_hurd_exec_flags & EXEC_TRACED).
4349 (_S_msg_sig_post): Take sigcode arg and pass it through.
4350 (_S_msg_sig_post_untraced): Likewise.
4351 (reauth_proc): Don't pass proc port in auth_user_authenticate.
4352
4353 * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
4354 auth_user_authenticate RPCs, just the one-off rendezvous port.
4355 * hurd/dtable.c (reauth_dtable): Likewise.
4356 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
4357
4358 * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
4359 Pass sigcode arg to msg_sig_post.
4360
4361 * string/argz.h (argz_create): Use const in prototype.
4362
4363 * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
4364 testing (_hurd_exec_flags & EXEC_TRACED).
4365 Pass sigcode arg to msg_sig_post.
4366
4367 * hurd/hurd.h: Declare _hurdsig_traced.
4368
4369 * string/argz.h (__argz_next): Cast ENTRY before returning it.
4370
4371 * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
4372 to msg_sig_post.
4373
4374 * hurd/path-lookup.c: New file.
4375 * hurd/Makefile (routines): Add path-lookup.
4376 * hurd/hurd/lookup.h: Declare file_name_path_scan,
4377 hurd_file_name_path_lookup.
4378 * hurd/hurd.h: Declare file_name_path_lookup.
4379
4380 * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
4381 argument. Instead, use a separate reply port for each RPC and put them
4382 all in a port set to wait for slow replies.
4383
7a12c6bb
RM
4384 * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
4385 LOCALE_ALIAS_PATH.
4386
4387Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
4388
4389 * intl/Makefile (routines): Add l10nflist and explodename.
4390 (distribute): Add loadinfo.h and locale.alias.
4391 (install-others): New variable to install locale.alias.
4392
4393 * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
4394 intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13. Some code
4395 is now shared with the locale implementation.
4396
4397 * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
4398 Extracted from finddomain.c. This is also used in the locale
4399 implementation.
4400
4401 * intl/locale.alias: New file. Locale alias database compatible
4402 with X Window System's locale alias file. Can now be used in
4403 locale and gettext code.
4404
4405 * libio/stdio.h: Add prototypes for asprint and vasprintf.
4406
4407 * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
4408 locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
4409 field in structure with name of locale ("C" in this case).
4410
4411 * locale/Makefile (routines): Add findlocale.
4412
4413 * locale/findlocale.c: New file. Instead of trying to load the
4414 directly described file we now try to be much smarter when this
4415 fails. Use the same code as gettext does.
4416
4417 * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
4418 new loading scheme.
4419
4420 * locale/localeinfo.h: Adapt prototypes and declarations for new
4421 setlocale implementation. Remove definition of u32_t type. We
4422 now use u_int32_t from <sys/types.h>.
4423
4424 * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
4425 with constant.
4426
4427 * locale/programs/config.h, locale/lc-collate.c,
4428 locale/localeinfo.h, locale/programs/ld-collate.c,
4429 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
4430 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
4431 locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
4432 Change to use u_int32_t and u_int16_t.
4433
4434 * locale/programs/localedef.c (construct_output_path): Change name
4435 of output locale to contain normalized form of the character set
4436 portion.
4437
4438 * string/Makefile (routines): Add agrz-ctsep and argz-next.
4439 (tests): Add tst-strlen.
4440
4441 * string/argz-ctsep.c: New file. Implement reverse operation
4442 from argz-stringify.
4443
4444 * string/argz-next.c: Non-inline version of function from argz.h.
4445
4446 * string/argz.h, string/envz.h: Make usable as global header file.
4447
4448 * string/envz.c: Fix declarations to use size_t where prototypes
4449 say so.
4450
4451 * string/tst-strlen.c: New file. Another test for critical
4452 situation in strlen implementations.
4453
4454 * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
4455 being zero.
4456
4457 * wctype/test_wctype.c: Fix controlling comparison after change to
4458 32 bit character class array.
4459
4460Fri May 3 12:53:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4461
4462 * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
4463
4464Thu May 2 22:50:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4465
4466 * sysdeps/unix/sysv/linux/getpriority.c: New file.
4467 * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
4468
4469Thu May 2 22:41:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4470
4471 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
4472 Disable all exceptions.
4473
4474Thu May 2 22:33:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4475
4476 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
4477 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
4478 sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
4479 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
4480 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
4481 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
4482 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
4483 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
4484 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
4485 define __NO_MATH_INLINES, which is already defined on command
4486 line.
4487
4488Thu May 2 22:18:28 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4489
4490 * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
4491 Replace 0x80000000 by 0x48000000.
4492 * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
4493
4494Thu May 2 21:30:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4495
4496 * sunrpc/svc_simple.c: Make global variable pl local to
4497 registerrpc.
4498
4499Thu May 2 00:24:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4500
4501 * time/Makefile (tz-cflags): New variable.
4502 (CFLAGS-tzfile.c): New variable.
4503 (CFLAGS-zic.c): Add $(tz-cflags).
4504 (tz-cc): Remove variable.
4505 ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
4506
75cd5204
RM
4507Wed May 1 09:10:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4508
7a12c6bb
RM
4509 * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
4510 name, instead of checking for reaching end of buffer, which happens
4511 when the match is the last entry in the buffer.
4512
75cd5204
RM
4513 * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
4514 include.
4515
4516Mon Apr 29 02:48:26 1996 Ulrich Drepper <drepper@cygnus.com>
4517
4518 * ctype/ctype-info.c: (__ctype_width): New variable.
4519 (__ctype_names): Initialize correctly without offset.
4520
4521 * locale/C-collate.c, locale/C-ctype.c,
4522 locale/C-messages.c, locale/C-monetary.c,
4523 locale/C-numeric.c, locale/C-time.c: Change copyright.
4524
4525 * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
4526 endianess for initialization value.
4527
4528 * locale/lc-ctype.c (current): Add parameter for offset.
4529 (__ctype32_b, __ctype_width): Add initialization for these
4530 variables.
4531
4532 * locale/programs/charmap.c: Finish support for WIDTH information.
4533 (new_width): New function.
4534
4535 * locale/programs/charset.h (width_rule): new data structure.
4536 (charset_t): Add elements for width information.
4537
4538 * locale/programs/ld-ctype.c (locale_ctype_t): Add element
4539 for width information.
4540 (allocate_arrays): Add new argument for charset.
4541 (ctype_finish): Make sure all characters named in charset
4542 width table are known to name table.
4543 (ctype_output): Correct handling of class and map name
4544 information and write out width information.
4545 (find_idx): Prepare for being called with NULL pointer as
4546 TABLE argument. This means only allocate name entry.
4547 (allocate_arrays): Correct handling of array element -1.
4548 Because EOF == -1 the value of element 127 must *not* be
4549 mirrored here.
4550 Fill width information from charset tables.
4551
4552 * locale/programs/localedef.c (main): Correct loop over all
4553 categories after change of order from Thu Mar 28 14:22:51 1996.
4554 Add new charset argument to call of `write_all_categories'.
4555
4556 * locale/programs/locales.h (ctype_finish, ctype_output): New
4557 charset argument.
4558
4559 * locale/programs/locfile.c (write_all_categories): Call
4560 `ctype_output' with additional argument charset.
4561
4562 * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4563 and _POSIX_PRIO_IO definitions.
4564
4565 * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
4566 and CHARCLASS_NAME_MAX.
4567
4568 * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
4569 and _POSIX_PRIO_IO.
4570
4571 * stdlib/grouping.h: Prepare for use in wide string functions.
4572
4573 * stdlib/stdlib.h: Correct prototypes for __strto*_internal
4574 functions.
4575
4576 * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
4577
4578 * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
4579
4580 * string/strcoll.c: Extend for use as `wcscoll'.
4581
4582 * string/strxfrm.c: Extend for use as `wcsxfrm'.
4583
4584 * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
4585 _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
4586
4587 * sysdeps/generic/stpncpy.c: Correct return value.
4588
4589 * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
4590 _PC_ASYNC_IO, and _PC_PRIO_IO.
4591
4592 * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
4593 _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
4594 _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
4595 _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4596 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
4597 _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
4598 * sysdeps/stub/sysconf.c: Ditto.
4599 * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
4600
4601 * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
4602
4603 * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
4604 (sysdep_routines): Add s_sysctl and sysctl.
4605
4606 * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
4607
4608 * sysdeps/unix/sysv/linux/sys/socket.h: New file. Wrapper
4609 around kernel header.
4610
4611 * sysdeps/unix/sysv/linux/sys/sysctl.h: New file. Define
4612 interface to `sysctl' function.
4613
4614 * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
4615
4616 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
4617 _SC_CHARCLASS_NAME_MAX.
4618
4619 * sysdeps/unix/sysv/linux/sysctl.c: new file. Implement caller
4620 of _sysctl system call.
4621
4622 * sysvipc/Makefile (routines): Add ftok.
4623
4624 * sysvipc/ftok.c: use variable `proj_id' not `id'. Patch by
4625 David Mosberger-Tang.
4626
4627 * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
4628 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4629 wcsxfrm, wcwidth, and wcswidth.
4630
4631 * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
4632 wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
4633 wcsxfrm, wcwidth, and wcswidth.
4634 Declare internal interfaces for wcsto* functions.
4635 [OPTIMIZE]: Define inline functions for wcsto* functions to
4636 call internal interface functions.
4637
4638 * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files. Implement non-
4639 standard function equivalent to stpcpy/stpncpy.
4640
4641 * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
4642 `strcoll' implementation.
4643
4644 * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
4645 wchar_t.
4646
4647 * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
4648 implementation.
4649 * wcsmbs/wcstof.c: Same for `wcstof'.
4650 * wcsmbs/wcstold.c: Same for `strtold'.
4651
4652 * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
4653 implementation.
4654 * wcsmbs/wcstoq.c: Same for `wcstoq'.
4655 * wcsmbs/wcstoul.c: Same for `wcstoul'.
4656 * wcsmbs/wcstouq.c: Same for `wcstouq'.
4657
4658 * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
4659 CAE.
4660 * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
4661 * wcsmbs/wcwidth.h: Common function for definitions of above two
4662 functions.
4663
4664 * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
4665 `strxfrm implementation.
4666
4667 * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
4668
4669 * wctype/wctype.h (wint_t): Protect against multiple definition.
4670 (wctype_t): Always define as `unsigned long int'.
4671
4672 * wctype.h: New file. Wrapper around wctype/wctype.h.
4673
5bd44955
RM
4674Tue Apr 30 17:30:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
4675
4676 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
4677 interrupt_operation call.
4678 (_hurdsig_interrupt_timeout): New variable.
4679
4680 * hurd/report-wait.c (describe_number): Correctly allocate space
4681 in DESCRIPTION for the digits in I.
4682
392d7920
RM
4683Mon Apr 29 00:11:59 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4684
75cd5204
RM
4685 * hurd/hurdstartup.c (_hurd_split_args): Function removed.
4686 (_hurd_startup): Use argz functions.
4687
4688 * hurd/hurdexec.c: Use argz functions.
4689
392d7920
RM
4690 * errno.h [!__error_t_defined] (error_t): New type.
4691 * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
4692 typedef in errnos.h.
4693
4694 * string/envz.c, string/envz.h: New files.
4695 * string/argz.h, string/argz-append.c, string/argz-count.c,
4696 string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
4697 string/argz-insert.c, string/argz-stringify.c: New files.
4698 * string/Makefile (routines): Add envz, argz-*.
4699 (headers): Add argz.h, envz.h.
4700
7b3547eb
RM
4701Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4702
4703 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4704
4705Wed Apr 24 17:35:30 Ulrich Drepper <drepper@cygnus.com>
4706
4707 * inet/netinet/in.h, socket/sys/socket.h: Move to
4708 sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
4709 * netinet/in.h, sys/socket.h: Remove file.
4710
4711 * misc/Makefile (routines): Add fdatasync.
4712
4713 * posix/Makefile (headers): Add sched.h.
4714 (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
4715 sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
4716
4717 * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
4718 _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
4719 _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
4720 _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
4721 _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
4722 _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
4723
4724 * posix/sched.h: New file. Header for POSIX scheduling interface.
4725
4726 * posix/unistd.h: Describe options from POSIX.4.
4727 Add declaration of fdatasync.
4728
4729 * sysdeps/generic/confname.h: Add definition for
4730 _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
4731 _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
4732 _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
4733 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
4734 _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
4735
4736 * sysdeps/generic/fdatasync.c: New file. Default implementation
4737 simply uses fsync.
4738
4739 * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
4740
4741 * sysdeps/generic/schedbits.h: New file. System dependent
4742 defintion for POSIX.4 scheduling interface.
4743
4744 * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
4745
4746 * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
4747 sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
4748 sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
4749 sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
4750 sysdeps/stub/sched_yield.c: New file: Stub implementation
4751 for systems missing these POSIX.4 system calls.
4752
4753 * sysdeps/unix/sysv/linux/gnu/types.h,
4754 sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
4755 data type definitions.
4756
4757 * sysdeps/unix/sysv/linux/netinet/in.h: New file. Linux
4758 specific version.
4759
4760 * sysdeps/unix/sysv/linux/posix_opt.h: New file. Define POSIX
4761 options applicable for Linux.
4762
4763 * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
4764 fdatasync, nanosleep, sched_setparam, sched_getparam,
4765 sched_setscheduler, sched_getscheduler, sched_yield,
4766 sched_get_priority_max, sched_get_priority_min, and
4767 sched_rr_get_interval.
4768
4769 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
4770 options.
4771
4772 * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
4773
4774 * time/sys/time.h: Remove definition of `struct timespec'.
4775
4776 * time/time.h (struct timespec): Move definition to here.
4777
b2c8be1f
RM
4778Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4779
4780 * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4781
b1794a28
RM
4782Thu Apr 25 15:49:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4783
4784 * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
4785 the scan for a name, avoid doing another readdir (which overwrites
4786 NENTRIES, and was resulting in a bogus ENOENT).
4787
4788 * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
4789
b2c8be1f
RM
4790Wed Apr 24 00:22:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4791
4792 * stdio/internals.c (seek_to_target): Set errno if seek function
4793 returns the wrong offset.
4794
4795 * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
4796 * wcsmbs/wcrtomb.c: Likewise.
4797
4798 * stdio-common/vfprintf.c: Include errno.h.
4799
66aeca9c
RM
4800Tue Apr 23 21:09:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
4801
4802 * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
7b3547eb 4803 variable, LUCKY, to use instead of setting D to -1 (which fouls
66aeca9c
RM
4804 things up).
4805
9a8c0d4f
RM
4806Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4807
4808 * config.h.in (HAVE_REGEX): New macro.
4809
4810 * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
4811 * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
4812 (routines): Add statfs, fstatfs.
4813 * sysdeps/mach/hurd/statfs.c: New file.
4814 * sysdeps/mach/hurd/fstatfs.c: New file.
4815 * sysdeps/stub/fstatfs.c: New file.
4816 * sysdeps/stub/statfs.c: New file.
4817 * io/sys/statfs.h: New file.
4818 * sysdeps/generic/statfsbuf.h: New file.
4819 * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
4820
4821Tue Apr 23 00:06:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4822
4823 * malloc/Makefile (gmalloc-routines): Add valloc back here.
4824 (dist-routines): Remove it here.
4825 * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
4826 (ELIDE_VALLOC): Define it.
4827 [! ELIDE_VALLOC]: Make whole file conditional on this.
4828 * malloc/malloc.h (valloc): Make decl conditional on
4829 [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
4830
4831Mon Apr 22 00:02:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4832
4833 * MakeTAGS: Include version.mk.
4834 (po/SYS_libc.pot): Add missing / in sed s cmd.
4835
b0d20a87
RM
4836Sat Apr 20 18:13:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4837
4838 * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
4839 $(libc_cv_ld_no_whole_archive).
4840
4841Sat Apr 20 17:07:17 1996 Ulrich Drepper <drepper@cygnus.com>
4842
4843 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
4844 grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
4845 math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
4846 misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
4847 posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
4848 posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
4849 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
4850 stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
4851 string/string.h, sysdeps/generic/sigaction.h,
4852 sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
4853 sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
4854 sysdeps/unix/sysv/linux/sys/ptrace.h,
4855 sysdeps/unix/sysv/minix/sigaction.h,
4856 sysdeps/unix/sysv/sco3.2.4/sigaction.h,
4857 sysdeps/unix/sysv/sysv4/sigaction.h,
4858 sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
4859 time/sys/time.h, time/time.h: Fix copyright comment.
4860
a641835a
RM
4861Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4862
b0d20a87
RM
4863 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
4864 not given in stack aux vector, fetch them with syscalls.
4865
a641835a
RM
4866 * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
4867 for nonmatching nonerror (instead of !MATCH).
4868 (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
4869
4870 * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
4871 unsigned long for variable NET2.
4872
4873 * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
4874
4875Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
4876
4877 * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
4878 catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
4879 catgets/open_catalog.c: New files. Implementation of XPG4
4880 compliant catgets() function and needed tools.
4881 * Makefile (subdirs): Add catgets.
4882
4883Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4884
4885 * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
4886
4887Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
4888
4889 * stdio-common/vfprintf.c: Correct some typos.
4890
4891 * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
4892 sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
4893 __signgam.
4894
4895Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
4896
4897 * Makerules (no-whole-archive): New variable.
4898 (build-shlib): Use it.
4899 * elf/Makefile (libdl.so): Use it.
4900 * configure.in (libc_cv_ld_no_whole_archive): New check for
4901 --no-whole-archive.
4902 * config.make.in (have-no-whole-archive): New variable.
4903
4904 * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
4905 from 3 to 4.
4906
4907 * Make-dist: Include version.mk.
4908 (version, release): Variables removed.
4909 * Makeconfig (version.mk): New target.
4910
4911Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
4912
4913 * locale/Makefile (headers): Add langinfo.h.
4914 (CPPFLAGS): Remove -Iliblib.
4915
f24f4dc8
RM
4916Mon Apr 15 16:49:04 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4917
4918 * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
4919 function and its declaration.
4920
e2a501ab
MB
4921Wed Apr 10 14:13:45 1996 Miles Bader <miles@gnu.ai.mit.edu>
4922
4923 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
4924 MACH_PORT_DEAD in the thread reply-port variable before destroying
4925 the signal handler's reply port, to avoid infinite recursion.
4926
b84095fe
RM
4927Mon Apr 8 18:27:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
4928
4929 * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
4930 user passes in TZ, just zero it (emacs passes in a dummy variable,
4931 and rms says the hurd should be the one to change).
4932
3125073e
RM
4933Sun Apr 7 10:37:30 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4934
4935 * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
4936 port in the parent.
786db220 4937
3125073e 4938Fri Apr 5 17:43:41 1996 Miles Bader <miles@gnu.ai.mit.edu>
d7057689 4939
786db220
MB
4940 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
4941 MACH_PORT_DEAD in the thread reply-port variable before destroying
4942 the signal handler's reply port to avoid infinite recursion.
4943 * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
4944 attempt to destroy PORT if it's a valid port name.
4945
2e516341
RM
4946Wed Apr 3 17:10:44 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4947
4948 * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
4949 * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
4950 instead of $(objpfx).
4951
299a95b9
RM
4952Tue Apr 2 21:27:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4953
4954 * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
4955 the pattern ends with a backslash and quoting is enabled.
4956 * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
4957 patterns.
4958
30de3b18
RM
4959Mon Apr 1 13:34:55 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4960
4961 * stdio-common/tst-printf.c (main): Add new test case.
4962
4963 * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
4964
4965Mon Apr 1 11:39:10 Ulrich Drepper <drepper@gnu.ai.mit.edu>
4966
4967 * stdlib/strtod.c (STRTOD): Fix handling of American style FP
4968 numbers.
4969
4970 * stdio-common/vfprintf.c (vfprintf): Don't increment format
4971 string pointer twice after seeing `*'.
4972
4973Sun Mar 31 17:31:54 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4974
4975 * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
4976 po/header.pot.
4977
4978Sun Mar 31 18:07:32 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
4979
4980 * locale/Makefile (others, install-bin): Compiling locale works
4981 again.
4982 (locale-modules): locale has no --dump option anymore. Remove
4983 ctypedump.
4984
4985 * locale/programs/config.h: Don't declare euidaccess.
4986 Use #include_next to get libc's config.h.
4987
4988 * locale/programs/ctypedump.c: Not needed anymore. Dump option
4989 of locale is removed.
4990
4991 * locale/programs/locale.c: Adapt for new locale implementation.
4992
4993 * stdio-common/_itoa.h (_itoa_word): Define as inline function.
4994 * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
4995 Don't declare static because used in _itoa_word inline function.
4996
4997 * stdio-common/printf-parse.h: Prepare for use in wide-char
4998 stdio implementation.
4999 (find_spec): Take additional argument to work with mbrlen instead
5000 of mblen.
5001 (parse_one_spec): Ditto.
5002
5003 * stdio-common/printf-prs.c: Prepare for use in wide-char
5004 stdio implementation.
5005
5006 * stdio-common/printf.h: Mark change for wide-char handling.
5007 Changing it now would result in incompatibilities.
5008
5009 * stdio-common/vfprintf.c: New and fast implementation.
5010
5011 * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
5012 mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
5013 mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
5014 Change wcswcs to wcsstr.
5015 Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
5016 mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
5017
5018 * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
5019 wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
5020 wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
5021 wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
5022 wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
5023 function according to ISO C amendment 1.
5024 * wchar.h: Wrapper around "wcsmbs/wchar.h".
5025
5026 * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
5027 wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
5028 wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
5029 wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
5030 wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
5031 amendment 1.
5032
5033 * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
5034 wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
5035 wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
5036 wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
5037 wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
5038 Implement functions from early drafts, not part of final standard.
5039
5040Sun Mar 31 16:50:41 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5041
5042 * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
5043 __jmp_bug_tag so its C++ implicit typedef does not conflict with the
5044 __jmp_buf typedef.
5045
5046 * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
5047 compiling in the source directories.
5048
5049Fri Mar 29 16:26:35 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5050
5051 * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
5052 * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
5053
b8051057
RM
5054Fri Mar 29 11:29:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5055
5056 * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
5057 with weak alias signgam.
5058
27e00f3f
RM
5059Thu Mar 28 18:32:34 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5060
5061 * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
5062
8c1442d0
RM
5063Thu Mar 28 14:22:51 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5064
c475b8f5
RM
5065 * sunrpc/rpc_main.c (main): Call textdomain.
5066
7a1c652d
RM
5067 * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
5068 --no-location.
5069 (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
5070 ($P/subdirs.pot): New target.
5071 ($P/SYS_libc.pot): Add -n switch.
5072
a141dd34
RM
5073 * locale/locale.h (LC_*): Values reordered to match Linux libc.
5074
8c1442d0
RM
5075 * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
5076 the process is a zombie; send no messages and return success.
5077
43efc103
RM
5078Thu Mar 28 11:53:26 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5079
5080 * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
5081 * wctype/wctype.c: Likewise.
5082 * wctype/wctrans.c: Likewise.
5083
ffcf9634
RM
5084Thu Mar 28 03:00:43 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
5085
5086 * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
5087 DATA->strings.
5088
5089 * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
5090
5091 * configure.in (.weakext check): Fix asm code to use .weakext instead
5092 of .weak! Fix bogus test calls.
5093 * configure: Regenerated.
5094
19bc17a9
RM
5095Thu Mar 28 03:25:10 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5096
0393dfd6
RM
5097 * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
5098
5099 * locale/programs/ld-collate.c (collate_finish): Use error_at_line
5100 instead of error_with_loc.
5101
5102 * locale/weight.h: Use u_int32_t instead of u32_t.
5103 * string/strxfrm.c: Likewise.
5104
5105 * string/strxfrm.c: Find weight.h in ../locale; don't #include
5106 "localeinfo.h".
5107 * string/strcoll.c: Likewise.
5108
19bc17a9
RM
5109 * intl/Makefile (copysrc): Add missing > in sed cmd.
5110
5111Sat Mar 23 17:52:49 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5112
5113 * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
5114 change value to $(datadir)/i18n. `nls' is not an appropriate
5115 name.
5116
5117 * Makefile (subdirs): Add new subdir wctype.
5118
5119 * ctype/ctype-info.c: Add new global variable __ctype_names
5120 and initialize from _nl_C_LC_CTYPE.
5121
5122 * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
5123 class. Use bit 11.
5124 [_ISbit]: Protect definition of bitmasks because they are also
5125 used in wctype.h.
5126
5127 * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
5128 after successfully pushing back a character.
5129
5130 Fundamental changes in locale implementation. Almost nothing
5131 from the old code is used anymore.
5132 * locale/charmap.c, locale/collate.c, locale/config.h,
5133 locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
5134 locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
5135 locale/locale.c locale/localeconv.c, locale/localedef.c,
5136 locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
5137 locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
5138 locale/numeric.c, locale/setlocale.c, locale/token.h,
5139 locale/xmalloc.c: Removed.
5140
5141 * locale/Makefile: Update for new locale implementation with
5142 program source code distributed in subdir.
5143
5144 * locale/categories.def, locale/iso-4217.def: Updated file
5145 for new locale implementation.
5146
5147 * locale/langinfo.h: Updated for new locale implementation.
5148 (ERA_D_T_FMT, ERA_T_FMT): New official values according to
5149 P1003.2b/D11.
5150 (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
5151 _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
5152 _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
5153 _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
5154 _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
5155 _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
5156 extended LC_CTYPE and LC_COLLATE implementation.
5157
0393dfd6
RM
5158 * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
5159 locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
5160 for locale related programs.
19bc17a9
RM
5161
5162 * locale/C-collate.c, locale/C-ctype.c,
5163 locale/C-messages.c, locale/C-monetary.c,
5164 locale/C-numeric.c, locale/C-time.c,
5165 locale/lc-collate.c, locale/lc-ctype.c,
5166 locale/lc-messages.c, locale/lc-monetary.c,
5167 locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
5168 functions, and new generated "C" locale data.
5169
5170 * locale/loadlocale.c: Now handles word fields in locale binary
5171 automatically by changing the endianess if necessary.
5172
5173 * locale/localeinfo.h (LIMAGIC): Changed magic number because
5174 of incompatible changes.
5175 (locale_data): Changed definition to allow word as a value type.
5176 (coll_sort_rule): Values for collation sorting mode.
5177 (_NL_CURRENT_WORD): New macro to access word value of locale entry.
5178 (__collate_table, __collate_extra): Declare new global variables
5179 for collation tables.
5180
5181 * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
0393dfd6
RM
5182 locale/programs/charmap.c, locale/programs/charset.c,
5183 locale/programs/charset.h, locale/programs/config.h,
5184 locale/programs/ctypedump.c, locale/programs/ld-collate.c,
5185 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
5186 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
5187 locale/programs/ld-time.c, locale/programs/linereader.c,
5188 locale/programs/linereader.h, locale/programs/locale.c,
5189 locale/programs/localedef.c, locale/programs/locales.h,
5190 locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
5191 locale/programs/locfile-token.h, locale/programs/locfile.c,
5192 locale/programs/locfile.h, locale/programs/stringtrans.c,
5193 locale/programs/stringtrans.h: Implementation of locale related
5194 programs.
19bc17a9
RM
5195
5196 * locale/weight.h: Functions to access collation tables.
5197
5198 * posix/unistd.h: Define _POSIX2_LOCALEDEF.
5199
5200 * stdio-common/printf_fp.c: Fix bug with printing certain numbers
5201 < 10^-1. Reported by Bill Metzenthen.
5202
5203 * stdio-common/tfformat.c: Add new test for above bug.
5204
5205 * string/strcoll.c, string/strxfrm.c: Real implementation of
5206 string collation according to ISO C.
5207
5208 * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
5209 wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
5210 wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
5211 Implementation of wide character classes and mapping.
5212
53f770e0
RM
5213Wed Mar 27 14:52:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5214
5215 * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
5216 _dl_relocate_object loop. Avoid relocating RTLD_MAP in that loop, and
5217 do it individually if necessary after _dl_sysdep_start_cleanup call.
5218
5219 * stdlib/Makefile (mpn-routines): Add divrem.
5220
5221Tue Mar 26 22:54:14 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5222
5223 * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
5224 instead of __mpn_divmod.
5225
5226Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
5227
5228 * sysdeps/alpha/setjmp.S: Must establish global pointer before
5229 address of __sigsetjmp_aux can be loaded.
5230
5231Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5232
5233 * sysdeps/i386/i586/memset.S: New file. Highly optimized
5234 version for i586 contributed by Torbjorn Granlund.
5235 Adapted for use as bzero.
5236 * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
5237 code to implement bzero().
5238
5239Tue Mar 26 20:01:17 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5240
5241 * stdlib/Makefile (mpn-routines): Remove divmod.
5242
c0621444
BK
5243Tue Mar 26 15:40:14 1996 Brendan Kehoe <brendan@zen.org>
5244
5245 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
5246 wrapped with #ifndef, to avoid config.h defining it.
5247
5775972d
RM
5248Mon Mar 25 13:10:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5249
81e4d60c
RM
5250 * malloc/realloc.c (_realloc_internal): In case of growing large
5251 block, leave _heaplimit zero across _malloc_internal call.
5252
5775972d
RM
5253 * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
5254
857fa1b8
RM
5255Mon Mar 25 03:35:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5256
5257 * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
5258 table when _heaplimit==0 during realloc growing large block.
5259
5260 * MakeTAGS (extract): Remove /dev/null from xgettext command line.
5261 (text-srcs): New variable: extract only C sources from $(tags_sources).
5262 (po/$(domain).pot): Depend on that.
5263 If it's empty, cp /dev/null $@ instead of $(extract).
5264
5265 * misc/Makefile (headers): Add iovec.h.
5266 * sysdeps/unix/sysv/linux/iovec.h: New file.
5267 * sysdeps/generic/iovec.h: New file.
5268 * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
5269
5270 * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
5271 AC_TRY_COMPILE.
5272
5273 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
5274 macros inside [! __STDC__].
5275
5276 * stdlib/rpmatch.c: New file.
5277 * stdlib/Makefile (routines): Add rpmatch.
5278 * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
5279
5280 * MakeTAGS (MSGJOIN): Variable removed.
5281 (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
5282
5283Wed Mar 20 20:08:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5284
5285 * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
5286
5287 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
5288 NO_UNDERSCORES.
5289
036a2725
RM
5290Thu Mar 21 11:19:15 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5291
5292 * mach/devstream.c (input): Translate \r to \n on input.
5293
ce563359
RM
5294Wed Mar 20 11:28:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5295
5296 * stdio-common/printf.h, stdio-common/printf_fp.c,
5297 stdio-common/vfprintf.c: Place const in parameter list at
5298 correct place.
5299
5300Wed Mar 20 23:58.12 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5301
5302 * sysdeps/i386/ldbl2mpn.c: Copy of former version of
5303 sysdeps/ieee754/ldbl2mpn.c.
5304 * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
5305 Reported by Andreas Schwab.
5306
5307Wed Mar 20 19:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5308
5309 * version.c: Include version.h to define RELEASE and VERSION macros.
5310 (__libc_release, __libc_version): Use them.
5311 * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
5312 use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
5313 * Make-dist (rel+vers): Snarf the macro values from version.h.
5314
5315 * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
5316 (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
5317 pass -a for these files.
5318
5319 * Makerules (po/%.pot): Depend on FORCE target so recursive make is
5320 always run.
5321
38bb44bc
RM
5322Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5323
5324 * sysdeps/unix/sysv/linux/wait3.c: New file.
5325 * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
5326 one from sysdeps/posix.
5327
948c3e72
RM
5328Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5329
d7193325
RM
5330 * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
5331
948c3e72
RM
5332 * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
5333 lt_executable, then lt_library.
5334 * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
5335
5336Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5337
5338 * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
5339
5340Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5341
5342 * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
5343 VEOL2, VMIN, VTIME): Corrected.
5344 (PAGEOUT, WRAP, VDSUSP): Deleted.
5345
b20e47cb
RM
5346Tue Mar 19 14:18:42 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5347
948c3e72
RM
5348 * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
5349 (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
5350
4d585333
RM
5351 * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
5352
5353 * math/math.h: Move M_* constants before __math.h include.
5354 [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
5355
5356 * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
5357 If log10 is not defined (i.e. no -lm), use stupid loop instead.
5358
d3669add
RM
5359 * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
5360 and no other _*_SOURCE macro is.
5361 (_GNU_SOURCE): Don't define by default.
5362 * libc-symbols.h (_GNU_SOURCE): Define it.
5363
c8cf0b14
RM
5364 * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
5365
c224a18a
RM
5366 * config.make.in (weak-symbols): Variable removed.
5367 * configure.in (--with-weak-symbols): Option removed.
5368 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5369 New tests.
c8cf0b14 5370
c224a18a
RM
5371 * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
5372 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
5373 New #undefs.
5374 * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
5375
b20e47cb
RM
5376 * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
5377
5378Mon Mar 4 20:17:28 1996 David Mosberger-Tang <davidm@azstarnet.com>
5379
c224a18a
RM
5380 * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
5381 * inet/inet_mkadr.c: Likewise.
5382 * inet/inet_net.c: Likewise.
5383 * inet/inet_netof.c: Likewise.
5384 * inet/rcmd.c: Likewise.
5385 * inet/arpa/inet.h: Likewise.
5386 * inet/netinet/in.h: Likewise.
5387 * inet/netinet/tcp.h: Likewise.
5388 * inet/protocols/rwhod.h: Likewise.
5389 * inet/protocols/talkd.h: Likewise.
5390 * resolv/inet_addr.c: Likewise.
5391
b20e47cb
RM
5392 * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
5393
5394 * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
5395
5396 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
5397 umount.
5398
5399 * sysdeps/alpha/__math.h (atan, cabs): New functions.
5400
5401 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
5402 expects set-value, not pointer to it).
5403
5404Sun Feb 25 22:36:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
5405
5406 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
5407
5408 * gmon/gmon.c (__bb_head): new variable.
5409 (write_hist, write_call_graph, write_bb_counts): new functions.
5410 (_mcleanup): modified to call above functions instead of directly
5411 writing out gmon.out.
5412 * gmon/sys/gmon.h (struct __bb): New type.
5413 (struct gmonhdr): Type removed.
5414 (struct gmonparam): New member `log_hashfraction'.
5415 (GMONVERSION): Macro removed.
5416
5417 * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
5418 sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
5419 files.
5420 * gmon/Makefile (headers): Add sys/gmon_out.h.
5421 (routines): Add bb_init_func, bb_exit_func.
5422
5423 * gmon/mcount.c: Avoid integer division.
5424
5425Wed Feb 21 23:56:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
5426
5427 * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
5428 passed to match what __sigsetjmp_aux() expects.
5429
5430Tue Feb 20 11:33:46 1996 David Mosberger-Tang <davidm@azstarnet.com>
5431
5432 * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
5433 connect, getpeername, getsockname, listen, recv, recvfrom,
5434 recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
5435 added to override same-name assembly file in the parent directory.
5436
5437 * stdlib/stdlib.h: add include of sys/types.h in front of random
5438 etc declarations to ensure int32_t is declared.
5439
5440 * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
5441 where 32 bit integers are required. Also change LONG_MAX into
5442 0x7fffffff since the intent is to turn off the sign bit in a
5443 32 bit integer.
5444
5445 * time/offtime.c (__offtime): Use Paul Eggert's code to deal
5446 with very large values for "days" (e.g., 64 bit values).
5447
5448Mon Feb 19 22:22:12 1996 David Mosberger-Tang <davidm@azstarnet.com>
5449
5450 * stdlib/stdlib.h (__random, __random_r, random_r, struct
5451 random_data): use int32_t instead of `long int'.
5452
5453Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
5454
5455 * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
5456
5457 * sysdeps/alpha/ffs.S: new file.
5458
5459 * sysdeps/alpha/fabs.c: File removed.
5460
5461 * time/tzfile.c (__tzfile_read): counter variable is i, *not*
5462 num_transitions!
5463
5464 * time/offtime.c: make capable of dealing with very large (64 bit)
5465 time_t values. Use old algorithm until a year is reached that
5466 is an integer multiple of 400, then use DAYS_PER_400_YEARS to
5467 do the remainder in a single division.
5468
5469 * sysdeps/generic/ffs.c (ffs): fix variable declarations to
5470 be unsigned int, not unsigned long.
5471
5472 * string/test-ffs.c (main): add test case with all upper bits
5473 set.
5474
5475 * stdlib/tst-strtol.c: add tests cases for machines where
5476 sizeof(long)==8.
5477
5478 * stdlib/testrand.c (main): disallow rand() to return negative
5479 integers.
5480
5481 * stdlib/testmb.c (main): fix format to use %lx instead of %x.
5482
5483 * stdlib/stdlib.h: on 64 bit machines, declare
5484 struct random_data, __random(), __random_r, and random_r to
5485 return "int" instead of "long int".
5486
5487 * stdlib/random_r.c: 64 bit machines use "int" instead of "long
5488 int". Similarly, use INT_MAX instead of LONG_MAX.
5489
5490 * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
5491 need to operate on "int" instead of "long int".
5492
5493 * locale/locfile-hash.c (compute_hashval): make shifted constant
5494 a long to avoid loosing bits on 64 bit machines.
5495
5496 * dirent/tst-seekdir.c (main): fix confusing comment; print
5497 a line to mark point where directory is rewound.
5498
5499Fri Feb 16 15:01:49 1996 David Mosberger-Tang <davidm@azstarnet.com>
5500
5501 * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
5502
5503Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
5504
5505 * sysdeps/unix/sysv/linux/alpha/Makefile,
5506 sysdeps/unix/sysv/linux/alpha/brk.S,
5507 sysdeps/unix/sysv/linux/alpha/fpu_control.c,
5508 sysdeps/unix/sysv/linux/alpha/fpu_control.h,
5509 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5510 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5511 sysdeps/unix/sysv/linux/alpha/pipe.S,
5512 sysdeps/unix/sysv/linux/alpha/setfpucw.c,
5513 sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
5514 sysdeps/unix/sysv/linux/alpha/speed.c,
5515 sysdeps/unix/sysv/linux/alpha/start.S,
5516 sysdeps/unix/sysv/linux/alpha/syscall.S,
5517 sysdeps/unix/sysv/linux/alpha/syscalls.list,
5518 sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
5519 sysdeps/unix/sysv/linux/alpha/sysdep.S,
5520 sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
5521
5522 * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
5523 address register before returning (gcc 2.7.1 doesn't do it,
5524 presumably because $26 is declared as a global variable).
5525
5526 * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
5527 argument.
5528
5529 * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
5530 instead of multiplication.
5531
5532 * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
5533 currently blocked signals instead of the empty mask to ensure
5534 that execution of alarm handler occurs with none of the currently
5535 blocked signals enabled.
5536
5537 * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
5538
5539 * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
5540 sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
5541
5542 * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
5543 sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
5544 sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
5545 sysdeps/alpha/strlen.S: New files.
5546
5547 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
5548 sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
5549 sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
5550 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
5551 Removed.
5552
5553 * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
5554 int.
5555
5556 * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
5557 to end of function to avoid a jump across NOPs.
5558
5559 * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
5560 pertaining to integer division/remainder routines since new code
5561 doesn't require them.
5562
5563 * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
5564 where 32 bit quantities are consumed/stored. Various other minor
5565 64-bit cleanups (casting).
5566
5567 * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
5568 whether xdr_long or xdr_short should be used to encode an int.
5569 Notice that an xdr_long is 4 bytes independent of the architecture
5570 (otherwise no Alpha could interoperate with existing NFS servers,
5571 for example). Ditto for enums.
5572
5573 * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
5574 to 16 since it really wants 16 bytes.
5575
5576 * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
5577
c224a18a
RM
5578 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
5579 u_int32_t (instead of u_long).
5580
b20e47cb
RM
5581 * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
5582 "buf" pointer by casting it to a char* first since a long* may be 8
5583 bytes or more and oa->oa_length may be any multiple of 4.
5584
b20e47cb
RM
5585 * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
5586 since it really is testing for 32 bits. Fixed casts to use
5587 u_int32 instead of u_long.
5588 * sunrpc/xdr_rec.c: Likewise.
5589
5590 * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
5591 * sunrpc/rpc/auth.h: Likewise.
5592
5593 * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
5594 for Alpha.
5595
5596Tue Mar 19 13:27:49 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5597
5598 * sysdeps/i386/fpu/__math.h: New file.
5599 Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
5600
5601Sun Mar 17 00:28:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5602
5603 * sysdeps/posix/clock.c: Don't multiply the return value by
5604 CLOCKS_PER_SEC or CLK_TCK.
5605
e3845371
RM
5606Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5607
b20e47cb
RM
5608 * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
5609 scan finds no match.
5610
5611 * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
5612 * misc/bsd-compat.c (setpgrp): New function, two arg version.
5613 * sysdeps/stub/setpgid.c: Remove setpgrp alias.
5614 * sysdeps/mach/hurd/setpgid.c: Likewise.
5615 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
5616 * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
5617 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
5618 * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
5619 * posix/setpgrp.c (setpgrp): New file.
5620 * posix/Makefile (routines): Add setpgrp.
5621
e3845371
RM
5622 * elf/Makefile (rtld-link): New canned sequence.
5623 (ld.so, ld-linux.so.1): Use it. Pass -soname option.
5624
5625 * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
5626
5627Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5628
5629 * sysdeps/unix/sysv/linux/tcgetpgrp.c,
5630 sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
5631
9b431e31
RM
5632Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5633
5634 * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
5635 (CFLAGS): Append -Wno-unitialized.
5636
5aab07eb
RM
5637Sat Mar 16 20:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5638
5639 * stdlib/erand48_r.c: Use FP division by powers of two to distribute
5640 short bits into double.
5641
6025c399
RM
5642Sat Mar 16 20:08:22 1996 David Mosberger-Tang <davidm@azstarnet.com>
5643
9b431e31
RM
5644 * sysdeps/alpha/memchr.S: New file.
5645 * sysdeps/alpha/memchr.c: Obsolete file removed.
5646 * string/tester.c: Soup up memchr tests.
6025c399
RM
5647
5648Sat Mar 16 16:26:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5649
5650 * misc/Makefile (headers): Add sysexits.h.
5651 * misc/sysexits.h: New file.
5652
5653Thu Mar 14 15:20:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5654
5655 * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
5656 call to __atan.
5657 * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
5658 call to __atanf.
5659
5660 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
5661 sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
5662 sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
5663 sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
5664 sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
5665 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
5666 sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
5667 sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
5668 sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
5669 sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
5670 sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
5671 sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
5672 sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
5673 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
5674 sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
5675 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
5676 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
5677 sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
5678 sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
5679 sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
5680 sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
5681 sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
5682 sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
5683 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
5684 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
5685 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
5686 sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
5687 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5688 sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
5689 sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
5690 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
5691 sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
5692 sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5693 sysdeps/m68k/fpu/s_significand.c,
5694 sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
5695 sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
5696 sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
5697 sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
5698
5699 * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
5700
5701 * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
5702 * sysdeps/m68k/fpu/isnanl.c: Likewise.
5703
5704Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5705
5706 * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
5707 calculation to include trailing invariant portion. Don't use alloca;
5708 instead use a dynamic auto array for GCC, malloc for non-GCC.
5709 Handle nested braces properly.
5710
5711 * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
5712
5713 * libc-symbols.h (lint): New macro.
5714
5715Fri Mar 15 01:18:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5716
5717 * libio/iosetvbuf.c: Add weak alias setvbuf.
5718
52e9a9d1
RM
5719Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5720
5721 * string/strnlen.c: New file.
5722 * string/Makefile (routines): Add strnlen.
5723 * string/string.h [__USE_GNU] (strnlen): Declare new function.
5724 [__OPTIMIZE__]: Define extern inline implementation of it.
5725
5726 * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
5727 addition, to avoid using anything from -lm.
5728
5729Mon Mar 4 21:57:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5730
5731 * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
5732
5733 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
5734 (CALL_MCOUNT): New macro, empty unless [PROF].
5735 (ENTRY): Do CALL_MCOUNT just after the label.
5736 (JUMPTARGET): New macro.
5737 (SYSCALL_ERROR_HANDLER): Fix syntax.
5738
5739Thu Mar 14 04:20:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5740
5741 * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
5742 function instead of using inline asm i386 syscall.
5743 * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
5744
5745 * posix/unistd.h [__USE_BSD]: Declare usleep.
5746
6c46dada
RM
5747Tue Mar 12 04:57:57 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5748
52e9a9d1
RM
5749 * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
5750 (fcvt, ecvt): Use it for buffer size.
5751
5752 * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
5753 conditionalizing long vs long long.
5754
5755 * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
5756 pointers; never return EFAULT.
5757 * stdlib/drand48_r.c (drand48_r): Likewise.
5758 * stdlib/erand48_r.c (erand48_r): Likewise.
5759
6c46dada
RM
5760 * setjmp/Makefile (tests): Add jmpbug.
5761 * setjmp/jmpbug.c: New file.
5762
1177c8ba
RM
5763Tue Mar 12 04:42:01 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5764
5765 * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
5766 * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
5767 * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
5768 `restore' until the target frame is hit.
5769
5770Sun Mar 10 20:29:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5771
5772 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
5773 * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
5774 s_sigsuspend.
5775
5776Thu Mar 7 21:30:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5777
5778 * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
5779 left side of sed substitutions.
5780
5781Sun Mar 10 16:58:10 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
5782
5783 * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
5784 is not available anymore. Do it ourselves.
5785
5786 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
5787 Correct GCC `asm' syntax.
5788
dd0e4e0c
RM
5789Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5790
1177c8ba
RM
5791 * stdio-common/Makefile (tests): Add tst-ungetc.
5792 * stdio-common/tst-ungetc.c: New test from drepper.
5793 * stdio-common/tstscanf.c (main): New %[ test case from drepper.
5794
5795 * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
5796 somehow this was missed, though the weak alias is already there.
5797
dd0e4e0c
RM
5798 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
5799 default to double precision, all interrupts masked; fdlibm requires.
5800
d25d5f6a
RM
5801Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5802
5803 * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
5804
5805Fri Mar 8 22:16:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5806
5807 * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
5808
45667a53
MB
5809Tue Mar 5 18:45:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
5810
5811 * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
5812 final loop.
5813
f7eac6eb
RM
5814Mon Mar 4 20:54:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5815
5816 * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
5817
5d8a006d
MB
5818Tue Mar 5 12:14:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
5819
5820 * sysdeps/mach/hurd/select.c (__select): Also don't fault just
5821 because some fdmask is 0.
5822
e4963995
MB
5823Mon Mar 4 17:35:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
5824
5825 * sysdeps/mach/hurd/select.c (__select):
5826 Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
5827 Don't return without frobbing the bitmasks after a timeout.
5828 When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
f7eac6eb
RM
5829
5830Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5831
5832 * hurd/catch-signal.c (hurd_safe_memmove): New function.
5833 (hurd_safe_copyin, hurd_safe_copyout): New functions.
5834 * hurd/hurd/sigpreempt.h: Declare them.
5835
5836Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5837
5838 Replace math code with fdlibm from Sun as modified for netbsd by
5839 JT Conklin and Ian Taylor, including x86 FPU support.
5840 * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
5841 * math/math_private.h: New file.
5842 * sysdeps/i386/fpu/Implies: New file.
5843 * sysdeps/ieee754/Implies: New file.
5844 * math/machine/asm.h, math/machine/endian.h: New files.
5845 * math/Makefile, math/math.h: Rewritten.
5846 * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
5847 * math/finite.c: File removed.
5848 * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
5849
5850 * math/test-math.c: Include errno.h and string.h.
5851
5852 * sysdeps/unix/bsd/dirstream.h: File removed.
5853 * sysdeps/unix/bsd/readdir.c: File removed.
5854
661fa176
RM
5855Sat Mar 2 16:35:40 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5856
5857 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
5858 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
5859 removed.
5860 * sysdeps/generic/profil-counter.h: New file.
5861
48a65a29
BK
5862Fri Mar 1 17:11:59 1996 Brendan Kehoe <brendan@zen.org>
5863
5864 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
5865 including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
5866 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
5867 same as linux/m68k/profil-counter.h except the comment.
5868
e9607dbe
RM
5869Fri Mar 1 10:09:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5870
6b628d36
RM
5871 * stdlib/Makefile (mpn-stuff): New target.
5872 (copy-mpn): Use it.
5873
5874 * Code copied from GMP updated to 1.937 version.
5875 * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
5876
e9607dbe
RM
5877 * posix/glob.c: Use canonical code from autoconf manual for dirent
5878 include.
5879 [_D_NAMLEN]: Redefine NAMLEN using this.
5880 (glob_in_dir): Use NAMLEN macro.
5881
5882 * sysdeps/posix/profil.c: New file.
5883
5884Thu Feb 29 20:55:57 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5885
5886 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
5887
b7459e56
RM
5888Tue Feb 27 12:14:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5889
e9607dbe
RM
5890 * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
5891 `extern' keyword.
5892
b7459e56
RM
5893 * time/strftime.c: Support - and _ flags to affect number padding.
5894
5895 * sysdeps/unix/common/tcsendbrk.c: New file.
5896
92777700
RM
5897Mon Feb 26 10:22:30 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5898
5899 * sysdeps/unix/dirstream.h: Rewritten.
5900 * sysdeps/unix/readdir.c: Rewritten.
5901 * sysdeps/unix/telldir.c: Rewritten.
5902 * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
5903 Remove __ from DIR struct member names.
5904 * sysdeps/unix/dirfd.c: Likewise.
5905 * sysdeps/unix/seekdir.c: Likewise.
5906 * sysdeps/unix/rewinddir.c: Likewise.
5907 * sysdeps/unix/opendir.c: Likewise. Don't allocate extra space after
5908 DIR structure.
5909 * sysdeps/stub/direct.h: File removed.
5910 * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
5911 * sysdeps/unix/bsd/direct.h: File removed.
5912 * sysdeps/unix/common/direct.h: File removed.
5913 * sysdeps/unix/sysv/irix4/direct.h: File removed.
5914 * sysdeps/unix/sysv/isc3/direct.h: File removed.
5915 * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
5916 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
5917 * sysdeps/unix/common/direntry.h: New file.
5918 * sysdeps/unix/bsd/direntry.h: New file.
5919 * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
5920 * sysdeps/unix/sysv/direntry.h: New file.
5921 * sysdeps/stub/direntry.h: New file.
5922 * dirent/dirent.h (struct dirent): Type removed. Include <direntry.h>
5923 to define it.
5924 (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
5925 * dirent/Makefile (headers): Add direntry.h.
5926 (distribute): Remove direct.h.
5927 * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
5928 * dirent/scandir.c: Likewise.
5929 * io/fts.c (fts_build): Likewise.
5930 * io/ftw.c (ftw_dir): Likewise.
5931 * sysdeps/posix/ttyname.c: Likewise.
5932
5933 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
5934
5935 * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
5936 (collector_timeout): New static variable.
5937 (update_waiter): Actually call __task_enable_pc_sampling.
5938 Set collector_timeout based on the `tick' count returned.
5939 (profile_waiter): Use MAX_PC_SAMPLES. Set nsamples before RPC.
5940 Use collector_timeout in __mach_msg call.
5941
5942 * gmon/Makefile (noprof): New variable containing mcount.
5943 Append profil unless it is in $(unix-syscalls).
5944 (mcount.po): Use $(noprof) for list of targets in this rule.
5945
5946 * libc-symbols.h: Define _LIBC before #include <config.h>.
5947
5948Sun Feb 25 12:29:23 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5949
5950 * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
5951 Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
5952
e9607dbe 5953 * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
92777700
RM
5954
5955Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5956
5957 * libio/cleanup.c (_IO_cleanup_registration_needed)
5958 [!_G_HAVE_ATEXIT]: Init to NULL.
5959 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
5960
5961Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
5962
5963 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
5964 previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
5965
5966Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5967
5968 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
5969 extern.
5970
5971Sat Feb 24 11:34:13 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5972
5973 * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
5974
5975 * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
5976
a182affd
RM
5977Wed Feb 21 02:25:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
5978
5979 * Rules (others): Depend on $(extra-objs), $(install-lib),
5980 $(install-bin), $(install-sbin), in object directory.
5981
5982 * Makeconfig (link-libc): Don't pass -rpath option with default
5983 path, since ld.so should use the same default.
5984 * Makerules (build-shlib): Likewise.
5985
5986 * Makerules (make-target-directory): Use mkinstalldirs.
5987
5988 * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
5989 redefine ENTRY et al.
5990
5991 * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
5992 Macros removed. The code in unix/i386/sysdep.h should now suffice.
5993
5994 * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
5995 [HAVE_ELF] and not.
5996 (ENTRY): Use it in .align directive.
5997 (CALL_MCOUNT): New macro, empty unless [PROF].
5998 (ENTRY): Do CALL_MCOUNT just after the label.
5999
6000 * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
6001 code can call mcount.
6002
6003Tue Feb 20 23:05:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6004
6005 * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
6006 translation markings are now integrated in his distribution.
6007
6008 * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
6009
f2e235b9
RM
6010Mon Feb 19 18:31:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6011
a182affd
RM
6012 * po: New directory where `LANG.po' files for message translations
6013 will reside.
6014 * po/SYS_libc.pot: New file, template of message strings as in source.
6015 * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
6016 the source using xgettext.
6017 * Makerules ($(..)po/%.pot): New rule.
6018 * manual/Makefile (../po/manual.pot): New target, make it empty.
6019
6020 * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
6021 * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
6022 * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
6023 * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
6024 * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
6025
f2e235b9
RM
6026 * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
6027 Updated from ADO 96d.
6028
0ddc0d16
RM
6029Sun Feb 18 14:08:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6030
6031 * csu/initfini.c (_init): Remove bogus volatile declarations and
6032 extra variable, take the address of __gmon_start__ only implicitly
6033 to avoid the test being optimized out.
6034
bfc04a9f
RM
6035Sun Feb 18 15:08:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6036
6037 * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
6038 sec.
6039
6040Sun Feb 18 13:56:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6041
6042 * elf/Makefile, time/Makefile: Make `all' the default target.
6043
6044Mon Feb 19 18:09:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6045
6046 * misc/sys/ptrace.h: Moved to ...
6047 * sysdeps/generic/sys/ptrace.h: ... here.
6048 * sys/ptrace.h: File removed.
6049
6050Sun Feb 18 12:13:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6051
6052 * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
6053
6054 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
6055 so that the symbol alias works.
6056
6057 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
6058
6059 * sysdeps/unix/sysv/linux/resourcebits.h: New file.
6060
6061 * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
6062
6063 * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
6064 getppid and reboot.
6065
6066 * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
6067 use getdtablesize.
6068
6069Sat Feb 17 10:30:21 1996 David Mosberger-Tang <davidm@AZStarNet.com>
6070
6071 * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
6072 sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
6073 sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
6074 to `long' where necessary.
6075
6076Thu Feb 15 20:04:50 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
6077
6078 * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
6079 * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
6080 to correctly access MPN array depending on architecture.
6081
be10a868
RM
6082Mon Feb 19 15:30:26 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6083
6084 * stdio-common/tstscanf.c (main): Add check for "0" as %d.
6085
6086 * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
6087 Only some systems have three args; let them define their own stub.
6088
6089 * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
6090
6091 * sysdeps/generic/machine-gmon.h: New file.
6092 * gmon/Makefile (distribute): Add machine-gmon.h.
6093 * gmon/mcount.c: Undo changes of Feb 13.
6094 Include "machine-gmon.h".
6095
6096Sun Feb 18 13:24:06 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6097
6098 * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
6099 identical to unix/common/direct.h.
6100
6101 * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
6102
6103 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
6104
6105 * stdio-common/Makefile (tests): Remove scanf6.
6106
6107 * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
6108
6109 * time/mktime.c (mktime): Move static variable localtime_offset to
6110 file scope.
6111
6112 * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
6113 base indicator.
6114
6115Thu Feb 15 16:56:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6116
6117 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
6118 (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
6119 (_dl_runtime_resolve): Save %a1 as well.
6120 (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
6121 (elf_machine_relplt): Define.
6122
6123 * elf/dl-runtime.c: Include possible extra args in declaration of
6124 fixup.
6125
1cbca0d9
RM
6126Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6127
6128 * time/tzset.c: Limit hours to 23, not 12. From jaffer.
6129
7c97bb09
RM
6130Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6131
6132 * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
6133
9e3db9cd
RM
6134Thu Feb 15 13:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6135
6136 * mach/Machrules: Use -include for $(*.ir).
6137
6138 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
6139 request values.
6140 * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
6141 (_IOT_COUNT2): Field is 3 bits, not 2.
6142 * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
6143 * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
6144 bits before looking up handler.
6145 (fioctl): Use __hurd_dfail.
6146 (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
6147
9b19f55d
RM
6148Thu Feb 15 11:49:45 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6149
6150 * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
6151 (sysdep_routines): Don't add sys-sig.
6152
6153 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
6154
9e3db9cd
RM
6155Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
6156
6157 * sysdeps/alpha/memchr.c (memchr): loop searching for matching
6158 character bailed out one too early; changed constant 6 to
6159 7 to fix this.
6160
de1b40af
RM
6161Wed Feb 14 01:08:58 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6162
a1c46301
RM
6163 * posix/execvp.c: When executing shell on script, first arg is
6164 full file name, not argv[0].
6165
6166 * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
6167 * mach/Machrules [no_deps]: Inhibit interface rules.
6168
de1b40af
RM
6169 * malloc/Makefile (distribute): Removed TODO.
6170
363113d0
RM
6171Tue Feb 13 05:12:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6172
de1b40af
RM
6173 * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
6174 caller column.
6175
ae4c4dae
RM
6176 * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
6177
4eea716e
RM
6178 * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
6179
2a072de4
RM
6180 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
6181 (sysdep_routines): Append setfpucw.
6182 (extra-objs): Append ieee-fpucw.o.
6183 (install-lib): Append libieee.a.
6184 (libieee.a): New target.
6185 * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
6186 * sysdeps/unix/sysv/linux/i386/fpu_control.h
6187 (_FPU_GETCW, _FPU_SETCW): New macros.
6188 (fpu_control_t): New typedef.
6189 (__setfpucw): Use fpu_control_t for argument type.
6190 * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
6191
6192 * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
6193
363113d0
RM
6194 * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
6195 * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
6196
01f3e03b
RM
6197Sat Feb 10 13:09:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6198
46d7de19
RM
6199 * sysdeps/unix/sysv/linux/m68k/brk.c,
6200 sysdeps/unix/sysv/linux/m68k/mmap.S,
6201 sysdeps/unix/sysv/linux/m68k/select.S,
6202 sysdeps/unix/sysv/linux/m68k/sigcontext.h,
6203 sysdeps/unix/sysv/linux/m68k/sigreturn.S,
6204 sysdeps/unix/sysv/linux/m68k/socket.S,
6205 sysdeps/unix/sysv/linux/m68k/syscall.S,
6206 sysdeps/unix/sysv/linux/m68k/sysdep.S,
6207 sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
6208
13987e68
RM
6209 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
6210
3585d6bf
RM
6211 * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
6212 sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
6213
01f3e03b
RM
6214 * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
6215 MAP_FILE if not already defined.
6216
6217 * elf/elf.h: Add m68k reloc definitions.
6218 * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
6219
dbdb6189
RM
6220Tue Feb 13 00:12:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6221
d2c23123
RM
6222 * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
6223 this macro declare extra leading args.
6224
6225 * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
6226
38334018
RM
6227 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
6228 elf_machine_relplt): New macros.
6229 * elf/dl-runtime.c: New file.
6230 * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
6231
dbdb6189
RM
6232 * gmon/Makefile (headers): Remove machine-gmon.h.
6233 * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
6234 * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
6235 the asm name.
6236 (_mcount): Define normally, taking no args.
6237 Use __builtin_return_address to fetch PC values of caller and caller's
6238 caller.
6239
6240 * Makerules: Rewrote rules to update libc archives of all flavors.
6241 Define separate specific rules for each flavor using o-iterator.
6242
6243 * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
6244
6245Sat Feb 10 11:35:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6246
6247 * Makerules (ar-symtab-name): New macro. Replace all occurences
6248 of __.SYMDEF by $(ar-symtab-name).
6249 * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
6250
808c413c
RM
6251Mon Feb 12 03:10:41 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6252
dbdb6189
RM
6253 * Makefile (configure, %/configure): Depend on aclocal.m4.
6254 * Make-dist (configure, %/configure): Likewise.
6255
6256 * sysdeps/unix/Makefile: Include s-proto.d for its deps.
6257
6258 * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
6259 only needed in the implementation, not for any users.
6260
6261 * time/northamerica: Updated from ADO 96c, new rules for Mexico in
6262 1996.
6263
25f9784e
RM
6264 * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
6265 * sunrpc/pm_getmaps.c: Likewise.
6266
1fe58993
RM
6267 * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
6268 so real syscalls override unix/sysv/*.c on sysv-derived systems
6269 that have them.
6270 * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
6271 override unix/sysv/settimeofday.c since that overrides
6272 unix/syscalls.list.
6273
6274 * Makeconfig (+link): Put $(link-libc) after deps from $^,
6275 regardless of where libc.a appears in the deps.
6276
808c413c
RM
6277 * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
6278 Add __waitid.
6279 * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
6280 Define __ name for sigprocmask.
6281 * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
6282 Add getsysinfo.
6283 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
6284 * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
6285 * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
6286 * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
6287 Add getdents, wait3, waitpid.
6288 * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
6289 settimeofday, sigsuspend, sstk, utimes.
6290 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6291 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6292 * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
6293 Removed sigtramp.
6294 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
6295 * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
6296 * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
6297 * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
6298 * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
6299 * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
6300 * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
6301 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
6302 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
6303 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
6304 * sysdeps/unix/sysv/irix4/wait3.S: File removed.
6305 * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
6306 * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
6307 * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
6308 * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
6309 * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
6310 * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
6311
63f89404
RM
6312 * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
6313 FORWARD_SIGEXC to one. Uncomment setting of thread exc port, and
6314 move it to last thing.
6315
186588d6
RM
6316Sat Feb 10 05:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
6317
6318 * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
6319
6320 * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
6321
6a032d81
RM
6322Sat Feb 10 04:18:48 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6323
6324 * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
6325 the file.
6326
6327Fri Feb 9 11:46:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6328
6329 * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
6330 CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
6331
6332 * hurd/Makefile (user-interfaces): Added hurd/tioctl.
6333
56f778c9
RM
6334Thu Feb 8 18:55:27 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6335
6336 * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
6337
4ca84cff
RM
6338Wed Feb 7 18:48:30 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6339
a482b5a5
RM
6340 * Makefile (subdirs): Added wcsmbs.
6341 * wcsmbs: New directory of wide char/multibyte char functions from
6342 drepper.
6343
4ca84cff
RM
6344 * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
6345 * hurd/report-wait.c: New file.
6346 * hurd/Makefile (routines): Added report-wait.
6347
6348 * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
6349
6350 * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
6351 New type.
6352 (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
6353 * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
6354 Structure moved to intr-msg.h; include that.
6355
6356 * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
6357 (CFLAGS-scheck.c): New variable.
6358
6359 * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
6360 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
6361 __hurd_threadvar_stack_mask): New variables.
6362
6363 * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
6364 its new message port.
6365
6366 * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
6367
6368 * configure.in (uname): Add quoting.
6369
6370 * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
6371 * hurd/fchroot.c: Likewise.
6372
6373 * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
6374 __attribute__ ((__mode__ (__XX__))).
6375
6376Wed Feb 7 03:24:05 1996 Torbjorn Granlund <tege@tmg.se>
6377
6378 * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
6379 destination cache lines.
6380 (WORD_COPY_BWD): Likewise.
6381
6382Wed Feb 7 14:16:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6383
6384 * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
6385 file name first thing, before $(native-compile) changes directories.
6386
6387 From Gord Matzigkeit <gord@enci.ucalgary.ca>:
6388 * sysdeps/unix/make_errlist.c: Use strerror if available.
6389 * sysdeps/unix/configure.in: New file
6390
6391 * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
6392 * sysdeps/unix/bsd/sun/sigvec.S: File removed.
6393
6394 * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
6395 * sysdeps/stub/connect.c: Likewise.
6396 * sysdeps/stub/bind.c: Likewise.
6397
6398 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
6399 "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
6400 another dir_lookup of "".
6401
b20e47cb
RM
6402Tue Feb 6 12:46:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
6403
6404 * libc-symbols.h (weak_alias, weak_symbol): added definitions
6405 for ECOFF (HAVE_ECOFF).
6406
1ac3b08e
RM
6407Fri Feb 2 13:09:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6408
6409 * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
6410
54139447
RM
6411Wed Jan 31 20:08:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6412
6413 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
6414 when cancelled before RPC.
6415
01cdeca0
RM
6416Tue Jan 30 13:32:05 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6417
6418 * dirent/scandir.c: Allocate dirents with correct size for name, and
6419 copy with correct size.
6420
6421 * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
6422
6423 * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
6424 flag bits.
6425 (__vfscanf): Fix checking of extra type modifiers.
6426
6427 * time/asia, time/australasia, time/backward: Updated from ADO 96b.
6428
6429Tue Jan 30 12:17:26 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
6430
6431 * stdlib/strtod.c: Only negate exponent when there really is one.
6432
6433 * stdio-common/vfscanf.c: Accept type modifiers on %n.
6434 Fix FP number parsing.
6435
f0b11018
RM
6436Mon Jan 29 21:53:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6437
6438 * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
6439
6440 * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
6441
6442Mon Jan 29 16:29:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
6443
6444 * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
6445 include an increment for each operation allowed on each fd.
6446
6447Mon Jan 29 11:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6448
6449 * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
6450
6451 * Makefile: Use -include for sysd-dirs.
6452
6453 * configure.in (uname): Check for uname in syscalls.list files.
6454 * sysdeps/unix/sysv/syscalls.list: Remove uname.
6455 * sysdeps/unix/syscalls.list: Add uname.
6456
6457 * stdlib/strtol.c (weak1): New macro, to get the right name declared
6458 weak.
6459
6460 * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
6461
6462 * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
6463 (dbm_open): Use dynamic allocation for file name buffer, instead of
6464 limitting its size to MAXPATHLEN.
6465
6466 * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
6467 buffer, instead of limitting its size to MAXPATHLEN.
6468
6469 * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
6470 * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
6471
429ed67b
RM
6472Sun Jan 28 19:42:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6473
6474 * time/Makefile: Fix check for cross compiling.
6475
19c3f208
RM
6476Thu Jan 25 21:10:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6477
6478 * db/Makefile (subdir-dirs): Renamed from dbdirs.
6479
6480 * Makerules (distinfo-vars): Add subdir-dirs.
6481
6482 * MakeTAGS: Remove vpath directives.
6483 (all-dirs): Prepend $(subdir-dirs).
6484 (all-sources, all-headers): Use wildcard to find sources.
6485
6486Mon Jan 29 10:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6487
6488 * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
6489 variables.
6490
6491 * mach/msgserver.c: Declare DEMUX arg with prototype.
6492
dc825f85
RM
6493Sun Jan 28 17:25:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6494
6495 * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
6496 make C++ happy.
6497 * alpha/jmp_buf.h: Likewise.
6498 * m68k/jmp_buf.h: Likewise.
6499 * mips/jmp_buf.h: Likewise.
6500 * sparc/jmp_buf.h: Likewise.
6501 * vax/jmp_buf.h: Likewise.
6502
6503 * sysdeps/generic/memmem.c: Fix return value in case where
6504 NEEDLE_LEN==0.
6505
6506 * hurd/hurdlookup.c (__file_name_lookup_under,
6507 __file_name_lookup): Restrict mode with umask.
6508 * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
6509 * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
6510
eb8c0f2d
RM
6511Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6512
6513 * stdlib/strtol.c: Undo last change. ANSI C changed since the
6514 draft I checked yesterday. Sigh.
6515
8dad333d
RM
6516Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6517
6518 * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
6519
a66067be
RM
6520Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6521
ebc53fbe
RM
6522 * malloc/mcheck.c (mabort): Declare prototype.
6523
555f3a39
RM
6524 * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
6525
6526 * Makerules: Use -include for generated makefiles.
6527
6528 * errno.h: Don't declare errno if it's defined as a macro.
6529
914d9d7b
RM
6530 * stdio-common/vfscanf.c: Disallow l flag after ll or L.
6531
a66067be
RM
6532 * stdio-common/Makefile (tests): Add scanf[1-9].
6533 * stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
6534
0793d348
RM
6535Wed Jan 24 04:18:36 1996 Paul Eggert <eggert@twinsun.com>
6536
6537 * strftime.c (strftime):
6538 When invoking self, check whether the subsidiary invocation failed.
6539 Use "???" (not "") to denote unknown time zone information.
6540
6541 Make this source file portable to standalone contexts (e.g. GNU Emacs).
6542 <config.h>: Include if HAVE_CONFIG_H is defined.
6543 (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
6544 defined if _LIBC or if <config.h> defines them.
6545 <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
6546 <sys/types.h>: New include; some hosts require it for `time_t'.
6547 <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
6548 <limits.h>: Include only if HAVE_LIMITS_H.
6549 <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
6550 (memcpy): Define in terms of bcopy if !STDC_HEADERS.
6551 (__P, PTR): Define if not already defined.
6552 (__tzname, __daylight, __timezone): Remove macros; no longer needed.
6553 (add, strftime): Don't use NULL, for portability to some weird hosts.
6554 (fmt): If !_LIBC, don't assume sprintf returns a count.
6555 (week, strftime): Use old-style function declarations.
6556 (weekday_name, month_name): New constants.
6557 (strftime): Use traditional C values if locale support isn't available.
6558 Use `const' instead of CONST. For time zones, use tm_zone if
6559 possible, then fall back on tzname. Don't check for multibyte
6560 characters unless mblen is supported. Use formats like %02d instead
6561 of %.2d, for portability to older hosts.
6562
6563Wed Jan 24 00:07:52 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6564
6565 * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
6566 (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
6567 Fix bug in recognition of %ll flag for long long.
6568 Fix overeager checks for conflicting type modifiers.
6569 With ' flag, match thousands separators for decimal numbers.
6570
6571Tue Jan 23 22:02:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6572
6573 * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
6574
6575 * resolv/Makefile (CFLAGS): Disable some warnings.
6576
6577 * sysdeps/generic/Makefile (elided-routines): Removed hypot.
6578 (+gccwarn): Set with override.
6579
6580 * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
6581
6582 * posix/Makefile (CFLAGS-regex.c): New variable.
6583
6584 * malloc/Makefile (CFLAGS-obstack.c): New variable.
6585
6586 * io/Makefile (CFLAGS-fts.c): New variable.
6587 * io/fts.c (fts_open): Use prototypes for COMPAR decl.
6588
6589Tue Jan 23 21:35:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
6590
6591 * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
6592 case is '\0'-terminated.
6593
6594Tue Jan 23 19:49:54 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6595
6596 * elf/rtld.c (dl_main): Support additional args in --list mode for
6597 debugging: look them up as symbol names and print values.
6598
6599 * misc/getttyent.c (skip, value): Declare with prototypes in file
6600 scope.
6601
6602 * csu/initfini.c (_init): Explicitly set a variable that is
6603 pointer to volatile with the address of __gmon_start__, to avoid
6604 the test being optimized out.
6605
1d8dc429
RM
6606Mon Jan 22 10:40:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6607
6608 * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
6609
6610 * io/fts.h (FTSENT): Define fts_compar member with prototype.
6611
6612 * hurd/hurd.h: Use prototype in getcttyid decl.
6613
6614 * stdlib/l64a.c: Fix typo in last change.
6615
6616 * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
6617 for determining size of types.
6618 * stdlib/srand48_r.c: Likewise.
6619
6620 * misc/utmp.h: Declare login, logout, logwtmp.
6621 * misc/logout.c: Declare argument as pointer to const.
6622 * misc/login.c: Likewise.
6623 * misc/logwtmp.c: Likewise.
6624 Include time.h, string.h.
6625
6626 * misc/efgcvt_r.c: Include stdlib.h.
6627
6628 * io/mknod.c: Include sys/types.h.
6629
6630 * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
6631
6632 * csu/gmon-start.c (_start, etext): Declare with prototypes.
6633
6634 * stdio-common/vfscanf.c (%[): Fix range handling.
6635
bbed653c
RM
6636Sun Jan 21 00:55:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6637
f2f7f9e6
RM
6638 * misc/Makefile (headers): Rename queue.h to sys/queue.h.
6639 * misc/queue.h: Moved to misc/sys/queue.h.
6640
bbed653c
RM
6641 * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
6642 sys/sem.h.
6643
6644 * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
6645
6646 * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
6647 literal byte values.
6648
6649 * misc/bsd-compat.c (getpgrp): Define with prototype.
6650
6651 * misc/init-misc.c (__progname_full): New variable.
6652 (program_invocation_name, program_invocation_short_name): New aliases.
6653 (__init_misc): Define with prototype. Set __progname_full.
6654 * misc/progname.c: File removed.
6655 * misc/Makefile (aux): Remove progname.
6656
6657 * misc/hsearch_r.c (isprime): Define with prototype.
6658
6659 * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
6660 * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
6661 * sysdeps/unix/bsd/setegid.c: Likewise.
6662
522548fb
RM
6663Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6664
eb63bdd0
RM
6665 * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
6666 __tcdrain.
6667
6668 * posix/glob.c (glob): Use prototype in getlogin decl.
6669
6670 * db/ndbm.h: Declare dbm_error, dbm_clearerr.
6671 * db/db/db.c (__dberr): Define with prototype.
6672 (__dbpanic): Use prototypes in casts.
6673 * db/hash/hash_log2.c: Add prototype decl.
6674
6675 * sysdeps/generic/_strerror.c (_strerror_internal): Define with
6676 prototype.
6677
522548fb
RM
6678 * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
6679 They will be overridden with syscalls if extant by unix/syscalls.list.
6680
6681 * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
6682
6683 * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
6684 * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
6685
aeb72b16
RM
6686Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6687
97aa195c
RM
6688 * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
6689
6690 * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
6691 get args.
6692
6693 * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
6694 defines GNU extensions.
6695 * posix/fnmatch.c: Likewise.
6696
9b29e6f7
RM
6697 Replaced all simple system call files *.S throughout sysdeps/unix
6698 with syscalls.list files to be processed by make-syscalls.sh.
6699 * sysdeps/unix/s-proto.S: New file.
6700 * sysdeps/unix/syscalls.list: New file.
6701 * sysdeps/unix/bsd/syscalls.list: New file.
6702 * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
6703 * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
6704 * sysdeps/unix/bsd/osf/syscalls.list: New file.
6705 * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
6706 * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
6707 * sysdeps/unix/bsd/sun/syscalls.list: New file.
6708 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
6709 * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
6710 * sysdeps/unix/common/syscalls.list: New file.
6711 * sysdeps/unix/inet/syscalls.list: New file.
6712 * sysdeps/unix/mman/syscalls.list: New file.
6713 * sysdeps/unix/sysv/syscalls.list: New file.
6714 * sysdeps/unix/sysv/irix4/syscalls.list: New file.
6715 * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
6716 * sysdeps/unix/sysv/linux/syscalls.list: New file.
6717 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
6718 * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
6719 * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
6720 * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
6721 * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
6722 * sysdeps/unix/acct.S: File removed.
6723 * sysdeps/unix/chdir.S: File removed.
6724 * sysdeps/unix/chmod.S: File removed.
6725 * sysdeps/unix/chown.S: File removed.
6726 * sysdeps/unix/chroot.S: File removed.
6727 * sysdeps/unix/close.S: File removed.
6728 * sysdeps/unix/configure: File removed.
6729 * sysdeps/unix/configure.in: File removed.
6730 * sysdeps/unix/dup.S: File removed.
6731 * sysdeps/unix/fcntl.S: File removed.
6732 * sysdeps/unix/fsync.S: File removed.
6733 * sysdeps/unix/getgid.S: File removed.
6734 * sysdeps/unix/getpid.S: File removed.
6735 * sysdeps/unix/getuid.S: File removed.
6736 * sysdeps/unix/ioctl.S: File removed.
6737 * sysdeps/unix/kill.S: File removed.
6738 * sysdeps/unix/link.S: File removed.
6739 * sysdeps/unix/lseek.S: File removed.
6740 * sysdeps/unix/open.S: File removed.
6741 * sysdeps/unix/ptrace.S: File removed.
6742 * sysdeps/unix/read.S: File removed.
6743 * sysdeps/unix/reboot.S: File removed.
6744 * sysdeps/unix/setgid.S: File removed.
6745 * sysdeps/unix/setuid.S: File removed.
6746 * sysdeps/unix/sync.S: File removed.
6747 * sysdeps/unix/umask.S: File removed.
6748 * sysdeps/unix/unlink.S: File removed.
6749 * sysdeps/unix/write.S: File removed.
6750 * sysdeps/unix/bsd/flock.S: File removed.
6751 * sysdeps/unix/bsd/getdtsz.S: File removed.
6752 * sysdeps/unix/bsd/getpagesize.S: File removed.
6753 * sysdeps/unix/bsd/killpg.S: File removed.
6754 * sysdeps/unix/bsd/profil.S: File removed.
6755 * sysdeps/unix/bsd/readv.S: File removed.
6756 * sysdeps/unix/bsd/settimeofday.S: File removed.
6757 * sysdeps/unix/bsd/sigblock.S: File removed.
6758 * sysdeps/unix/bsd/sigpause.S: File removed.
6759 * sysdeps/unix/bsd/sigsetmask.S: File removed.
6760 * sysdeps/unix/bsd/sigstack.S: File removed.
6761 * sysdeps/unix/bsd/sigvec.S: File removed.
6762 * sysdeps/unix/bsd/utimes.S: File removed.
6763 * sysdeps/unix/bsd/writev.S: File removed.
6764 * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
6765 * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
6766 * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
6767 * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
6768 * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
6769 * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
6770 * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
6771 * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
6772 * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
6773 * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
6774 * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
6775 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
6776 * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
6777 * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
6778 * sysdeps/unix/bsd/osf/msync.S: File removed.
6779 * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
6780 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
6781 * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
6782 * sysdeps/unix/bsd/sun/getdents.S: File removed.
6783 * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
6784 * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
6785 * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
6786 * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
6787 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
6788 * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
6789 * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
6790 * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
6791 * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
6792 * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
6793 * sysdeps/unix/common/access.S: File removed.
6794 * sysdeps/unix/common/adjtime.S: File removed.
6795 * sysdeps/unix/common/dup2.S: File removed.
6796 * sysdeps/unix/common/fchmod.S: File removed.
6797 * sysdeps/unix/common/fchown.S: File removed.
6798 * sysdeps/unix/common/ftruncate.S: File removed.
6799 * sysdeps/unix/common/getgroups.S: File removed.
6800 * sysdeps/unix/common/getitimer.S: File removed.
6801 * sysdeps/unix/common/getpgid.S: File removed.
6802 * sysdeps/unix/common/getpriority.S: File removed.
6803 * sysdeps/unix/common/getrlimit.S: File removed.
6804 * sysdeps/unix/common/getrusage.S: File removed.
6805 * sysdeps/unix/common/gettimeofday.S: File removed.
6806 * sysdeps/unix/common/mkdir.S: File removed.
6807 * sysdeps/unix/common/readlink.S: File removed.
6808 * sysdeps/unix/common/rename.S: File removed.
6809 * sysdeps/unix/common/rmdir.S: File removed.
6810 * sysdeps/unix/common/select.S: File removed.
6811 * sysdeps/unix/common/setgroups.S: File removed.
6812 * sysdeps/unix/common/setitimer.S: File removed.
6813 * sysdeps/unix/common/setpgid.S: File removed.
6814 * sysdeps/unix/common/setpriority.S: File removed.
6815 * sysdeps/unix/common/setregid.S: File removed.
6816 * sysdeps/unix/common/setreuid.S: File removed.
6817 * sysdeps/unix/common/setrlimit.S: File removed.
6818 * sysdeps/unix/common/swapon.S: File removed.
6819 * sysdeps/unix/common/symlink.S: File removed.
6820 * sysdeps/unix/common/truncate.S: File removed.
6821 * sysdeps/unix/common/vhangup.S: File removed.
6822 * sysdeps/unix/inet/accept.S: File removed.
6823 * sysdeps/unix/inet/bind.S: File removed.
6824 * sysdeps/unix/inet/connect.S: File removed.
6825 * sysdeps/unix/inet/gethostid.S: File removed.
6826 * sysdeps/unix/inet/gethostname.S: File removed.
6827 * sysdeps/unix/inet/getpeername.S: File removed.
6828 * sysdeps/unix/inet/getsockname.S: File removed.
6829 * sysdeps/unix/inet/getsockopt.S: File removed.
6830 * sysdeps/unix/inet/listen.S: File removed.
6831 * sysdeps/unix/inet/recv.S: File removed.
6832 * sysdeps/unix/inet/recvfrom.S: File removed.
6833 * sysdeps/unix/inet/recvmsg.S: File removed.
6834 * sysdeps/unix/inet/send.S: File removed.
6835 * sysdeps/unix/inet/sendmsg.S: File removed.
6836 * sysdeps/unix/inet/sendto.S: File removed.
6837 * sysdeps/unix/inet/sethostid.S: File removed.
6838 * sysdeps/unix/inet/sethostname.S: File removed.
6839 * sysdeps/unix/inet/setsockopt.S: File removed.
6840 * sysdeps/unix/inet/shutdown.S: File removed.
6841 * sysdeps/unix/inet/socket.S: File removed.
6842 * sysdeps/unix/inet/socketpair.S: File removed.
6843 * sysdeps/unix/mman/madvise.S: File removed.
6844 * sysdeps/unix/mman/mmap.S: File removed.
6845 * sysdeps/unix/mman/mprotect.S: File removed.
6846 * sysdeps/unix/mman/msync.S: File removed.
6847 * sysdeps/unix/mman/munmap.S: File removed.
6848 * sysdeps/unix/sysv/alarm.S: File removed.
6849 * sysdeps/unix/sysv/ftime.S: File removed.
6850 * sysdeps/unix/sysv/nice.S: File removed.
6851 * sysdeps/unix/sysv/pause.S: File removed.
6852 * sysdeps/unix/sysv/poll.S: File removed.
6853 * sysdeps/unix/sysv/s_getdents.S: File removed.
6854 * sysdeps/unix/sysv/signal.S: File removed.
6855 * sysdeps/unix/sysv/stime.S: File removed.
6856 * sysdeps/unix/sysv/time.S: File removed.
6857 * sysdeps/unix/sysv/times.S: File removed.
6858 * sysdeps/unix/sysv/ulimit.S: File removed.
6859 * sysdeps/unix/sysv/uname.S: File removed.
6860 * sysdeps/unix/sysv/utime.S: File removed.
6861 * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
6862 * sysdeps/unix/sysv/irix4/msync.S: File removed.
6863 * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
6864 * sysdeps/unix/sysv/irix4/signal.S: File removed.
6865 * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
6866 * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
6867 * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
6868 * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
6869 * sysdeps/unix/sysv/linux/fork.S: File removed.
6870 * sysdeps/unix/sysv/linux/getpgid.S: File removed.
6871 * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
6872 * sysdeps/unix/sysv/linux/getsid.S: File removed.
6873 * sysdeps/unix/sysv/linux/gtty.S: File removed.
6874 * sysdeps/unix/sysv/linux/mlock.S: File removed.
6875 * sysdeps/unix/sysv/linux/mlockall.S: File removed.
6876 * sysdeps/unix/sysv/linux/mount.S: File removed.
6877 * sysdeps/unix/sysv/linux/munlock.S: File removed.
6878 * sysdeps/unix/sysv/linux/munlockall.S: File removed.
6879 * sysdeps/unix/sysv/linux/pipe.S: File removed.
6880 * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
6881 * sysdeps/unix/sysv/linux/setpgid.S: File removed.
6882 * sysdeps/unix/sysv/linux/setsid.S: File removed.
6883 * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
6884 * sysdeps/unix/sysv/linux/sigpending.S: File removed.
6885 * sysdeps/unix/sysv/linux/stty.S: File removed.
6886 * sysdeps/unix/sysv/linux/umount.S: File removed.
6887 * sysdeps/unix/sysv/linux/wait4.S: File removed.
6888 * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
6889 * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
6890 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
6891 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
6892 * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
6893 * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
6894 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
6895 * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
6896 * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
6897 * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
6898 * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
6899 * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
6900 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
6901
6902 * io/mknod.c: New file.
6903
aeb72b16
RM
6904 * Makerules (COMPILE.s): New variable.
6905
6906 * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
6907 make-syscalls.sh and include it.
6908 [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
6909 sysd-syscalls.
6910 * sysdeps/unix/make-syscalls.sh: New file.
6911
6912 * Makerules (COMPILE.S): New variable.
6913
6f0017d1
RM
6914Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6915
285a3eee
RM
6916 * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
6917 _STAT_VER_SVR4, _STAT_VER): New macros.
6918 (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
6919
6920 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
6921 New macros.
6922
c43b8c4b
RM
6923 * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
6924 (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
6925 [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
6926 as `extern inline's calling the `x' functions.
6927 * io/fstat.c: New file.
6928 * io/lstat.c: New file.
6929 * io/stat.c: New file.
6930 * sysdeps/generic/lstat.c: File removed.
6931 * sysdeps/generic/lxstat.c: New file.
6932 * sysdeps/mach/hurd/fstat.c: File removed.
6933 * sysdeps/mach/hurd/fxstat.c: New file.
6934 * sysdeps/mach/hurd/lstat.c: File removed.
6935 * sysdeps/mach/hurd/lxstat.c: New file.
6936 * sysdeps/mach/hurd/mknod.c: File removed.
6937 * sysdeps/mach/hurd/stat.c: File removed.
6938 * sysdeps/mach/hurd/xmknod.c: New file.
6939 * sysdeps/mach/hurd/xstat.c: New file.
6940 * sysdeps/stub/fstat.c: File removed.
6941 * sysdeps/stub/fxstat.c: New file.
6942 * sysdeps/stub/lstat.c: File removed.
6943 * sysdeps/stub/lxstat.c: New file.
6944 * sysdeps/stub/mknod.c: File removed.
6945 * sysdeps/stub/stat.c: File removed.
6946 * sysdeps/stub/xmknod.c: New file.
6947 * sysdeps/stub/xstat.c: New file.
6948 * sysdeps/unix/common/lstat.S: File removed.
6949 * sysdeps/unix/common/lxstat.c: New file.
6950 * sysdeps/unix/fstat.S: File removed.
6951 * sysdeps/unix/fxstat.c: New file.
6952 * sysdeps/unix/mknod.S: File removed.
6953 * sysdeps/unix/stat.S: File removed.
6954 * sysdeps/unix/sysv/linux/fstat.c: File removed.
6955 * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
6956 * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
6957 * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
6958 * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
6959 * sysdeps/unix/sysv/linux/lstat.c: File removed.
6960 * sysdeps/unix/sysv/linux/mknod.c: File removed.
6961 * sysdeps/unix/sysv/linux/stat.c: File removed.
6962 * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
6963 * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
6964 * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
6965 * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
6966 * sysdeps/unix/xmknod.c: New file.
6967 * sysdeps/unix/xstat.c: New file.
6968 * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
6969 * misc/Makefile (routines): Remove mknod.
6970
6971 * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
6972 Add missing ; in little-endian case.
6973
44534645
RM
6974 * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
6975 Define this instead of ELF_DYNAMIC_DO_RELA.
6976
6f0017d1
RM
6977 * sysdeps/unix/sysv/time.S: Moved from sysv4.
6978 * sysdeps/unix/sysv/irix4/time.S: File removed.
6979
6980 * sysdeps/unix/sysv/linux/signum.h: Moved from
6981 sysdeps/unix/sysv/linux/i386.
6982 (_NSIG): Move inside #ifdef _SIGNAL_H.
6983
b17178fc
RM
6984Tue Jan 16 17:37:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6985
b6e9b25b
RM
6986 * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
6987 * sysdeps/unix/telldir.c: Fix position calculation to account for
6988 buffered data properly.
6989
13bc775d
RM
6990 * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
6991 library.
6992
5f3d5c2b
RM
6993 * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
6994 * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
6995 global.
6996 [! HAVE_INITFINI]: Only make it a constructor in this case.
6997
d99d7e26
RM
6998 * gmon/Makefile (CFLAGS-mcount.c): New variable.
6999 (mcount.po): New target.
7000
7001 * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
7002
b17178fc
RM
7003 * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
7004 (initfini): Compile initfini.c with -fPIC.
7005
93995795
RM
7006Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7007
7008 * sysdeps/mips/bytesex.h: Add default byte sex. By Ralf Baechle.
7009
7010 * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
7011 member of `struct timex' instead of `modes'. From Andreas Schwab.
7012
7013 * sysdeps/unix/sysv/linux/mknod.c: New file. Generic C version.
7014 * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
7015
7016 * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
7017 [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
7018 [$(subdir) = misc] (headers): Append sys/mount.h.
7019
7020 * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
7021 New files. Implement system calls.
7022 * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
7023
7024 * sysdeps/unix/sysv/linux/ptrace.c: New file. Wrapper around
7025 ptrace system call.
7026 * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
7027
7028 * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
7029 types for i386/Linux.
7030
b17178fc
RM
7031Sun Jan 14 17:51:09 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7032
b8aec9fa
RM
7033 * MakeTAGS (all-sources, all-headers): Always search the
7034 current directory first.
7035
7036 * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
7037 found.
7038
b17178fc
RM
7039 * stdio-common/vfscanf.c (inchar, conv_error, input_error,
7040 memory_error): Add cast to void to avoid gcc warning.
7041 (vfscanf): Rewrite character class parsing to make it more efficient.
7042
7176f4e4
RM
7043 * misc/efgcvt_r.c (ecvt_r): Handle negative values.
7044
7045 * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
7046 * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
7047 sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
7048
7049 * stdio-common/printf_fp.c (__printf_fp): Fix parameter
7050 declaration.
7051
7052 * sysdeps/generic/putenv.c (putenv): Fix second argument of
7053 setenv.
7054
7055 * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
7056 * sysdeps/ieee754/cabs.c: Don't define hypot here.
7057
7058 * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
7059 definition of ieee_nan alternative.
7060
7061 * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
7062 prefix spec.
7063
7064 * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
7065
7066 * sysdeps/m68k/fpu/__math.h: Include <errno.h>. Replace obsolete
7067 __CONSTVALUE by attribute.
7068 (floor): Round to negative infinity.
7069 (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
7070 clash when compiling source.
7071 (pow): Handle x == 0 and x < 0.
7072 (ceil, __isinf, __isnan): Fix register constraints.
7073 (__isinfl, __isnanl): Added.
7074 * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
7075 sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
7076 sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
7077
7078 * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
7079 assembler syntax.
7080
7081 * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
7082 argument.
7083
7084 * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
7085 clock_t conversion.
7086 (clock): Don't multiply by CLOCKS_PER_SEC.
7087
7088 * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
7089
7090 * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
7091 __end.
7092
7093 * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
7094
7095 * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
7096
7097 * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
7098
da128169
RM
7099Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7100
7101 * stdlib/strtol.c: Return correct pointer for strings
7102 like "0xyz" and base 0 or 16.
7103
7104 * string/strxfrm.c: Handle case for LENGTH == 0 correct.
7105
7106 * sunrpc/etc.rpc: Add some more known protocols.
7107
02ac66c5
RM
7108Fri Jan 12 13:40:01 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7109
7110 * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
7111
7112 * posix/glob.c (glob): Add parens in glob call flags arg for
7113 GLOB_BRACE case.
7114
7115 * string/string.h (strdupa): New macro.
7116
7117 * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
7118 terminator on empty set. From drepper.
7119
d94d8f2a
RM
7120Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7121
7122 * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
7123 referent for STB_LOCAL.
7124
72d8cdf0
RM
7125Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7126
7127 * time/africa, time/antarctica, time/asia, time/australasia,
7128 time/europe, time/northamerica, time/pacificnew, time/solar87,
7129 time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
7130
22930c9b
RM
7131Tue Jan 9 16:10:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7132
7133 * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
7134 segment to find location, mprotect excess region to no access,
7135 don't munmap it.
7136
7137 * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
7138 KERN_NO_SPACE for fixed location, deallocate it and try again.
7139
7410183b
RM
7140Mon Jan 8 17:43:23 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7141
7142 * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
7143 * locale/hash.c: Renamed to locale/locfile-hash.c.
7144
a2e1b046
RM
7145Sat Jan 6 16:39:14 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7146
7147 * Makefile (subdirs): Added db.
7148
7149 * resolv/Makefile (routines): Add res_data.
7150 * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
7151 Updated from BIND 4.9.3 final release.
7152
7153 * elf/dynamic-link.h (elf_get_dynamic_info): Handle
7154 processor-specific tags.
7155 (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
7156
7157 * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
7158 * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
7159
7160 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
7161 arg LAZY. Only do our work if LAZY and there is a DT_JMPREL record.
7162 * elf/dl-reloc.c (_dl_relocate_object): Call
7163 elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
7164
7165 * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
7166 Align end of load segment only to page size, not to segment alignment.
7167
7974fe21
RM
7168Thu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7169
7170 * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
7171 preemption interface.
7172
7173 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7174 Use _hurdsig_catch_memory_fault.
7175
7176 * hurd/Makefile (headers): Add hurd/sigpreempt.h.
7177 (sig): Add catch-signal.
7178
7179 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
7180 Rewritten using a preempter in new interface.
7181 * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
7182 (_hurdsig_catch_memory_fault): New macro.
7183
fb8e70d6
RM
7184Wed Jan 3 20:23:42 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7185
7186 * hurd/catch-signal.c: New file.
7187
7188 * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
7189
7190 * hurd/hurdsig.c: Use new hurdfault.h interface.
7191 (abort_all_rpcs): Mutate return value to EINTR in threads whose
7192 replies we will wait for.
7193
7194 * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
7195 do ourselves last.
7196
7197Wed Jan 3 19:17:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
7198
7199 * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
7200 to auth_makeauth() in the right order.
7201
7202Wed Jan 3 17:19:04 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7203
7204 * sysdeps/generic/strsep.c: Rewritten.
7205
7206 * sysdeps/mach/hurd/fork.c: Use a different workaround for the
7207 suspended page fault deadlock kernel bug: thread_abort our signal
7208 thread first thing after proc_dostop.
7209
7210 * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
7211 recognize rootness properly.
7212
fc4026d8
RM
7213Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7214
71733723
RM
7215 * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
7216 (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
7217 * hurd/hurd/sigpreempt.h: New file.
7218 * hurd/preempt-sig.c: Rewritten with new interface.
7219 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
7220 preempters being unwound past.
fb8e70d6 7221 * hurd/hurdsig.c: Use new signal preemption interface.
71733723
RM
7222
7223 * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
7224 release.
7225
7226 * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
7227 compatibility.
7228
fc4026d8
RM
7229 * misc/queue.h: New file, incorporated from 4.4BSD.
7230 * misc/Makefile (headers): Add queue.h.
7231
7232 * posix/sys/types.h [__USE_BSD]: Include endian.h.
7233
7234 * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
7235 New macros.
7236
0a95f04d
RM
7237Thu Dec 28 10:21:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7238
7239 * sysdeps/generic/confname.h: Define all names as self-referential
7240 macros so #ifdef works.
7241
7242 * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
7243 of _hurd_signal_preempters[SIGNO].
7244
be7e3b7e
RM
7245Mon Dec 25 20:56:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7246
7247 * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
7248 EADDRINUSE. If translated node doesn't grok ifsock protocol,
7249 return EADDRINUSE.
7250
7251 * sysdeps/mach/hurd/connect.c: Make address arg
7252 `const struct sockaddr_un *'.
7253 The redecl is kosher and avoids another variable for AF_LOCAL case.
7254 * sysdeps/mach/hurd/sendto.c: Likewise.
7255 * sysdeps/mach/hurd/bind.c: Likewise.
7256
7257 * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
7258 code for GCC >= 2.7; use __transparent_union__ for name safety;
7259 add several sockaddr flavors.
7260 (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
7261 constructing the transparent union declarations.
7262 (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
7263 (bind, connect, sendto): Make the sockaddr argument use that.
7264
97532098
RM
7265Fri Dec 22 00:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7266
e0f09b6b
RM
7267 * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
7268 old vector.
7269 * sysdeps/mach/hurd/setuid.c: Likewise.
7270
97532098
RM
7271 * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
7272 right thing.
7273 * sysdeps/mach/hurd/setgid.c: Likewise.
7274 * sysdeps/mach/hurd/setreuid.c: Likewise.
7275 * sysdeps/mach/hurd/setregid.c: Likewise.
7276 * sysdeps/mach/hurd/setegid.c: Likewise.
7277 * sysdeps/mach/hurd/seteuid.c: Likewise.
7278
7279 * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
7280 proc_dostop call to work around kernel paging bug.
7281
2114e10a
RM
7282Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
7283
7284 * stdio-common/vfscanf.c: Correctly handle white space skipping.
7285 * stdio-common/Makefile (tests): Add bug11.
7286 * stdio-common/bug11.c: New file.
7287
97532098
RM
7288Thu Dec 21 12:19:32 1995 Miles Bader <miles@gnu.ai.mit.edu>
7289
7290 * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
7291 instead of putting it (and other uids) in the gids and leaving the
7292 old uids as is.
7293
8ef76445
RM
7294Wed Dec 20 18:23:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7295
7296 * stdio/internals.c (flushbuf): If the target is -1, always
7297 discard the buffer of read data.
7298 Only set TWIDDLED flag in !ALIGNED case.
7299 Never increment target or offset when old value is -1.
7300
f94a3574
RM
7301Tue Dec 19 17:00:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7302
7303 * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
7304 pgrp changes.
7305
755f55b0
RM
7306Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7307
7308 * stdio/fread.c: Don't increment __offset when it's -1.
7309
7310 * elf/rtld.c (dl_main): Prepend tab to "statically linked". Exit
7311 0 in that case.
7312
7313 * misc/err.c (vwarnx, vwarn): Fix major brainos.
7314
7315 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
7316 inheritance.
7317
8882961f
RM
7318Sun Dec 17 15:56:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
7319
7320 * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
7321
102800e0
RM
7322Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7323
7324 * Makerules: Use $(do-install-so) for installing shared objects.
7325 (do-install-so): New canned sequence. Make a symlink LIB.so after
7326 installing LIB.so.VERSION.
7327
7328 * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
7329
05be689b
RM
7330Fri Dec 15 04:41:22 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7331
7332 * stdio-common/Makefile (tests): Add bug10.
7333 * stdio-common/bug10.c: New file. From HJ Lu.
7334
7335 * stdio-common/tstdiomisc.c: Make more test-suite like: exit
7336 status tells about successful run.
7337
7338 * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
7339 format correctness.
7340 Correct handling of trailing white spaces in format + EOF.
7341
7342Fri Dec 15 01:31:56 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7343
7344 * stdio-common/Makefile (tests): Add bug8 and bug9.
7345 * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
7346
7347 * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
7348
7349 * stdlib/strtod.c: Correct spelling: nominator -> numerator.
7350 Thanks to Jim Meyering.
7351
7352Sat Nov 25 06:05:12 1995 H.J. Lu <hjl@nynexst.com>
7353
7354 * stdio-common/vfscanf.c: Always check width !=0.
7355 Correctly handle %%.
4984f343 7356
faf92f2a
RM
7357Thu Dec 14 02:28:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7358
7359 * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
7360 and cast STREAM to DIR * before passing to readdir and closedir.
7361
7362Wed Dec 13 22:06:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7363
7364 * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
7365 after aborting RPCs but before calling proc_mark_stop.
7366
3be01400
RM
7367Mon Dec 11 20:07:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7368
7369 * posix/glob.c [! STDC_HEADERS]: Declare getenv.
7370 (glob): Avoid using function as value.
7371
7372 * elf/rtld.c (dl_main): When mapping argument executable, set
7373 l_name to "", not l_libname.
7374 After loading DT_NEEDED library, set its l_type to lt_library.
7375
7376 * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
7377 VM_INHERIT. We can't handle MAP_INHERIT easily.
7378 Handle non-page-aligned addresses if congruent to offset.
7379
7380 * elf/dl-init.c: Skip the initializer for l_type lt_executable
7381 with l_name "". Start at _dl_loaded; don't skip the first element.
7382
7383 * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
7384 (MAP_COPY): Define to MAP_PRIVATE if undefined.
7385 (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
7386 If file it ET_EXEC, set its l_type to lt_executable.
7387
25b86c05
RM
7388Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7389
7390 * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
7391
787e4db9
RM
7392Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7393
7394 * locale/error.c, locale/error.h: Files removed.
7395 * locale/Makefile (distribute): Remove error.h.
7396 (lib-modules): Remove error.
7397
7398 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
7399 magic, return ENXIO if no ctty.
7400
7401 * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
7402 mapping if vm_map fails for that reason.
7403
7404 * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
7405 GLOB_TILDE, GLOB_NOMAGIC.
7406 (glob): Use stat instead of lstat to determine directoriness.
7407 * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
7408 New flag bits.
7409 (__GLOB_FLAGS): Include them.
7410 (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
7411 gl_stat.
7412
7413 * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
7414
7415 * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
7416 define all the bit values.
7417 (MAP_*, MCL_*): Macros removed.
7418
c994299d
RM
7419Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7420
7421 * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
7422 Updated from BIND 4.9.3-BETA27.
7423
7424Wed Dec 6 18:44:01 1995 Miles Bader <miles@gnu.ai.mit.edu>
7425
7426 * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
7427
7428 * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
7429 we get a delayed reply.
7430 Only grab values out of entries in TYPES that have SELECT_RETURNED
7431 turned on, and turn it on whenever an rpc returns.
7432 Only clear bits in the user's fdsets -- those needing to be set
7433 should be already.
7434 Use SELECT_ALL in appropiate places.
7435 (SELECT_RETURNED, SELECT_ALL): New macros.
7436
7437Wed Dec 6 09:10:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7438
7439 * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
7440
7441 * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
7442
edbba60a
RM
7443Tue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7444
7445 * misc/Makefile (headers): Add error.h, err.h.
7446 (routines): Add error, err.
7447 (gpl2lgpl): New variable.
7448 * misc/err.c: New file.
7449 * misc/err.h: New file.
7450 * misc/error.c, misc/error.h: New files.
7451
7452 * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
7453
7454 * Makeconfig (+link): Translate libc% from $^, not just libc.a.
7455 (link-libc): Append $(libc.so-version) to libc.so.
7456 (built-program-cmd): Fix comma usage.
7457 * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
7458 symlink to libc.so in the build directory.
7459 * Rules ($(others) $(tests)): Depend on the library that appears
7460 in $(link-libc).
7461 (%.out): Use $(built-program-cmd) in commands.
7462
7463 * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
7464
7465 * sysdeps/generic/setenv.c: Added canonical portability cruft.
7466 (setenv): Use realloc on LAST_ENVIRON instead of always copying.
7467 (unsetenv): New function.
7468 * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
7469 * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
7470
77a58cad
RM
7471Tue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7472
edbba60a 7473 * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
77a58cad
RM
7474
7475 * libio/iofscanf.c: Remove file.
7476
7477 * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
7478 termination.
7479
7480 * libio/iopopen.c: New file from GNU libio.
7481
7482 * libio/memstream.c: Fixed bug in fclose handling. Instead of
7483 providing a close callback we need a finish callback.
7484
7485 * libio/pclose.c: New file. Derived from popen.c in GNU libio.
7486
7487 * posix/gnu/types.h: Fixed typo.
7488
7489 * stdio-common/errnobug.c: fputs returns EOF in error case. Do
7490 not test for != 0.
7491
7492 * stdio-common/printf-parse.h (parse_one_spec): Do not force
7493 padding with ' ' if precision is given. Fix by HJ Lu.
7494
7495 * stdio-common/printf_fp.c: Fix comment.
7496
7497 * stdio-common/tfformat.c, stdio-common/tiformat.c,
7498 stdio-common/tstdiomisc.c: New files from GNU libio test suite.
7499
7500 * stdio-common/tstgetln.c: Provide ssize_t type when testing
7501 libio.
7502
7503 * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
7504 (vfprintf): Cleasr args_type array before using it.
7505 When printing 0 as an integer with precision 0 nothing must be
7506 written for the number.
7507 Based on patch by HJ Lu.
7508
7509 * stdio-common/vfscanf.c: Remove fixed input buffer. Now we
7510 have a dynamically extended buffer.
7511
7512 * stdlib/strtod.c: Merge with version in Linux libc. This fixes
7513 some bugs with handling of very small numbers and has different
7514 solution for formaer patches.
7515
7516 * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
7517 macros r1 and r2 to t1, and t2 resp. This is necessary because
7518 glibc headers also define r1.
7519
b5a08c5a
RM
7520Mon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7521
7522 * stdlib/gen-mpn-copy (translations): Updated for new layout in
7523 GMP 1.910.
7524
7525 * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
7526 made global.
7527 (malloc): Caller changed.
7528 * malloc/realloc.c (realloc): Call __malloc_initialize if
7529 necessary, before checking hook.
7530 * malloc/malloc.h: Declare __malloc_initialize.
7531
7532 * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
7533 as integer_t arg in RPC.
7534
0fe4e552
RM
7535Sat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7536
683158e0
RM
7537 * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
7538 (_hurd_set_brk): Try to allocate more space when we run out.
0fe4e552 7539
683158e0
RM
7540 * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
7541 zero and examine it again.
7542 * sysdeps/unix/sysv/linux/i386/brk.c: New file.
7543 * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
7544 * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
7545 * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
0fe4e552
RM
7546 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
7547 Invoke this macro before calling DL_MAIN.
7548
7549 * malloc/malloc.c (malloc): Do initialization here, before
7550 checking the hook.
7551 (_malloc_internal): Don't do it here.
7552
b2518f55
RM
7553Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7554
7555 * libio/vsnprintf.c (__vsnprintf): Define as alias.
7556 * libio/iovsscanf.c (__vsscanf): Define as alias.
7557 * asprintf.c: Remove libio adaptation code added by drepper.
7558 * dprintf.c: Likewise.
7559 * printf.c: Likewise.
7560 * scanf.c: Likewise.
7561 * snprintf.c: Likewise.
7562 * sprintf.c: Likewise.
7563 * sscanf.c: Likewise.
7564 * vprintf.c: Likewise.
7565 * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
7566 function.
7567 (vfscanf): Define unconditionally.
7568
7569 * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
7570 zero for value.
7571
7572 * misc/getpass.c: Write a newline after reading the unechoed
7573 password.
7574
b7843ea9
RM
7575Mon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7576
7577 * posix/Makefile (routines): Add getsid.
7578 * sysdeps/unix/sysv/linux/getsid.S: New file.
7579 * sysdeps/mach/hurd/getsid.c: New file.
7580 * sysdeps/stub/getsid.c: New file.
7581 * posix/unistd.h [__USE_GNU]: Declare getsid.
7582
f45e34fc
RM
7583Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7584
7585 * libc-symbols.h (N_): New macro.
7586
cbd3dceb
RM
7587Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7588
7589 * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
7590 malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
7591 resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
7592 sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
7593 sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
7594 sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
7595 sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
7596 sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
7597 strings.
7598
fbaad149
RM
7599Sun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7600
7601 * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
7602
7603Thu Nov 23 02:21:55 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7604
7605 * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
7606 New files.
1ed0083c 7607 * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
fbaad149
RM
7608 mlock, munlock, mlockall, and munlockall.
7609
f4482045
RM
7610Thu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7611
7612 * configure.in (--enable-libio): Set $stdio based on $enableval,
7613 not always to libio.
7614
7615Thu Nov 23 18:06:48 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7616
7617 * malloc/malloc.c (_malloc_internal): Can't use
7618 get_contiguous_space when the heap info table
7619 will be growing. Account for new contiguous space in _heaplimit.
7620
42d2676e
RM
7621Wed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7622
7623 * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
7624 for errno.
7625
7626 * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
7627 alias for _IO_vfprintf.
7628
7629 * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
7630
7631 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
7632 __fpu_control instead of ___fpu_control.
7633 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
7634 (___fpu_control): Renamed to __fpu_control.
7635 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
7636 * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
7637
7638 * elf/dl-minimal.c: New file.
7639 * elf/Makefile (rtld-routines): Add dl-minimal.
7640 * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
7641 Functions moved to dl-minimal.c.
7642 * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
7643 sigjmp_save, longjmp): Likewise.
7644
7645 * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
7646 to &_end, regardless of PIC.
7647
7648 * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
7649
1a3a58fd
RM
7650Tue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7651
7652 * malloc/malloc.c (align): Don't check contiguity and call abort.
7653
7654 * hurd/hurdsig.c (post_reply): Function removed.
7655 (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
7656 Take single callback fn arg instead of reply port and type.
7657 (_hurd_internal_post_signal): Callers changed.
7658 Cache reply stub fn ptr in local var before UNTRACED might be changed.
7659
7660 * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
7661 PROT_READ|PROT_WRITE copy mapping. Pass a proper vm_inherit_t to
7662 vm_map.
7663
7664 * elf/rtld.c (_dl_start): For --list, do output and exit before
7665 relocating.
7666
91c7b85d
RM
7667Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7668
7669 * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
7670 get .c and .h files.
7671
7672 * malloc/malloc.c (align): Use abort instead of assert.
7673
054cc4cc
RM
7674Sun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7675
7676 * Makeconfig (+includes): Add $($(stdio)-include).
7677 (libio-include): New variable.
7678
7679 * stdlib/strtod.c: Put weak_symbol after function defn.
7680 * stdlib/strtol.c: Likewise.
7681
7682 * configure.in (--enable-libio): If not present, set $stdio to
7683 "default". Move stdio/libio check to end, so sysdeps fragments
7684 can affect it. Reset $stdio to "stdio" if it's "default".
7685 * sysdeps/unix/sysv/linux/configure: New file.
7686
96aa2d94
RM
7687Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
7688
7689 * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
7690 libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
7691 libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
7692 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
7693 libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
7694 libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
7695 libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
7696 libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
7697 libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
7698 libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
7699 libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
7700 libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
7701 libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
7702 libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
7703 libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
7704 New files. Slightly modified version from Linux libc.
7705
7706 * libio/memstream.c, libio/vdprintf.c: New files for functions not
7707 (yet) part of GNU libio.
7708
7709 * libio/iofopncook.c: Implementation of `fopencookie', mainly written
7710 by Per Bothner.
7711
7712 * stdio-common/getline.c: Adapted to libio.
7713 * stdio-common/snprintf.c: Adapted to libio.
7714 * stdio-common/vfprintf.c: Adapted to libio.
7715 * stdio-common/vfscanf.c: Adapted to libio.
7716 * sysdeps/posix/tempname.c: Adapted to libio.
7717
a5a81fec
RM
7718Fri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7719
7720 * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
7721
7722 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7723 function.
7724
7725 * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
7726 (_hurdsig_fault_init): Remove #if 0 from setting exception port.
7727 Insert send right for SIGEXC before thread_set_special_port.
7728 * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
7729 (_hurdsig_init): Remove #if 0 from setting exception port.
7730
7731 * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
7732 HURD_MSGPORT_RPC macro.
7733
4cb20290
RM
7734Thu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7735
7736 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
7737 function.
7738 (_dl_sysdep_start): Move cleanup code there.
7739
7740 * Makeconfig (default-rpath): New variable.
7741 (link-libc): Use it.
7742 * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
7743 * elf/rtld.c (_dl_rpath): New variable.
7744 (_dl_start): Set it from rtld_map's DT_RPATH.
7745 Call _dl_setup_hash on rtld_map.
7746 (dl_main): Cache address of _exit in variable before relocating,
7747 and use that in later calls. Call _dl_sysdep_start_cleanup before
7748 relocating. Keep track of dependency order while loading; remove
7749 rtld_map from chain, and reinsert in proper order if there is a
7750 dependency on it.
7751
7752 * sysdeps/generic/Makefile (make_siglist): Pass
7753 -DSIGNUM_H=... with config's signum.h location.
7754 * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
7755 signal numbers.
7756 (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
7757 (main): Deansideclize output.
7758
7759 * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
7760 of DEFAULT_RPATH macro.
7761 * elf/Makefile: Undo last change.
7762
7763 * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
7764
ec967c06
RM
7765Wed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7766
8738e7f8
RM
7767 * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
7768 error if weak.
7769
7770 * elf/Makefile (default-rpath): New variable.
7771 (CPPFLAGS): Append -DDEFAULT_RPATH=....
7772 * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
7773 hard-coded "/lib:/usr/lib".
7774
ec967c06
RM
7775 * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
7776 instead of stdio.
7777 (_dl_sysdep_start): If passed user entry is zero and
7778 EXEC_STACK_ARGS flag set, reset user entry to &_start.
7779
7780 * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
7781 DT_HASH element.
7782
7783 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
7784 repeat weak decl using weak_symbol macro, in case using broken GCC
7785 (<2.8).
7786
7787Wed Nov 15 18:49:55 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7788
7789 * sysdeps/i386/isnanl.c: New file.
7790 * sysdeps/i386/isinfl.c: New file.
7791
2ede96c9
RM
7792Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7793
7794 * malloc/free.c (free): Moved null and aligned_blocks checks
7795 inside _free_internal.
7796
9199ec6e
RM
7797Mon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7798
7799 * malloc/malloc.c (morecore): Fix inverted test in allocating new
7800 info table.
7801
7802 * malloc/malloc.c (align): Fix assertion.
7803
7804 * malloc/malloc.c: Include assert.h.
7805
7806 * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
7807
7808 * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
7809 (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
7810
75914335
RM
7811Fri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7812
accc07a9
RM
7813 * malloc/malloc.c (align): Assert that space for alignment
7814 adjustment is same original space.
7815
7816 * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
7817 arg to vm_address_t.
7818
75914335
RM
7819 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
7820 skip straight to pending check. When UNTRACED, resume process
7821 from suspension first.
7822
7823 * intl/Makefile (headers): New variable, libintl.h.
7824 [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
7825 * configure.in: Check for --with-gettext arg.
7826
7827Fri Nov 10 13:51:30 1995 Richard Stallman <rms@gnu.ai.mit.edu>
7828
7829 * malloc/malloc.c (get_contiguous_space): New function.
7830 (morecore): Rewrite allocating new malloc info table.
7831 (_malloc_internal): Use get_contiguous_space.
7832
7833Fri Nov 10 13:03:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7834
7835 * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
7836 _hurd_msgport to be destroyed.
7837
7838 * Makerules (installed-libcs): Filter out %_pic.a.
7839
7840 * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
7841 to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
7842
7843 * hurd/Makefile (user-interfaces): Add hurd/process_request.
7844
d7435cd8
RM
7845Wed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7846
7847 * termios/Makefile (headers): Add sys/ttychars.h.
7848 * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
7849 for compatibility.
7850
7851 * signal/signal.h [__USE_BSD] (sig_t): New typedef.
7852
7853Wed Nov 8 15:12:47 1995 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
7854
7855 * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
7856 proc server that we are now traced.
7857
86d2c878
RM
7858Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7859
094bacdb
RM
7860 * elf/Makefile (ldd): Make it executable.
7861
7862 * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
7863
7864 * Makeconfig (slibdir): New variable.
7865 * Makerules (install): Install libc.so in $(slibdir).
7866 * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
7867 in $(slibdir).
7868
86d2c878
RM
7869 * elf/linux-compat.c: New file.
7870 * elf/Makefile (distribute): Add linux-compat.c.
7871 (generated): Add librtld.so.
7872 [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
7873 [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
7874 (librtld.so): New target.
7875 (ld.so, ld-linux.so.1): Make from librtld.so.
7876
7877 * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
7878 call our own DT_INIT if we have one (and then clear it).
7879 (__dgettext): New weak function.
7880
7881 * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
7882 by hand instead.
7883
7884 * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
7885 instead of snprintf.
7886
7887 * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
7888 BUF[BUFLEN].
7889
7890 * elf/rtld.c (rtld_map): New static variable.
7891 (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
7892 bootstrapping. Then copy data into `rtld_map'.
7893 (dl_main): Finish filling in rtld_map and link it into the chain,
7894 instead of allocating a new structure.
7895 (dl_main): Call _dl_compat_init if it is defined (use weak ref).
7896
7897 * elf/dlsym.c: Fix last change: move REF out of `doit'.
7898
51093422
RM
7899Mon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7900
7901 * elf/dlsym.c: Return the proper value, not just the defining
7902 object's loadbase.
7903
e380bf62
RM
7904Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7905
f797c383
RM
7906 * stdio-common/vfprintf.c (%c): Count the character itself towards
7907 the field width in all cases.
7908
e380bf62
RM
7909 * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
7910 __vm_deallocate arg to vm_address_t.
7911
853f0eea
RM
7912Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7913
7914 * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
7915 socket_create_address.
7916 * sysdeps/mach/hurd/connect.c: Likewise.
7917 * sysdeps/mach/hurd/bind.c: Likewise.
7918
7919 * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
7920 args to proc_getprocinfo.
7921 * sysdeps/mach/hurd/getpriority.c: Likewise.
7922
7923 * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
7924
27cc33c3
RM
7925Thu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7926
7927 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
7928
3bbceb12
RM
7929Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7930
80b55d32
RM
7931 * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
7932 PI_FETCH_TASKINFO to proc_getprocinfo and through
7933 _hurd_priority_which_map.
7934
7935 * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
7936 _hurd_priority_which_map.
7937 * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
7938 passed through to proc_getprocinfo RPC.
7939 * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
7940
3bbceb12
RM
7941 * sysdeps/mach/hurd/group_member.c: New file.
7942 * sysdeps/generic/group_member.c: New file.
7943
7944 * Makerules (lib-noranlib): Don't depend on $(install-lib).
7945 (others): Do.
7946 * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
7947
7948Mon Oct 30 12:33:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7949
7950 * Rules (others): Depend on $(extra-objs).
7951
7952 * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
7953 * posix/Makefile (routines): Add group_member.
7954
7955 * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
7956
7957 * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
7958 SIG operand in asm so it must be a register.
7959 Add dead return to quiet gcc warning.
7960
7961 * Makerules (sysd-rules): Write a defn for sysd-rules-done.
7962 [! sysd-rules-done]: Inhibit deps.
7963
3e2ee727
RM
7964Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
7965
7966 * sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use
7967 simulation of system call using select.
7968
7969 * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
7970
7971 * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
7972
7973 * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
7974 name usage (new->act, old->oact).
7975 Correct asm statement because of gcc strangeness.
86d2c878 7976
3e2ee727
RM
7977 * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
7978
7979 * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They
7980 conflict with the ones in stdio.h.
7981
7982 * string/tester.c: %Z is no complete format. Change to %Zd.
7983
f094496c
RM
7984Thu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu>
7985
7986 * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
7987 * sysdeps/mach/hurd/link.c (__link): Ditto.
3e2ee727 7988 * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
f094496c
RM
7989 * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
7990 Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
7991
efc755b2
RM
7992Thu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7993
7994 * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
7995
7996 * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
7997 on syscall_error. For PIC, it is a local label;
7998 for non-PIC, JUMPTARGET expands to the unadorned name anyway.
7999 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8000 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8001 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8002 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8003 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8004 * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
8005
41334987
RM
8006Thu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8007
8008 * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
8009 comment to the necessary ones. Add _readv and _writev.
8010
8011 * sysdeps/unix/configure.in: Change syntax for system call test
8012 candidates and adapt sed script for this. Now use : to separate
8013 syscall name and file name.
8014
8015 * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
8016 number is now set is DO_CALL. So call with additional argument.
8017 (DO_CALL): Takes an additional argument. Load system call
8018 number according to new argument.
8019 (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
8020 * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
8021 locally using SYSCALL_ERROR_HANDLER macro.
8022 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
8023 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
8024 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
8025 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
8026 * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
8027 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
8028 Don't use DO_CALL macro; instead use lower level macros for better
86d2c878 8029 control.
41334987
RM
8030
8031 * sysdeps/unix/sysv/linux/sigaction.h: New file.
8032 * sysdeps/unix/sysv/linux/sigaction.S: File removed.
8033 * sysdeps/unix/sysv/linux/signal.S: File removed.
8034
ff9bef7f
RM
8035Wed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8036
c14e4c32
RM
8037 * hurd/hurdstartup.c (_hurd_startup): Use new
8038 exec_startup_get_info RPC from exec_startup.defs
8039 in place of old exec_startup from exec.defs. Remove kludge to
8040 guess user entry and phdr locations, since the new RPC gives us
8041 that info.
8042
f44f9c33 8043 * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
c14e4c32 8044 * sysdeps/generic/_strerror.c: Undo last change.
f44f9c33 8045
ff9bef7f
RM
8046 * sysdeps/unix/sysv/linux/stat.c: New file.
8047 * sysdeps/unix/sysv/linux/fstat.c: New file.
8048 * sysdeps/unix/sysv/linux/lstat.c: New file.
8049 * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
8050 * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
8051 * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
8052
21ee7166
RM
8053Tue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8054
03a75825
RM
8055 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
8056 New macro.
8057 (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
8058
8059 * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
8060 only #ifndef PIC.
8061
8062 * Makeconfig (built-program-cmd): New variable.
8063 * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
8064 * time/Makefile (zic-cmd): Likewise.
8065
8066 * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
8067
e97ec51d
RM
8068 * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
8069 * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
8070 make `others' rather than `lib-noranlib' depend on the libraries.
8071
21ee7166
RM
8072 * sysdeps/unix/configure.in: Check for fchdir syscall.
8073 Improve sed script to allow / on rhs without / on lhs.
8074
8075Thu Oct 19 03:47:32 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8076
8077 * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
8078
8079 * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
8080
8081 * sysdeps/unix/sysv/linux/select.S: New file.
8082
4d049a8b
RM
8083Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8084
1d234146
RM
8085 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
8086 SYSCALL_PIC_SETUP before jumping to syscall_error.
8087 * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
8088 (PSEUDO): Use it before jumping to syscall_error.
8089 * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
8090 expect it in %ebx on entry. Pop old %ebx value off stack after
86d2c878 8091 using it.
1d234146 8092
580c1888
RM
8093 * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
8094 them.
8095
4d049a8b
RM
8096 * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
8097
8098 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
8099 `fd/', pass the right pointer to strtol to parse the number.
8100
cabcc273
RM
8101Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8102
8103 * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
8104 of stdio/_itoa.h.
8105
8106Tue Oct 17 19:51:17 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8107
8108 * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
8109 register %ebx before calling __xstat through PLT.
8110
8111 * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
8112
8113 * sysdeps/unix/sysv/linux/sigset.h: Remove file.
8114
b3a59f40
RM
8115Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8116
cabcc273
RM
8117 * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
8118 stdio/_itoa.h.
8119 * hurd/hurdlookup.c: Likewise.
86d2c878 8120
f2149f69
RM
8121 * hurd/hurd/signal.h: Declare hurd_preempt_signals and
8122 hurd_unpreempt_signals.
8123
8124 * stdio/stdio.h: Declare __snprintf and __vsnprintf.
8125
b3a59f40
RM
8126 * stdio-common/psignal.c: Translate signal description strings.
8127 * string/strsignal.c: Likewise.
8128 * sysdeps/generic/_strerror.c (_strerror_internal): Translate
8129 error strings.
8130 * sysdeps/mach/_strerror.c: Likewise.
8131
8132 * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
8133 call __vsnprintf.
8134 (snprintf): Define as weak alias.
8135 * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
8136 (vsnprintf): Define as weak alias.
8137
924b9ff6
RM
8138Mon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8139
0700dfa1
RM
8140 * Makerules (install-lib): Filter out %_pic.a; install only the
8141 linked shared objects.
8142
cb2f05ed
RM
8143 * locale/Makefile (aux): Add SYS_libc.
8144 * locale/SYS_libc.c: New file.
b3a59f40 8145 * libc-symbols.h [! ASSEMBLER] (_): New macro.
cb2f05ed
RM
8146
8147 * configure.in (libc_cv_asm_set_directive): Link program into
8148 conftest instead of letting it default to a.out.
8149
d17e960c
RM
8150 * elf/Makefile (install-others): Add missing slash.
8151
8152 * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
8153 won't search LD_LIBRARY_PATH.
8154
deab9dea
RM
8155 * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
8156 * configure.in: Grok arg --enable-libio.
8157 ($stdio = libio): Define USE_IN_LIBIO.
8158 * config.h.in (USE_IN_LIBIO): Add #undef.
8159 * config.make.in (stdio): New variable, set by configure.
8160 * Makeconfig (stdio): New variable.
8161 * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
8162 stdio/stdio.h.
8163 * stdio-common/Makefile: New file.
8164 * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
8165 * stdio/_itoa.c: Moved to stdio-common.
8166 * stdio/_itoa.h: Moved to stdio-common.
8167 * stdio/asprintf.c: Moved to stdio-common.
8168 * stdio/bug1.c: Moved to stdio-common.
8169 * stdio/bug1.input: Moved to stdio-common.
8170 * stdio/bug2.c: Moved to stdio-common.
8171 * stdio/bug3.c: Moved to stdio-common.
8172 * stdio/bug4.c: Moved to stdio-common.
8173 * stdio/bug5.c: Moved to stdio-common.
8174 * stdio/bug6.c: Moved to stdio-common.
8175 * stdio/bug6.input: Moved to stdio-common.
8176 * stdio/bug7.c: Moved to stdio-common.
8177 * stdio/dprintf.c: Moved to stdio-common.
8178 * stdio/errnobug.c: Moved to stdio-common.
8179 * stdio/getline.c: Moved to stdio-common.
8180 * stdio/getw.c: Moved to stdio-common.
8181 * stdio/perror.c: Moved to stdio-common.
8182 * stdio/printf-parse.h: Moved to stdio-common.
8183 * stdio/printf-prs.c: Moved to stdio-common.
8184 * stdio/printf.c: Moved to stdio-common.
8185 * stdio/printf.h: Moved to stdio-common.
8186 * stdio/printf_fp.c: Moved to stdio-common.
8187 * stdio/psignal.c: Moved to stdio-common.
8188 * stdio/putw.c: Moved to stdio-common.
8189 * stdio/reg-printf.c: Moved to stdio-common.
8190 * stdio/scanf.c: Moved to stdio-common.
8191 * stdio/snprintf.c: Moved to stdio-common.
8192 * stdio/sprintf.c: Moved to stdio-common.
8193 * stdio/sscanf.c: Moved to stdio-common.
8194 * stdio/tempnam.c: Moved to stdio-common.
8195 * stdio/temptest.c: Moved to stdio-common.
8196 * stdio/test-fseek.c: Moved to stdio-common.
8197 * stdio/test-fwrite.c: Moved to stdio-common.
8198 * stdio/test-popen.c: Moved to stdio-common.
8199 * stdio/test_rdwr.c: Moved to stdio-common.
8200 * stdio/tmpfile.c: Moved to stdio-common.
8201 * stdio/tmpnam.c: Moved to stdio-common.
8202 * stdio/tst-fileno.c: Moved to stdio-common.
8203 * stdio/tst-printf.c: Moved to stdio-common.
8204 * stdio/tstgetln.c: Moved to stdio-common.
8205 * stdio/tstgetln.input: Moved to stdio-common.
8206 * stdio/tstscanf.c: Moved to stdio-common.
8207 * stdio/tstscanf.input: Moved to stdio-common.
8208 * stdio/vfprintf.c: Moved to stdio-common.
8209 * stdio/vfscanf.c: Moved to stdio-common.
8210 * stdio/vprintf.c: Moved to stdio-common.
8211 * stdio/xbug.c: Moved to stdio-common.
8212 * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
8213 stdio-common instead of stdio.
8214 * sysdeps/unix/Makefile (errlist.c rules): Likewise.
8215 * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
8216 function.
8217 * stdio-common/dprintf.c: Likewise.
8218 * stdio-common/printf.c: Likewise.
8219 * stdio-common/scanf.c: Likewise.
8220 * stdio-common/snprintf.c: Likewise.
8221 * stdio-common/sprintf.c: Likewise.
8222 * stdio-common/sscanf.c: Likewise.
8223 * stdio-common/vprintf.c: Likewise.
8224
8225 * Makerules: Include $(+depfiles) directly instead of generating
8226 depend-$(subdir).
8227 (depend-$(subdir)): Target removed.
8228 (common-clean): Don't remove depend-$(subdir).
8229
32a392b6
RM
8230 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
8231 (config-LDFLAGS): Variable removed.
8232
924b9ff6
RM
8233 * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
8234 * sysdeps/mach/hurd/bind.c: Likewise.
8235 * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
8236 calling convention.
8237
8238 * hurd/hurdexec.c: Undo last change (10 Oct 95).
8239
6cab5056
RM
8240Sun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8241
2948fc64
RM
8242 * hurd/hurd/lookup.h: New file.
8243 * hurd/hurdlookup.c (__file_name_lookup_under): New function.
8244 (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
8245 __hurd_file_name_split): Rewritten to take callback functions for
8246 using any needed init or dtable port, instead of passing in crdir
86d2c878 8247 and cwdir ports.
2948fc64
RM
8248 (__file_name_lookup, __file_name_split): Use new calling
8249 convention; pass _hurd_ports_use and __getdport as the callback
86d2c878 8250 functions.
2948fc64
RM
8251
8252 * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
8253 of __hurd_file_name_lookup.
8254 * sysdeps/mach/hurd/chdir.c: Likewise.
8255 * sysdeps/mach/hurd/fchdir.c: Likewise.
8256 * hurd/fchroot.c: Likewise.
8257
6cab5056
RM
8258 * stdlib/Makefile (mpn-found): Don't omit %.s.
8259 (mpn-copy-sysdep): Omit files in nonexistent directories.
8260 (copy-mpn): Commit files to CVS.
8261 * stdlib/gen-mpn-copy (translations): Update translations for GMP
8262 1.906.7.
8263
8264 * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
8265
8f5ca04b
RM
8266Sat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8267
8268 * malloc/malloc.c (_malloc_internal): Performance fix. Move
8269 if statement out of loop.
8270
8271 * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite. Much faster
8272 implementation using GMP functions. Contributed by
8273 Torbjorn Granlund and Ulrich Drepper.
8274
8275 * stdio/test_rdwr.c: Include <errno.h>.
8276
8277 * sysdeps/i386/i586/Implies: New file.
8278
8279 New highly optimized string functions for i[345]86.
8280 * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
8281 * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
8282 * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
8283 * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
8284 * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
8285 * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
8286 * sysdeps/i386/i586/strlen.S: New file.
8287 * sysdeps/i386/memchr.c: Removed. There is now an assembler version.
8288
8289 * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
8290 not correspond to used values.
8291
8292 * sysdeps/unix/sysv/linux/nfs/nfs.h: New file. Simply a wrapper
8293 around a kernel header file.
8294 * sysdeps/unix/sysv/linux/Dist: Add it.
8295 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
8296 Likewise.
8297
8298 * sysdeps/unix/sysv/linux/local_lim.h: Rewrite. Instead of
8299 defining ourself we use a kernel header file.
8300
8301 * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
8302 call handler for i586.
8303
8304 * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
8305
6cab5056
RM
8306Thu Oct 12 15:45:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8307
8308 * hurd/hurd.h (file_name_lookup_under): Declare it.
8309 * hurd/Makefile (headers): Add hurd/lookup.h.
8310
8311 * hurd/hurdinit.c (_hurd_ports_use): New function.
8312 * hurd/hurd.h (_hurd_ports_use): Declare it.
8313 (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
8314 hurd_file_name_lookup_retry): Remove these decls.
8315 * hurd/Makefile (routines): Remove invoke-trans.
8316
db65048b
RM
8317Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8318
5d82cf5c
RM
8319 * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
8320 apply R_386_PC32 reloc.
8321
db65048b
RM
8322 * Makeconfig (config-LDFLAGS): Add missing slash.
8323
8324 * sysdeps/mach/hurd/profil.c (fork_profil): Only call
8325 update_waiter if profiling was enabled in the parent.
8326
8327 * csu/initfini.c: Don't pass -f flag to cp.
8328
8e3cc80f
RM
8329Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8330
8331 * Makerules (build-shlib): Pass -rpath and -rpath-link options.
8332 (LDFLAGS-c.so): Don't pass -dynamic-linker here.
8333 * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
8334 (link-libc): Pass -rpath and -rpath-link options.
8335
8336 * MakeTAGS (all-dirs): Omit CVS directories.
8337 Specify vpath directives to find source files in $(all-dirs).
8338 (sources, headers): Append sources and headers from $(all-dist) to
86d2c878 8339 these.
8e3cc80f
RM
8340 (all-dist): Filter them out of this.
8341 (all-headers, all-sources): Use $(shell find ...) instead of
8342 $(wildcard ...).
8343
8344 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
8345 -rpath-link.
8346
8347 * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
8348
8349 * elf/Makefile (install-others): Add missing $.
8350
b122c703
RM
8351Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8352
8e3cc80f
RM
8353 * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
8354
b122c703
RM
8355 * Makeconfig (config-LDFLAGS): Define to
8356 -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
8357 (rtld-installed-name): New variable.
8358 * elf/Makefile (install-lib): Variable removed.
8359 (install-others): Define this instead, to
86d2c878 8360 $(libdir)(rtld-installed-name).
b122c703
RM
8361 ($(libdir)(rtld-installed-name)): New target; install from ld.so.
8362
8363 * elf/ldd.sh.in: New file.
8364 * elf/Makefile (distribute): Add ldd.sh.in.
8365 (install-bin): Add ldd.
8366 ($(objpfx)ldd: ldd.sh.in): New rule.
8367
8368 * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
8369 * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
8370 Translate some Mach errors to Hurd errors.
8371
8372 * elf/rtld.c (dl_main): Under --list, print msg if executable is
8373 statically linked.
8374
8375 * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
8376 table processing.
8377
8378Sat Oct 7 01:25:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8379
8380 * sysdeps/stub/machine-gmon.h: Add #error.
8381
8382Fri Oct 6 01:49:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8383
8384 * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
8385 examine it.
8386
80fd7387
RM
8387Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
8388
8389 Rewrite mktime from scratch for performance, and for correctness
8390 in the presence of leap seconds.
8391
8392 * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
8393 New functions.
8394 (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
8395 TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
8396 <limits.h>, <stdlib.h>: New #includes.
8397 (main): Support tests with given broken-down value; support benchmarks.
8398 (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
8399 do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
8400 <ctype.h>): Remove.
8401
8402 * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
8403 * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
8404
8405 * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
8406 time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
86d2c878 8407
80fd7387
RM
8408 * time/offtime.c (__offtime): Remove useless assignment
8409 `tp->tm_isdst = -1'.
8410
8411 * manual/maint.texi: Update credits.
8412
8413Fri Oct 6 00:28:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8414
8415 * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
8416 * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
8417 * sysdeps/unix/sysv/linux/readv.c: File removed.
8418 * sysdeps/unix/sysv/linux/writev.c: File removed.
8419 * sysdeps/unix/configure.in: Check for readv and writev syscalls.
8420
8421 * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
8422 set it to $unix_syscall instead of $unix_function.
8423
6a76c115
RM
8424Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8425
8426 * elf/rtld.c (dl_main): Grok --list flag.
8427 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
8428
5f770861
RM
8429Wed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8430
6a76c115
RM
8431 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
8432 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
8433 * elf/link.h (_dl_sysdep_message): Declare it.
8434
57aefafe
RM
8435 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
8436 the list.
8437
8438 * time/northamerica: Corrections to Canada data from ADO 95i.
8439
8440 * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
8441 unconditionally. In socket subdir, append sys/socketcall.h; in
8442 time subdir, append sys/timex.h.
8443 (config-LDFLAGS): New variable.
8444 * sysdeps/unix/sysv/linux/Dist: New file.
8445 * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
8446
5f770861
RM
8447 * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
8448
8449 * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
8450
41cfadd6
RM
8451Sat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8452
879bf2e6
RM
8453 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
8454 kernel with args on stack, point _dl_hurd_data at zero data
8455 instead of garbage. When ld.so run as program, grok args
8456 -LIB=MEMOBJ and pre-load shared object files found in memory
8457 objects loaded by the boot loader.
8458
8459 * elf/link.h (struct link_map): New member `l_entry'.
8460 (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
8461 * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
8462 last arg ENTRY_POINT. Store the entry point location in the
8463 `l_entry' member of the new map.
8464 * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
8465 _dl_map_object. When run as program, set *USER_ENTRY to L->l_entry.
8466 * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
8467 _dl_map_object.
8468
41cfadd6
RM
8469 * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
8470
8471 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
8472 restore %ebx by hand for personality syscall.
8473 GCC cannot deal with spilling the dedicated GOT register.
8474
8475 * misc/Makefile (routines): Add mntent, which was somehow omitted.
8476
8477Fri Sep 29 15:07:10 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8478
8479 * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
8480 Change name of field `mode' in `struct timex' to `modes'.
8481 Linux-1.3.28 updates this name according to RFC 1489.
8482
24906b43
RM
8483Thu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8484
8485 Merge new message handling code from GNU gettext, by Drepper.
8486 * intl: New directory.
8487 * Makefile (subdirs): Add intl.
8488
8489 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
8490 USER_ENTRY instead of storing it on our stack.
8491
8492 * elf/rtld.c (rtld_command): Variable removed.
8493 (_dl_skip_args): New variable.
8494 (dl_main): Increment _dl_skip_args instead of setting rtld_command.
8495 If the link_map for the executable itself is not first in the chain,
8496 make it so.
8497 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
8498 count of args to skip.
8499
8500Thu Sep 28 09:20:04 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8501
8502 * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
86d2c878
RM
8503 leading zeroes.
8504
ea03559a
RM
8505Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8506
3ec41e03
RM
8507 * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
8508 (getcwd): Define as weak alias.
8509 * sysdeps/posix/getcwd.c: Likewise.
8510 * sysdeps/stub/getcwd.c: Likewise.
8511 * posix/unistd.h: Declare __getcwd.
8512
8513 * string/string.h: Declare __strcasecmp.
8514 * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
8515 strcasecmp.
8516 (strcasecmp): Define as weak alias.
8517
8518 * string/string.h: Declare __stpcpy.
8519 * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
8520 (stpcpy): Define as weak alias.
8521
f94f8067
RM
8522 * sysdeps/unix/sysv/linux/Implies: Add unix/common.
8523
3f33a4ce
RM
8524 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
8525 Don't use `type' for arg name, since we are using it as a keyword
86d2c878 8526 in the rhs.
3f33a4ce
RM
8527
8528 * sysdeps/unix/configure.in: Check for syscalls getpriority,
8529 setpriority, getrlimit, setrlimit.
8530
8531 * sysdeps/posix/truncate.c: Include fcntl.h.
8532
8533 * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
8534
8535 * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
8536 use new stub_warning syntax.
8537 * sysdeps/stub/setpriority.c: Likewise.
8538 * sysdeps/stub/__longjmp.c: Likewise.
8539 * sysdeps/stub/_exit.c: Likewise.
8540 * sysdeps/stub/accept.c: Likewise.
8541 * sysdeps/stub/acos.c: Likewise.
8542 * sysdeps/stub/alarm.c: Likewise.
8543 * sysdeps/stub/asin.c: Likewise.
8544 * sysdeps/stub/atan2.c: Likewise.
8545 * sysdeps/stub/bind.c: Likewise.
8546 * sysdeps/stub/cbrt.c: Likewise.
8547 * sysdeps/stub/chroot.c: Likewise.
8548 * sysdeps/stub/closedir.c: Likewise.
8549 * sysdeps/stub/connect.c: Likewise.
8550 * sysdeps/stub/cos.c: Likewise.
8551 * sysdeps/stub/cosh.c: Likewise.
8552 * sysdeps/stub/ctermid.c: Likewise.
8553 * sysdeps/stub/cuserid.c: Likewise.
8554 * sysdeps/stub/defs.c: Likewise.
8555 * sysdeps/stub/exp.c: Likewise.
8556 * sysdeps/stub/fmod.c: Likewise.
8557 * sysdeps/stub/frexp.c: Likewise.
8558 * sysdeps/stub/fsync.c: Likewise.
8559 * sysdeps/stub/getcwd.c: Likewise.
8560 * sysdeps/stub/getenv.c: Likewise.
8561 * sysdeps/stub/gethostid.c: Likewise.
8562 * sysdeps/stub/getlogin.c: Likewise.
8563 * sysdeps/stub/getpeername.c: Likewise.
8564 * sysdeps/stub/getrlimit.c: Likewise.
8565 * sysdeps/stub/getsockname.c: Likewise.
8566 * sysdeps/stub/getsockopt.c: Likewise.
8567 * sysdeps/stub/listen.c: Likewise.
8568 * sysdeps/stub/log.c: Likewise.
8569 * sysdeps/stub/log10.c: Likewise.
8570 * sysdeps/stub/mkfifo.c: Likewise.
8571 * sysdeps/stub/morecore.c: Likewise.
8572 * sysdeps/stub/nice.c: Likewise.
8573 * sysdeps/stub/nlist.c: Likewise.
8574 * sysdeps/stub/opendir.c: Likewise.
8575 * sysdeps/stub/pipestream.c: Likewise.
8576 * sysdeps/stub/ptrace.c: Likewise.
8577 * sysdeps/stub/putenv.c: Likewise.
8578 * sysdeps/stub/readdir.c: Likewise.
8579 * sysdeps/stub/reboot.c: Likewise.
8580 * sysdeps/stub/recv.c: Likewise.
8581 * sysdeps/stub/recvfrom.c: Likewise.
8582 * sysdeps/stub/rename.c: Likewise.
8583 * sysdeps/stub/rewinddir.c: Likewise.
8584 * sysdeps/stub/seekdir.c: Likewise.
8585 * sysdeps/stub/send.c: Likewise.
8586 * sysdeps/stub/sendto.c: Likewise.
8587 * sysdeps/stub/setegid.c: Likewise.
8588 * sysdeps/stub/seteuid.c: Likewise.
8589 * sysdeps/stub/setgroups.c: Likewise.
8590 * sysdeps/stub/sethostid.c: Likewise.
8591 * sysdeps/stub/sethostname.c: Likewise.
8592 * sysdeps/stub/setjmp.c: Likewise.
8593 * sysdeps/stub/setrlimit.c: Likewise.
8594 * sysdeps/stub/setsockopt.c: Likewise.
8595 * sysdeps/stub/shutdown.c: Likewise.
8596 * sysdeps/stub/signal.c: Likewise.
8597 * sysdeps/stub/sigsuspend.c: Likewise.
8598 * sysdeps/stub/sin.c: Likewise.
8599 * sysdeps/stub/sinh.c: Likewise.
8600 * sysdeps/stub/socket.c: Likewise.
8601 * sysdeps/stub/socketpair.c: Likewise.
8602 * sysdeps/stub/sqrt.c: Likewise.
8603 * sysdeps/stub/sync.c: Likewise.
3f33a4ce
RM
8604 * sysdeps/stub/system.c: Likewise.
8605 * sysdeps/stub/tan.c: Likewise.
8606 * sysdeps/stub/tanh.c: Likewise.
8607 * sysdeps/stub/tcdrain.c: Likewise.
8608 * sysdeps/stub/tcflow.c: Likewise.
8609 * sysdeps/stub/tcgetpgrp.c: Likewise.
8610 * sysdeps/stub/tcsendbrk.c: Likewise.
8611 * sysdeps/stub/tcsetattr.c: Likewise.
8612 * sysdeps/stub/tcsetpgrp.c: Likewise.
8613 * sysdeps/stub/telldir.c: Likewise.
8614 * sysdeps/stub/tempname.c: Likewise.
8615 * sysdeps/stub/ttyname.c: Likewise.
8616 * sysdeps/stub/ttyname_r.c: Likewise.
8617 * sysdeps/stub/utime.c: Likewise.
8618
8619 * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
8620
8621 * time/mktime.c (localtime_r): Use 0 instead of NULL.
8622
ea03559a
RM
8623 * config.make.in (AS): New variable; set to `$(CC) -c'.
8624
8625 * posix/unistd.h [__USE_BSD]: Declare profil.
8626
8627 * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
8628 of _dl_map_object.
8629 (_dl_map_object): Call it.
8630 * elf/link.h (_dl_map_object_from_fd): Declare it.
8631
11c981a9
RM
8632Tue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8633
c709e372
RM
8634 * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
8635 gettext code.
8636
8637 * sysdeps/unix/sysv/linux/sys/param.h: New file.
8638 * sysdeps/unix/sysv/linux/Subdirs: File removed.
8639
8640 * libc-symbols.h (_LIBC): Define to 1, not just empty.
8641
11c981a9
RM
8642 * gmon: New directory of profiling code, incorporated from
8643 4.4BSD-Lite and modified.
8644 * sysdeps/i386/machine-gmon.h: New file.
8645 * sysdeps/stub/machine-gmon.h: New file.
8646 * sysdeps/mach/hurd/profil.c: New file.
8647 * sysdeps/stub/profil.c: New file.
8648 * sysdeps/unix/bsd/profil.S: New file.
8649 * Makefile (subdirs): Add gmon.
8650 * csu/gmon-start.c: New file.
8651 * csu/Makefile (extra-objs): Add gmon-start.o,
8652 g$(start-installed-name).
8653 (install-lib, omit-deps): Add g$(start-installed-name).
8654 ($(objpfx)g$(start-installed-name)): New target.
8655
969705cc
RM
8656Fri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8657
8658 * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
8659 time being.
8660
0324daa0
RM
8661Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8662
969705cc
RM
8663 * sysdeps/unix/configure.in: Check for `profil' syscall.
8664
c12d1df0
RM
8665 * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
8666 removed.
8667
a5570f62
RM
8668 * time/africa, time/asia, time/europe, time/northamerica,
8669 time/yearistype: New data from ADO 95h.
8670
193bd2ce
RM
8671 * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
8672 $(notdir $*), so it wins for the explicit libc.so rule as well as the
86d2c878 8673 pattern rule.
10b40b11 8674
0324daa0
RM
8675 * sysdeps/stub/sys/sem_buf.h (union semun): New type.
8676
8677 * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
8678 __libc_global_ctors.
8679 * sysdeps/i386/init-first.c: Rewritten.
8680 * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
8681 * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
8682
8683 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
8684 ___fpu_control.
8685
8686 * Makerules (build-shlib): New canned sequence, broken out of
8687 lib%.so rule. Link in $^ instead of just $<.
8688 (lib%.so: lib%_pic.a): Use it.
8689 (libc.so): New target; use $(build-shlib) for cmds, but also depend
8690 on soinit.so first and sofini.so last.
8691
8692 * elf/soinit.c: New file.
8693 * elf/sofini.c: New file.
8694 * elf/Makefile (distribute): Add soinit.c and sofini.c.
8695 (extra-objs): Add soinit.so and sofini.so.
8696
8697 * sysvipc/sys/shm.h (shmat): Fix return type to char *.
8698 * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
8699
8700 * misc/syslog.c (vsyslog): Rewritten using open_memstream to
8701 dynamically allocate buffers.
8702
8703 * Makerules (install-lib-nosubdir): Make this, rather than
8704 install-no-libc.a, depend on the installed shared libraries.
8705
60092701
RM
8706Wed Sep 20 18:02:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8707
8708 * locale/locale.c: Include errno.h.
8709 * locale/localedef.c: Likewise.
8710
8711Tue Sep 19 00:02:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8712
8713 * Makefile (distclean-1): Remove config.cache, config.log, config.h.
8714 (parent-mostlyclean): Remove all flavors of the parent library.
8715
8716 * misc/mntent.c (getmntent): Skip multiple whitespace chars
8717 between fields.
8718
8719 * hurd/hurdstartup.c (_hurd_startup): If RPC returns
8720 EXEC_STACK_ARGS flag, get args from stack.
8721 If args on stack but have info from RPC, relocate args on stack to make
8722 space for struct hurd_startup_data.
8723
bf40c56f
RM
8724Mon Sep 18 15:06:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8725
60092701
RM
8726 * elf/dl-object.c: Include errno.h.
8727 * posix/execvp.c: Likewise.
8728 * dirent/scandir.c: Likewise.
8729 * sysdeps/posix/system.c: Likewise.
8730 * sysdeps/generic/setenv.c: Likewise.
8731 * stdlib/msort.c: Likewise.
8732 * stdio/memstream.c: Likewise.
8733 * stdio/fclose.c: Likewise.
8734 * stdio/getdelim.c: Likewise.
8735 * stdio/setvbuf.c: Likewise.
8736 * sysdeps/ieee754/ldexp.c: Likewise.
8737 * locale/locfile-parse.c: Likewise.
8738
8739 * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
8740 * stdlib/seed48_r.c: Likewise.
8741 * stdlib/srand48_r.c: Likewise.
8742 * stdlib/jrand48_r.c: Likewise.
8743 * stdlib/nrand48_r.c: Likewise.
8744
bf40c56f
RM
8745 * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
8746 to be useless.
8747
c2216480
RM
8748Mon Sep 18 12:39:22 1995 Paul Eggert <eggert@twinsun.com>
8749
8750 * mktime.c (localtime_r): Add substitute if the system doesn't
8751 provide one.
8752
8753Mon Sep 18 14:39:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8754
8755 * time/gmtime.c (gmtime_r): Define as weak alias.
8756 * time/localtime.c (localtime_r): Define as weak alias.
8757 * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
8758
8759 * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
8760 #undef __need_Emath after including errnos.h.
8761 [_ERRNO_H]: Protect decls with this.
8762
8763Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
8764
8765 Fix mktime so that it does not write over localtime's returned value.
8766 * localtime.c (__localtime_r): New function, with extra arg
8767 specifying where to store result.
8768 (localtime): Use it.
8769 (_tmbuf): New var.
8770 * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
8771 * mktime.c (__mktime_internal): Conversion function is now
8772 __localtime_r style, not localtime style.
8773 (mktime): Pass __localtime_r, not localtime.
8774 * timegm.c (timegm): Pass __gmtime_r, not gmtime.
8775 * offtime.c (__offtime): New arg specifying where to store result.
8776 * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
8777 (__gmtime_r, __localtime_r): New decls.
8778
8779 * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
8780 <stdlib.h>, <string.h>: Remove includes.
8781 <errno.h>: Add include.
8782
8783 * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
8784 Renamed from _mktime_internal to avoid namespace pollution.
8785
8786 * time/gmtime.c: Clear tm_isdst.
8787
aa910907
RM
8788Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8789
c2216480
RM
8790 * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
8791 * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
8792 size_t.
8793
8794 * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
8795 __file_pathconf.
8796 * sysdeps/mach/hurd/pathconf.c: Likewise.
8797
aa910907
RM
8798 * Makefile (subdirs): Add sysvipc.
8799
8800 * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
8801 * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8802
e537c55e
RM
8803Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8804
aa910907
RM
8805 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
8806 __file_set_size instead of __file_truncate.
8807
8808 * features.h (__USE_REENTRANT): New macro.
8809
e537c55e
RM
8810 * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
8811 __file_truncate.
8812 * sysdeps/mach/hurd/ftruncate.c: Likewise.
8813
8814 * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
8815
60478656
RM
8816Sat Sep 16 17:47:19 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
8817
8818 * elf/elf.h (AT_GID): Fix typo: Read -> Real.
8819
8820 * misc/efgvt_r.c: New file. Reentrant version of [efg]cvt functions.
8821 * misc/efgcvt.c: Rewrite to use reentrant functions.
60092701 8822 * misc/search.h: Many decls for hsearch functions.
60478656
RM
8823 * misc/hsearch_r.c: New file. Reentrant version of functions from
8824 hsearch family.
8825 * misc/hsearch.c, misc/tsearch.c: New files.
8826 * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
8827
8828 * posix/unistd.h (ttyname_r): Add prototype for new function.
8829
8830 * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
8831 stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
8832 stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
8833 stdlib/drand48-iter.c: New files implementing reentrant versions
8834 of functions from drand48 family.
8835 * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
8836 stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
8837 stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
8838 Rewrite to use reentrant versions.
8839 * stdlib/a64l.c, stdlib/l64a.c: New files. Implement a64l()
8840 and l64a() functions from SysV library.
8841 * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
8842 nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
8843 drand48-iter, a64l, l64a.
8844 * stdlib/stdlib.h: Declare them.
8845
8846 * stdlib/random_r.c: New file. Reentrant version of functions
8847 from random family.
8848 * stdlib/stdlib.h: Declare them.
8849 * stdlib/random.c: Rewrite to use reentrant functions.
8850
8851 * string/strerror_r.c: New file. Reentrant version.
8852 * string/strerror.c: Change for new _strerror_internal form.
8853 * string/Makefile (routines): Add strerror_r.
8854
8855 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
8856 value of user_entry to `_start'.
8857 Close AT_ENTRY case with `break'.
8858
8859 * sysdeps/generic/strstr.c: New and much faster implementation
8860 by Stephen R. van den Berg.
8861
8862 * sysdeps/generic/_strerror.c: _strerror_internal now takes
8863 three argument and has and explicit buffer length.
8864 * sysdeps/mach/_strerror.c: Change for new interface with three
8865 arguments.
8866 * stdio/perror.c, stdio/vfprintf.c: Callers changed.
86d2c878 8867
60478656
RM
8868 * sysdeps/mach/hurd/ttyname_r.c: New file. Reentrant version.
8869 * sysdeps/posix/ttyname_r.c: New file. Reentrant version.
8870 * sysdeps/stub/ttyname_r: New file. Define as dummy function.
8871
8872 * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
8873 (utimes): First parameter to utime must be file, not path.
8874
8875 * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
8876 _SC_CLK_TCK and return it when available.
8877 Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
8878 available.
8879 Add case for _SC_2_LOCALEDEF which is now available.
8880
8881 * posix/sys/types.h [__USE_SVID] (key_t): New type.
8882 * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
8883 sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
8884 sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
8885 sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
8886 sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
8887 sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
8888 sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
8889 sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
8890 Add implementation of System V IPC.
e11c3949 8891
9fd18b6c
RM
8892Fri Sep 15 21:34:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8893
8894 * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
8895 (write_corefile): Call __crash_dump_task instead of __core_dump_task.
8896 Use envariable CRASHSERVER instead of CORESERVER.
8897 * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
8898
7a770247
RM
8899Tue Sep 12 14:30:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8900
8901 * misc/mntent.c: New file.
8902 * misc/mntent.h: New file.
8903 * misc/Makefile (headers): Added mntent.h.
8904 (routines): Added mntent.
8905 * misc/fstab.c: Rewritten using mntent functions.
8906
8907Mon Sep 11 14:00:14 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
8908
8909 * posix/glob.c (glob): Comment fix.
8910
c64908b0
RM
8911Fri Sep 8 16:25:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8912
f87cd5a2
RM
8913 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
8914 symbols weak.
8915
c64908b0
RM
8916 * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
8917 not empty.
8918
d2f5be2a
UD
8919Fri Sep 8 16:32:12 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
8920
8921 * sysdeps/unix/sysv/linux/Implies,
8922 sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
8923 sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
8924 sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
8925 sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
8926 sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
8927 sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
8928 sysdeps/unix/sysv/linux/gethostname.C,
8929 sysdeps/unix/sysv/linux/getpeername.S,
8930 sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
8931 sysdeps/unix/sysv/linux/getsockname.S,
8932 sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
8933 sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
8934 sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
8935 sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
8936 sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
8937 sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
8938 sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
8939 sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
8940 sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
8941 sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
8942 sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
8943 sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
8944 sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
8945 sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
8946 sysdeps/unix/sysv/linux/settimeofday.S,
8947 sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
8948 sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
8949 sysdeps/unix/sysv/linux/shutdown.S,
8950 sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
8951 sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
8952 sysdeps/unix/sysv/linux/sockaddrcom.h,
8953 sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
8954 sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
8955 sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
8956 sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
8957 sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
8958 sysdeps/unix/sysv/linux/tcsetattr.c,
8959 sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
8960 sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
8961 sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
8962 sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
8963 sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
8964 New Linux/ELF specific, architecture independent files.
c64908b0 8965 * sysdeps/unix/sysv/linux/i386/Dist,
d2f5be2a
UD
8966 sysdeps/unix/sysv/linux/i386/Makefile,
8967 sysdeps/unix/sysv/linux/i386/brk.S,
8968 sysdeps/unix/sysv/linux/i386/fcntlbits.h,
8969 sysdeps/unix/sysv/linux/i386/fpu_control.c,
8970 sysdeps/unix/sysv/linux/i386/fpu_control.h,
8971 sysdeps/unix/sysv/linux/i386/fstat.S,
8972 sysdeps/unix/sysv/linux/i386/fxstat.S,
8973 sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
8974 sysdeps/unix/sysv/linux/i386/init-first.S,
8975 sysdeps/unix/sysv/linux/i386/ipc.S,
8976 sysdeps/unix/sysv/linux/i386/lstat.S,
8977 sysdeps/unix/sysv/linux/i386/lxstat.S,
8978 sysdeps/unix/sysv/linux/i386/mknod.S,
8979 sysdeps/unix/sysv/linux/i386/mmap.S,
8980 sysdeps/unix/sysv/linux/i386/sbrk.S,
8981 sysdeps/unix/sysv/linux/i386/setfpucw.c,
8982 sysdeps/unix/sysv/linux/i386/signum.h,
8983 sysdeps/unix/sysv/linux/i386/socket.S,
8984 sysdeps/unix/sysv/linux/i386/stat.S,
8985 sysdeps/unix/sysv/linux/i386/syscall.S,
8986 sysdeps/unix/sysv/linux/i386/sysdep.S,
8987 sysdeps/unix/sysv/linux/i386/sysdep.h,
8988 sysdeps/unix/sysv/linux/i386/xmknod.S,
8989 sysdeps/unix/sysv/linux/i386/xstat.S:
8990 New Linux i386/ELF specific files.
c64908b0 8991 * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
d2f5be2a
UD
8992 sysdeps/unix/sysv/linux/sys/mman.h,
8993 sysdeps/unix/sysv/linux/sys/msq_buf.h,
8994 sysdeps/unix/sysv/linux/sys/sem_buf.h,
8995 sysdeps/unix/sysv/linux/sys/shm_buf.h,
8996 sysdeps/unix/sysv/linux/sys/socketcall.h,
8997 sysdeps/unix/sysv/linux/sys/timex.h:
8998 New Linux/ELF specific, architecture independent header files.
c64908b0 8999 * sysdeps/unix/sysv/sysv4/linux: Tree removed.
86d2c878 9000
c64908b0
RM
9001Thu Sep 7 17:05:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9002
9003 * stdlib/msort.c (msort_with_tmp): Fixed alignment test. B1 and
e11c3949 9004 B2 are always congruent; just test that B1 is aligned.
d2f5be2a 9005
1571a016
RM
9006Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9007
9008 * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
9009 than WEAK_VALUE.a to see if a weak value has been set. A valid
9010 weak value may set WEAK_VALUE.a to 0.
9011
44c8d1a2
RM
9012Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9013
f405bed5
RM
9014 * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
9015 jmp_buf.
9016
44c8d1a2
RM
9017 * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
9018 for a warning on references to that specific symbol, not the
9019 entire containing object file.
9020 (stub_warning): Pass symbol name to link_warning.
9021 * stdio/gets.c: Pass function name in link_warning invocation.
9022
9023 * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
9024 MACH_SEND_INTERRUPTED. That indicates interrupt_operation was
9025 sent, but failed.
9026
9027 * stdlib/msort.c: Include memcopy.h.
9028 (msort_with_tmp): If operating on aligned op_t words, use direct word
9029 fetches and stores.
9030
9031 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
9032 missing backslash.
9033
e3726b05
RM
9034Thu Aug 31 13:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9035
9036 * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
9037
9038 Rewrote i386 setjmp code in assembly, so as to avoid fighting
9039 with the compiler for the register values.
9040 * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
9041 * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
9042 * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
9043 [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
9044 (_JMPBUF_UNWINDS): Use JB_SP.
9045
a993273c
RM
9046Wed Aug 30 16:44:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9047
9048 * sysdeps/mach/hurd/select.c: Deal with out of order replies
9049 during io_select request loop.
9050 Handle MACH_RCV_TIMED_OUT error from requests.
9051 * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
9052 distinguish MACH_RCV_TIMED_OUT from EINTR.
9053
9054 * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
9055 slash.
9056 (glob_in_dir): Don't allocate extra byte here.
9057
9058 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
9059 Decrement the DT_RELSZ value for the skipped reloc.
9060
18926cf4
RM
9061Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9062
9063 * time/australasia: Updated data from ADO.
9064
9065Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9066
9067 * dirent/dirent.h: Don't include <dirstream.h>.
9068 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
9069
7752137a
RM
9070Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9071
9e865ade
RM
9072 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
9073 instead of `DIR'.
9074 * sysdeps/unix/bsd/dirstream.h: Likewise.
9075 * sysdeps/stub/dirstream.h: Likewise.
9076 * sysdeps/unix/dirstream.h: Likewise.
9077 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
9078 * sysdeps/mach/hurd/seekdir.c: Likewise.
9079 * sysdeps/mach/hurd/opendir.c: Likewise.
9080 * sysdeps/mach/hurd/closedir.c: Likewise.
9081 * sysdeps/mach/hurd/readdir.c: Likewise.
9082 * sysdeps/unix/telldir.c: Likewise.
9083 * sysdeps/unix/seekdir.c: Likewise.
9084 * sysdeps/unix/rewinddir.c: Likewise.
9085 * sysdeps/unix/readdir.c: Likewise.
9086 * sysdeps/unix/opendir.c: Likewise.
9087 * sysdeps/unix/closedir.c: Likewise.
9088 * sysdeps/unix/bsd/telldir.c: Likewise.
9089 * sysdeps/unix/bsd/readdir.c: Likewise.
9090 * dirent/Makefile (headers): Remove dirstream.h.
9091 (distribute): Put it here instead.
9092
7752137a
RM
9093 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
9094
9095 * stdio/vfscanf.c (number): Allow field width to inhibit first
9096 digit after base detection.
9097
9098 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
9099 specified by the precision.
9100
9101 * grp/grpread.c (__grpscan): New function.
9102 * grp/grp.h (__grpscan): Declare it.
9103 * grp/getgrgid.c: Use __grpscan.
9104 * grp/getgrnam.c: Likewise.
9105 * pwd/pwdread.c (__pwdscan): New function.
9106 * pwd/pwd.h (__pwdscan): Declare it.
9107 * pwd/getpwnam.c: Use __pwdscan.
9108 * pwd/getpwuid.c: Likewise.
9109
9110Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9111
9112 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
9113 MAP_FILE.
9114
9115 * hurd/thread-cancel.c: Return EINTR when called on self.
9116 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
9117 __data_start.
9118
3cf595e5
RM
9119Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9120
9121 * inet/netdb.h: Moved to resolv.
9122 * inet/Makefile (headers): Remove netdb.h.
9123 * resolv/Makefile (headers): Add netdb.h.
9124 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
9125 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
9126
9127 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
9128 resuming the thread.
9129 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
9130
9131 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
9132
9133Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9134
9135 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
9136 relocs, and do nothing. Why the linker generates them we may
86d2c878 9137 never know.
3cf595e5 9138
3fe9de0d
RM
9139Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9140
a4bb2589
RM
9141 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
9142 `subdirs' variable.
9143
3cf595e5 9144 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3fe9de0d
RM
9145 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
9146 "intr-msg.h" for special syscall code, instead of i386-specific asm.
9147 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
9148 machine-dependent "intr-msg.h" before mutating thread state to
9149 skip RPC.
9150
9151 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
9152 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
9153 %ecx.
9154
9155 * Makeconfig (link-libc): New variable; use shared library if
9156 available.
9157 (+link): Use it.
9158
9159 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
9160 Instead, declare with `symbol_set_declare'.
86d2c878 9161 (fork): Use symbol_set_* macros for _hurd_fork_locks.
3fe9de0d
RM
9162 Use SS->thread instead of __mach_thread_self (). Suspend all
9163 other threads during task_create and port copying.
9164
191abc51
RM
9165Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9166
9167 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
9168
9169Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9170
9171 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
9172
9173 * hurd/Makefile (sig): Add intr-msg.
9174
54da5be3
RM
9175Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9176
9177 * hurd/thread-cancel.c: New file.
9178 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
9179 rpc_wait case, frob mach_msg args to set timeout on receive.
9180 (_hurdsig_rcv_interrupted_p): Function removed.
9181 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
9182 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
9183 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
9184 * hurd/intr-msg.c: New file.
9185 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
9186 (_hurdsig_rcv_interrupted_p): Declaration removed.
9187 (HURD_EINTR_RPC): Macro removed.
9188 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
9189 these.
9190 * hurd/intr-rpc.h: New file.
9191 * hurd/intr-rpc.defs: Just import intr-rpc.h.
9192 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
9193 (interrupted_reply_port_location): Take new flag arg; only catch
9194 faults if it's set.
9195 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
9196 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
9197 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
9198 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
9199 callers changed.
9200 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
9201 * hurd/Makefile (distribute): Remove intr-rpc.awk.
9202 (sig): Add thread-cancel.
9203 (transform-user-stub, transform-user-stub-output): Variables removed.
9204 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
9205 `__hurd_intr_rpc_*' to `__*'.
9206 (_hurd_intr_rpc_mach_msg): New function.
9207 (_hurd_thread_sigstate): Function removed.
9208 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
9209 instead of __mach_msg inside HURD_EINTR_RPC macro.
9210
9211 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
9212 to take ptrdiff_t arg.
9213
9214 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
9215
9216 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
9217
9218 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
9219 weak_alias): Use `extern' storage class.
9220
76894e2e
RM
9221Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
9222
9223 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
9224 port-count parameters to __auth_makeauth.
9225 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
9226
9227Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9228
9229 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
9230
9231 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
9232
9233Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
9234
9235 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
9236 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
9237 layer socket options.
9238 (IPPROTO_GGP): Delete obsolote protocol.
9239 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
9240 (struct ip_mreq): New type.
9241
99a9e88e
RM
9242Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9243
b25c5d66
RM
9244 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
9245
9246 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
9247 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
9248
99a9e88e
RM
9249 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
9250 when __stdio_open fails with a code other than ENFILE or EMFILE.
9251
5e98d83c 9252Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507fcb75 9253
5e98d83c
RM
9254 * Makefile (headers): Added gnu-versions.h.
9255
9256Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
9257
9258 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
9259 equality, not assignment, to test bitfields.
9260
9261Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9262
9263 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
9264 resolve AF_LOCAL addresses.
9265
9266 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
9267 can't tell us what an address means, just return a zero-length
9268 buffer instead.
9269 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
9270
9271Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
9272
9273 * sysdeps/mach/hurd/bind.c (bind): Don't use
9274 file_invoke_translator, as it doesn't work. Instead just lookup
9275 the translated node again, and hope we're not hit by any race
9276 conditions.
507fcb75 9277
958f803f
RM
9278Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9279
b8dc6a10
RM
9280 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
9281 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
9282 [start-installed-name-rule]: If this is defined, elide rule for
9283 $(objpfx)$(start-installed-name).
99a9e88e
RM
9284 * csu/initfini.c (SECTION): New macro, different definitions for
9285 #ifdef HAVE_ELF and not.
9286 (_init, _fini): Use that macro.
b8dc6a10
RM
9287 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
9288 (start-installed-rule, start-installed-name-rule): New variables;
9289 specify crt1.o, created by our own rule.
9290 ($(objpfx)crt1.o): New rule.
9291 * configure.in: Require autoconf 2.4.2 or later. Change all
9292 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
9293 prettify some messages.
9294 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
9295 sections.
9296 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
9297 this case rather than #ifdef HAVE_ELF.
9298 * config.h.in (HAVE_INITFINI): New macro.
99a9e88e 9299 * config.make.in (have-initfini): New variable, set by configure.
b8dc6a10 9300
4e1bac76
RM
9301 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
9302 "value computed is not used" warning.
9303
9304 * Makeconfig (+gccwarn): Removed -Wconversion.
9305
9306 * csu/initfini.c (GLOBAL): Macro removed.
9307 (_init, _fini): Always define globally.
9308 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
9309
3d61b63c
RM
9310 * asia, backward, europe, leapseconds, southamerica: New data from
9311 ADO's 95e.
9312
9313 * inet/Makefile (routines): Removed inet_addr.
9314 * inet/inet_addr.c: Moved to resolv/ subdirectory.
9315 * resolv/Makefile (routines): Added inet_addr.
9316 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
9317 * resolv/gethnamaddr.c: Likewise.
9318 * resolv/getnetbyaddr.c: Likewise.
9319 * resolv/getnetbyname.c: Likewise.
9320 * resolv/getnetent.c: Likewise.
9321 * resolv/getnetnamadr.c: Likewise.
9322 * resolv/herror.c: Likewise.
9323 * resolv/nsap_addr.c: Likewise.
9324 * resolv/res_comp.c: Likewise.
9325 * resolv/res_debug.c: Likewise.
9326 * resolv/res_init.c: Likewise.
9327 * resolv/res_mkquery.c: Likewise.
9328 * resolv/res_query.c: Likewise.
9329 * resolv/res_send.c: Likewise.
9330 * resolv/resolv.h: Likewise.
9331 * resolv/sethostent.c: Likewise.
9332 * resolv/arpa/nameser.h: Likewise.
9333 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
9334 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
9335 its declarations (and doing so only #ifdef sun!).
99a9e88e 9336 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
3d61b63c
RM
9337
9338 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
9339 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
9340
958f803f
RM
9341 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
9342 if possible.
9343
9344 * mach/shortcut.awk: Emit decls for RPC.
9345
9346 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
9347 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
9348
9349 * Makerules ($(installed-libcs)): Depend on `lib' (only).
9350
874f1b9b
RM
9351Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9352
ff48a63c
RM
9353 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
9354
4356cfd7
RM
9355 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
9356
9357 * sysdeps/unix/sysv/ftime.S: New file.
9358
9359 * locale/locfile-parse.c (categories_write): Cast "" to char *.
9360
9361 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
9362
9363 * time/strftime.c: Use year modulo 100 for %y.
9364
9365 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
9366
9367 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
9368 of one, to work around bug in sunos4.1.2 sed.
9369
874f1b9b
RM
9370 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
9371 memchr instead of strlen to limit search for NUL by precision.
9372
51813e80
RM
9373Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9374
9375 * sysdeps/posix/pathconf.c: New file.
9376
d7e16e9e
RM
9377Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9378
9379 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
9380 before @PLT.
9381 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
9382 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
9383 * sysdeps/i386/bsd-setjmp.S: Likewise.
9384
9c9022dd
TBB
9385Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9386
9387 * inet/Makefile (routines): Added `ruserpass'.
9388 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
9389 client. Modified to remove the fourth arg AACCT. Do nothing for
9390 the `account' and `macdef' keywords. Other incidental changes
9391 because we are not in the FTP source tree.
9392
439d1d45
RM
9393Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9394
9c9022dd
TBB
9395 * sysdeps/stub/init-posix.c: Removed stub warning.
9396
587dbc6f
RM
9397 * Makefile (autoconf-it): Make it executable and unwritable.
9398
9399 * configure.in (sysnames): Under --enable-debug-configure, spew
9400 potential sysnames.
9401
439d1d45
RM
9402 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
9403 #ifdef PIC.
9404 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
9405 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
9406 jump insn.
9407
9408 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
9409 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
9410 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
9411 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
9412 stack. Use JUMPTARGET(syscall_error) in jump insn.
9413
9414 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
9415
9416 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
9417 ASM_TYPE_DIRECTIVE.
9418 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
9419
86d2c878 9420 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
439d1d45
RM
9421 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
9422 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
9423
439d1d45 9424 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
86d2c878 9425 instead of unix/sysv.
439d1d45
RM
9426 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
9427 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
9428 to new directory sysdeps/unix/sysv/sysv4/linux.
9429 * sysdeps/unix/sysv/linux: Directory removed.
9430 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
9431 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
9432 * sysdeps/unix/sysv/linux/i386: Directory removed.
9433
9c9022dd
TBB
9434 Fixes to help Linux, inspired by drepper's work:
9435 * sysdeps/posix/utimes.c: New file.
9436 * sysdeps/generic/getdomain.c: New file.
9437 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
9438 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
9439 externals _dl_argc, _dl_argc, and _environ.
9440
584de3b9
TBB
9441Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
9442
9443 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
9444 EOPNOTSUPP as indications that the server has died.
9445 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
9446 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
9447
ac00263e
JM
9448Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
9449
9450 * strtol.c: Portability changes from Uli Drepper.
9451 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
9452
d819080c
RM
9453Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9454
9455 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
9456 DATA for the entry SP; DATA[-1] is always the return address
9457 location. In both cthreads and non-cthreads cases, use asm to
9458 force parameters into %eax and %ecx before return, and mutate
9459 DATA[-1] to return to specific asm code to set up the user from
9460 %eax and %ecx.
9461 [PIC] (_init): Caller changed.
9462 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
9463 with SP unwound to argument data ptr.
9464
9465Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9466
9467 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
9468 when 0x08000000 and up are not mapped.
9469
9470 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
9471 before touching it.
9472 (lib%.so): Use -Wl to get -soname to ld.
9473
9474 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
9475
9476 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
9477
487253ea
RM
9478Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9479
9480 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
9481 library's name including $(libprefix) and major version number.
9482
9483 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
9484 in place of xcalloc.
9485
9486 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
9487 `ifndef', use the $(origin) function to only set these if they are
9488 undefined, and not if they are defined to empty.
9489
9490 * gnu-versions.h: New file.
9491 * features.h (__GNU_LIBRARY__): Increase value to 5.
9492
d6e2f671
RM
9493Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9494
9495 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
9496 expression, to avoid gcc's "value computed is not used" warning.
9497
9498 * libc-symbols.h (_elf_set_element): Give the set-element variable
9499 an `unused' attribute.
9500
9501 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
9502 __attribute__ ((__const__)).
9503 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
9504
9505 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
9506 LINK->resource.next->resource.prevp when appropriate, not
9507 LINK->resource.next->thread.prevp!!!
9508
882087b9
RM
9509Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9510
df2a0c93
RM
9511 * configure.in (libc_cv_asm_set_directive): Make sure that the
9512 `.set' directive really worked by linking against a reference to
9513 the alias.
9514
882087b9
RM
9515 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
9516 [PIC] (soinit): Renamed to (global) _init.
9517
1a2df358
RM
9518Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9519
882087b9
RM
9520 * malloc/Makefile (gmalloc-routines): Remove valloc.
9521 (dist-routines): Add it here.
9522
9523 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
9524 emacs_loser_valloc to inhibit valloc declaration below.
9525
1a2df358
RM
9526 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
9527 installation rules.
9528
9529 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
9530 it uses the `.type' directive, which is necessary for shared
9531 libraries to work properly.
9532
5bf62f2d
RM
9533Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9534
f2b0f935
RM
9535 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
9536 from zero fill.
9537
9538 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
9539 if nonzero, don't let *REF satisfy the reference itself.
9540 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
9541 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
9542 _dl_lookup_symbol.
9543 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
9544 R->r_offset to RESOLVE callback.
9545 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
9546 satisfy the reference itself if its value equals the reloc's
9547 offset.
9548
9549 * elf/rtld.c (dl_main): Write a newline in fatal msg.
9550
9551 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
9552
5bf62f2d
RM
9553 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
9554
9555 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
9556 and user entry point addresses.
9557
9558 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
9559 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
9560
9561 * Makerules (install-lib.so): Don't include libc.so.
9562 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
9563 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
9564 install, depend on the installed $(install-lib.so) files.
9565 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
9566
9567 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
9568 allocate high addresses to avoid random mappings appearing there.
9569 (mmap): Comment out mask; always pass zero.
9570
9571Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9572
9573 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
9574 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
9575
9576 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
9577 when successful.
9578
9579 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
9580 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
9581 variables, using the `threadvars' buffer.
9582
9583 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
9584 * sysdeps/i386/dl-runtime.c: Likewise.
9585
9586 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
9587 _dl_sysdep_fatal call.
9588 (__assert_fail): Likewise.
9589
9590 * locale/Makefile (localedef-modules): Renamed ctype to
9591 locale-ctype so as not to conflict with the object file for
9592 ctype/ctype.c in the build directory.
9593
75598ca6
RM
9594Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9595
9596 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
9597 insists on seeing the following E as part of hex 7FE, and
9598 complaining that is wider than a byte.
9599
ded29119
RM
9600Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9601
9602 * hurd/Makefile (sig): Added thread-self.
9603 * hurd/hurd.h: Declare hurd_thread_self.
9604 * hurd/thread-self.c: New file.
9605
9606Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9607
9608 * elf/rtld.c: Initialize RTLD_MAP.l_type.
9609 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
9610 the dynamic linker itself.
5bf62f2d
RM
9611 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
9612 lt_interpreter, first undo relocation done during bootstrapping.
ded29119 9613
a1a9d215
RM
9614Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9615
9616 * mach/Makefile (server-interfaces): Removed notify and
9617 device_reply. For shlibs with eager binding, libmachuser.so must
9618 not refer to any functions not defined in libc.
9619
6f6ce652
JM
9620Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
9621
9622 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
9623 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
9624
7cc645ed
RM
9625Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9626
9627 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
9628 pending signals if the thread is in a critical section. It will
9629 send us a msg when it finishes.
9630
9631 * sysdeps/mach/hurd/pathconf.c: New file.
9632 * sysdeps/mach/hurd/fpathconf.c: New file.
9633
9634 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
9635 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
9636
a692d003
RM
9637Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9638
9639 * elf/Makefile (ld.so): Use -nostartfiles in addition to
9640 -nostdlib.
9641
3b5a8107
JM
9642Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
9643
9644 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
9645 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
9646 memchr unless one manually arranges for them to define __STDC__.
9647
a2fe9c76
RM
9648Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9649
9650 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
9651 args on stack from kernel.
9652
9653 * posix/Makefile, sysdeps/alpha/Makefile,
9654 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
9655 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
9656 in the absence of CVS dirs.
9657
9658 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
9659 kernel on the stack properly.
9660
9661 * set-init.c: Never call _init/_fini; just run __libc_subinit.
9662
9663 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
9664 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
9665
9666 * configure.in: Move defaulting of --with-elf and --with-gnu-*
9667 based on host os outside the AC_CACHE_VAL for the sysdirs
9668 calculation.
9669
9670 * Makeconfig (localedir, nlsdir): New variables.
9671
9672 * values.h: New file.
9673 * Makefile (headers): Add values.h.
9674
9675 * locale/Makefile (distribute): Add error.h.
9676 * locale/localedef.c: Include "error.h".
9677 (main): Use error_message_count instead of warning_cntr.
9678
2b83a2a4
RM
9679Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9680
9681 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
9682 * locale/charmap.c: New file.
9683 * locale/collate.c: New file.
9684 * locale/config.h: New file.
9685 * locale/ctype.c: New file.
9686 * locale/ctypedump.c: New file.
9687 * locale/hash.c: New file.
9688 * locale/hash.h: New file.
9689 * locale/iso-4217.def: New file.
9690 * locale/keyword.gperf: New file.
9691 * locale/keyword.h: New file.
9692 * locale/libintl.h: New file.
9693 * locale/locale.c: New file.
9694 * locale/localedef.c: New file.
9695 * locale/localedef.h: New file.
9696 * locale/locfile-lex.c: New file.
9697 * locale/locfile-parse.c: New file.
9698 * locale/messages.c: New file.
9699 * locale/monetary.c: New file.
9700 * locale/numeric.c: New file.
9701 * locale/token.h: New file.
9702
9703 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
9704 * posix/Makefile (headers): Add regex.h.
9705 (routines): Add regex.
9706 (gpl2lgpl): Add regex.c and regex.h.
9707
9708Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9709
9710 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
9711 instead of hard-coding "/share/locale".
9712
74aa5ce5
RM
9713Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9714
9715 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
9716
9717Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9718
9719 * elf/elf.h (ELFMAG, SELFMAG): New macros.
9720
9721Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
9722
9723 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
9724 the case where it starts out less than _hurd_dtablesize.
9725
9726Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9727
9728 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
9729 make sure the new size exceeds FIRST_FD.
9730
99b306dc
RM
9731Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9732
9733 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
9734
1d26b22c
RM
9735Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9736
99b306dc
RM
9737 * Makerules (install-lib.so): Add %.so for each %_pic.a.
9738
1d26b22c
RM
9739 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
9740 the first thing in .data.
9741
9742 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
9743
9744 * hurd/hurdstartup.h: New file.
9745
9746 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
9747 are the same. Use `jz' instead of `jeq'.
9748
9749 * Makeconfig (config.make): Depend on config.status, and run it to
9750 update.
9751 (config.status): New target; depend on configure.
9752 If target (config.status) exists, run it with --recheck to update;
9753 if not, give error msg saying to run confiugre by hand.
9754 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
9755 (sysd-Makefile-force): Set this variable to FORCE in this case, to
9756 force a rebuild of sysd-Makefile.
9757 (sysd-Makefile): Depend on $(sysd-Makefile-force).
9758 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
9759 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
9760 variable to FORCE in this case, to force a rebuild of sysd-rules.
9761 (sysd-rules): Depend on $(sysd-rules-force).
9762 Write into the file sysd-rules-sysdirs:=$(sysdirs).
86d2c878 9763
1d26b22c 9764 * Makerules (LDFLAGS-c.so): Change ld option -interp to
86d2c878 9765 -dynamic-linker.
1d26b22c
RM
9766
9767 * Makerules (do-install-program): New canned sequence.
9768 (install-bin, install-sbin): Use it.
9769 (install for lib*.so): Use it instead of $(do-install).
9770 Fix .so installation rules to handle lib*.so and *.so, deal with
9771 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
9772 i.e. "libc.so-version = .1".
9773
9774Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9775
9776 * elf/do-rel.h: New file, split out of dynamic-link.h.
9777 * elf/Makefile (distribute): Add do-rel.h.
9778
421f82e5
RM
9779Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9780
9781 * Makeconfig (+gccwarn): Add -Winline.
9782
9783 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
9784 set, avoid abort_rpcs, and use reply and intr ports saved in
9785 SS->context.
9786 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
9787 from SS->context. Don't clear SS->context.
9788 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
9789 setting SS->context. If msg_sig_post returns, re-lock and clear
9790 SS->context.
9791
9792Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9793
9794 * mach/Makefile (errsystems.c): Comment out generation rule.
9795
9796 * sysdeps/mach/_strerror.c: Consider a system unknown if its
9797 bad_sub member is null.
9798
9799 * mach/mig-alloc.c: Add weak alias to non-__ name.
9800
e4448b6f
RM
9801Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9802
9803 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
9804
08162fa8
RM
9805Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9806
e4448b6f
RM
9807 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
9808 function. Duh.
9809
9810 * hurd/Makefile (distribute): Added hurdstartup.h.
9811 * hurd/hurd.h: Remove _hurd_startup decl.
9812
9813 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
9814 ((__unused__)) instead of gratuitous self reference.
9815
9816 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
9817 table if FD2 doesn't fit.
9818
9819 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
9820 not the current table size.
9821
d66e34cd
RM
9822 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
9823
08162fa8
RM
9824 Implemented runtime dynamic linker to support ELF shared libraries.
9825 * elf/Makefile: Added rules to make ld.so and libdl.
9826 * elf/dl-error.c: New file.
9827 * elf/dl-fini.c: New file.
9828 * elf/dl-init.c: New file.
9829 * elf/dl-load.c: New file.
9830 * elf/dl-lookup.c: New file.
9831 * elf/dl-object.c: New file.
9832 * elf/dl-reloc.c: New file.
9833 * elf/dlclose.c: New file.
9834 * elf/dlerror.c: New file.
9835 * elf/dlopen.c: New file.
9836 * elf/dlsym.c: New file.
9837 * elf/dynamic-link.h: New file.
9838 * elf/link.h: New file.
9839 * elf/rtld.c: New file.
d66e34cd
RM
9840 * sysdeps/i386/dl-machine.h: New file.
9841 * sysdeps/stub/dl-machine.h: New file.
9842 * sysdeps/i386/dl-runtime.c: New file.
9843 * sysdeps/stub/dl-runtime.c: New file.
9844 * sysdeps/i386/elf/start.S: New file.
9845 * sysdeps/generic/dl-sysdep.c: New file.
9846 * sysdeps/mach/hurd/dl-sysdep.c: New file.
99b306dc 9847 * sysdeps/mach/hurd/i386/init-first.c: New file.
e4448b6f
RM
9848 * sysdeps/i386/init-first.c: New file.
9849 * sysdeps/stub/init-first.c: New file.
86d2c878 9850
08162fa8
RM
9851Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9852
9853 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
9854 libc.so runnable.
9855 * version.c (__libc_print_version): Add "et al" and missing NL to
9856 author credit.
9857
b7eb8445
RM
9858Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9859
9860 * posix/glob.c (S_ISDIR): Define if undefined.
9861
10ceac89
RM
9862Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9863
9864 * configure.in: Unless --without-fp, prepend */fpu before each
9865 machine dir in $mach; don't prepend FPU dirs at end. If
9866 --with-elf, prepend MACHINE/elf directories at end; don't insert
9867 them into $mach.
9868
9869 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
9870
9871 * sysdeps/stub/clock.c: Added stub warning.
9872 * sysdeps/stub/dirfd.c: Likewise.
9873 * sysdeps/stub/exc2signal.c: Likewise.
9874 * sysdeps/stub/fdopen.c: Likewise.
9875 * sysdeps/stub/flock.c: Likewise.
9876 * sysdeps/stub/fpathconf.c: Likewise.
9877 * sysdeps/stub/ftruncate.c: Likewise.
9878 * sysdeps/stub/gtty.c: Likewise.
9879 * sysdeps/stub/isatty.c: Likewise.
9880 * sysdeps/stub/killpg.c: Likewise.
9881 * sysdeps/stub/madvise.c: Likewise.
9882 * sysdeps/stub/mkstemp.c: Likewise.
9883 * sysdeps/stub/mktemp.c: Likewise.
9884 * sysdeps/stub/mprotect.c: Likewise.
9885 * sysdeps/stub/msync.c: Likewise.
9886 * sysdeps/stub/pathconf.c: Likewise.
9887 * sysdeps/stub/poll.c: Likewise.
9888 * sysdeps/stub/raise.c: Likewise.
9889 * sysdeps/stub/readv.c: Likewise.
9890 * sysdeps/stub/setenv.c: Likewise.
9891 * sysdeps/stub/setlogin.c: Likewise.
9892 * sysdeps/stub/sigaltstack.c: Likewise.
9893 * sysdeps/stub/sigintr.c: Likewise.
9894 * sysdeps/stub/sigstack.c: Likewise.
9895 * sysdeps/stub/sleep.c: Likewise.
9896 * sysdeps/stub/sstk.c: Likewise.
9897 * sysdeps/stub/stime.c: Likewise.
9898 * sysdeps/stub/stty.c: Likewise.
9899 * sysdeps/stub/syscall.c: Likewise.
9900 * sysdeps/stub/sysconf.c: Likewise.
9901 * sysdeps/stub/truncate.c: Likewise.
9902 * sysdeps/stub/ualarm.c: Likewise.
9903 * sysdeps/stub/usleep.c: Likewise.
9904 * sysdeps/stub/utimes.c: Likewise.
9905 * sysdeps/stub/writev.c: Likewise.
9906
9907 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
9908
9909Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9910
9911 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
9912
9913Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9914
9915 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
9916 directories and append slashes to them in final pass before
9917 sorting.
9918 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
9919 slash; never append it here.
9920
11872325
RM
9921Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9922
9923 * mach/Machrules [interface-library]
9924 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
9925 -nostdlib.
9926
9927 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
9928 _hurd_siglock only around initial task creation in parent. Use
9929 _hurd_critical_section_unlock at end. Handle dead name rights
9930 properly, and deal with a send right dying while we try to copy
9931 it. For the time being, use assert_perror for kernel and proc RPC
9932 failures.
9933
9934Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9935
9936 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
9937 using $(object-suffixes-$(lib)) instead.
9938
9939 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
9940
9941 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
9942 (LDFLAGS-c.so): New variable.
9943
9944 * resolv/res_init.c (res_init): Don't clobber _res.options with
9945 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
9946
9947 * hurd/hurd.h: Declare _hurd_startup.
9948 * hurd/hurdstartup.c: New file.
9949 * hurd/Makefile (routines): Add hurdstartup.
9950
11d90def
RM
9951Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9952
b96bdcd7
RM
9953 * hurd/hurdsig.c: Use assert_perror for many calls which should
9954 never fail and previously were not checked.
9955
11d90def
RM
9956 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
9957 Point the return address for sigreturn's frame at a "hlt" insn so
9958 it will definitely crash if sigreturn returns.
9959
0ac2e7d8
BK
9960Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
9961
9962 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
11d90def 9963 HAVE_WEAK_SYMBOLS for doing weak_alias.
0ac2e7d8 9964
f4153e13
RM
9965Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
9966
9967 * configure.in: Move $os tests to set $elf et al earlier, before
9968 construction of $sysnames. Instead of prepending MACHINE/elf to
9969 $sysnames, append &/elf after each elt appended to $mach.
65b3cbcb 9970
f4153e13 9971Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
67be1ecf 9972
65b3cbcb
RM
9973 * configure.in (libc_cv_asm_global_directive): New check to define
9974 ASM_GLOBAL_DIRECTIVE.
9975 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
d02907df
RM
9976 * libc-symbols.h (strong_alias_asm, strong_alias): Use
9977 ASM_GLOBAL_DIRECTIVE on the alias.
65b3cbcb
RM
9978
9979 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
9980 HAVE_WEAK_SYMBOLS" #defns.
9981
5fa25886
BK
9982Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
9983
9984 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
9985 of the byte that was zero, so we return a valid number.
9986
e0585da1
BK
9987Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
9988
5fa25886 9989 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
e0585da1
BK
9990 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
9991
dce38123
BK
9992Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
9993
fc40c039
BK
9994 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
9995 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
9996 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
9997 [BITS_PER_MP_LIMB == 64]: Likewise.
9998
d619f2a8
BK
9999 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
10000 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
10001 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
10002 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
10003 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
10004 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
10005 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
10006 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
10007 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
10008 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
10009 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
10010
10011 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
77162807
BK
10012 * sysdeps/unix/mips/fork.S (fork): Likewise.
10013 * sysdeps/unix/mips/pipe.S (fork): Likewise.
10014 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
10015 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
10016 * sysdeps/unix/mips/wait.S (__handler): Likewise.
10017 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
10018 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
10019 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
10020 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
10021 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
10022 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
10023 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
10024 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
10025 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
10026 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
10027 instead of `zero' for the li instruction.
10028
dfd5ddb7
BK
10029 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
10030 preprocessor comments, not assembler comments.
fa21d693 10031 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
dce38123
BK
10032 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
10033
eb712cf1
RM
10034Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10035
10036 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
10037 in place of inline.
10038
6e33fad3
RM
10039Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10040
e215c478 10041 * Makefile (distribute): Add ChangeLog.[0-9].
335aa320 10042
e215c478
RM
10043 * configure.in: Add check for .set directive.
10044 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
335aa320
RM
10045 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
10046 strong_alias_asm): Use `foo = bar' syntax instead.
e215c478
RM
10047
10048 * Makerules [! subdir] (O%-lib): Don't prepend ../.
10049
10050 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
10051
335aa320
RM
10052 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
10053 $host_os checks to set gnu_ld/as and elf before sysdirs
10054 generation. Fix $with_fp test.
10055 [$elf=yes]: Prepend MACHINE/elf directory.
10056
6e33fad3
RM
10057 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
10058 being cleared are already known to be set. Thanks Ulrich.
10059
6432a779
RM
10060Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10061
10062 * posix/environ.c: Add weak alias `_environ'.
10063
53afa8d9
RM
10064Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10065
10066 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
10067 * sysdeps/i386/sub_n.S [PIC]: Likewise.
10068
217d85b9
RM
10069Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10070
53afa8d9
RM
10071 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
10072 word `const'.
10073
10074 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
10075 $(foo-$(suffix $@)).
10076
10077 * manual/Makefile (chapters-incl): Filter out summary.texi.
10078
217d85b9
RM
10079 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
10080 a weak symbol instead of literal "STRTOF".
10081
10082 * locale/setlocale.c: Work around ld bug: don't weakify refs to
10083 _nl_{current,C}_*.
10084
8c0dc19c
RM
10085Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10086
10087 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
10088
10089 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
10090 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
10091
10092 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
10093 #ifdef emacs, but only #ifndef memmove.
10094 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
10095 safe_bcopy.
10096 (memmove): Define only if undefined.
10097
73fbb9a5
RM
10098Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10099
6aa8372e
RM
10100 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
10101 sure these are simply-expanded variables.
10102
883bc19b
RM
10103 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
10104 mmap call.
10105
10106 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
10107 for these too.
10108
10109 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
10110 set c_oflag value.
10111
10112 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
10113
10114 * locale/Makefile (categories): Uncomment collate.
10115 * locale/lc-collate.c: New file.
10116
8ab69eb3
RM
10117 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
10118 #ifdef emacs.
10119 * malloc/realloc.c: Likewise.
10120
8c0dc19c
RM
10121 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
10122 (_itoa): Use it in defn.
8ab69eb3
RM
10123 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
10124 "_itoa.h".
10125 (_itoa): Function removed.
10126
73fbb9a5
RM
10127 * malloc/free.c: Remove use of `assert'.
10128
10129 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
10130 __malloc_safe_bcopy; #define safe_bcopy.
10131 * malloc/free.c: Cope with systems lacking `memmove'.
10132 (_free_internal): Cast result of _malloc_internal.
10133
4bca5a35
RM
10134Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10135
e627021e
RM
10136 * hurd/hurdinline.c: Include signal.h first, so we don't define
10137 its inlines too.
10138
10139 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
10140 of -1 to avoid compiler warning.
10141
10142 * configure.in (host_os=linux*): Set elf=yes for this, not just
10143 linux*elf*.
10144
c0fef53b
RM
10145 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
10146 and open.
10147
4bca5a35
RM
10148 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
10149
45b28a8f
RM
10150Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10151
fa0ad204
RM
10152 * sysdeps/unix/start.c: Remove spurious decl and #endif.
10153
45b28a8f
RM
10154 * misc/progname.c (program_invocation_name,
10155 program_invocation_short_name): Make these initialized data
10156 definitions.
10157
10158 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
10159 so gcc doesn't optimize out the function entirely.
10160
e607b492
RM
10161Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10162
c4bf5a3e
RM
10163 * posix/execvp.c: Don't use stat to search path; just try execv
10164 until it works.
10165
e607b492
RM
10166 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
10167 SS->active_resources, so that _hurdsig_longjmp_from_handler will
10168 be called when a longjmp unwinds the signal frame.
10169 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
10170 SS->active_resources chain added by _hurd_setup_sighandler.
10171 * hurd/sigunwind.c: New file.
10172 * hurd/Makefile (sig): Add sigunwind.
10173
10174 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
10175
10176 * MakeTAGS (tags-sources): Include $(all-dist).
10177 [subdir] (all-dist): Define to $(distribute).
10178
2f8033d6
RM
10179Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10180
193ce8dc
RM
10181 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
10182 parent objdirs.
10183
10184 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
10185 filtering out $($(lib)-inhibit-o); use that instead of
10186 $(object-suffixes) in all the other variables.
10187
2f8033d6
RM
10188 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
10189 if undefined.
10190
10191 * string/strxfrm.c: Just copy the string (for now).
10192 * string/strcoll.c: Just call strcmp (for now).
10193
10194 * mach/Makefile (lock): Add mutex-init.
10195 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
10196 _cthread_mutex_unlock_routine): Variables removed.
10197 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
10198 (__mutex_init): Function moved to new file mutex-init.c.
10199 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
10200
67188fe6
BK
10201Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
10202
10203 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
0a648051 10204 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
67188fe6 10205
b1f11361
RM
10206Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10207
10208 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
10209 both are zero).
10210
a9df8829
RM
10211Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10212
b1f11361
RM
10213 * elf/dlfcn.h: New file.
10214
ea7d9938
RM
10215 * Make-dist (README): Commit it to CVS if there is a CVS directory.
10216
a9df8829
RM
10217 More changes from Germano Caronni <caronni@tik.ethz.ch>:
10218 * malloc/free.c: Relocate _heapinfo when that allows us to return
10219 core to the system.
10220
10221 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
10222 _MALLOC_INTERNAL.
10223
1474b80f
RM
10224Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10225
c316b486
RM
10226 * mach/Makefile (headers): Add mach/mach_traps.h.
10227
10228 * Makerules ($(installed-libcs) rule): Fix typos.
10229
342414a6
RM
10230 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
10231 * sysdeps/stub/revoke.c: New file.
10232 * misc/Makefile (routines): Add revoke.
10233 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
10234 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
10235 (forkpty): Declare login_tty.
10236 * misc/logwtmp.c (logwtmp): Declare to return void.
10237 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
10238
1474b80f
RM
10239 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
10240
10241 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
10242 unless L_SET already defined.
10243 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
10244 already defined.
10245
10246 Incorporated -lutil library from 4.4-Lite.
10247 * misc/Makefile (extra-libs, libutil-routines): New variables.
10248 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
10249 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
10250
10251 Support simple, light-weight unwind-protect mechanism for longjmp.
10252 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
10253 * sysdeps/mach/hurd/jmp-unwind.c: New file.
10254 * sysdeps/stub/jmp-unwind.c: New file.
10255 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10256 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
10257 * setjmp/Makefile (routines): Add jmp-unwind.
10258 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
10259 `prevp' members into new substructure `resource'; add another such
10260 substructure `thread' and members `cleanup' (function ptr) and
10261 `cleanup_data' (generic ptr).
10262 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
10263 into the `_hurd_self_sigstate ()->active_resources' list via the
10264 `thread' substructure.
10265 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
10266 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
10267 LINK->cleanup_data' to the port extracted.
10268 * hurd/hurd/signal.h (struct hurd_sigstate): New member
10269 `active_resources'.
10270 * hurd/port-cleanup.c: New file.
10271 * hurd/Makefile (routines): Add port-cleanup.
10272
10273 * malloc/malloc.c: Include errno.h.
10274
10275Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10276
10277 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
10278
a04e7405
RM
10279Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10280
d365fd2c
RM
10281 * misc/Makefile (headers): Add utmp.h.
10282 * misc/utmp.h: New file, incorporated from 4.4-Lite.
10283
a04e7405
RM
10284 * stdio/printf-parse.h: New file, mostly written by drepper.
10285 * stdio/vfprintf.c: Rewritten, mostly by drepper.
10286 * stdio/printf-prs.c: Rewritten.
10287 * stdio/Makefile (distribute): Add printf-parse.h.
10288
10289Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10290
10291 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
10292 with asm name. Just do a ".set start, __start".
10293
10294 * malloc/realloc.c: Call _free_internal instead of free.
10295
49e522bf
RM
10296Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10297
10298 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
10299 directory, open LOCALE/LC_*/SYS_LC_* instead.
10300
1e9dc039
RM
10301Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10302
49e522bf
RM
10303 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
10304 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
10305 stdio/gen-mpn-copy: Files moved to stdlib.
10306 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
a04e7405 10307 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
49e522bf
RM
10308 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
10309 headers.
10310 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
10311 headers.
10312
6bf02878
RM
10313 * Makefile (parent-mostlyclean): Don't use $(libc.a).
10314 (parent-clean): Use $(objpfx) to find sysd-*.
10315 * Rules (generated): Append dummy.o dummy.c.
4788ab46
RM
10316 * Makerules (lib): Depend on lib-noranlib.
10317 (lib-noranlib): Depend on $(install-lib) in objdir.
10318 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
10319 from objdir. Don't remove TAGS; it comes in the distribution.
10320
10321 * malloc/malloc.c (morecore): Save errno around call to
10322 _realloc_internal. Don't account for the additional new blocks of
10323 the info table itself when choosing the new table size for the
10324 first crack; if it succeeds, the new blocks will have been found
10325 in existing free space already described by the existing info
10326 table.
10327
1e9dc039
RM
10328 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
10329 read-ahead character.
10330
be69ea41
RM
10331Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10332
1e9dc039
RM
10333 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
10334 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
10335 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
10336 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
10337 Get anal with unsigned to pacify compiler.
10338
be69ea41
RM
10339 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
10340 means %d from 3rd arg).
10341
10342 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
10343
10344 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
10345 END, not GROUP.
10346
693e7b96
RM
10347Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10348
a38f13ba
RM
10349 * Makefile (subdirs): Put elf last.
10350
693e7b96
RM
10351 * sunrpc/Makefile (install-lib): Variable removed.
10352 (rpcsvc-objs): Variable removed.
10353 (extra-objs): Don't include $(rpcsvc-objs).
10354 (extra-libs): New variable, contains librpcsvc.
10355 (librpcsvc-routines): New variable.
10356 (librpcsvc-inhibit-o): New variable, contains .so.
10357 (omit-deps): Set this to $(librpcsvc-routines).
10358 ($(objpfx)rpcgen): Don't use $(libc.a).
10359 (lib, $(objpfx)librpcsvc.a): Targets removed.
10360
10361 * o-iterator.mk, extra-lib.mk: New files.
10362 * Makerules (o-iterator): New variable.
10363 [extra-libs]: Include extra-lib.mk to generate rules for each word
10364 of $(extra-libs).
10365 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
10366
b3fe1350
UD
10367Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10368
10369 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
68b3ef49 10370 Handle 80-bit denormalized numbers correctly.
b3fe1350 10371
68b3ef49 10372 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
693e7b96 10373 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
68b3ef49
RM
10374 * stdlib/strtod.c (RETURN): Add parentheses around return value.
10375 (round_and_return): Correct handling of denormalized numbers.
b3fe1350 10376
693e7b96
RM
10377 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
10378 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
10379 exponent.
b3fe1350 10380
f0bf9cb9
RM
10381Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10382
10383 * locale/C-ctype.c: New correct data generated by drepper.
10384
10385 * Rules: Don't use $(libc.a).
10386
10387 Parsing of grouped numbers contributed by Ulrich Drepper.
10388 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
10389 new flag arg; if nonzero, parse locale-dependent thousands
10390 grouping and interpret only the prefix that is correctly grouped.
10391 (strtol): Define this to call _strtol_internal with zero for the flag.
10392 Use a weak symbol for the definition.
10393 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
10394 Check for the exponent of the number overflowing the float format.
10395 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
10396 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
10397 [__OPTIMIZE__]: Define inline functions calling those.
c45e5aa9
RM
10398 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
10399 (strtold): Remove weak alias.
10400 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
10401 (strtof): Remove weak alias.
f0bf9cb9
RM
10402 * stdlib/grouping.h: New file, written by drepper.
10403 * stdlib/Makefile (distribute): Add grouping.h.
10404 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
10405 __strtoX_internal with the grouping flag set iff the modifier is
10406 present.
10407
10408Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10409
10410 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
10411
10412 * mach/Machrules: Produce static deps for all object flavors.
10413 [interface-library]: Remove all these variables and rules.
10414 ($(interface-library)-routines): Define this variable.
10415 (extra-libs): Append $(interface-library) to this.
10416 * mach/Makefile (interface-library): Omit .a suffix.
10417 * hurd/Makefile: Likewise.
10418
10419Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10420
10421 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
10422 early if no new data in buffer after priming.
10423
01a36ad3
RM
10424Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10425
f0bf9cb9
RM
10426 * Makerules (object-suffixes, libtypes): Move all these variables
10427 to Makeconfig.
10428 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
10429
10430 * Makerules (build-extra-lib): New canned sequence.
10431
10432 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
10433 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
10434
10435 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
10436 Add missing semicolon.
10437 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
10438 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
10439 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
10440
10441 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
10442 locale data format is implemented.
10443
10444 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
10445 Pass &__sigreturn on the stack to the trampoline code, so it is
10446 not position-dependent.
10447
10448 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
10449 Don't include <stdarg.h>.
86d2c878 10450 (__printf_fp): Last arg ARGS is now `const void **const';
f0bf9cb9
RM
10451 dereference ARGS[0] instead of using va_arg.
10452
10453 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
10454 loop to install data.
10455
10456 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
10457 to extract number from item code.
10458 (_nl_load_locale): Close the descriptor when finished.
10459
10460 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
10461 place of malloc.
10462
10463 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
10464
67a3a8ac
RM
10465 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
10466 to avoid warning.
10467 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
10468 int to avoid warning.
10469
51f75302
RM
10470 Support building several flavors of objects and libraries.
10471 * Makerules (libtypes, object-suffixes): New variables.
10472 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
10473 suffix.
10474 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
10475 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
10476 (close-check-inhibit-asm): Append a semicolon.
10477 (sysd-rules): Generate rules for each object suffix.
10478 (compile.S, compile.c): Always assume gcc.
10479 (OUTPUT_OPTION): Define unconditionally.
10480 (+make-deps): In generated rule, produce a dependent for each
10481 object suffix.
10482 (.SUFFIXES): Add $(object-suffixes) in place of .o.
10483 (.PRECIOUS): Make all suffix flavors precious.
10484 ($(libc.a)): Target removed.
10485 (lib): Depend on each enabled libtype.
10486 (libobjs, objects, objs): Depend on all the enabled object flavors.
10487 (lib%.a): New pattern rule.
10488 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
10489 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
10490 to make one for each flavor; library dep rule likewise rewritten.
10491 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
10492 flavor.
10493 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
10494 (installed-libcs): New variable.
10495 (install): Depend on that instead of
10496 $(libdir)/lib$(libprefix)$(libc-name).a;
10497 that file's rule rewritten to make each enabled libtype.
10498 (install-lib.so): New variable, filters lib%.so from $(install-lib).
10499 (install-lib): Filter out lib%.so after setting install-lib.so.
10500 [$(build-shared)=yes] (install): Install $(install-lib.so).
10501 (common-mostlyclean): Remove all flavors of objects.
01a36ad3
RM
10502 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
10503 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
10504
424f8c09
RM
10505Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10506
01a36ad3
RM
10507 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
10508 * sysdeps/stub/pause.c: Likewise.
10509 * sysdeps/stub/time.c: Likewise.
10510
10511 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
10512 locale data format is implemented.
10513 * stdlib/wctomb.c: Likewise.
10514
10515 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
10516 gcc bug is fixed.
10517 * mach/errsystems.c: File removed.
10518
10519 * Makeconfig (libc.a): Variable removed.
10520 (+link): Don't use it.
10521
10522 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
10523 assuming `yes'.
10524
424f8c09
RM
10525 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
10526 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
10527 don't use __realloc_hook.
10528 (realloc): New function; call __realloc_hook ?: _realloc_internal.
10529 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
10530 don't use __malloc_hook.
10531 (malloc): New function; call __malloc_hook ?: _malloc_internal.
4788ab46 10532 Changes from Germano Caronni <caronni@tik.ethz.ch>:
424f8c09
RM
10533 (initialize): Set up _heaplimit to cover the _heapinfo table.
10534 (morecore_recursing): New static variable.
10535 (morecore): If that is set, return null immediately.
10536 When growing the info table, before getting new core from the
10537 system for it, set morecore_recursing and try moving _heapinfo
10538 with _realloc_internal. When that fails and we get new core, set
10539 _heaplimit to cover the core for the new _heapinfo table.
10540 (register_heapinfo): New function. Record the _heapinfo table's
10541 own blocks in that table and in the statistics variables.
10542 (initialize, _malloc_internal): Use it after allocating new table.
10543
10544Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
10545
10546 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
10547 by other packages.
10548 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
10549
cfe33fd9
RM
10550Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10551
424f8c09
RM
10552 * mach/errorlib.h (errors): Use const for decl.
10553
10554 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
10555 (decode): New inline function; decode signed 32-bit integers, and
10556 sign-extend properly when long is longer than 32 bits.
10557 (__tzfile_read): Changed all uses of uc2ul to decode.
10558 Decode the transition times properly when sizeof (time_t) > 4.
10559
cfe33fd9
RM
10560 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
10561 (printf_function): Make last arg ARGS a vector of pointers instead of a
10562 pointer to va_list.
10563
10564Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
10565
424f8c09
RM
10566 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
10567 (buffered_vfprintf): Remove line buffer when flush failed.
cfe33fd9
RM
10568
10569Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10570
10571 * time/tzfile.c (struct ttinfo): New member `isgmt'.
10572 (__tzfile_read): Read isgmt flags for each type.
10573 (__tzfile_default): When using TZDEFRULES DST rules, adjust
10574 transition times according to the isstd and isgmt flags for the
10575 types of each transition, and adjust each transition to point to
10576 type index either 0 or 1. Reset type indices 0 and 1 to describe
10577 the user's settings.
10578
d8cc5f0c
RM
10579Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10580
40deae08
RM
10581 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
10582 into just CLASS. Add standard/optional flag to all items.
10583
10584 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
10585
10586 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
10587 Rearrange defn to satisfy compiler.
10588
10589 * locale/localeinfo.h: Declare _nl_current.
10590
ff3d7ed3
RM
10591 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
10592 --enable-shared, --enable-profile, --enable-omitfp; pass settings
10593 through to config.make.
10594 * config.make.in (build-shared, build-profile, build-omitfp): New
10595 config vars.
10596
d8cc5f0c
RM
10597 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
10598 (DT_NUM): New macro.
10599
10600 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
10601
10602 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
10603
10604 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
10605 MAP_COPY to MAP_PRIVATE.
10606
222c4e71
BK
10607Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
10608
06c48879
BK
10609 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
10610 that's used inside the alpha sysdep.h.
10611
5638ea42
BK
10612 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
10613 keyword.
eded85e0 10614 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
127b3c35 10615
222c4e71
BK
10616 * configure.in: Match `osf*', not `osf1*'.
10617 * configure: Likewise.
134c1236 10618 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
222c4e71 10619
6c2f0507
RM
10620Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10621
10622 * posix/glob/configure.bat: Fixes from DJ.
10623
10624 * time/backward, time/europe, time/northamerica, time/pacificnew,
10625 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
10626 time/ialloc.c: Code and data updated from ADO's 95b.
10627 * time/emkdir.c: File removed.
10628 * time/Makefile (distribute, extra-objs, zic): Omit it.
86d2c878 10629
6c2f0507
RM
10630 * time/localtime.c: Deansideclized. Never #define __tzname et al
10631 to non-__ names.
10632
10633 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
10634 instead of short int *.
10635 * ctype/ctype-info.c: Likewise.
10636 * ctype/ctype.h: Likewise.
10637
10638 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
10639 of EB and EL versions.
10640
28635115
RM
10641Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10642
10643 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
10644 (_IS* enum): Use _ISbit to produce values.
10645
933e73fa
RM
10646Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10647
10648 * locale/localeinfo.h: Rewritten for new locale system, using
10649 locale data files and with <langinfo.h> interface.
10650 * locale/setlocale.c: Rewritten to use locale data files.
10651 * langinfo.h: New file.
10652 * locale/langinfo.h: New file.
10653 * locale/nl_langinfo.c: New file.
10654 * locale/loadlocale.c: New file.
10655 * locale/lc-ctype.c: New file.
10656 * locale/lc-messages.c: New file.
10657 * locale/lc-monetary.c: New file.
10658 * locale/lc-numeric.c: New file.
10659 * locale/lc-time.c: New file.
10660 * locale/categories.def: New file.
10661 * locale/Makefile (headers): Remove localeinfo.h.
10662 (distribute): New variable; put localeinfo.h here, and categories.def.
10663 (routines): Add loadlocale.
10664 (categories): New variable.
10665 (aux): Use that to get C-category and lc-category.
10666 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
797fa620
RM
10667 * ctype/ctype-info.c: For initial tables, use
10668 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
86d2c878 10669 locale/C-ctype.c.
933e73fa
RM
10670 * locale/C-ctype.c, locale/C-messages.c: New files.
10671 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
10672 Default "C" locale data updated for new locale system.
10673 * locale/C-collate.c: File removed.
10674 * locale/C-ctype_ct.c: File removed.
10675 * locale/C-ctype_mb.c: File removed.
10676 * locale/C-response.c: File removed.
10677 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
10678 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
10679 stdlib/strtod.c, time/asctime.c, time/strftime.c:
10680 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
10681 locale data.
10682 * time/localtime.c: Don't include <localeinfo.h>.
10683 * time/tzset.c: Don't use locale items for default TZ value or
10684 "GMT" string (use "UTC").
10685
10686 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
10687 WIDTH>0; update DONE.
10688
10689 * malloc/malloc.c (morecore): Fix last change to calculate by
10690 blocks instead of bytes.
10691
6408bdde
RM
10692Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10693
10694 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
10695 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
10696 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
10697 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
10698 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
10699 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
10700 alias munmap.
10701 * sysdeps/unix/mman/munmap.S: Likewise.
10702 * sysdeps/mach/munmap.c: Likewise.
10703 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
10704 alias mmap.
10705 * sysdeps/unix/mman/mmap.S: Likewise.
10706 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
10707 * sysdeps/stub/mmap.c: Likewise.
10708
10709 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
10710
10711 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
10712
10713Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10714
10715 * misc/search.h: Add missing semicolon.
10716
10717 * sysdeps/unix/dirfd.c: Fix typo.
10718
10719 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
10720 in decl.
10721
10722 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
10723 WIDTH before test.
10724
30e77772
RM
10725Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10726
4933a099
RM
10727 * stdlib/strtod.c: Fixes from drepper.
10728 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
10729 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
10730 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
10731
10732 * stdio/vfprintf.c: Correctly notice Z modifier.
10733
30e77772
RM
10734 * misc/search.h: New file.
10735 * misc/Makefile (headers): Add search.h.
10736 * misc/insremque.c: Include search.h.
10737 (struct qelem): Type removed.
10738
e32a7957
RM
10739Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10740
10741 * elf/libelf.h: New file.
10742 * elf/elf_hash.c: New file.
10743
24b76949
RM
10744Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10745
4788ab46 10746 Changes from Germano Caronni <caronni@tik.ethz.ch>:
24b76949
RM
10747 * malloc/malloc.c (morecore): Account in NEWSIZE for the
10748 malloc_info structures for each new block.
10749
3c46a92d
RM
10750Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10751
10752 * sysdeps/mach/hurd/kill.c: When the process has no message port
10753 registered and we have its task port, translate a few signals to
10754 task_suspend/task_resume/task_terminate.
10755
e66f63fb
RM
10756Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10757
22a1292a
RM
10758 * io/Makefile (routines): Add euidaccess.
10759 * sysdeps/mach/hurd/euidaccess.c: New file.
10760 * sysdeps/stub/euidaccess.c: New file.
10761 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
10762
10763 * dirent/Makefile (routines): Add dirfd.
10764 * sysdeps/stub/dirfd.c: New file.
10765 * sysdeps/unix/dirfd.c: New file.
10766 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
10767 * dirent/dirent.h (dirfd): Declare new function. Define as macro
10768 _DIR_dirfd if that is defined.
10769 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
10770 with `void *__fd'.
10771 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
10772 Open the file with `open'; set FD_CLOEXEC on the fd.
10773 * sysdeps/mach/hurd/closedir.c: Likewise.
10774 * sysdeps/mach/hurd/readdir.c: Likewise.
10775 * sysdeps/mach/hurd/dirfd.c: New file.
10776
10777 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
10778 directory.
10779 (glob/ChangeLog): Likewise.
10780
10781 * locale/locale.h (LC_*): Use small integers instead of bit masks.
10782
e66f63fb
RM
10783 * stdio/bug4.c: Put temporary files in /tmp.
10784 * stdio/bug3.c: Likewise.
10785 * stdio/bug5.c: Likewise.
10786 * stdio/test-fseek.c: Likewise.
10787 * stdio/test-popen.c: Likewise.
10788
50843ff0
RM
10789Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10790
b5388cb6
RM
10791 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
10792
10793 * libc-symbols.h (weak_symbol): New macro.
10794
0677a80c
RM
10795 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
10796 elts with null handlers.
10797
50843ff0
RM
10798 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
10799
23ad311d
RM
10800Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10801
50843ff0
RM
10802 * stdlib/random.c (__srandom): Change algorithm used to populate
10803 the state array.
10804 (randtbl): Recomputed with new algorithm.
10805
23ad311d
RM
10806 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
10807 to original value of `crypt'.
10808 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
10809 (crypt): New variable, set to crypt.solar.
10810
daf12887
BK
10811Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
10812
d53f392b
BK
10813 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
10814
daf12887
BK
10815 * config.h.in: Put comment around ^L to pacify Solaris as here too.
10816
37f91d33
RM
10817Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10818
67a87b93
RM
10819 * string/Makefile (distribute): Add pagecopy.h.
10820 * sysdeps/mach/pagecopy.h: New file.
10821 * sysdeps/generic/pagecopy.h: New file.
10822 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
10823 PAGE_COPY_FWD_MAYBE first when word aligned.
10824 * sysdeps/generic/memmove.c: Likewise.
10825
787126fe
RM
10826 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
10827 (getpgrp): Call __getpgid instead of __getpgrp.
10828
01cc0be6
RM
10829 * Makefile (subdirs): Add elf first.
10830 * elf/Makefile: New file.
10831 * elf/elf.h: New file.
10832
8b60020b
RM
10833 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
10834 as a macro.
10835 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
10836 indirection.
10837
37f91d33
RM
10838 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
10839 add crti_s, crtn_s.
10840 (install-lib, extra-objs, generated-, omit-deps): Use that.
10841 (initfini): New canned sequence, broken out of crt[in].s rule.
10842 (crt[in].s rule): Use it.
10843 (crt[in]_s.s): New rule.
10844 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
10845 (_init, _fini): Use GLOBAL as storage class.
10846 Add self reference to avoid GCC optimizing out the functions.
10847
10848 * Makefile (headers): Remove $(stddef.h).
10849 * Makeconfig (stddef.h): Variable removed; now require gcc version
10850 >= 2.2.
10851 * stddef.h: File removed.
10852
10853Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10854
10855 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
10856 definition.
10857 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
10858
10859 * stdlib/strtod.c: Allow the string to start with a decimal point
10860 without a leading zero.
10861
0923c7a5
RM
10862Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10863
41d43dbc
RM
10864 * Makefile (subdirs): Put csu first.
10865
10866 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
10867
96f873b9
RM
10868 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
10869 to crt[in].o.
10870 (csu-objpfx): New variable.
10871 (+link): Use it to find start.o and $(+preinit), $(+postinit).
10872
10873 * Rules (subdir_lib, all): Depend on objs.
10874
0923c7a5
RM
10875 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
10876
10877 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
10878 access to float.h macros.
10879
10880 * misc/efgcvt.c: New file.
10881 * misc/Makefile (routines): Add efgcvt.
10882
5ace96c8
BK
10883Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
10884
10885 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
10886 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
10887 to avoid a misreference that would override sysdeps/generic/mul.c.
10888 * sysdeps/sparc/Dist: Likewise.
10889
5f9e57ba
RM
10890Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10891
10892 * posix/Makefile (aux): Add environ.
10893 * posix/environ.c: New file.
10894 * sysdeps/unix/sparc/start.c: Remove __environ definition.
10895 * sysdeps/unix/start.c: Likewise.
10896 * sysdeps/unix/sysv/irix4/start.c: Likewise.
10897 * sysdeps/mach/hurd/start.c: Likewise.
10898 * sysdeps/mach/start.c: Likewise.
10899 * sysdeps/stub/start.c: Likewise.
10900
10901 * sysdeps/unix/make_errlist.c: In produced program, test
10902 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
10903 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
10904 Remove extra weak alias.
10905
10906 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
10907 in #include.
10908
10909 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
10910
10911 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
10912 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
10913 $(CPPFLAGS).
10914 (mk-stdiolim): Use it instead.
10915
28f540f4
RM
10916Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10917
5f9e57ba
RM
10918 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
10919 not work to make a weak alias to a bss symbol.
10920
10921 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
10922 (tests): Add test-fwrite.
10923 * stdio/test-fwrite.c: New file.
10924
10925 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
10926 __strtold.
10927
10928 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
10929 there is a CVS directory.
10930 (configure, %/configure): Use $(autoconf-it) for cmds.
10931 * Make-dist: Likewise.
28f540f4
RM
10932 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
10933 if there is a CVS directory.
10934 * sysdeps/sparc/Makefile (divrem output): Likewise.
10935 * sysdeps/alpha/Makefile (divrem output): Likewise.
5f9e57ba 10936 * Makerules ($(gpl2lgpl)): Likewise.
28f540f4
RM
10937
10938 * Makerules (rule to install lib%.a from $(install-lib)): Fix
10939 patsubst to elide ranlib for $(non-lib.a).
10940
10941 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
10942
10943Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
10944
10945 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
10946 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
10947
10948Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10949
10950 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
10951 DEALLOC_REFPORT; deallocate the refport after use only if it
10952 evaluates to nonzero.
10953 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
10954 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
10955
10956 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
10957 *STATE_CHANGE to indicate whether or not we changed *STATE and it
10958 should be committed to the thread.
10959 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
10960 state for a thread, do thread_set_state on that thread. Don't use
10961 SS->intr_port for collecting reply ports, it is not safe to
10962 clobber that when suspending; instead, alloca a temporary array.
10963 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
10964 zero when dying, one when suspending. Pass new arg to abort_rpcs.
10965
10966 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
10967 HURD_FD_PORT_USE will. Don't use critical sections around
10968 HURD_FD_PORT_USE invocations.
10969
10970 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
10971 * sysdeps/posix/stdio_init.c: Likewise.
10972
10973Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
10974
10975 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
10976 locking; don't leave the descriptor locked on return.
10977 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
10978 Use a critical section around locking the descriptor.
10979 Check for an empty descriptor and return EBADF.
10980 * sysdeps/mach/hurd/dup2.c: Likewise.
10981 * sysdeps/mach/hurd/fcntl.c: Likewise.
10982 Use HURD_FD_PORT_USE macro for RPCs.
10983 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
10984 using HURD_FD_PORT_USE.
10985 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
10986 to lock the descriptor.
10987 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
10988 locking the descriptor.
10989 * sysdeps/mach/hurd/fdopen.c: Likewise.
10990 * hurd/fd-close.c: Likewise.
10991 Don't expect the descriptor to be locked on entry.
10992 Check for empty descriptor and return EBADF.
10993
10994 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
10995 new functions _hurd_ctty_input and _hurd_ctty_output, each
10996 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
10997 * hurd/ctty-input.c: New file.
10998 * hurd/ctty-output.c: New file.
10999 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
11000 * hurd/fd-read.c: Use _hurd_ctty_input.
11001 * hurd/fd-write.c: Use _hurd_ctty_output.
11002 * sysdeps/mach/hurd/ioctl.c: Likewise.
11003 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
11004
11005Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11006
11007 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
11008 as appropriate to the type.
11009
11010 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
11011 repeating the union.
11012 (HUGE_VAL, __huge_val): Use it.
11013 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
11014 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
11015 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
11016 (STRTOF): Set to __strtold; define strtold as weak alias.
11017 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
11018 (STRTOF): Set to __strtof; define strtof as weak alias.
11019
11020 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
11021 (IEEE754_FLOAT_BIAS): New macro.
11022
11023 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
11024
11025 * stdlib/testmb.c: Add tests from rfg for using normal chars as
11026 multibyte chars.
11027
11028 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
11029 only the `defined but not used' warning, but also to avoid GCC
11030 optimizing out the entire function (!).
11031
11032 * stdlib/wctomb.c: Include ctype.h.
11033
11034 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
11035
11036 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
11037
11038Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11039
11040 * stdio/printf_fp.c: Include "fpioconst.h".
11041 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
11042 (__printf_fp): All references changed.
11043 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
11044 (group_number): Use memmove instead of memcpy, since operands overlap.
11045 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
11046 * stdio/fpioconst.h: New file, header declaring the table data.
11047 * stdio/Makefile (aux): Add fpioconst.
11048 (distribute): Add fpioconst.h.
11049 * stdlib/strtod.c: Complete rewrite from drepper.
11050 * stdlib/strtof.c: New file.
11051 * stdlib/strtold.c: New file.
11052 * stdlib/Makefile (routines): Add strtof, strtold.
11053 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
11054 * sysdeps/stub/mpn2flt.c: New file.
11055 * sysdeps/stub/mpn2dbl.c: New file.
11056 * sysdeps/stub/mpn2ldbl.c: New file.
11057 * sysdeps/ieee754/mpn2flt.c: New file.
11058 * sysdeps/ieee754/mpn2dbl.c: New file.
11059 * sysdeps/ieee754/mpn2ldbl.c: New file.
11060
11061 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
11062 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
11063 appears in $(non-lib.a).
11064
11065Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11066
11067 * stdlib/wctomb.c: A normal ASCII character translates to itself.
11068 * stdlib/mbtowc.c: Likewise.
11069
11070Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11071
11072 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
11073 Remove `const' from prototypes.
11074 * sysdeps/m68k/__longjmp.c: Likewise.
11075 * setjmp/longjmp.c: Likewise.
11076 * sysdeps/i386/__longjmp.c: Likewise.
11077
11078 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
11079 so when we return a name, it is incremented past the value that
11080 produces that same name.
11081
11082 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
11083 * stdio/stdio.h (fgets): Likewise.
11084
11085 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
11086
11087 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
11088 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
11089 and retry the RPC.
11090 * hurd/fd-read.c: Likewise.
11091
11092Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11093
11094 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
11095 <mach/mig_support.h>.
11096 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
11097 * assert/assert.c: Likewise.
11098 * sysdeps/posix/libc_fatal.c: Likewise.
11099
11100Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11101
11102 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
11103 as macros, to satisfy ANSI pedants.
11104
11105 * stdio/internals.c (flushbuf): When there is no new data after
11106 priming the stream, return without writing out the buffer.
11107 * stdio/Makefile (tests): Add bug7.
11108 * stdio/bug7.c: New file.
11109
11110 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
11111 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
11112 is defined.
11113
11114 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
11115
11116 * stdio/Makefile (tests): Add errnobug.
11117 * stdio/errnobug.c: New file.
11118
11119 * mach/mig_strncpy.c: Include string.h.
11120
11121 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
5f9e57ba 11122 inlines cause trouble for files defining global register variables.
28f540f4
RM
11123
11124 * stdio/vfprintf.c: Use _strerror_internal for %m.
11125
11126 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
11127
11128 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
11129 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
11130 * stdio/vfprintf.c (group_number): New function.
11131 (vfprintf): Support %' flag for integer formats, by calling
11132 group_number after formatting the number in WORK.
11133 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
11134 (__printf_fp): Implement `group' flag using them.
11135
11136 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
11137 (parent-clean): Remove sysd-rules, not sysdirs.
11138 (distclean): Pass avoid-generated=yes to submake.
11139 (distclean-1): Remove $(sysdep-$(distclean-1)).
11140
11141 * Makerules (objects, objs): Depend on $(extra-objs) too.
11142 (include sysd-Makefile): Protect with ifndef avoid-generated.
11143
11144 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
11145 (CPPFLAGS): Use $(defines) in place of $(+defines).
11146 Replace -D_LIBC with -include $(..)libc-symbols.h.
11147
11148 * stdio/freopen.c: Set seen bit before calling fclose.
11149
11150Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11151
11152 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
11153 successes and each kind of failure. Return EPERM or EACCES only
11154 if every task failed that way.
11155
11156 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
11157 correctly.
11158
11159 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
11160 or resume the process after frobbing.
11161
11162 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
11163 throughout.
11164 (_hurd_thread_sigstate): Don't lock the sigstate lock.
11165 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
11166 repeated sequences with calls to it. Don't expect the sigstate
11167 lock to be held on entry; lock it just before examining sigaction.
11168 In handler case, check SS->critical_section after calling
11169 abort_rpcs; if set, mark the signal pending and resume the thread.
11170 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
11171 (_hurd_self_sigstate): Don't lock the sigstate lock.
11172 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
11173 _hurd_self_sigstate_unlocked.
11174 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
11175 the sigstate lock.
11176 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
11177 Don't expect _hurd_self_sigstate to lock it. Fix critical section
11178 locking.
11179 * hurd/hurd-raise.c: Likewise.
86d2c878 11180 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
28f540f4
RM
11181 * sysdeps/mach/hurd/sigpending.c: Likewise.
11182 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
11183 * sysdeps/mach/hurd/sigaction.c: Likewise.
11184 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11185 * hurd/fd-write.c: Likewise.
11186 * hurd/fd-read.c: Likewise.
11187 * sysdeps/mach/hurd/ioctl.c: Likewise.
11188 * sysdeps/mach/hurd/fork.c: Likewise.
11189 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
86d2c878 11190 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
28f540f4
RM
11191 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
11192 * hurd/hurdmsg.c (get_int): Likewise.
11193
11194 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
11195
11196 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
11197 global.
11198 (PAD): Caller changed.
11199 * stdio/printf_fp.c (__pad): Function removed.
11200 (PAD): Use __printf_pad instead.
11201
11202Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11203
11204 Merged new FP printer by Ulrich Drepper.
11205 * stdio/printf_fp.c: Rewrite by drepper.
11206 * stdio/Makefile (routines): Add ldbl2mpn.
11207 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
11208 member.
11209 (union ieee854_long_double): New type, from drepper.
11210 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
11211 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
11212 * sysdeps/stub/ldbl2mpn.c: New file.
11213 * math/Makefile (routines): Add isinfl and isnanl.
11214 * sysdeps/ieee754/isinfl.c: New file.
11215 * sysdeps/stub/isinfl.c: New file.
11216 * sysdeps/ieee754/isnanl.c: New file.
11217 * sysdeps/stub/isnanl.c: New file.
11218
11219 * malloc/malloc.c (__malloc_extra_blocks): New variable.
11220 (malloc): When getting more core, get __malloc_extra_blocks extra;
11221 put the new block at the end of the free list and let the next loop
11222 iteration use the initial portion of it.
11223 * malloc/free.c (_free_internal): Account for twice
11224 __malloc_extra_blocks in deciding if we have so much extra memory
11225 we should return it to the system.
11226 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
11227 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
11228 const in parameter decl.
11229
11230 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
11231
11232Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11233
11234 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
11235
11236 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
11237 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
11238 * sysdeps/mips/bsd-setjmp.S: Likewise.
11239 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
11240 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
11241 Use `long int' for sigcode. Use explicit register numbers instead
11242 of names.
11243 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
11244 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
11245
11246Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11247
11248 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
11249
11250 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
11251 using __stpncpy.
11252
11253 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
11254
5f9e57ba 11255 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
28f540f4
RM
11256
11257Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11258
11259 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
11260 vm_size_t instead of size_t for arg and return types.
11261
11262 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
11263 already does.
11264
11265Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11266
11267 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
11268
11269 * configure.in (friendly stddef.h check): Write override defn for
11270 `stddef.h' Make variable.
11271 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
11272
11273 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
11274
11275 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
11276 empty file.
11277
11278 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
11279
11280Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11281
11282 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
11283
11284 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
11285 mach/machine/syscall_sw.h with this.
11286
11287Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11288
11289 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
11290 instead of <lock-intern.h>.
11291 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
11292 (_hurd_critical_section_lock): Use spin lock operators.
11293 Don't hold the sigstate lock, unlock it after setting the flag.
11294 (_hurd_critical_section_unlock): Take the sigstate lock
11295 to clear the flag; while holding it, check pending signals. After
11296 unlocking, sig_post ourselves if there were pending signals.
11297
11298 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
11299 sigstate lock. If it is locked, clear SS->critical_section and
11300 SS->context, and unlock it.
11301
11302 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
11303
11304 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
11305 * munch-tmpl.c: Likewise.
11306
11307 * mach/Makefile (routines): Don't filter out syscall_% from
11308 $(mach-syscalls).
11309
11310Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
11311
11312 * posix/fnmatch.c: Declare errno if it's not defined.
11313 That's simpler than testing #if !defined(__GNU_LIBRARY__)
11314 && !defined(STDC_HEADERS).
11315
11316Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11317
11318 * csu/Makefile: New file.
11319 * csu/initfini.c: New file.
11320 * Makefile (+other_dirs): Add csu.
11321 (+init): Variable renamed to libc-init. All references changed.
11322 (aux): Remove start.
11323 (install-lib): Variable removed.
11324 (crt0.o, Mcrt1.o crt1.o): Targets removed.
11325
11326 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
11327 and $(objpfx)config.h.
11328 (static deps of RPC alias *.o): Removed.
11329
11330 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
11331 Protect macros with this.
11332 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
11333 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
11334 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
11335 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
11336 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
11337 * sysdeps/unix/mips/sysdep.h: Likewise.
11338
11339Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11340
11341 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
11342 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
11343
11344 * hurd/intr-rpc.awk: Emit weak alias.
11345
11346 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
11347 __getpgrp.
11348
11349 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
11350 this.
11351 * sysdeps/unix/i386/sysdep.h: Likewise.
11352 * sysdeps/unix/sparc/sysdep.h: Likewise.
11353
11354 * io/ftw.c: Avoid `ret' as variable name.
11355 * posix/glob.c: Likewise.
11356
11357 * ctype/ctype.h (_ISalpha): Define as its own bit.
11358 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
11359
11360 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
11361 DEFINE_HOOK with this.
11362
11363Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11364
11365 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
11366 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
11367 * mach/shortcut.awk: Emit weak alias.
11368 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
11369 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
11370 __ names.
11371 * mach/Makefile (lock): Remove spin-syms.
11372 (routines): Remove __ names, vm_page_size, msgserver_t.
11373 ($(mach-syscalls) rule): Generate files without __, add weak alias.
11374 Remove symbol alias file rule.
11375 ($(mach-shortcuts) rule): Likewise.
11376 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
11377 * mach/Machrules (if-calls.c): Variable and rule removed.
11378 (interface-headers): Don't add $($(if)-calls).
11379 (transform-user-stub): Define to add weak alias.
11380 * set-hooks.h: Use new libc-symbols.h set access macros.
11381 * time/Makefile (routines): Remove __ names.
11382 (aux): Variable removed.
11383 * hurd/Makefile: Likewise.
11384 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
11385 (data_start): Define as weak alias for __data_start.
11386 * sysdeps/mach/hurd/start.c: Likewise.
11387 * sysdeps/unix/sparc/start.c: Likewise.
11388 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
11389 sys_errlist.
11390 * sysdeps/mach/hurd/errlist.awk: Likewise.
11391 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
11392 alias for __environ.
11393 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
11394 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
11395 * sysdeps/stub/getdomain.c: Likewise.
11396 * sysdeps/stub/vhangup.c: Likewise.
11397 * sysdeps/stub/swapon.c: Likewise.
11398 * sysdeps/stub/sendmsg.c: Likewise.
11399 * sysdeps/stub/recvmsg.c: Likewise.
11400 * sysdeps/stub/acct.c: Likewise.
11401 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
11402 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
11403 * sysdeps/posix/libc_fatal.c: Likewise.
11404 * sysdeps/i386/abort.c: Likewise.
11405 * sysdeps/i386/__longjmp.c: Likewise.
11406 * sysdeps/generic/make_siglist.c: Emit defn always for
11407 _sys_siglist. Emit weak alias to sys_siglist.
11408 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
11409 * sysdeps/ieee754/log10.c: Likewise.
11410 * time/difftime.c: Likewise.
11411 * stdlib/random.c (srand): Define as weak alias for __srandom.
11412 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
11413 macros for __libc_atexit.
11414 * stdlib/Makefile (routines): Remove __random, srand.
11415 * stdio/gets.c: Use new link_warning macro instead of old
11416 warn_references.
11417 * stdio/Makefile (routines): Remove __ names.
11418 (aux): Remove syms-stdio.
11419 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
11420 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
11421 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
11422 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
11423 * stdio/stdio.h: Likewise.
11424 * misc/Makefile (routines): Remove __ names.
11425 (aux): Remove data_start.
11426 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
11427 * sysdeps/mach/hurd/brk.c: Likewise.
11428 * hurd/hurdid.c: Likewise.
11429 * hurd/hurdpid.c: Likewise.
11430 * hurd/openport.c: Likewise.
11431 * hurd/hurdsock.c: Likewise.
11432 * hurd/hurdsig.c: Likewise.
11433 * hurd/hurdrlimit.c: Likewise.
11434 * hurd/hurdmalloc.c: Likewise.
11435 * hurd/dtable.c: Likewise.
11436 * hurd/setauth.c: Likewise.
11437 * misc/progname.c: Likewise.
11438 * misc/init-misc.c: Likewise.
11439 * sysdeps/generic/vfork.c: Likewise.
11440 * sysdeps/unix/bsd/init-posix.c: Likewise.
11441 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
11442 * time/time.h: Likewise.
11443 * math/Makefile (routines): Remove __ names.
11444 * io/Makefile: Likewise.
11445 * termios/Makefile: Likewise.
11446 * resource/Makefile: Likewise.
11447 * signal/Makefile: Likewise.
11448 * dirent/Makefile: Likewise.
11449 * assert/assert.h: Replace __NORETURN keyword with __attribute__
11450 uses. Functions return void and macros deal with this.
11451 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
11452 Return void. Don't include gnu-stabs.h.
11453 * assert/assert.c: Likewise.
11454 * posix/Makefile (routines): Remove __ names, setpgrp. Add
11455 getpgid.
11456 (aux): Remove environ.
11457 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
11458 __attribute__ use.
11459 * posix/unistd.h (_exit): Likewise.
11460 (__getpgrp, __setpgrp): Declarations removed.
11461 (__getpgid, getpid): Declare these.
11462
11463 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
11464 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
11465 $libc_link_{sources,dests}.
11466 * sysdeps/unix/configure.in: Remove __ from file names. Don't
11467 create files, just add to libc_link_{dests,sources}.
11468
11469 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
11470
11471 * config.h.in: Add #undefs used by sysdeps configures.
11472
11473 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
11474 __setpgid, __getpgid.
11475 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
11476 from setpgrp.c.
11477 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
11478 from __getpgrp.c.
11479 * sysdeps/unix/bsd/getpgrp.c: File removed.
11480 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
11481 Call __getpgid with zero.
11482 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
11483 weak aliases setpgid and setpgrp.
11484 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
11485 * sysdeps/unix/common/setpgid.S: Likewise.
11486 * sysdeps/mach/hurd/setpgid.c: Likewise.
11487 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
11488 Use subcall 5 to __pgrpsys.
11489 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
11490 weak alias getpgid.
11491 * sysdeps/mach/hurd/getpgid.c: Likewise.
11492 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
11493 * sysdeps/unix/common/getpgid.S: Likewise.
11494 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
11495 Use subcall 4 to __pgrpsys.
11496 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
11497 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
11498 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
11499 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
11500 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
11501 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
11502 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
11503 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
11504 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
11505 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
11506 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
11507 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
11508
11509 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
11510 from __getdents.S.
11511
11512 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
11513 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
11514 warning.
11515 * sysdeps/stub/fexecve.c: Likewise.
11516 * sysdeps/stub/fchdir.c: Likewise.
11517 * sysdeps/stub/fchflags.c: Likewise.
11518 * sysdeps/stub/chflags.c: Likewise.
11519
11520 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
11521 * sysdeps/generic/abort.c: Likewise.
11522 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
11523
11524 * hurd/hurdioctl.c: Include hurd/ioctl.h.
11525 (_hurd_ioctl_handler_lists): Define this set.
11526 (_hurd_lookup_ioctl_handler): New function.
11527 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
11528 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
11529 (_hurd_lookup_ioctl_handler): Declare it.
11530 (ioctl_handler_t): New typedef. Use it throughout.
11531 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
11532 (_hurd_ioctl_handler_lists): Don't define.
11533 (__ioctl): Call _hurd_lookup_ioctl_handler.
11534
11535 * stdlib/strtol.c (maxquad): Make this const.
11536 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
11537
11538 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
11539 any compile tests.
11540
11541 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
11542 __msg_sig_post_request, not __sig_post_request.
11543
11544 * misc/getusersh.c: Renamed to getusershell.c.
11545 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
11546 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
11547 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
11548 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
11549
11550Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11551
11552 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
11553 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
11554 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
11555 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
11556 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
11557 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
11558 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
11559 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
11560 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
11561 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
11562 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
11563 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
11564 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
11565 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
11566 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
11567 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
11568 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
11569 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
11570 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
11571 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
11572 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
11573 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
11574 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
11575 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
11576 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
11577 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
11578 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
11579 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
11580 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
11581 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
11582
11583 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
11584 of __sig_post.
11585 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
11586 * sysdeps/mach/hurd/kill.c: Likewise.
11587 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
11588
11589 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
11590 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
11591
11592 * sysdeps/stub/remove.c: New file.
11593 * sysdeps/posix/remove.c: New file.
11594
11595Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11596
11597 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
11598 mktime.
11599 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
11600 __mig_strncpy.
11601 * mach/msg-destroy.c: Renamed from __msg_dest.c.
11602 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
11603 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
11604 * time/tzset.c (tzname, daylight, timezone): Define as weak
11605 aliases for __ names.
11606 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
11607 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
11608 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
11609 being defined.
11610
11611Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11612
11613 * string/Makefile (routines): Remove __ names, index, rindex, and
11614 bcmp.
11615 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
11616 alias for strchr.
11617 * sysdeps/generic/strchr.c: Likewise.
11618 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
11619 alias for strrchr.
11620 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
11621 alias for memcmp.
11622
11623 * malloc/free.c (cfree): Define this function, with weak_alias if
11624 available, otherwise a C function.
11625 * malloc/Makefile (gmalloc-routines): Remove cfree.
11626
11627Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
11628
11629 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
11630 get_limit. This has the effect of no-op'ing properly for zero.
11631
11632 * configure.in: Add AC_CONFIG_HEADER(config.h).
11633 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
11634 * config.h.in: New file.
11635
11636 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
11637 All code converted to use weak symbols, defined in the files which
11638 define the real code (with the __ names, the non-__ names are weak).
11639 All old symbol alias files removed.
11640 Many files renamed to remove __ prefix since there is now just
11641 the one file for both the __ and non-__ name for each function.
11642 * libc-symbols.h: New file.
11643 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
11644 sets.
11645 * gnu-stabs.h: Prepend #error this file is obsolete.
11646 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
11647 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
11648 access.
11649 * sysdeps/unix/common/__access.S: Likewise.
11650 * sysdeps/mach/hurd/__access.c: Likewise.
11651 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
11652 adjtime.
11653 * sysdeps/unix/common/__adjtime.S: Likewise.
11654 * sysdeps/mach/__adjtime.c: Likewise.
11655 * sysdeps/mach/hurd/__adjtime.c: Likewise.
11656 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
11657 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
11658 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
11659 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
11660 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
11661 * sysdeps/unix/i386/__brk.S: Likewise.
11662 * sysdeps/unix/sparc/__brk.S: Likewise.
11663 * sysdeps/unix/mips/__brk.S: Likewise.
11664 * sysdeps/mach/hurd/__brk.c: Likewise.
11665 * sysdeps/standalone/__brk.c: Likewise.
11666 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
11667 * sysdeps/unix/__chdir.S: Likewise.
11668 * sysdeps/mach/hurd/__chdir.c: Likewise.
11669 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
11670 * sysdeps/unix/__chmod.S: Likewise.
11671 * sysdeps/mach/hurd/__chmod.c: Likewise.
11672 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
11673 * sysdeps/unix/__chown.S: Likewise.
11674 * sysdeps/mach/hurd/__chown.c: Likewise.
11675 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
11676 * sysdeps/unix/__close.S: Likewise.
11677 * sysdeps/mach/hurd/__close.c: Likewise.
11678 * sysdeps/standalone/__close.c: Likewise.
11679 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
11680 alias copysign.
11681 * sysdeps/ieee754/__copysign.c: Likewise.
11682 * sysdeps/alpha/__copysign.c: Likewise.
11683 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
11684 * sysdeps/m68k/fpu/__drem.c: Likewise.
11685 * sysdeps/stub/__drem.c: Likewise.
11686 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
11687 * sysdeps/stub/__dup.c: Likewise.
11688 * sysdeps/unix/__dup.S: Likewise.
11689 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
11690 * sysdeps/stub/__dup2.c: Likewise.
11691 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
11692 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
11693 * sysdeps/unix/common/__dup2.S: Likewise.
11694 * sysdeps/mach/hurd/__dup2.c: Likewise.
11695 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
11696 execve.
11697 * sysdeps/unix/__execve.S: Likewise.
11698 * sysdeps/mach/hurd/__execve.c: Likewise.
11699 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
11700 expm1.
11701 * sysdeps/m68k/fpu/__expm1.c: Likewise.
11702 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
11703 fchmod.
11704 * sysdeps/unix/common/__fchmod.S: Likewise.
11705 * sysdeps/mach/hurd/__fchmod.c: Likewise.
11706 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
11707 fchown.
11708 * sysdeps/unix/common/__fchown.S: Likewise.
11709 * sysdeps/mach/hurd/__fchown.c: Likewise.
11710 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
11711 * sysdeps/unix/__fcntl.S: Likewise.
11712 * sysdeps/mach/hurd/__fcntl.c: Likewise.
11713 * math/__finite.c: Renamed to finite.c; added weak alias finite.
11714 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
11715 * sysdeps/stub/__flock.c: Likewise.
11716 * sysdeps/unix/bsd/__flock.S: Likewise.
11717 * sysdeps/mach/hurd/__flock.c: Likewise.
11718 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
11719 fopenport.
11720 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
11721 * sysdeps/unix/__fork.S: Likewise.
11722 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
11723 * sysdeps/unix/i386/__fork.S: Likewise.
11724 * sysdeps/unix/sparc/__fork.S: Likewise.
11725 * sysdeps/unix/mips/__fork.S: Likewise.
11726 * sysdeps/mach/hurd/__fork.c: Likewise.
11727 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
11728 alias fpathconf.
11729 * sysdeps/stub/__fpathcon.c: Likewise.
11730 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
11731 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
11732 * sysdeps/unix/__fstat.S: Likewise.
11733 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
11734 * sysdeps/mach/hurd/__fstat.c: Likewise.
11735 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
11736 getdelim.
11737 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
11738 alias getdents.
11739 * sysdeps/unix/__getdents.c: Likewise.
11740 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
11741 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
11742 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
11743 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
11744 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
11745 * sysdeps/unix/sysv/__getdents.c: Likewise.
11746 * sysdeps/mach/hurd/__getdents.c: Likewise.
11747 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
11748 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
11749 alias getdtablesize.
11750 * sysdeps/stub/__getdtsz.c: Likewise.
11751 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
11752 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
11753 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
11754 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
11755 getegid.
11756 * sysdeps/unix/__getegid.S: Likewise.
11757 * sysdeps/mach/hurd/__getegid.c: Likewise.
11758 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
11759 geteuid.
11760 * sysdeps/unix/__geteuid.S: Likewise.
11761 * sysdeps/mach/hurd/__geteuid.c: Likewise.
11762 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
11763 getgid.
11764 * sysdeps/unix/__getgid.S: Likewise.
11765 * sysdeps/mach/hurd/__getgid.c: Likewise.
11766 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
11767 alias getgroups.
11768 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
11769 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
11770 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
11771 * sysdeps/unix/common/__getgrps.S: Likewise.
11772 * sysdeps/mach/hurd/__getgrps.c: Likewise.
11773 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
86d2c878 11774 alias gethostname.
28f540f4
RM
11775 * sysdeps/unix/inet/__gethstnm.S: Likewise.
11776 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
11777 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
11778 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
11779 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
11780 alias getitimer.
11781 * sysdeps/unix/common/__getitmr.S: Likewise.
11782 * sysdeps/mach/hurd/__getitmr.c: Likewise.
11783 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
11784 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
11785 alias getpagesize.
11786 * sysdeps/stub/__getpgsz.c: Likewise.
11787 * sysdeps/unix/__getpgsz.c: Likewise.
11788 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
11789 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
11790 * sysdeps/mach/__getpgsz.c: Likewise.
11791 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
11792 getpid.
11793 * sysdeps/unix/__getpid.S: Likewise.
11794 * sysdeps/mach/hurd/__getpid.c: Likewise.
11795 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
11796 getppid.
11797 * sysdeps/unix/__getppid.S: Likewise.
11798 * sysdeps/mach/hurd/__getppid.c: Likewise.
11799 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
11800 alias gettimeofday.
11801 * sysdeps/stub/__gettod.c: Likewise.
11802 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
11803 * sysdeps/unix/common/__gettod.S: Likewise.
11804 * sysdeps/mach/__gettod.c: Likewise.
11805 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
11806 getuid.
11807 * sysdeps/unix/__getuid.S: Likewise.
11808 * sysdeps/mach/hurd/__getuid.c: Likewise.
11809 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
11810 alias infnan.
11811 * sysdeps/ieee754/__infnan.c: Likewise.
11812 * sysdeps/vax/__infnan.c: Likewise.
11813 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
11814 * sysdeps/unix/__ioctl.S: Likewise.
11815 * sysdeps/mach/hurd/__ioctl.c: Likewise.
11816 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
11817 isatty.
11818 * sysdeps/stub/__isatty.c: Likewise.
11819 * sysdeps/unix/bsd/__isatty.c: Likewise.
11820 * sysdeps/mach/hurd/__isatty.c: Likewise.
11821 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
11822 isinf.
11823 * sysdeps/m68k/fpu/__isinf.c: Likewise.
11824 * sysdeps/stub/__isinf.c: Likewise.
11825 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
11826 isnan.
11827 * sysdeps/ieee754/__isnan.c: Likewise.
11828 * sysdeps/m68k/fpu/__isnan.c: Likewise.
11829 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
11830 * sysdeps/unix/__kill.S: Likewise.
11831 * sysdeps/mach/hurd/__kill.c: Likewise.
11832 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
11833 * sysdeps/unix/__link.S: Likewise.
11834 * sysdeps/mach/hurd/__link.c: Likewise.
11835 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
11836 * sysdeps/m68k/fpu/__logb.c: Likewise.
11837 * sysdeps/stub/__logb.c: Likewise.
11838 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
11839 * sysdeps/unix/__lseek.S: Likewise.
11840 * sysdeps/mach/hurd/__lseek.c: Likewise.
11841 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
11842 lstat.
11843 * sysdeps/stub/__lstat.c: Likewise.
11844 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
11845 * sysdeps/unix/common/__lstat.S: Likewise.
11846 * sysdeps/mach/hurd/__lstat.c: Likewise.
11847 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
11848 alias memccpy.
11849 * sysdeps/vax/__memccpy.c: Likewise.
11850 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
11851 * sysdeps/unix/sysv/__mkdir.c: Likewise.
11852 * sysdeps/unix/common/__mkdir.S: Likewise.
11853 * sysdeps/mach/hurd/__mkdir.c: Likewise.
11854 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
11855 * sysdeps/unix/__mknod.S: Likewise.
11856 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
11857 * sysdeps/mach/hurd/__mknod.c: Likewise.
11858 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
11859 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
11860 mach_msg_server.
11861 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
11862 * sysdeps/unix/__open.S: Likewise.
11863 * sysdeps/mach/hurd/__open.c: Likewise.
11864 * sysdeps/standalone/__open.c: Likewise.
11865 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
11866 alias pathconf.
11867 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
11868 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
11869 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
11870 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
11871 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
11872 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
11873 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
11874 * sysdeps/unix/i386/__pipe.S: Likewise.
11875 * sysdeps/unix/sparc/__pipe.S: Likewise.
11876 * sysdeps/unix/mips/__pipe.S: Likewise.
11877 * sysdeps/mach/hurd/__pipe.c: Likewise.
11878 * stdlib/__random.c: Renamed to random.c; added weak alias random.
11879 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
11880 * sysdeps/unix/__read.S: Likewise.
11881 * sysdeps/mach/hurd/__read.c: Likewise.
11882 * sysdeps/standalone/__read.c: Likewise.
11883 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
11884 alias readlink.
11885 * sysdeps/unix/common/__readlink.S: Likewise.
11886 * sysdeps/mach/hurd/__readlink.c: Likewise.
11887 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
11888 * sysdeps/m68k/fpu/__rint.c: Likewise.
11889 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
11890 * sysdeps/unix/sysv/__rmdir.c: Likewise.
11891 * sysdeps/unix/common/__rmdir.S: Likewise.
11892 * sysdeps/mach/hurd/__rmdir.c: Likewise.
11893 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
11894 * sysdeps/stub/__sbrk.c: Likewise.
11895 * sysdeps/mach/hurd/__sbrk.c: Likewise.
11896 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
11897 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
11898 select.
11899 * sysdeps/unix/common/__select.S: Likewise.
11900 * sysdeps/mach/hurd/__select.c: Likewise.
11901 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
11902 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
11903 setgid.
11904 * sysdeps/unix/__setgid.S: Likewise.
11905 * sysdeps/unix/bsd/__setgid.c: Likewise.
11906 * sysdeps/mach/hurd/__setgid.c: Likewise.
11907 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
86d2c878 11908 setitmr
28f540f4
RM
11909 * sysdeps/unix/common/__setitmr.S: Likewise.
11910 * sysdeps/mach/hurd/__setitmr.c: Likewise.
11911 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
86d2c878 11912 setpgrp
28f540f4
RM
11913 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
11914 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
11915 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
11916 * sysdeps/unix/common/__setpgrp.S: Likewise.
11917 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
11918 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
11919 alias setregid.
11920 * sysdeps/unix/common/__setregid.S: Likewise.
11921 * sysdeps/mach/hurd/__setregid.c: Likewise.
11922 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
11923 alias setreuid.
11924 * sysdeps/unix/common/__setreuid.S: Likewise.
11925 * sysdeps/mach/hurd/__setreuid.c: Likewise.
11926 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
11927 setsid.
11928 * sysdeps/unix/bsd/__setsid.c: Likewise.
11929 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
11930 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
11931 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
11932 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
11933 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
11934 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
11935 * sysdeps/mach/hurd/__setsid.c: Likewise.
11936 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
11937 settimeofday.
11938 * sysdeps/unix/bsd/__settod.S: Likewise.
11939 * sysdeps/unix/sysv/__settod.c: Likewise.
11940 * sysdeps/mach/hurd/__settod.c: Likewise.
11941 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
11942 setuid.
11943 * sysdeps/unix/__setuid.S: Likewise.
11944 * sysdeps/unix/bsd/__setuid.c: Likewise.
11945 * sysdeps/mach/hurd/__setuid.c: Likewise.
11946 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
11947 alias sigblock.
11948 * sysdeps/stub/__sigblock.c: Likewise.
11949 * sysdeps/unix/bsd/__sigblock.S: Likewise.
11950 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
11951 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
11952 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
11953 alias sigpause.
11954 * sysdeps/stub/__sigpause.c: Likewise.
11955 * sysdeps/unix/bsd/__sigpause.S: Likewise.
11956 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
11957 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
11958 alias sigprocmask.
11959 * sysdeps/unix/bsd/__sigproc.c: Likewise.
11960 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
11961 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
11962 * sysdeps/mach/hurd/__sigproc.c: Likewise.
11963 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
11964 alias sigreturn.
11965 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
11966 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
11967 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
11968 * sysdeps/unix/i386/__sigret.S: Likewise.
11969 * sysdeps/unix/mips/__sigret.S: Likewise.
11970 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
11971 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
11972 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
11973 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
11974 sigvec.
11975 * sysdeps/stub/__sigvec.c: Likewise.
11976 * sysdeps/unix/bsd/__sigvec.S: Likewise.
11977 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
11978 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
11979 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
11980 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
11981 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
11982 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
11983 * sysdeps/unix/__stat.S: Likewise.
11984 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
11985 * sysdeps/mach/hurd/__stat.c: Likewise.
11986 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
11987 alias stpncpy.
11988 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
11989 symlink.
11990 * sysdeps/unix/common/__symlink.S: Likewise.
11991 * sysdeps/mach/hurd/__symlink.c: Likewise.
11992 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
11993 alias sysconf.
11994 * sysdeps/stub/__sysconf.c: Likewise.
11995 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
11996 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
11997 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
11998 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
11999 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
12000 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
12001 * sysdeps/unix/bsd/__times.c: Likewise.
12002 * sysdeps/unix/sysv/__times.S: Likewise.
12003 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
12004 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
12005 * sysdeps/unix/__umask.S: Likewise.
12006 * sysdeps/mach/hurd/__umask.c: Likewise.
12007 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
12008 unlink.
12009 * sysdeps/unix/__unlink.S: Likewise.
12010 * sysdeps/mach/hurd/__unlink.c: Likewise.
12011 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
12012 utimes.
12013 * sysdeps/unix/bsd/__utimes.S: Likewise.
12014 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
12015 * sysdeps/mach/hurd/__utimes.c: Likewise.
12016 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
12017 vfork.
12018 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
12019 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
12020 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
12021 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
12022 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
12023 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
12024 * sysdeps/unix/sparc/__vfork.S: Likewise.
12025 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
12026 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
12027 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
12028 * sysdeps/stub/__wait.c: Likewise.
12029 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
12030 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
12031 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
12032 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
12033 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
12034 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
12035 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
12036 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
12037 * sysdeps/unix/i386/__wait.S: Likewise.
12038 * sysdeps/unix/mips/__wait.S: Likewise.
12039 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
12040 * sysdeps/stub/__wait3.c: Likewise.
12041 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
12042 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
12043 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
12044 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
12045 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
12046 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
12047 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
12048 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
12049 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
12050 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
12051 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
12052 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
12053 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
12054 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
12055 * sysdeps/mach/hurd/__wait4.c: Likewise.
12056 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
12057 waitpid.
12058 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
12059 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
12060 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
12061 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
12062 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
12063 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
12064 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
12065 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
12066 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
12067 * sysdeps/unix/__write.S: Likewise.
12068 * sysdeps/mach/hurd/__write.c: Likewise.
12069 * sysdeps/standalone/__write.c: Likewise.
12070 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
12071 alias tcgetattr.
12072 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
12073 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
12074 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
12075 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
12076 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
12077 alias sigaction.
12078 * sysdeps/unix/bsd/__sigact.c: Likewise.
12079 * sysdeps/unix/sysv/__sigact.c: Likewise.
12080 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
12081 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
12082 * sysdeps/mach/hurd/__sigact.c: Likewise.
12083 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
12084 alias sigsetmask.
12085 * sysdeps/stub/__sigstmsk.c: Likewise.
12086 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
12087 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
12088 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
12089 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
12090 alias getrusage.
12091 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
12092 * sysdeps/unix/common/__getrusag.S: Likewise.
12093 * hurd/task2pid.c: File removed.
12094 * hurd/setauth.c: File removed.
12095 * hurd/pid2task.c: File removed.
12096 * hurd/hurdsyms.c: File removed.
12097 * hurd/getdport.c: File removed.
12098 * hurd/fopenport.c: File removed.
12099 * mach/thread-sym.c: File removed.
12100 * mach/spin-syms.c: File removed.
12101 * mach/msgserver_t.c: File removed.
12102 * mach/msgserver.c: File removed.
12103 * mach/msg.c: File removed.
12104 * mach/mig_syms.c: File removed.
12105 * malloc/mcheck-init.c: File removed.
12106 * malloc/cfree.c: File removed.
12107 * io/flock.c: File removed.
12108 * io/write.c: File removed.
12109 * io/unlink.c: File removed.
12110 * io/umask.c: File removed.
12111 * io/symlink.c: File removed.
12112 * io/rmdir.c: File removed.
12113 * io/readlink.c: File removed.
12114 * io/read.c: File removed.
12115 * io/pipe.c: File removed.
12116 * io/open.c: File removed.
12117 * io/mkdir.c: File removed.
12118 * io/lstat.c: File removed.
12119 * io/lseek.c: File removed.
12120 * io/link.c: File removed.
12121 * io/isatty.c: File removed.
12122 * io/stat.c: File removed.
12123 * io/fstat.c: File removed.
12124 * io/fchown.c: File removed.
12125 * io/fchmod.c: File removed.
12126 * io/dup2.c: File removed.
12127 * io/dup.c: File removed.
12128 * io/close.c: File removed.
12129 * io/fcntl.c: File removed.
12130 * io/chmod.c: File removed.
12131 * io/chdir.c: File removed.
12132 * io/access.c: File removed.
12133 * io/chown.c: File removed.
12134 * time/tzset.c: File removed.
12135 * time/timelocal.c: File removed.
12136 * time/syms-time.c: File removed.
12137 * time/settod.c: File removed.
12138 * time/setitmr.c: File removed.
12139 * time/gettod.c: File removed.
12140 * time/getitmr.c: File removed.
12141 * time/adjtime.c: File removed.
12142 * termios/tcgetattr.c: File removed.
12143 * string/stpncpy.c: File removed.
12144 * string/rindex.c: File removed.
12145 * string/memccpy.c: File removed.
12146 * string/index.c: File removed.
12147 * string/bcmp.c: File removed.
12148 * stdlib/srand.c: File removed.
12149 * stdlib/random.c: File removed.
12150 * stdio/vsscanf.c: File removed.
12151 * stdio/vfscanf.c: File removed.
12152 * stdio/syms-stdio.c: File removed.
12153 * stdio/remove.c: File removed.
12154 * stdio/getline.c: File removed.
12155 * stdio/getdelim.c: File removed.
12156 * signal/ssignal.c: File removed.
12157 * signal/sigvec.c: File removed.
12158 * signal/sigsetmask.c: File removed.
12159 * signal/sigret.c: File removed.
12160 * signal/sigproc.c: File removed.
12161 * signal/sigpause.c: File removed.
12162 * signal/sigblock.c: File removed.
12163 * signal/sigaction.c: File removed.
12164 * signal/kill.c: File removed.
12165 * signal/gsignal.c: File removed.
12166 * setjmp/siglongjmp.c: File removed.
12167 * setjmp/_longjmp.c: File removed.
12168 * resource/getrusage.c: File removed.
12169 * posix/waitpid.c: File removed.
12170 * posix/wait4.c: File removed.
12171 * posix/wait3.c: File removed.
12172 * posix/wait.c: File removed.
12173 * posix/times.c: File removed.
12174 * posix/sysconf.c: File removed.
12175 * posix/setuid.c: File removed.
12176 * posix/setsid.c: File removed.
12177 * posix/setpgrp.c: File removed.
12178 * posix/setpgid.c: File removed.
12179 * posix/setgid.c: File removed.
12180 * posix/pathconf.c: File removed.
12181 * posix/getuid.c: File removed.
12182 * posix/getppid.c: File removed.
12183 * posix/getpid.c: File removed.
12184 * posix/getgrps.c: File removed.
12185 * posix/getgid.c: File removed.
12186 * posix/geteuid.c: File removed.
12187 * posix/getegid.c: File removed.
12188 * posix/fpathcon.c: File removed.
12189 * posix/fork.c: File removed.
12190 * posix/execve.c: File removed.
12191 * posix/environ.c: File removed.
12192 * misc/utimes.c: File removed.
12193 * misc/setreuid.c: File removed.
12194 * misc/setregid.c: File removed.
12195 * misc/select.c: File removed.
12196 * misc/sbrk.c: File removed.
12197 * misc/mknod.c: File removed.
12198 * misc/ioctl.c: File removed.
12199 * misc/getpgsz.c: File removed.
12200 * misc/gethstnm.c: File removed.
12201 * misc/getdtsz.c: File removed.
12202 * misc/data_start.c: File removed.
12203 * misc/brk.c: File removed.
12204 * math/scalb.c: File removed.
12205 * math/rint.c: File removed.
12206 * math/logb.c: File removed.
12207 * math/isnan.c: File removed.
12208 * math/isinf.c: File removed.
12209 * math/infnan.c: File removed.
12210 * math/finite.c: File removed.
12211 * math/expm1.c: File removed.
12212 * math/drem.c: File removed.
12213 * math/copysign.c: File removed.
12214 * math/__scalb.c: File removed.
12215 * dirent/getdents.c: File removed.
12216
12217Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12218
12219 * sysdeps/generic/morecore.c (__default_morecore): Use
12220 __malloc_ptrdiff_t; don't cast arg to int.
12221
12222 * resolv/getnetnamadr.c: Include "conf/portability.h".
12223
12224Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12225
12226 * stdlib/strtol.c: Include errno.h.
12227 [QUAD] (ULONG_MAX): Define to a static variable initialized to
12228 ULONG_LONG_MAX. This is to work around a GCC bug in using the
12229 constant in arithmetic.
12230
12231 * posix/unistd.h (daemon): Declare it.
12232
12233 * malloc/mcheck-init.c: Remove GNU ld hacks.
12234 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
12235 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
12236 (initialize): Call the hook if set.
12237 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
12238 (__malloc_initialize_hook): Declare new hook variable.
12239
12240Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12241
12242 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
12243 * hurd/hurdpid.c: Likewise.
12244 * hurd/hurdauth.c: Likewise.
12245
12246Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12247
12248 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
12249 if any are successful.
12250
12251 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
86d2c878 12252 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
28f540f4
RM
12253 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
12254 functions.
12255 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
12256
12257 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
12258 * hurd/hurd-raise.c: Likewise.
12259 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
12260
12261 * sysdeps/mach/hurd/ptrace.c: New file.
12262
12263 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
12264 interface, which has normal EINTR semantics. Instead of waiting
12265 for io_select_done notification messages, send io_select messages
12266 with short reply timeout and then wait for io_select_reply
12267 messages.
12268
12269 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
12270 EXEC_INHERITED) to file_exec.
12271
12272 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
12273 use sig_post_untraced_reply. All callers changed.
86d2c878 12274 (abort_thread, abort_rpcs): Take same new arg and pass it through.
28f540f4
RM
12275 All callers changed.
12276 (_hurd_internal_post_signal): Take new arg UNTRACED.
12277 If zero and process is traced, stop with SIGNO as stop signal. If
12278 nonzero, resume process before delivering signal (unless
12279 ACT==stop). Expand local fn sigwakeup into block at end taken iff
12280 SIGNO!=0.
12281 (signal_allowed): New function, broken out of _S_sig_post.
12282 (_S_sig_post): Call it. Pass UNTRACED arg of false to
12283 _hurd_internal_post_signal.
12284 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
12285 pass true for UNTRACED.
12286 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
12287 UNTRACED.
12288 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
12289 to _hurd_internal_post_signal (value zero).
12290
12291Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12292
12293 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
12294 (_hurd_init): Initialize it from FLAGS arg.
12295 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
12296 raise a SIGTRAP signal (with a sigcode of zero).
12297 * hurd/hurd.h (_hurd_exec_flags): Declare it.
12298
12299 * Version 1.09.5.
12300
12301Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12302
12303 * malloc/malloc.c (malloc): Fix 1-off in previous change.
12304
12305Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12306
12307 * posix/glob/Makefile.in: Remove config.h and config.log.
12308
12309Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12310
12311 * posix/glob/configure.in: Add AC_CONST check.
12312
12313 * conf/portability.h: #undef sun.
12314 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
12315 * resolv/getnetnamadr.c: Likewise.
12316
12317 * socket/Makefile (headers): Add sockaddrcom.h.
12318 * inet/netinet/in.h: Include <sockaddrcom.h>.
12319 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
12320 * socket/sys/un.h (struct sockaddr_in): Likewise.
12321 * socket/sys/socket.h (struct sockaddr): Likewise.
12322 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
12323 * sysdeps/generic/sockaddrcom.h: New file.
12324
12325 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
12326 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
12327 F_FREESP): New macros.
12328 * sysdeps/posix/truncate.c: New file.
12329
12330 * malloc/malloc.c (malloc): Fix typos in RMS's change.
12331
12332 * malloc/Makefile (dist-routines): Add malloc-find.
12333 * malloc/malloc.h (malloc_find_object_address): Declare it.
12334 * malloc/malloc-find.c: New file.
12335
12336 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
12337 __malloc_size_t.
12338 (malloc_info): Use that type for member `busy.info.size'.
12339
12340 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
12341 `LONG' macro.
12342 [! QUAD] (LONG): Define as long.
12343 [QUAD] (LONG): Define as long long.
12344 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
12345 versions.
12346 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
12347 * stdlib/Makefile (routines): Add strtoq and strtouq.
12348 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
12349 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
12350 Declare them.
12351
12352 * stdio/vfprintf.c: If there was a precision specified, ignore the
12353 0 flag and always pad with spaces.
12354
12355 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
12356 Use a loop and also stop on first !isascii char.
12357
12358Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
12359
12360 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
12361
12362 * malloc/malloc.c (malloc): For a multi-block object, store a
12363 negative number into the busy.info.size of all but the first block.
12364
12365Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
12366
12367 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
12368 instead of t0, t1, and t2.
12369
12370Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12371
12372 * malloc/memalign.c (__memalign_hook): New variable.
12373 (memalign): Call it if set.
12374 * malloc/malloc.h (__memalign_hook): Declare new variable.
12375
12376Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12377
12378 * conf/portability.h: Include string.h and stdlib.h.
12379 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
12380 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
12381 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
12382 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
12383 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
12384
12385 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
12386 all uses of `extern __inline' with `__m81_inline'.
12387
12388 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
12389 * sysdeps/unix/__fork.S: Swap args in subl.
12390
12391 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
12392 compatibility.
12393
12394Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
12395
12396 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
12397 of swtch.
12398 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
12399 * mach/spin-solid.c (__spin_lock_solid): Likewise.
12400
12401Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12402
12403 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
12404 for PBUF.
12405 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
12406
12407 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
12408
12409Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12410
12411 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
12412 in `bis' insn; immediate must be second.
12413
12414 * sysdeps/unix/__fork.S: Use subl instead of decl.
12415 * sysdeps/unix/i386/__fork.S: New file.
12416
12417 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
12418 Remove A macro; just use `asm volatile' with proper quotes in each
12419 line.
12420 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
12421 jmp target register.
12422
12423 * time/africa, time/asia, time/australasia, time/emkdir.c,
12424 time/europe, time/ialloc.c, time/northamerica, time/private.h,
12425 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
12426 and data from ADO 94h distribution.
12427
12428 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
12429 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
12430 absolute pointer. Put second store in jmp delay slot.
12431
12432Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
12433
12434 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
12435 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
12436 absolute pointer.
12437 * sysdeps/sparc/bsd-setjmp.S: Likewise.
12438
12439 * configure.in: Use ; before } in { ... } exprs.
12440
e215c478 12441\f
28f540f4 12442
e215c478 12443See ChangeLog.4 for earlier changes.
This page took 1.375119 seconds and 5 git commands to generate.