]> sourceware.org Git - glibc.git/blame - ChangeLog
Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / ChangeLog
CommitLineData
7b3547eb
RM
1Sun Apr 28 14:14:35 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2
3 * sysdeps/unix/sysv/linux/i386/Makefile: New file.
4
5Wed Apr 24 17:35:30 Ulrich Drepper <drepper@cygnus.com>
6
7 * inet/netinet/in.h, socket/sys/socket.h: Move to
8 sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
9 * netinet/in.h, sys/socket.h: Remove file.
10
11 * misc/Makefile (routines): Add fdatasync.
12
13 * posix/Makefile (headers): Add sched.h.
14 (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
15 sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
16
17 * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
18 _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
19 _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
20 _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
21 _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
22 _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
23
24 * posix/sched.h: New file. Header for POSIX scheduling interface.
25
26 * posix/unistd.h: Describe options from POSIX.4.
27 Add declaration of fdatasync.
28
29 * sysdeps/generic/confname.h: Add definition for
30 _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
31 _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
32 _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
33 _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
34 _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
35
36 * sysdeps/generic/fdatasync.c: New file. Default implementation
37 simply uses fsync.
38
39 * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
40
41 * sysdeps/generic/schedbits.h: New file. System dependent
42 defintion for POSIX.4 scheduling interface.
43
44 * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
45
46 * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
47 sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
48 sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
49 sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
50 sysdeps/stub/sched_yield.c: New file: Stub implementation
51 for systems missing these POSIX.4 system calls.
52
53 * sysdeps/unix/sysv/linux/gnu/types.h,
54 sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
55 data type definitions.
56
57 * sysdeps/unix/sysv/linux/netinet/in.h: New file. Linux
58 specific version.
59
60 * sysdeps/unix/sysv/linux/posix_opt.h: New file. Define POSIX
61 options applicable for Linux.
62
63 * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
64 fdatasync, nanosleep, sched_setparam, sched_getparam,
65 sched_setscheduler, sched_getscheduler, sched_yield,
66 sched_get_priority_max, sched_get_priority_min, and
67 sched_rr_get_interval.
68
69 * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
70 options.
71
72 * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
73
74 * time/sys/time.h: Remove definition of `struct timespec'.
75
76 * time/time.h (struct timespec): Move definition to here.
77
b2c8be1f
RM
78Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
79
80 * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
81
b1794a28
RM
82Thu Apr 25 15:49:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
83
84 * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
85 the scan for a name, avoid doing another readdir (which overwrites
86 NENTRIES, and was resulting in a bogus ENOENT).
87
88 * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
89
b2c8be1f
RM
90Wed Apr 24 00:22:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
91
92 * stdio/internals.c (seek_to_target): Set errno if seek function
93 returns the wrong offset.
94
95 * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
96 * wcsmbs/wcrtomb.c: Likewise.
97
98 * stdio-common/vfprintf.c: Include errno.h.
99
66aeca9c
RM
100Tue Apr 23 21:09:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
101
102 * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
7b3547eb 103 variable, LUCKY, to use instead of setting D to -1 (which fouls
66aeca9c
RM
104 things up).
105
9a8c0d4f
RM
106Tue Apr 23 15:56:56 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
107
108 * config.h.in (HAVE_REGEX): New macro.
109
110 * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
111 * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
112 (routines): Add statfs, fstatfs.
113 * sysdeps/mach/hurd/statfs.c: New file.
114 * sysdeps/mach/hurd/fstatfs.c: New file.
115 * sysdeps/stub/fstatfs.c: New file.
116 * sysdeps/stub/statfs.c: New file.
117 * io/sys/statfs.h: New file.
118 * sysdeps/generic/statfsbuf.h: New file.
119 * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
120
121Tue Apr 23 00:06:47 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
122
123 * malloc/Makefile (gmalloc-routines): Add valloc back here.
124 (dist-routines): Remove it here.
125 * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
126 (ELIDE_VALLOC): Define it.
127 [! ELIDE_VALLOC]: Make whole file conditional on this.
128 * malloc/malloc.h (valloc): Make decl conditional on
129 [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
130
131Mon Apr 22 00:02:19 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
132
133 * MakeTAGS: Include version.mk.
134 (po/SYS_libc.pot): Add missing / in sed s cmd.
135
b0d20a87
RM
136Sat Apr 20 18:13:00 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
137
138 * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
139 $(libc_cv_ld_no_whole_archive).
140
141Sat Apr 20 17:07:17 1996 Ulrich Drepper <drepper@cygnus.com>
142
143 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
144 grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
145 math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
146 misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
147 posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
148 posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
149 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
150 stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
151 string/string.h, sysdeps/generic/sigaction.h,
152 sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
153 sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
154 sysdeps/unix/sysv/linux/sys/ptrace.h,
155 sysdeps/unix/sysv/minix/sigaction.h,
156 sysdeps/unix/sysv/sco3.2.4/sigaction.h,
157 sysdeps/unix/sysv/sysv4/sigaction.h,
158 sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
159 time/sys/time.h, time/time.h: Fix copyright comment.
160
a641835a
RM
161Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
162
b0d20a87
RM
163 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
164 not given in stack aux vector, fetch them with syscalls.
165
a641835a
RM
166 * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
167 for nonmatching nonerror (instead of !MATCH).
168 (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
169
170 * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
171 unsigned long for variable NET2.
172
173 * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
174
175Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
176
177 * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
178 catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
179 catgets/open_catalog.c: New files. Implementation of XPG4
180 compliant catgets() function and needed tools.
181 * Makefile (subdirs): Add catgets.
182
183Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
184
185 * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
186
187Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
188
189 * stdio-common/vfprintf.c: Correct some typos.
190
191 * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
192 sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
193 __signgam.
194
195Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
196
197 * Makerules (no-whole-archive): New variable.
198 (build-shlib): Use it.
199 * elf/Makefile (libdl.so): Use it.
200 * configure.in (libc_cv_ld_no_whole_archive): New check for
201 --no-whole-archive.
202 * config.make.in (have-no-whole-archive): New variable.
203
204 * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
205 from 3 to 4.
206
207 * Make-dist: Include version.mk.
208 (version, release): Variables removed.
209 * Makeconfig (version.mk): New target.
210
211Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
212
213 * locale/Makefile (headers): Add langinfo.h.
214 (CPPFLAGS): Remove -Iliblib.
215
f24f4dc8
RM
216Mon Apr 15 16:49:04 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
217
218 * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
219 function and its declaration.
220
e2a501ab
MB
221Wed Apr 10 14:13:45 1996 Miles Bader <miles@gnu.ai.mit.edu>
222
223 * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
224 MACH_PORT_DEAD in the thread reply-port variable before destroying
225 the signal handler's reply port, to avoid infinite recursion.
226
b84095fe
RM
227Mon Apr 8 18:27:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
228
229 * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
230 user passes in TZ, just zero it (emacs passes in a dummy variable,
231 and rms says the hurd should be the one to change).
232
3125073e
RM
233Sun Apr 7 10:37:30 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
234
235 * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
236 port in the parent.
786db220 237
3125073e 238Fri Apr 5 17:43:41 1996 Miles Bader <miles@gnu.ai.mit.edu>
d7057689 239
786db220
MB
240 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
241 MACH_PORT_DEAD in the thread reply-port variable before destroying
242 the signal handler's reply port to avoid infinite recursion.
243 * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
244 attempt to destroy PORT if it's a valid port name.
245
2e516341
RM
246Wed Apr 3 17:10:44 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
247
248 * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
249 * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
250 instead of $(objpfx).
251
299a95b9
RM
252Tue Apr 2 21:27:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
253
254 * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
255 the pattern ends with a backslash and quoting is enabled.
256 * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
257 patterns.
258
30de3b18
RM
259Mon Apr 1 13:34:55 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
260
261 * stdio-common/tst-printf.c (main): Add new test case.
262
263 * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
264
265Mon Apr 1 11:39:10 Ulrich Drepper <drepper@gnu.ai.mit.edu>
266
267 * stdlib/strtod.c (STRTOD): Fix handling of American style FP
268 numbers.
269
270 * stdio-common/vfprintf.c (vfprintf): Don't increment format
271 string pointer twice after seeing `*'.
272
273Sun Mar 31 17:31:54 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
274
275 * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
276 po/header.pot.
277
278Sun Mar 31 18:07:32 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
279
280 * locale/Makefile (others, install-bin): Compiling locale works
281 again.
282 (locale-modules): locale has no --dump option anymore. Remove
283 ctypedump.
284
285 * locale/programs/config.h: Don't declare euidaccess.
286 Use #include_next to get libc's config.h.
287
288 * locale/programs/ctypedump.c: Not needed anymore. Dump option
289 of locale is removed.
290
291 * locale/programs/locale.c: Adapt for new locale implementation.
292
293 * stdio-common/_itoa.h (_itoa_word): Define as inline function.
294 * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
295 Don't declare static because used in _itoa_word inline function.
296
297 * stdio-common/printf-parse.h: Prepare for use in wide-char
298 stdio implementation.
299 (find_spec): Take additional argument to work with mbrlen instead
300 of mblen.
301 (parse_one_spec): Ditto.
302
303 * stdio-common/printf-prs.c: Prepare for use in wide-char
304 stdio implementation.
305
306 * stdio-common/printf.h: Mark change for wide-char handling.
307 Changing it now would result in incompatibilities.
308
309 * stdio-common/vfprintf.c: New and fast implementation.
310
311 * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
312 mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
313 mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
314 Change wcswcs to wcsstr.
315 Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
316 mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
317
318 * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
319 wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
320 wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
321 wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
322 wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
323 function according to ISO C amendment 1.
324 * wchar.h: Wrapper around "wcsmbs/wchar.h".
325
326 * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
327 wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
328 wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
329 wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
330 wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
331 amendment 1.
332
333 * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
334 wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
335 wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
336 wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
337 wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
338 Implement functions from early drafts, not part of final standard.
339
340Sun Mar 31 16:50:41 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
341
342 * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
343 __jmp_bug_tag so its C++ implicit typedef does not conflict with the
344 __jmp_buf typedef.
345
346 * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
347 compiling in the source directories.
348
349Fri Mar 29 16:26:35 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
350
351 * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
352 * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
353
b8051057
RM
354Fri Mar 29 11:29:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
355
356 * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
357 with weak alias signgam.
358
27e00f3f
RM
359Thu Mar 28 18:32:34 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
360
361 * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
362
8c1442d0
RM
363Thu Mar 28 14:22:51 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
364
c475b8f5
RM
365 * sunrpc/rpc_main.c (main): Call textdomain.
366
7a1c652d
RM
367 * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
368 --no-location.
369 (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
370 ($P/subdirs.pot): New target.
371 ($P/SYS_libc.pot): Add -n switch.
372
a141dd34
RM
373 * locale/locale.h (LC_*): Values reordered to match Linux libc.
374
8c1442d0
RM
375 * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
376 the process is a zombie; send no messages and return success.
377
43efc103
RM
378Thu Mar 28 11:53:26 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
379
380 * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
381 * wctype/wctype.c: Likewise.
382 * wctype/wctrans.c: Likewise.
383
ffcf9634
RM
384Thu Mar 28 03:00:43 1996 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
385
386 * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
387 DATA->strings.
388
389 * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
390
391 * configure.in (.weakext check): Fix asm code to use .weakext instead
392 of .weak! Fix bogus test calls.
393 * configure: Regenerated.
394
19bc17a9
RM
395Thu Mar 28 03:25:10 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
396
0393dfd6
RM
397 * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
398
399 * locale/programs/ld-collate.c (collate_finish): Use error_at_line
400 instead of error_with_loc.
401
402 * locale/weight.h: Use u_int32_t instead of u32_t.
403 * string/strxfrm.c: Likewise.
404
405 * string/strxfrm.c: Find weight.h in ../locale; don't #include
406 "localeinfo.h".
407 * string/strcoll.c: Likewise.
408
19bc17a9
RM
409 * intl/Makefile (copysrc): Add missing > in sed cmd.
410
411Sat Mar 23 17:52:49 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
412
413 * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
414 change value to $(datadir)/i18n. `nls' is not an appropriate
415 name.
416
417 * Makefile (subdirs): Add new subdir wctype.
418
419 * ctype/ctype-info.c: Add new global variable __ctype_names
420 and initialize from _nl_C_LC_CTYPE.
421
422 * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
423 class. Use bit 11.
424 [_ISbit]: Protect definition of bitmasks because they are also
425 used in wctype.h.
426
427 * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
428 after successfully pushing back a character.
429
430 Fundamental changes in locale implementation. Almost nothing
431 from the old code is used anymore.
432 * locale/charmap.c, locale/collate.c, locale/config.h,
433 locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
434 locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
435 locale/locale.c locale/localeconv.c, locale/localedef.c,
436 locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
437 locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
438 locale/numeric.c, locale/setlocale.c, locale/token.h,
439 locale/xmalloc.c: Removed.
440
441 * locale/Makefile: Update for new locale implementation with
442 program source code distributed in subdir.
443
444 * locale/categories.def, locale/iso-4217.def: Updated file
445 for new locale implementation.
446
447 * locale/langinfo.h: Updated for new locale implementation.
448 (ERA_D_T_FMT, ERA_T_FMT): New official values according to
449 P1003.2b/D11.
450 (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
451 _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
452 _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
453 _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
454 _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
455 _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
456 extended LC_CTYPE and LC_COLLATE implementation.
457
0393dfd6
RM
458 * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
459 locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
460 for locale related programs.
19bc17a9
RM
461
462 * locale/C-collate.c, locale/C-ctype.c,
463 locale/C-messages.c, locale/C-monetary.c,
464 locale/C-numeric.c, locale/C-time.c,
465 locale/lc-collate.c, locale/lc-ctype.c,
466 locale/lc-messages.c, locale/lc-monetary.c,
467 locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
468 functions, and new generated "C" locale data.
469
470 * locale/loadlocale.c: Now handles word fields in locale binary
471 automatically by changing the endianess if necessary.
472
473 * locale/localeinfo.h (LIMAGIC): Changed magic number because
474 of incompatible changes.
475 (locale_data): Changed definition to allow word as a value type.
476 (coll_sort_rule): Values for collation sorting mode.
477 (_NL_CURRENT_WORD): New macro to access word value of locale entry.
478 (__collate_table, __collate_extra): Declare new global variables
479 for collation tables.
480
481 * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
0393dfd6
RM
482 locale/programs/charmap.c, locale/programs/charset.c,
483 locale/programs/charset.h, locale/programs/config.h,
484 locale/programs/ctypedump.c, locale/programs/ld-collate.c,
485 locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
486 locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
487 locale/programs/ld-time.c, locale/programs/linereader.c,
488 locale/programs/linereader.h, locale/programs/locale.c,
489 locale/programs/localedef.c, locale/programs/locales.h,
490 locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
491 locale/programs/locfile-token.h, locale/programs/locfile.c,
492 locale/programs/locfile.h, locale/programs/stringtrans.c,
493 locale/programs/stringtrans.h: Implementation of locale related
494 programs.
19bc17a9
RM
495
496 * locale/weight.h: Functions to access collation tables.
497
498 * posix/unistd.h: Define _POSIX2_LOCALEDEF.
499
500 * stdio-common/printf_fp.c: Fix bug with printing certain numbers
501 < 10^-1. Reported by Bill Metzenthen.
502
503 * stdio-common/tfformat.c: Add new test for above bug.
504
505 * string/strcoll.c, string/strxfrm.c: Real implementation of
506 string collation according to ISO C.
507
508 * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
509 wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
510 wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
511 Implementation of wide character classes and mapping.
512
53f770e0
RM
513Wed Mar 27 14:52:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
514
515 * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
516 _dl_relocate_object loop. Avoid relocating RTLD_MAP in that loop, and
517 do it individually if necessary after _dl_sysdep_start_cleanup call.
518
519 * stdlib/Makefile (mpn-routines): Add divrem.
520
521Tue Mar 26 22:54:14 Ulrich Drepper <drepper@gnu.ai.mit.edu>
522
523 * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
524 instead of __mpn_divmod.
525
526Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
527
528 * sysdeps/alpha/setjmp.S: Must establish global pointer before
529 address of __sigsetjmp_aux can be loaded.
530
531Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
532
533 * sysdeps/i386/i586/memset.S: New file. Highly optimized
534 version for i586 contributed by Torbjorn Granlund.
535 Adapted for use as bzero.
536 * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
537 code to implement bzero().
538
539Tue Mar 26 20:01:17 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
540
541 * stdlib/Makefile (mpn-routines): Remove divmod.
542
c0621444
BK
543Tue Mar 26 15:40:14 1996 Brendan Kehoe <brendan@zen.org>
544
545 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
546 wrapped with #ifndef, to avoid config.h defining it.
547
5775972d
RM
548Mon Mar 25 13:10:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
549
81e4d60c
RM
550 * malloc/realloc.c (_realloc_internal): In case of growing large
551 block, leave _heaplimit zero across _malloc_internal call.
552
5775972d
RM
553 * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
554
857fa1b8
RM
555Mon Mar 25 03:35:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
556
557 * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
558 table when _heaplimit==0 during realloc growing large block.
559
560 * MakeTAGS (extract): Remove /dev/null from xgettext command line.
561 (text-srcs): New variable: extract only C sources from $(tags_sources).
562 (po/$(domain).pot): Depend on that.
563 If it's empty, cp /dev/null $@ instead of $(extract).
564
565 * misc/Makefile (headers): Add iovec.h.
566 * sysdeps/unix/sysv/linux/iovec.h: New file.
567 * sysdeps/generic/iovec.h: New file.
568 * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
569
570 * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
571 AC_TRY_COMPILE.
572
573 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
574 macros inside [! __STDC__].
575
576 * stdlib/rpmatch.c: New file.
577 * stdlib/Makefile (routines): Add rpmatch.
578 * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
579
580 * MakeTAGS (MSGJOIN): Variable removed.
581 (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
582
583Wed Mar 20 20:08:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
584
585 * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
586
587 * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
588 NO_UNDERSCORES.
589
036a2725
RM
590Thu Mar 21 11:19:15 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
591
592 * mach/devstream.c (input): Translate \r to \n on input.
593
ce563359
RM
594Wed Mar 20 11:28:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
595
596 * stdio-common/printf.h, stdio-common/printf_fp.c,
597 stdio-common/vfprintf.c: Place const in parameter list at
598 correct place.
599
600Wed Mar 20 23:58.12 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
601
602 * sysdeps/i386/ldbl2mpn.c: Copy of former version of
603 sysdeps/ieee754/ldbl2mpn.c.
604 * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
605 Reported by Andreas Schwab.
606
607Wed Mar 20 19:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
608
609 * version.c: Include version.h to define RELEASE and VERSION macros.
610 (__libc_release, __libc_version): Use them.
611 * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
612 use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
613 * Make-dist (rel+vers): Snarf the macro values from version.h.
614
615 * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
616 (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
617 pass -a for these files.
618
619 * Makerules (po/%.pot): Depend on FORCE target so recursive make is
620 always run.
621
38bb44bc
RM
622Mon Mar 18 22:54:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
623
624 * sysdeps/unix/sysv/linux/wait3.c: New file.
625 * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
626 one from sysdeps/posix.
627
948c3e72
RM
628Wed Mar 20 09:42:11 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
629
d7193325
RM
630 * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
631
948c3e72
RM
632 * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
633 lt_executable, then lt_library.
634 * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
635
636Wed Mar 20 00:08:23 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
637
638 * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
639
640Tue Mar 19 16:31:06 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
641
642 * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
643 VEOL2, VMIN, VTIME): Corrected.
644 (PAGEOUT, WRAP, VDSUSP): Deleted.
645
b20e47cb
RM
646Tue Mar 19 14:18:42 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
647
948c3e72
RM
648 * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
649 (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
650
4d585333
RM
651 * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
652
653 * math/math.h: Move M_* constants before __math.h include.
654 [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
655
656 * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
657 If log10 is not defined (i.e. no -lm), use stupid loop instead.
658
d3669add
RM
659 * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
660 and no other _*_SOURCE macro is.
661 (_GNU_SOURCE): Don't define by default.
662 * libc-symbols.h (_GNU_SOURCE): Define it.
663
c8cf0b14
RM
664 * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
665
c224a18a
RM
666 * config.make.in (weak-symbols): Variable removed.
667 * configure.in (--with-weak-symbols): Option removed.
668 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
669 New tests.
c8cf0b14 670
c224a18a
RM
671 * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
672 (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
673 New #undefs.
674 * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
675
b20e47cb
RM
676 * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
677
678Mon Mar 4 20:17:28 1996 David Mosberger-Tang <davidm@azstarnet.com>
679
c224a18a
RM
680 * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
681 * inet/inet_mkadr.c: Likewise.
682 * inet/inet_net.c: Likewise.
683 * inet/inet_netof.c: Likewise.
684 * inet/rcmd.c: Likewise.
685 * inet/arpa/inet.h: Likewise.
686 * inet/netinet/in.h: Likewise.
687 * inet/netinet/tcp.h: Likewise.
688 * inet/protocols/rwhod.h: Likewise.
689 * inet/protocols/talkd.h: Likewise.
690 * resolv/inet_addr.c: Likewise.
691
b20e47cb
RM
692 * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
693
694 * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
695
696 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
697 umount.
698
699 * sysdeps/alpha/__math.h (atan, cabs): New functions.
700
701 * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
702 expects set-value, not pointer to it).
703
704Sun Feb 25 22:36:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
705
706 * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
707
708 * gmon/gmon.c (__bb_head): new variable.
709 (write_hist, write_call_graph, write_bb_counts): new functions.
710 (_mcleanup): modified to call above functions instead of directly
711 writing out gmon.out.
712 * gmon/sys/gmon.h (struct __bb): New type.
713 (struct gmonhdr): Type removed.
714 (struct gmonparam): New member `log_hashfraction'.
715 (GMONVERSION): Macro removed.
716
717 * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
718 sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
719 files.
720 * gmon/Makefile (headers): Add sys/gmon_out.h.
721 (routines): Add bb_init_func, bb_exit_func.
722
723 * gmon/mcount.c: Avoid integer division.
724
725Wed Feb 21 23:56:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
726
727 * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
728 passed to match what __sigsetjmp_aux() expects.
729
730Tue Feb 20 11:33:46 1996 David Mosberger-Tang <davidm@azstarnet.com>
731
732 * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
733 connect, getpeername, getsockname, listen, recv, recvfrom,
734 recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
735 added to override same-name assembly file in the parent directory.
736
737 * stdlib/stdlib.h: add include of sys/types.h in front of random
738 etc declarations to ensure int32_t is declared.
739
740 * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
741 where 32 bit integers are required. Also change LONG_MAX into
742 0x7fffffff since the intent is to turn off the sign bit in a
743 32 bit integer.
744
745 * time/offtime.c (__offtime): Use Paul Eggert's code to deal
746 with very large values for "days" (e.g., 64 bit values).
747
748Mon Feb 19 22:22:12 1996 David Mosberger-Tang <davidm@azstarnet.com>
749
750 * stdlib/stdlib.h (__random, __random_r, random_r, struct
751 random_data): use int32_t instead of `long int'.
752
753Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
754
755 * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
756
757 * sysdeps/alpha/ffs.S: new file.
758
759 * sysdeps/alpha/fabs.c: File removed.
760
761 * time/tzfile.c (__tzfile_read): counter variable is i, *not*
762 num_transitions!
763
764 * time/offtime.c: make capable of dealing with very large (64 bit)
765 time_t values. Use old algorithm until a year is reached that
766 is an integer multiple of 400, then use DAYS_PER_400_YEARS to
767 do the remainder in a single division.
768
769 * sysdeps/generic/ffs.c (ffs): fix variable declarations to
770 be unsigned int, not unsigned long.
771
772 * string/test-ffs.c (main): add test case with all upper bits
773 set.
774
775 * stdlib/tst-strtol.c: add tests cases for machines where
776 sizeof(long)==8.
777
778 * stdlib/testrand.c (main): disallow rand() to return negative
779 integers.
780
781 * stdlib/testmb.c (main): fix format to use %lx instead of %x.
782
783 * stdlib/stdlib.h: on 64 bit machines, declare
784 struct random_data, __random(), __random_r, and random_r to
785 return "int" instead of "long int".
786
787 * stdlib/random_r.c: 64 bit machines use "int" instead of "long
788 int". Similarly, use INT_MAX instead of LONG_MAX.
789
790 * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
791 need to operate on "int" instead of "long int".
792
793 * locale/locfile-hash.c (compute_hashval): make shifted constant
794 a long to avoid loosing bits on 64 bit machines.
795
796 * dirent/tst-seekdir.c (main): fix confusing comment; print
797 a line to mark point where directory is rewound.
798
799Fri Feb 16 15:01:49 1996 David Mosberger-Tang <davidm@azstarnet.com>
800
801 * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
802
803Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
804
805 * sysdeps/unix/sysv/linux/alpha/Makefile,
806 sysdeps/unix/sysv/linux/alpha/brk.S,
807 sysdeps/unix/sysv/linux/alpha/fpu_control.c,
808 sysdeps/unix/sysv/linux/alpha/fpu_control.h,
809 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
810 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
811 sysdeps/unix/sysv/linux/alpha/pipe.S,
812 sysdeps/unix/sysv/linux/alpha/setfpucw.c,
813 sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
814 sysdeps/unix/sysv/linux/alpha/speed.c,
815 sysdeps/unix/sysv/linux/alpha/start.S,
816 sysdeps/unix/sysv/linux/alpha/syscall.S,
817 sysdeps/unix/sysv/linux/alpha/syscalls.list,
818 sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
819 sysdeps/unix/sysv/linux/alpha/sysdep.S,
820 sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
821
822 * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
823 address register before returning (gcc 2.7.1 doesn't do it,
824 presumably because $26 is declared as a global variable).
825
826 * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
827 argument.
828
829 * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
830 instead of multiplication.
831
832 * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
833 currently blocked signals instead of the empty mask to ensure
834 that execution of alarm handler occurs with none of the currently
835 blocked signals enabled.
836
837 * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
838
839 * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
840 sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
841
842 * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
843 sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
844 sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
845 sysdeps/alpha/strlen.S: New files.
846
847 * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
848 sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
849 sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
850 sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
851 Removed.
852
853 * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
854 int.
855
856 * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
857 to end of function to avoid a jump across NOPs.
858
859 * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
860 pertaining to integer division/remainder routines since new code
861 doesn't require them.
862
863 * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
864 where 32 bit quantities are consumed/stored. Various other minor
865 64-bit cleanups (casting).
866
867 * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
868 whether xdr_long or xdr_short should be used to encode an int.
869 Notice that an xdr_long is 4 bytes independent of the architecture
870 (otherwise no Alpha could interoperate with existing NFS servers,
871 for example). Ditto for enums.
872
873 * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
874 to 16 since it really wants 16 bytes.
875
876 * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
877
c224a18a
RM
878 * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
879 u_int32_t (instead of u_long).
880
b20e47cb
RM
881 * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
882 "buf" pointer by casting it to a char* first since a long* may be 8
883 bytes or more and oa->oa_length may be any multiple of 4.
884
b20e47cb
RM
885 * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
886 since it really is testing for 32 bits. Fixed casts to use
887 u_int32 instead of u_long.
888 * sunrpc/xdr_rec.c: Likewise.
889
890 * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
891 * sunrpc/rpc/auth.h: Likewise.
892
893 * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
894 for Alpha.
895
896Tue Mar 19 13:27:49 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
897
898 * sysdeps/i386/fpu/__math.h: New file.
899 Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
900
901Sun Mar 17 00:28:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
902
903 * sysdeps/posix/clock.c: Don't multiply the return value by
904 CLOCKS_PER_SEC or CLK_TCK.
905
e3845371
RM
906Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
907
b20e47cb
RM
908 * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
909 scan finds no match.
910
911 * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
912 * misc/bsd-compat.c (setpgrp): New function, two arg version.
913 * sysdeps/stub/setpgid.c: Remove setpgrp alias.
914 * sysdeps/mach/hurd/setpgid.c: Likewise.
915 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
916 * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
917 * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
918 * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
919 * posix/setpgrp.c (setpgrp): New file.
920 * posix/Makefile (routines): Add setpgrp.
921
e3845371
RM
922 * elf/Makefile (rtld-link): New canned sequence.
923 (ld.so, ld-linux.so.1): Use it. Pass -soname option.
924
925 * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
926
927Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
928
929 * sysdeps/unix/sysv/linux/tcgetpgrp.c,
930 sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
931
9b431e31
RM
932Sun Mar 17 07:19:33 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
933
934 * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
935 (CFLAGS): Append -Wno-unitialized.
936
5aab07eb
RM
937Sat Mar 16 20:58:43 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
938
939 * stdlib/erand48_r.c: Use FP division by powers of two to distribute
940 short bits into double.
941
6025c399
RM
942Sat Mar 16 20:08:22 1996 David Mosberger-Tang <davidm@azstarnet.com>
943
9b431e31
RM
944 * sysdeps/alpha/memchr.S: New file.
945 * sysdeps/alpha/memchr.c: Obsolete file removed.
946 * string/tester.c: Soup up memchr tests.
6025c399
RM
947
948Sat Mar 16 16:26:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
949
950 * misc/Makefile (headers): Add sysexits.h.
951 * misc/sysexits.h: New file.
952
953Thu Mar 14 15:20:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
954
955 * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
956 call to __atan.
957 * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
958 call to __atanf.
959
960 * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
961 sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
962 sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
963 sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
964 sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
965 sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
966 sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
967 sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
968 sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
969 sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
970 sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
971 sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
972 sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
973 sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
974 sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
975 sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
976 sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
977 sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
978 sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
979 sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
980 sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
981 sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
982 sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
983 sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
984 sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
985 sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
986 sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
987 sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
988 sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
989 sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
990 sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
991 sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
992 sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
993 sysdeps/m68k/fpu/s_significand.c,
994 sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
995 sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
996 sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
997 sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
998
999 * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
1000
1001 * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
1002 * sysdeps/m68k/fpu/isnanl.c: Likewise.
1003
1004Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1005
1006 * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
1007 calculation to include trailing invariant portion. Don't use alloca;
1008 instead use a dynamic auto array for GCC, malloc for non-GCC.
1009 Handle nested braces properly.
1010
1011 * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
1012
1013 * libc-symbols.h (lint): New macro.
1014
1015Fri Mar 15 01:18:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1016
1017 * libio/iosetvbuf.c: Add weak alias setvbuf.
1018
52e9a9d1
RM
1019Thu Mar 14 06:01:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1020
1021 * string/strnlen.c: New file.
1022 * string/Makefile (routines): Add strnlen.
1023 * string/string.h [__USE_GNU] (strnlen): Declare new function.
1024 [__OPTIMIZE__]: Define extern inline implementation of it.
1025
1026 * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
1027 addition, to avoid using anything from -lm.
1028
1029Mon Mar 4 21:57:14 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1030
1031 * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
1032
1033 * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
1034 (CALL_MCOUNT): New macro, empty unless [PROF].
1035 (ENTRY): Do CALL_MCOUNT just after the label.
1036 (JUMPTARGET): New macro.
1037 (SYSCALL_ERROR_HANDLER): Fix syntax.
1038
1039Thu Mar 14 04:20:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1040
1041 * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
1042 function instead of using inline asm i386 syscall.
1043 * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
1044
1045 * posix/unistd.h [__USE_BSD]: Declare usleep.
1046
6c46dada
RM
1047Tue Mar 12 04:57:57 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1048
52e9a9d1
RM
1049 * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
1050 (fcvt, ecvt): Use it for buffer size.
1051
1052 * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
1053 conditionalizing long vs long long.
1054
1055 * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
1056 pointers; never return EFAULT.
1057 * stdlib/drand48_r.c (drand48_r): Likewise.
1058 * stdlib/erand48_r.c (erand48_r): Likewise.
1059
6c46dada
RM
1060 * setjmp/Makefile (tests): Add jmpbug.
1061 * setjmp/jmpbug.c: New file.
1062
1177c8ba
RM
1063Tue Mar 12 04:42:01 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1064
1065 * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
1066 * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
1067 * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
1068 `restore' until the target frame is hit.
1069
1070Sun Mar 10 20:29:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1071
1072 * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
1073 * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
1074 s_sigsuspend.
1075
1076Thu Mar 7 21:30:58 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1077
1078 * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
1079 left side of sed substitutions.
1080
1081Sun Mar 10 16:58:10 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
1082
1083 * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
1084 is not available anymore. Do it ourselves.
1085
1086 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
1087 Correct GCC `asm' syntax.
1088
dd0e4e0c
RM
1089Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1090
1177c8ba
RM
1091 * stdio-common/Makefile (tests): Add tst-ungetc.
1092 * stdio-common/tst-ungetc.c: New test from drepper.
1093 * stdio-common/tstscanf.c (main): New %[ test case from drepper.
1094
1095 * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
1096 somehow this was missed, though the weak alias is already there.
1097
dd0e4e0c
RM
1098 * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
1099 default to double precision, all interrupts masked; fdlibm requires.
1100
d25d5f6a
RM
1101Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1102
1103 * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
1104
1105Fri Mar 8 22:16:48 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1106
1107 * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
1108
45667a53
MB
1109Tue Mar 5 18:45:14 1996 Miles Bader <miles@gnu.ai.mit.edu>
1110
1111 * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
1112 final loop.
1113
f7eac6eb
RM
1114Mon Mar 4 20:54:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1115
1116 * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
1117
5d8a006d
MB
1118Tue Mar 5 12:14:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
1119
1120 * sysdeps/mach/hurd/select.c (__select): Also don't fault just
1121 because some fdmask is 0.
1122
e4963995
MB
1123Mon Mar 4 17:35:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1124
1125 * sysdeps/mach/hurd/select.c (__select):
1126 Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
1127 Don't return without frobbing the bitmasks after a timeout.
1128 When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
f7eac6eb
RM
1129
1130Mon Mar 4 17:35:09 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1131
1132 * hurd/catch-signal.c (hurd_safe_memmove): New function.
1133 (hurd_safe_copyin, hurd_safe_copyout): New functions.
1134 * hurd/hurd/sigpreempt.h: Declare them.
1135
1136Sun Mar 3 08:43:44 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1137
1138 Replace math code with fdlibm from Sun as modified for netbsd by
1139 JT Conklin and Ian Taylor, including x86 FPU support.
1140 * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
1141 * math/math_private.h: New file.
1142 * sysdeps/i386/fpu/Implies: New file.
1143 * sysdeps/ieee754/Implies: New file.
1144 * math/machine/asm.h, math/machine/endian.h: New files.
1145 * math/Makefile, math/math.h: Rewritten.
1146 * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
1147 * math/finite.c: File removed.
1148 * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
1149
1150 * math/test-math.c: Include errno.h and string.h.
1151
1152 * sysdeps/unix/bsd/dirstream.h: File removed.
1153 * sysdeps/unix/bsd/readdir.c: File removed.
1154
661fa176
RM
1155Sat Mar 2 16:35:40 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1156
1157 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
1158 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
1159 removed.
1160 * sysdeps/generic/profil-counter.h: New file.
1161
48a65a29
BK
1162Fri Mar 1 17:11:59 1996 Brendan Kehoe <brendan@zen.org>
1163
1164 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
1165 including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
1166 * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
1167 same as linux/m68k/profil-counter.h except the comment.
1168
e9607dbe
RM
1169Fri Mar 1 10:09:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1170
6b628d36
RM
1171 * stdlib/Makefile (mpn-stuff): New target.
1172 (copy-mpn): Use it.
1173
1174 * Code copied from GMP updated to 1.937 version.
1175 * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
1176
e9607dbe
RM
1177 * posix/glob.c: Use canonical code from autoconf manual for dirent
1178 include.
1179 [_D_NAMLEN]: Redefine NAMLEN using this.
1180 (glob_in_dir): Use NAMLEN macro.
1181
1182 * sysdeps/posix/profil.c: New file.
1183
1184Thu Feb 29 20:55:57 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1185
1186 * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
1187
b7459e56
RM
1188Tue Feb 27 12:14:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1189
e9607dbe
RM
1190 * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
1191 `extern' keyword.
1192
b7459e56
RM
1193 * time/strftime.c: Support - and _ flags to affect number padding.
1194
1195 * sysdeps/unix/common/tcsendbrk.c: New file.
1196
92777700
RM
1197Mon Feb 26 10:22:30 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1198
1199 * sysdeps/unix/dirstream.h: Rewritten.
1200 * sysdeps/unix/readdir.c: Rewritten.
1201 * sysdeps/unix/telldir.c: Rewritten.
1202 * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
1203 Remove __ from DIR struct member names.
1204 * sysdeps/unix/dirfd.c: Likewise.
1205 * sysdeps/unix/seekdir.c: Likewise.
1206 * sysdeps/unix/rewinddir.c: Likewise.
1207 * sysdeps/unix/opendir.c: Likewise. Don't allocate extra space after
1208 DIR structure.
1209 * sysdeps/stub/direct.h: File removed.
1210 * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
1211 * sysdeps/unix/bsd/direct.h: File removed.
1212 * sysdeps/unix/common/direct.h: File removed.
1213 * sysdeps/unix/sysv/irix4/direct.h: File removed.
1214 * sysdeps/unix/sysv/isc3/direct.h: File removed.
1215 * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
1216 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
1217 * sysdeps/unix/common/direntry.h: New file.
1218 * sysdeps/unix/bsd/direntry.h: New file.
1219 * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
1220 * sysdeps/unix/sysv/direntry.h: New file.
1221 * sysdeps/stub/direntry.h: New file.
1222 * dirent/dirent.h (struct dirent): Type removed. Include <direntry.h>
1223 to define it.
1224 (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
1225 * dirent/Makefile (headers): Add direntry.h.
1226 (distribute): Remove direct.h.
1227 * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
1228 * dirent/scandir.c: Likewise.
1229 * io/fts.c (fts_build): Likewise.
1230 * io/ftw.c (ftw_dir): Likewise.
1231 * sysdeps/posix/ttyname.c: Likewise.
1232
1233 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
1234
1235 * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
1236 (collector_timeout): New static variable.
1237 (update_waiter): Actually call __task_enable_pc_sampling.
1238 Set collector_timeout based on the `tick' count returned.
1239 (profile_waiter): Use MAX_PC_SAMPLES. Set nsamples before RPC.
1240 Use collector_timeout in __mach_msg call.
1241
1242 * gmon/Makefile (noprof): New variable containing mcount.
1243 Append profil unless it is in $(unix-syscalls).
1244 (mcount.po): Use $(noprof) for list of targets in this rule.
1245
1246 * libc-symbols.h: Define _LIBC before #include <config.h>.
1247
1248Sun Feb 25 12:29:23 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1249
1250 * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
1251 Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
1252
e9607dbe 1253 * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
92777700
RM
1254
1255Fri Feb 9 12:40:19 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1256
1257 * libio/cleanup.c (_IO_cleanup_registration_needed)
1258 [!_G_HAVE_ATEXIT]: Init to NULL.
1259 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1260
1261Thu Feb 8 08:12:50 1996 Brendan Kehoe <brendan@cygnus.com>
1262
1263 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
1264 previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1265
1266Wed Feb 7 15:10:17 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
1267
1268 * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
1269 extern.
1270
1271Sat Feb 24 11:34:13 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1272
1273 * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
1274
1275 * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
1276
a182affd
RM
1277Wed Feb 21 02:25:07 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1278
1279 * Rules (others): Depend on $(extra-objs), $(install-lib),
1280 $(install-bin), $(install-sbin), in object directory.
1281
1282 * Makeconfig (link-libc): Don't pass -rpath option with default
1283 path, since ld.so should use the same default.
1284 * Makerules (build-shlib): Likewise.
1285
1286 * Makerules (make-target-directory): Use mkinstalldirs.
1287
1288 * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
1289 redefine ENTRY et al.
1290
1291 * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
1292 Macros removed. The code in unix/i386/sysdep.h should now suffice.
1293
1294 * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
1295 [HAVE_ELF] and not.
1296 (ENTRY): Use it in .align directive.
1297 (CALL_MCOUNT): New macro, empty unless [PROF].
1298 (ENTRY): Do CALL_MCOUNT just after the label.
1299
1300 * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
1301 code can call mcount.
1302
1303Tue Feb 20 23:05:16 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1304
1305 * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
1306 translation markings are now integrated in his distribution.
1307
1308 * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
1309
f2e235b9
RM
1310Mon Feb 19 18:31:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1311
a182affd
RM
1312 * po: New directory where `LANG.po' files for message translations
1313 will reside.
1314 * po/SYS_libc.pot: New file, template of message strings as in source.
1315 * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
1316 the source using xgettext.
1317 * Makerules ($(..)po/%.pot): New rule.
1318 * manual/Makefile (../po/manual.pot): New target, make it empty.
1319
1320 * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
1321 * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
1322 * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
1323 * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
1324 * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
1325
f2e235b9
RM
1326 * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
1327 Updated from ADO 96d.
1328
0ddc0d16
RM
1329Sun Feb 18 14:08:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1330
1331 * csu/initfini.c (_init): Remove bogus volatile declarations and
1332 extra variable, take the address of __gmon_start__ only implicitly
1333 to avoid the test being optimized out.
1334
bfc04a9f
RM
1335Sun Feb 18 15:08:10 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1336
1337 * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
1338 sec.
1339
1340Sun Feb 18 13:56:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1341
1342 * elf/Makefile, time/Makefile: Make `all' the default target.
1343
1344Mon Feb 19 18:09:04 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1345
1346 * misc/sys/ptrace.h: Moved to ...
1347 * sysdeps/generic/sys/ptrace.h: ... here.
1348 * sys/ptrace.h: File removed.
1349
1350Sun Feb 18 12:13:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1351
1352 * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
1353
1354 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
1355 so that the symbol alias works.
1356
1357 * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
1358
1359 * sysdeps/unix/sysv/linux/resourcebits.h: New file.
1360
1361 * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
1362
1363 * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
1364 getppid and reboot.
1365
1366 * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
1367 use getdtablesize.
1368
1369Sat Feb 17 10:30:21 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1370
1371 * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
1372 sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
1373 sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
1374 to `long' where necessary.
1375
1376Thu Feb 15 20:04:50 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
1377
1378 * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
1379 * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
1380 to correctly access MPN array depending on architecture.
1381
be10a868
RM
1382Mon Feb 19 15:30:26 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1383
1384 * stdio-common/tstscanf.c (main): Add check for "0" as %d.
1385
1386 * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
1387 Only some systems have three args; let them define their own stub.
1388
1389 * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
1390
1391 * sysdeps/generic/machine-gmon.h: New file.
1392 * gmon/Makefile (distribute): Add machine-gmon.h.
1393 * gmon/mcount.c: Undo changes of Feb 13.
1394 Include "machine-gmon.h".
1395
1396Sun Feb 18 13:24:06 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1397
1398 * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
1399 identical to unix/common/direct.h.
1400
1401 * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
1402
1403 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
1404
1405 * stdio-common/Makefile (tests): Remove scanf6.
1406
1407 * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
1408
1409 * time/mktime.c (mktime): Move static variable localtime_offset to
1410 file scope.
1411
1412 * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
1413 base indicator.
1414
1415Thu Feb 15 16:56:17 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1416
1417 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
1418 (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
1419 (_dl_runtime_resolve): Save %a1 as well.
1420 (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
1421 (elf_machine_relplt): Define.
1422
1423 * elf/dl-runtime.c: Include possible extra args in declaration of
1424 fixup.
1425
1cbca0d9
RM
1426Fri Feb 16 11:01:59 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1427
1428 * time/tzset.c: Limit hours to 23, not 12. From jaffer.
1429
7c97bb09
RM
1430Fri Feb 16 10:14:05 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1431
1432 * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
1433
9e3db9cd
RM
1434Thu Feb 15 13:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1435
1436 * mach/Machrules: Use -include for $(*.ir).
1437
1438 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
1439 request values.
1440 * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
1441 (_IOT_COUNT2): Field is 3 bits, not 2.
1442 * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
1443 * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
1444 bits before looking up handler.
1445 (fioctl): Use __hurd_dfail.
1446 (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
1447
9b19f55d
RM
1448Thu Feb 15 11:49:45 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1449
1450 * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
1451 (sysdep_routines): Don't add sys-sig.
1452
1453 * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
1454
9e3db9cd
RM
1455Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
1456
1457 * sysdeps/alpha/memchr.c (memchr): loop searching for matching
1458 character bailed out one too early; changed constant 6 to
1459 7 to fix this.
1460
de1b40af
RM
1461Wed Feb 14 01:08:58 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1462
a1c46301
RM
1463 * posix/execvp.c: When executing shell on script, first arg is
1464 full file name, not argv[0].
1465
1466 * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
1467 * mach/Machrules [no_deps]: Inhibit interface rules.
1468
de1b40af
RM
1469 * malloc/Makefile (distribute): Removed TODO.
1470
363113d0
RM
1471Tue Feb 13 05:12:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1472
de1b40af
RM
1473 * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
1474 caller column.
1475
ae4c4dae
RM
1476 * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
1477
4eea716e
RM
1478 * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
1479
2a072de4
RM
1480 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
1481 (sysdep_routines): Append setfpucw.
1482 (extra-objs): Append ieee-fpucw.o.
1483 (install-lib): Append libieee.a.
1484 (libieee.a): New target.
1485 * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
1486 * sysdeps/unix/sysv/linux/i386/fpu_control.h
1487 (_FPU_GETCW, _FPU_SETCW): New macros.
1488 (fpu_control_t): New typedef.
1489 (__setfpucw): Use fpu_control_t for argument type.
1490 * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
1491
1492 * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
1493
363113d0
RM
1494 * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
1495 * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
1496
01f3e03b
RM
1497Sat Feb 10 13:09:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1498
46d7de19
RM
1499 * sysdeps/unix/sysv/linux/m68k/brk.c,
1500 sysdeps/unix/sysv/linux/m68k/mmap.S,
1501 sysdeps/unix/sysv/linux/m68k/select.S,
1502 sysdeps/unix/sysv/linux/m68k/sigcontext.h,
1503 sysdeps/unix/sysv/linux/m68k/sigreturn.S,
1504 sysdeps/unix/sysv/linux/m68k/socket.S,
1505 sysdeps/unix/sysv/linux/m68k/syscall.S,
1506 sysdeps/unix/sysv/linux/m68k/sysdep.S,
1507 sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
1508
13987e68
RM
1509 * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
1510
3585d6bf
RM
1511 * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
1512 sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
1513
01f3e03b
RM
1514 * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
1515 MAP_FILE if not already defined.
1516
1517 * elf/elf.h: Add m68k reloc definitions.
1518 * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
1519
dbdb6189
RM
1520Tue Feb 13 00:12:12 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1521
d2c23123
RM
1522 * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
1523 this macro declare extra leading args.
1524
1525 * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
1526
38334018
RM
1527 * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
1528 elf_machine_relplt): New macros.
1529 * elf/dl-runtime.c: New file.
1530 * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
1531
dbdb6189
RM
1532 * gmon/Makefile (headers): Remove machine-gmon.h.
1533 * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
1534 * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
1535 the asm name.
1536 (_mcount): Define normally, taking no args.
1537 Use __builtin_return_address to fetch PC values of caller and caller's
1538 caller.
1539
1540 * Makerules: Rewrote rules to update libc archives of all flavors.
1541 Define separate specific rules for each flavor using o-iterator.
1542
1543 * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
1544
1545Sat Feb 10 11:35:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1546
1547 * Makerules (ar-symtab-name): New macro. Replace all occurences
1548 of __.SYMDEF by $(ar-symtab-name).
1549 * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
1550
808c413c
RM
1551Mon Feb 12 03:10:41 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1552
dbdb6189
RM
1553 * Makefile (configure, %/configure): Depend on aclocal.m4.
1554 * Make-dist (configure, %/configure): Likewise.
1555
1556 * sysdeps/unix/Makefile: Include s-proto.d for its deps.
1557
1558 * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
1559 only needed in the implementation, not for any users.
1560
1561 * time/northamerica: Updated from ADO 96c, new rules for Mexico in
1562 1996.
1563
25f9784e
RM
1564 * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
1565 * sunrpc/pm_getmaps.c: Likewise.
1566
1fe58993
RM
1567 * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
1568 so real syscalls override unix/sysv/*.c on sysv-derived systems
1569 that have them.
1570 * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
1571 override unix/sysv/settimeofday.c since that overrides
1572 unix/syscalls.list.
1573
1574 * Makeconfig (+link): Put $(link-libc) after deps from $^,
1575 regardless of where libc.a appears in the deps.
1576
808c413c
RM
1577 * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
1578 Add __waitid.
1579 * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
1580 Define __ name for sigprocmask.
1581 * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
1582 Add getsysinfo.
1583 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
1584 * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
1585 * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
1586 * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
1587 Add getdents, wait3, waitpid.
1588 * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
1589 settimeofday, sigsuspend, sstk, utimes.
1590 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
1591 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
1592 * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
1593 Removed sigtramp.
1594 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
1595 * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
1596 * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
1597 * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
1598 * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
1599 * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
1600 * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
1601 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
1602 * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
1603 * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
1604 * sysdeps/unix/sysv/irix4/wait3.S: File removed.
1605 * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
1606 * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
1607 * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
1608 * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
1609 * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
1610 * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
1611
63f89404
RM
1612 * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
1613 FORWARD_SIGEXC to one. Uncomment setting of thread exc port, and
1614 move it to last thing.
1615
186588d6
RM
1616Sat Feb 10 05:57:08 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1617
1618 * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
1619
1620 * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
1621
6a032d81
RM
1622Sat Feb 10 04:18:48 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1623
1624 * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
1625 the file.
1626
1627Fri Feb 9 11:46:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1628
1629 * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
1630 CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
1631
1632 * hurd/Makefile (user-interfaces): Added hurd/tioctl.
1633
56f778c9
RM
1634Thu Feb 8 18:55:27 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1635
1636 * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
1637
4ca84cff
RM
1638Wed Feb 7 18:48:30 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1639
a482b5a5
RM
1640 * Makefile (subdirs): Added wcsmbs.
1641 * wcsmbs: New directory of wide char/multibyte char functions from
1642 drepper.
1643
4ca84cff
RM
1644 * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
1645 * hurd/report-wait.c: New file.
1646 * hurd/Makefile (routines): Added report-wait.
1647
1648 * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
1649
1650 * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
1651 New type.
1652 (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
1653 * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
1654 Structure moved to intr-msg.h; include that.
1655
1656 * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
1657 (CFLAGS-scheck.c): New variable.
1658
1659 * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
1660 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
1661 __hurd_threadvar_stack_mask): New variables.
1662
1663 * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
1664 its new message port.
1665
1666 * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
1667
1668 * configure.in (uname): Add quoting.
1669
1670 * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
1671 * hurd/fchroot.c: Likewise.
1672
1673 * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
1674 __attribute__ ((__mode__ (__XX__))).
1675
1676Wed Feb 7 03:24:05 1996 Torbjorn Granlund <tege@tmg.se>
1677
1678 * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
1679 destination cache lines.
1680 (WORD_COPY_BWD): Likewise.
1681
1682Wed Feb 7 14:16:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1683
1684 * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
1685 file name first thing, before $(native-compile) changes directories.
1686
1687 From Gord Matzigkeit <gord@enci.ucalgary.ca>:
1688 * sysdeps/unix/make_errlist.c: Use strerror if available.
1689 * sysdeps/unix/configure.in: New file
1690
1691 * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
1692 * sysdeps/unix/bsd/sun/sigvec.S: File removed.
1693
1694 * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
1695 * sysdeps/stub/connect.c: Likewise.
1696 * sysdeps/stub/bind.c: Likewise.
1697
1698 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
1699 "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
1700 another dir_lookup of "".
1701
b20e47cb
RM
1702Tue Feb 6 12:46:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
1703
1704 * libc-symbols.h (weak_alias, weak_symbol): added definitions
1705 for ECOFF (HAVE_ECOFF).
1706
1ac3b08e
RM
1707Fri Feb 2 13:09:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1708
1709 * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
1710
54139447
RM
1711Wed Jan 31 20:08:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1712
1713 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
1714 when cancelled before RPC.
1715
01cdeca0
RM
1716Tue Jan 30 13:32:05 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1717
1718 * dirent/scandir.c: Allocate dirents with correct size for name, and
1719 copy with correct size.
1720
1721 * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
1722
1723 * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
1724 flag bits.
1725 (__vfscanf): Fix checking of extra type modifiers.
1726
1727 * time/asia, time/australasia, time/backward: Updated from ADO 96b.
1728
1729Tue Jan 30 12:17:26 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
1730
1731 * stdlib/strtod.c: Only negate exponent when there really is one.
1732
1733 * stdio-common/vfscanf.c: Accept type modifiers on %n.
1734 Fix FP number parsing.
1735
f0b11018
RM
1736Mon Jan 29 21:53:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1737
1738 * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
1739
1740 * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
1741
1742Mon Jan 29 16:29:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
1743
1744 * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
1745 include an increment for each operation allowed on each fd.
1746
1747Mon Jan 29 11:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1748
1749 * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
1750
1751 * Makefile: Use -include for sysd-dirs.
1752
1753 * configure.in (uname): Check for uname in syscalls.list files.
1754 * sysdeps/unix/sysv/syscalls.list: Remove uname.
1755 * sysdeps/unix/syscalls.list: Add uname.
1756
1757 * stdlib/strtol.c (weak1): New macro, to get the right name declared
1758 weak.
1759
1760 * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
1761
1762 * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
1763 (dbm_open): Use dynamic allocation for file name buffer, instead of
1764 limitting its size to MAXPATHLEN.
1765
1766 * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
1767 buffer, instead of limitting its size to MAXPATHLEN.
1768
1769 * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
1770 * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
1771
429ed67b
RM
1772Sun Jan 28 19:42:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1773
1774 * time/Makefile: Fix check for cross compiling.
1775
19c3f208
RM
1776Thu Jan 25 21:10:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1777
1778 * db/Makefile (subdir-dirs): Renamed from dbdirs.
1779
1780 * Makerules (distinfo-vars): Add subdir-dirs.
1781
1782 * MakeTAGS: Remove vpath directives.
1783 (all-dirs): Prepend $(subdir-dirs).
1784 (all-sources, all-headers): Use wildcard to find sources.
1785
1786Mon Jan 29 10:44:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1787
1788 * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
1789 variables.
1790
1791 * mach/msgserver.c: Declare DEMUX arg with prototype.
1792
dc825f85
RM
1793Sun Jan 28 17:25:38 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1794
1795 * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
1796 make C++ happy.
1797 * alpha/jmp_buf.h: Likewise.
1798 * m68k/jmp_buf.h: Likewise.
1799 * mips/jmp_buf.h: Likewise.
1800 * sparc/jmp_buf.h: Likewise.
1801 * vax/jmp_buf.h: Likewise.
1802
1803 * sysdeps/generic/memmem.c: Fix return value in case where
1804 NEEDLE_LEN==0.
1805
1806 * hurd/hurdlookup.c (__file_name_lookup_under,
1807 __file_name_lookup): Restrict mode with umask.
1808 * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
1809 * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
1810
eb8c0f2d
RM
1811Fri Jan 26 12:20:45 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1812
1813 * stdlib/strtol.c: Undo last change. ANSI C changed since the
1814 draft I checked yesterday. Sigh.
1815
8dad333d
RM
1816Thu Jan 25 18:58:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1817
1818 * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
1819
a66067be
RM
1820Wed Jan 24 03:22:07 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1821
ebc53fbe
RM
1822 * malloc/mcheck.c (mabort): Declare prototype.
1823
555f3a39
RM
1824 * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
1825
1826 * Makerules: Use -include for generated makefiles.
1827
1828 * errno.h: Don't declare errno if it's defined as a macro.
1829
914d9d7b
RM
1830 * stdio-common/vfscanf.c: Disallow l flag after ll or L.
1831
a66067be
RM
1832 * stdio-common/Makefile (tests): Add scanf[1-9].
1833 * stdio-common/scanf[1-9].c: New files. Bug tests from hjl.
1834
0793d348
RM
1835Wed Jan 24 04:18:36 1996 Paul Eggert <eggert@twinsun.com>
1836
1837 * strftime.c (strftime):
1838 When invoking self, check whether the subsidiary invocation failed.
1839 Use "???" (not "") to denote unknown time zone information.
1840
1841 Make this source file portable to standalone contexts (e.g. GNU Emacs).
1842 <config.h>: Include if HAVE_CONFIG_H is defined.
1843 (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
1844 defined if _LIBC or if <config.h> defines them.
1845 <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
1846 <sys/types.h>: New include; some hosts require it for `time_t'.
1847 <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
1848 <limits.h>: Include only if HAVE_LIMITS_H.
1849 <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
1850 (memcpy): Define in terms of bcopy if !STDC_HEADERS.
1851 (__P, PTR): Define if not already defined.
1852 (__tzname, __daylight, __timezone): Remove macros; no longer needed.
1853 (add, strftime): Don't use NULL, for portability to some weird hosts.
1854 (fmt): If !_LIBC, don't assume sprintf returns a count.
1855 (week, strftime): Use old-style function declarations.
1856 (weekday_name, month_name): New constants.
1857 (strftime): Use traditional C values if locale support isn't available.
1858 Use `const' instead of CONST. For time zones, use tm_zone if
1859 possible, then fall back on tzname. Don't check for multibyte
1860 characters unless mblen is supported. Use formats like %02d instead
1861 of %.2d, for portability to older hosts.
1862
1863Wed Jan 24 00:07:52 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1864
1865 * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
1866 (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
1867 Fix bug in recognition of %ll flag for long long.
1868 Fix overeager checks for conflicting type modifiers.
1869 With ' flag, match thousands separators for decimal numbers.
1870
1871Tue Jan 23 22:02:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1872
1873 * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
1874
1875 * resolv/Makefile (CFLAGS): Disable some warnings.
1876
1877 * sysdeps/generic/Makefile (elided-routines): Removed hypot.
1878 (+gccwarn): Set with override.
1879
1880 * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
1881
1882 * posix/Makefile (CFLAGS-regex.c): New variable.
1883
1884 * malloc/Makefile (CFLAGS-obstack.c): New variable.
1885
1886 * io/Makefile (CFLAGS-fts.c): New variable.
1887 * io/fts.c (fts_open): Use prototypes for COMPAR decl.
1888
1889Tue Jan 23 21:35:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
1890
1891 * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
1892 case is '\0'-terminated.
1893
1894Tue Jan 23 19:49:54 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1895
1896 * elf/rtld.c (dl_main): Support additional args in --list mode for
1897 debugging: look them up as symbol names and print values.
1898
1899 * misc/getttyent.c (skip, value): Declare with prototypes in file
1900 scope.
1901
1902 * csu/initfini.c (_init): Explicitly set a variable that is
1903 pointer to volatile with the address of __gmon_start__, to avoid
1904 the test being optimized out.
1905
1d8dc429
RM
1906Mon Jan 22 10:40:40 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1907
1908 * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
1909
1910 * io/fts.h (FTSENT): Define fts_compar member with prototype.
1911
1912 * hurd/hurd.h: Use prototype in getcttyid decl.
1913
1914 * stdlib/l64a.c: Fix typo in last change.
1915
1916 * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
1917 for determining size of types.
1918 * stdlib/srand48_r.c: Likewise.
1919
1920 * misc/utmp.h: Declare login, logout, logwtmp.
1921 * misc/logout.c: Declare argument as pointer to const.
1922 * misc/login.c: Likewise.
1923 * misc/logwtmp.c: Likewise.
1924 Include time.h, string.h.
1925
1926 * misc/efgcvt_r.c: Include stdlib.h.
1927
1928 * io/mknod.c: Include sys/types.h.
1929
1930 * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
1931
1932 * csu/gmon-start.c (_start, etext): Declare with prototypes.
1933
1934 * stdio-common/vfscanf.c (%[): Fix range handling.
1935
bbed653c
RM
1936Sun Jan 21 00:55:25 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1937
f2f7f9e6
RM
1938 * misc/Makefile (headers): Rename queue.h to sys/queue.h.
1939 * misc/queue.h: Moved to misc/sys/queue.h.
1940
bbed653c
RM
1941 * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
1942 sys/sem.h.
1943
1944 * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
1945
1946 * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
1947 literal byte values.
1948
1949 * misc/bsd-compat.c (getpgrp): Define with prototype.
1950
1951 * misc/init-misc.c (__progname_full): New variable.
1952 (program_invocation_name, program_invocation_short_name): New aliases.
1953 (__init_misc): Define with prototype. Set __progname_full.
1954 * misc/progname.c: File removed.
1955 * misc/Makefile (aux): Remove progname.
1956
1957 * misc/hsearch_r.c (isprime): Define with prototype.
1958
1959 * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
1960 * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
1961 * sysdeps/unix/bsd/setegid.c: Likewise.
1962
522548fb
RM
1963Fri Jan 19 13:28:59 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1964
eb63bdd0
RM
1965 * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
1966 __tcdrain.
1967
1968 * posix/glob.c (glob): Use prototype in getlogin decl.
1969
1970 * db/ndbm.h: Declare dbm_error, dbm_clearerr.
1971 * db/db/db.c (__dberr): Define with prototype.
1972 (__dbpanic): Use prototypes in casts.
1973 * db/hash/hash_log2.c: Add prototype decl.
1974
1975 * sysdeps/generic/_strerror.c (_strerror_internal): Define with
1976 prototype.
1977
522548fb
RM
1978 * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
1979 They will be overridden with syscalls if extant by unix/syscalls.list.
1980
1981 * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
1982
1983 * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
1984 * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
1985
aeb72b16
RM
1986Thu Jan 18 00:32:43 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1987
97aa195c
RM
1988 * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
1989
1990 * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
1991 get args.
1992
1993 * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
1994 defines GNU extensions.
1995 * posix/fnmatch.c: Likewise.
1996
9b29e6f7
RM
1997 Replaced all simple system call files *.S throughout sysdeps/unix
1998 with syscalls.list files to be processed by make-syscalls.sh.
1999 * sysdeps/unix/s-proto.S: New file.
2000 * sysdeps/unix/syscalls.list: New file.
2001 * sysdeps/unix/bsd/syscalls.list: New file.
2002 * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
2003 * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
2004 * sysdeps/unix/bsd/osf/syscalls.list: New file.
2005 * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
2006 * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
2007 * sysdeps/unix/bsd/sun/syscalls.list: New file.
2008 * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
2009 * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
2010 * sysdeps/unix/common/syscalls.list: New file.
2011 * sysdeps/unix/inet/syscalls.list: New file.
2012 * sysdeps/unix/mman/syscalls.list: New file.
2013 * sysdeps/unix/sysv/syscalls.list: New file.
2014 * sysdeps/unix/sysv/irix4/syscalls.list: New file.
2015 * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
2016 * sysdeps/unix/sysv/linux/syscalls.list: New file.
2017 * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
2018 * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
2019 * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
2020 * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
2021 * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
2022 * sysdeps/unix/acct.S: File removed.
2023 * sysdeps/unix/chdir.S: File removed.
2024 * sysdeps/unix/chmod.S: File removed.
2025 * sysdeps/unix/chown.S: File removed.
2026 * sysdeps/unix/chroot.S: File removed.
2027 * sysdeps/unix/close.S: File removed.
2028 * sysdeps/unix/configure: File removed.
2029 * sysdeps/unix/configure.in: File removed.
2030 * sysdeps/unix/dup.S: File removed.
2031 * sysdeps/unix/fcntl.S: File removed.
2032 * sysdeps/unix/fsync.S: File removed.
2033 * sysdeps/unix/getgid.S: File removed.
2034 * sysdeps/unix/getpid.S: File removed.
2035 * sysdeps/unix/getuid.S: File removed.
2036 * sysdeps/unix/ioctl.S: File removed.
2037 * sysdeps/unix/kill.S: File removed.
2038 * sysdeps/unix/link.S: File removed.
2039 * sysdeps/unix/lseek.S: File removed.
2040 * sysdeps/unix/open.S: File removed.
2041 * sysdeps/unix/ptrace.S: File removed.
2042 * sysdeps/unix/read.S: File removed.
2043 * sysdeps/unix/reboot.S: File removed.
2044 * sysdeps/unix/setgid.S: File removed.
2045 * sysdeps/unix/setuid.S: File removed.
2046 * sysdeps/unix/sync.S: File removed.
2047 * sysdeps/unix/umask.S: File removed.
2048 * sysdeps/unix/unlink.S: File removed.
2049 * sysdeps/unix/write.S: File removed.
2050 * sysdeps/unix/bsd/flock.S: File removed.
2051 * sysdeps/unix/bsd/getdtsz.S: File removed.
2052 * sysdeps/unix/bsd/getpagesize.S: File removed.
2053 * sysdeps/unix/bsd/killpg.S: File removed.
2054 * sysdeps/unix/bsd/profil.S: File removed.
2055 * sysdeps/unix/bsd/readv.S: File removed.
2056 * sysdeps/unix/bsd/settimeofday.S: File removed.
2057 * sysdeps/unix/bsd/sigblock.S: File removed.
2058 * sysdeps/unix/bsd/sigpause.S: File removed.
2059 * sysdeps/unix/bsd/sigsetmask.S: File removed.
2060 * sysdeps/unix/bsd/sigstack.S: File removed.
2061 * sysdeps/unix/bsd/sigvec.S: File removed.
2062 * sysdeps/unix/bsd/utimes.S: File removed.
2063 * sysdeps/unix/bsd/writev.S: File removed.
2064 * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
2065 * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
2066 * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
2067 * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
2068 * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
2069 * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
2070 * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
2071 * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
2072 * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
2073 * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
2074 * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
2075 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
2076 * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
2077 * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
2078 * sysdeps/unix/bsd/osf/msync.S: File removed.
2079 * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
2080 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
2081 * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
2082 * sysdeps/unix/bsd/sun/getdents.S: File removed.
2083 * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
2084 * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
2085 * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
2086 * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
2087 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
2088 * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
2089 * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
2090 * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
2091 * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
2092 * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
2093 * sysdeps/unix/common/access.S: File removed.
2094 * sysdeps/unix/common/adjtime.S: File removed.
2095 * sysdeps/unix/common/dup2.S: File removed.
2096 * sysdeps/unix/common/fchmod.S: File removed.
2097 * sysdeps/unix/common/fchown.S: File removed.
2098 * sysdeps/unix/common/ftruncate.S: File removed.
2099 * sysdeps/unix/common/getgroups.S: File removed.
2100 * sysdeps/unix/common/getitimer.S: File removed.
2101 * sysdeps/unix/common/getpgid.S: File removed.
2102 * sysdeps/unix/common/getpriority.S: File removed.
2103 * sysdeps/unix/common/getrlimit.S: File removed.
2104 * sysdeps/unix/common/getrusage.S: File removed.
2105 * sysdeps/unix/common/gettimeofday.S: File removed.
2106 * sysdeps/unix/common/mkdir.S: File removed.
2107 * sysdeps/unix/common/readlink.S: File removed.
2108 * sysdeps/unix/common/rename.S: File removed.
2109 * sysdeps/unix/common/rmdir.S: File removed.
2110 * sysdeps/unix/common/select.S: File removed.
2111 * sysdeps/unix/common/setgroups.S: File removed.
2112 * sysdeps/unix/common/setitimer.S: File removed.
2113 * sysdeps/unix/common/setpgid.S: File removed.
2114 * sysdeps/unix/common/setpriority.S: File removed.
2115 * sysdeps/unix/common/setregid.S: File removed.
2116 * sysdeps/unix/common/setreuid.S: File removed.
2117 * sysdeps/unix/common/setrlimit.S: File removed.
2118 * sysdeps/unix/common/swapon.S: File removed.
2119 * sysdeps/unix/common/symlink.S: File removed.
2120 * sysdeps/unix/common/truncate.S: File removed.
2121 * sysdeps/unix/common/vhangup.S: File removed.
2122 * sysdeps/unix/inet/accept.S: File removed.
2123 * sysdeps/unix/inet/bind.S: File removed.
2124 * sysdeps/unix/inet/connect.S: File removed.
2125 * sysdeps/unix/inet/gethostid.S: File removed.
2126 * sysdeps/unix/inet/gethostname.S: File removed.
2127 * sysdeps/unix/inet/getpeername.S: File removed.
2128 * sysdeps/unix/inet/getsockname.S: File removed.
2129 * sysdeps/unix/inet/getsockopt.S: File removed.
2130 * sysdeps/unix/inet/listen.S: File removed.
2131 * sysdeps/unix/inet/recv.S: File removed.
2132 * sysdeps/unix/inet/recvfrom.S: File removed.
2133 * sysdeps/unix/inet/recvmsg.S: File removed.
2134 * sysdeps/unix/inet/send.S: File removed.
2135 * sysdeps/unix/inet/sendmsg.S: File removed.
2136 * sysdeps/unix/inet/sendto.S: File removed.
2137 * sysdeps/unix/inet/sethostid.S: File removed.
2138 * sysdeps/unix/inet/sethostname.S: File removed.
2139 * sysdeps/unix/inet/setsockopt.S: File removed.
2140 * sysdeps/unix/inet/shutdown.S: File removed.
2141 * sysdeps/unix/inet/socket.S: File removed.
2142 * sysdeps/unix/inet/socketpair.S: File removed.
2143 * sysdeps/unix/mman/madvise.S: File removed.
2144 * sysdeps/unix/mman/mmap.S: File removed.
2145 * sysdeps/unix/mman/mprotect.S: File removed.
2146 * sysdeps/unix/mman/msync.S: File removed.
2147 * sysdeps/unix/mman/munmap.S: File removed.
2148 * sysdeps/unix/sysv/alarm.S: File removed.
2149 * sysdeps/unix/sysv/ftime.S: File removed.
2150 * sysdeps/unix/sysv/nice.S: File removed.
2151 * sysdeps/unix/sysv/pause.S: File removed.
2152 * sysdeps/unix/sysv/poll.S: File removed.
2153 * sysdeps/unix/sysv/s_getdents.S: File removed.
2154 * sysdeps/unix/sysv/signal.S: File removed.
2155 * sysdeps/unix/sysv/stime.S: File removed.
2156 * sysdeps/unix/sysv/time.S: File removed.
2157 * sysdeps/unix/sysv/times.S: File removed.
2158 * sysdeps/unix/sysv/ulimit.S: File removed.
2159 * sysdeps/unix/sysv/uname.S: File removed.
2160 * sysdeps/unix/sysv/utime.S: File removed.
2161 * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
2162 * sysdeps/unix/sysv/irix4/msync.S: File removed.
2163 * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
2164 * sysdeps/unix/sysv/irix4/signal.S: File removed.
2165 * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
2166 * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
2167 * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
2168 * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
2169 * sysdeps/unix/sysv/linux/fork.S: File removed.
2170 * sysdeps/unix/sysv/linux/getpgid.S: File removed.
2171 * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
2172 * sysdeps/unix/sysv/linux/getsid.S: File removed.
2173 * sysdeps/unix/sysv/linux/gtty.S: File removed.
2174 * sysdeps/unix/sysv/linux/mlock.S: File removed.
2175 * sysdeps/unix/sysv/linux/mlockall.S: File removed.
2176 * sysdeps/unix/sysv/linux/mount.S: File removed.
2177 * sysdeps/unix/sysv/linux/munlock.S: File removed.
2178 * sysdeps/unix/sysv/linux/munlockall.S: File removed.
2179 * sysdeps/unix/sysv/linux/pipe.S: File removed.
2180 * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
2181 * sysdeps/unix/sysv/linux/setpgid.S: File removed.
2182 * sysdeps/unix/sysv/linux/setsid.S: File removed.
2183 * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
2184 * sysdeps/unix/sysv/linux/sigpending.S: File removed.
2185 * sysdeps/unix/sysv/linux/stty.S: File removed.
2186 * sysdeps/unix/sysv/linux/umount.S: File removed.
2187 * sysdeps/unix/sysv/linux/wait4.S: File removed.
2188 * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
2189 * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
2190 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
2191 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
2192 * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
2193 * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
2194 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
2195 * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
2196 * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
2197 * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
2198 * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
2199 * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
2200 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
2201
2202 * io/mknod.c: New file.
2203
aeb72b16
RM
2204 * Makerules (COMPILE.s): New variable.
2205
2206 * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
2207 make-syscalls.sh and include it.
2208 [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
2209 sysd-syscalls.
2210 * sysdeps/unix/make-syscalls.sh: New file.
2211
2212 * Makerules (COMPILE.S): New variable.
2213
6f0017d1
RM
2214Wed Jan 17 11:04:58 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2215
285a3eee
RM
2216 * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
2217 _STAT_VER_SVR4, _STAT_VER): New macros.
2218 (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
2219
2220 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
2221 New macros.
2222
c43b8c4b
RM
2223 * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
2224 (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
2225 [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
2226 as `extern inline's calling the `x' functions.
2227 * io/fstat.c: New file.
2228 * io/lstat.c: New file.
2229 * io/stat.c: New file.
2230 * sysdeps/generic/lstat.c: File removed.
2231 * sysdeps/generic/lxstat.c: New file.
2232 * sysdeps/mach/hurd/fstat.c: File removed.
2233 * sysdeps/mach/hurd/fxstat.c: New file.
2234 * sysdeps/mach/hurd/lstat.c: File removed.
2235 * sysdeps/mach/hurd/lxstat.c: New file.
2236 * sysdeps/mach/hurd/mknod.c: File removed.
2237 * sysdeps/mach/hurd/stat.c: File removed.
2238 * sysdeps/mach/hurd/xmknod.c: New file.
2239 * sysdeps/mach/hurd/xstat.c: New file.
2240 * sysdeps/stub/fstat.c: File removed.
2241 * sysdeps/stub/fxstat.c: New file.
2242 * sysdeps/stub/lstat.c: File removed.
2243 * sysdeps/stub/lxstat.c: New file.
2244 * sysdeps/stub/mknod.c: File removed.
2245 * sysdeps/stub/stat.c: File removed.
2246 * sysdeps/stub/xmknod.c: New file.
2247 * sysdeps/stub/xstat.c: New file.
2248 * sysdeps/unix/common/lstat.S: File removed.
2249 * sysdeps/unix/common/lxstat.c: New file.
2250 * sysdeps/unix/fstat.S: File removed.
2251 * sysdeps/unix/fxstat.c: New file.
2252 * sysdeps/unix/mknod.S: File removed.
2253 * sysdeps/unix/stat.S: File removed.
2254 * sysdeps/unix/sysv/linux/fstat.c: File removed.
2255 * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
2256 * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
2257 * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
2258 * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
2259 * sysdeps/unix/sysv/linux/lstat.c: File removed.
2260 * sysdeps/unix/sysv/linux/mknod.c: File removed.
2261 * sysdeps/unix/sysv/linux/stat.c: File removed.
2262 * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
2263 * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
2264 * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
2265 * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
2266 * sysdeps/unix/xmknod.c: New file.
2267 * sysdeps/unix/xstat.c: New file.
2268 * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
2269 * misc/Makefile (routines): Remove mknod.
2270
2271 * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
2272 Add missing ; in little-endian case.
2273
44534645
RM
2274 * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
2275 Define this instead of ELF_DYNAMIC_DO_RELA.
2276
6f0017d1
RM
2277 * sysdeps/unix/sysv/time.S: Moved from sysv4.
2278 * sysdeps/unix/sysv/irix4/time.S: File removed.
2279
2280 * sysdeps/unix/sysv/linux/signum.h: Moved from
2281 sysdeps/unix/sysv/linux/i386.
2282 (_NSIG): Move inside #ifdef _SIGNAL_H.
2283
b17178fc
RM
2284Tue Jan 16 17:37:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2285
b6e9b25b
RM
2286 * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
2287 * sysdeps/unix/telldir.c: Fix position calculation to account for
2288 buffered data properly.
2289
13bc775d
RM
2290 * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
2291 library.
2292
5f3d5c2b
RM
2293 * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
2294 * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
2295 global.
2296 [! HAVE_INITFINI]: Only make it a constructor in this case.
2297
d99d7e26
RM
2298 * gmon/Makefile (CFLAGS-mcount.c): New variable.
2299 (mcount.po): New target.
2300
2301 * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
2302
b17178fc
RM
2303 * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
2304 (initfini): Compile initfini.c with -fPIC.
2305
93995795
RM
2306Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
2307
2308 * sysdeps/mips/bytesex.h: Add default byte sex. By Ralf Baechle.
2309
2310 * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
2311 member of `struct timex' instead of `modes'. From Andreas Schwab.
2312
2313 * sysdeps/unix/sysv/linux/mknod.c: New file. Generic C version.
2314 * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
2315
2316 * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
2317 [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
2318 [$(subdir) = misc] (headers): Append sys/mount.h.
2319
2320 * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
2321 New files. Implement system calls.
2322 * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
2323
2324 * sysdeps/unix/sysv/linux/ptrace.c: New file. Wrapper around
2325 ptrace system call.
2326 * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
2327
2328 * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
2329 types for i386/Linux.
2330
b17178fc
RM
2331Sun Jan 14 17:51:09 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2332
b8aec9fa
RM
2333 * MakeTAGS (all-sources, all-headers): Always search the
2334 current directory first.
2335
2336 * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
2337 found.
2338
b17178fc
RM
2339 * stdio-common/vfscanf.c (inchar, conv_error, input_error,
2340 memory_error): Add cast to void to avoid gcc warning.
2341 (vfscanf): Rewrite character class parsing to make it more efficient.
2342
7176f4e4
RM
2343 * misc/efgcvt_r.c (ecvt_r): Handle negative values.
2344
2345 * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
2346 * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
2347 sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
2348
2349 * stdio-common/printf_fp.c (__printf_fp): Fix parameter
2350 declaration.
2351
2352 * sysdeps/generic/putenv.c (putenv): Fix second argument of
2353 setenv.
2354
2355 * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
2356 * sysdeps/ieee754/cabs.c: Don't define hypot here.
2357
2358 * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
2359 definition of ieee_nan alternative.
2360
2361 * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
2362 prefix spec.
2363
2364 * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
2365
2366 * sysdeps/m68k/fpu/__math.h: Include <errno.h>. Replace obsolete
2367 __CONSTVALUE by attribute.
2368 (floor): Round to negative infinity.
2369 (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
2370 clash when compiling source.
2371 (pow): Handle x == 0 and x < 0.
2372 (ceil, __isinf, __isnan): Fix register constraints.
2373 (__isinfl, __isnanl): Added.
2374 * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
2375 sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
2376 sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
2377
2378 * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
2379 assembler syntax.
2380
2381 * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
2382 argument.
2383
2384 * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
2385 clock_t conversion.
2386 (clock): Don't multiply by CLOCKS_PER_SEC.
2387
2388 * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
2389
2390 * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
2391 __end.
2392
2393 * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
2394
2395 * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
2396
2397 * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
2398
da128169
RM
2399Sun Jan 14 01:01:10 1996 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
2400
2401 * stdlib/strtol.c: Return correct pointer for strings
2402 like "0xyz" and base 0 or 16.
2403
2404 * string/strxfrm.c: Handle case for LENGTH == 0 correct.
2405
2406 * sunrpc/etc.rpc: Add some more known protocols.
2407
02ac66c5
RM
2408Fri Jan 12 13:40:01 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2409
2410 * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
2411
2412 * posix/glob.c (glob): Add parens in glob call flags arg for
2413 GLOB_BRACE case.
2414
2415 * string/string.h (strdupa): New macro.
2416
2417 * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
2418 terminator on empty set. From drepper.
2419
d94d8f2a
RM
2420Thu Jan 11 13:09:20 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2421
2422 * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
2423 referent for STB_LOCAL.
2424
72d8cdf0
RM
2425Wed Jan 10 10:11:39 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2426
2427 * time/africa, time/antarctica, time/asia, time/australasia,
2428 time/europe, time/northamerica, time/pacificnew, time/solar87,
2429 time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
2430
22930c9b
RM
2431Tue Jan 9 16:10:26 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2432
2433 * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
2434 segment to find location, mprotect excess region to no access,
2435 don't munmap it.
2436
2437 * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
2438 KERN_NO_SPACE for fixed location, deallocate it and try again.
2439
7410183b
RM
2440Mon Jan 8 17:43:23 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2441
2442 * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
2443 * locale/hash.c: Renamed to locale/locfile-hash.c.
2444
a2e1b046
RM
2445Sat Jan 6 16:39:14 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2446
2447 * Makefile (subdirs): Added db.
2448
2449 * resolv/Makefile (routines): Add res_data.
2450 * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
2451 Updated from BIND 4.9.3 final release.
2452
2453 * elf/dynamic-link.h (elf_get_dynamic_info): Handle
2454 processor-specific tags.
2455 (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
2456
2457 * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
2458 * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
2459
2460 * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
2461 arg LAZY. Only do our work if LAZY and there is a DT_JMPREL record.
2462 * elf/dl-reloc.c (_dl_relocate_object): Call
2463 elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
2464
2465 * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
2466 Align end of load segment only to page size, not to segment alignment.
2467
7974fe21
RM
2468Thu Jan 4 11:35:18 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2469
2470 * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
2471 preemption interface.
2472
2473 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2474 Use _hurdsig_catch_memory_fault.
2475
2476 * hurd/Makefile (headers): Add hurd/sigpreempt.h.
2477 (sig): Add catch-signal.
2478
2479 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2480 Rewritten using a preempter in new interface.
2481 * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
2482 (_hurdsig_catch_memory_fault): New macro.
2483
fb8e70d6
RM
2484Wed Jan 3 20:23:42 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2485
2486 * hurd/catch-signal.c: New file.
2487
2488 * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
2489
2490 * hurd/hurdsig.c: Use new hurdfault.h interface.
2491 (abort_all_rpcs): Mutate return value to EINTR in threads whose
2492 replies we will wait for.
2493
2494 * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
2495 do ourselves last.
2496
2497Wed Jan 3 19:17:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
2498
2499 * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
2500 to auth_makeauth() in the right order.
2501
2502Wed Jan 3 17:19:04 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2503
2504 * sysdeps/generic/strsep.c: Rewritten.
2505
2506 * sysdeps/mach/hurd/fork.c: Use a different workaround for the
2507 suspended page fault deadlock kernel bug: thread_abort our signal
2508 thread first thing after proc_dostop.
2509
2510 * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
2511 recognize rootness properly.
2512
fc4026d8
RM
2513Tue Jan 2 00:50:10 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2514
71733723
RM
2515 * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
2516 (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
2517 * hurd/hurd/sigpreempt.h: New file.
2518 * hurd/preempt-sig.c: Rewritten with new interface.
2519 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
2520 preempters being unwound past.
fb8e70d6 2521 * hurd/hurdsig.c: Use new signal preemption interface.
71733723
RM
2522
2523 * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
2524 release.
2525
2526 * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
2527 compatibility.
2528
fc4026d8
RM
2529 * misc/queue.h: New file, incorporated from 4.4BSD.
2530 * misc/Makefile (headers): Add queue.h.
2531
2532 * posix/sys/types.h [__USE_BSD]: Include endian.h.
2533
2534 * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
2535 New macros.
2536
0a95f04d
RM
2537Thu Dec 28 10:21:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2538
2539 * sysdeps/generic/confname.h: Define all names as self-referential
2540 macros so #ifdef works.
2541
2542 * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
2543 of _hurd_signal_preempters[SIGNO].
2544
be7e3b7e
RM
2545Mon Dec 25 20:56:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2546
2547 * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
2548 EADDRINUSE. If translated node doesn't grok ifsock protocol,
2549 return EADDRINUSE.
2550
2551 * sysdeps/mach/hurd/connect.c: Make address arg
2552 `const struct sockaddr_un *'.
2553 The redecl is kosher and avoids another variable for AF_LOCAL case.
2554 * sysdeps/mach/hurd/sendto.c: Likewise.
2555 * sysdeps/mach/hurd/bind.c: Likewise.
2556
2557 * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
2558 code for GCC >= 2.7; use __transparent_union__ for name safety;
2559 add several sockaddr flavors.
2560 (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
2561 constructing the transparent union declarations.
2562 (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
2563 (bind, connect, sendto): Make the sockaddr argument use that.
2564
97532098
RM
2565Fri Dec 22 00:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2566
e0f09b6b
RM
2567 * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
2568 old vector.
2569 * sysdeps/mach/hurd/setuid.c: Likewise.
2570
97532098
RM
2571 * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
2572 right thing.
2573 * sysdeps/mach/hurd/setgid.c: Likewise.
2574 * sysdeps/mach/hurd/setreuid.c: Likewise.
2575 * sysdeps/mach/hurd/setregid.c: Likewise.
2576 * sysdeps/mach/hurd/setegid.c: Likewise.
2577 * sysdeps/mach/hurd/seteuid.c: Likewise.
2578
2579 * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
2580 proc_dostop call to work around kernel paging bug.
2581
2114e10a
RM
2582Fri Dec 22 00:38:00 1995 H.J. Lu <hjl@nynexst.com>
2583
2584 * stdio-common/vfscanf.c: Correctly handle white space skipping.
2585 * stdio-common/Makefile (tests): Add bug11.
2586 * stdio-common/bug11.c: New file.
2587
97532098
RM
2588Thu Dec 21 12:19:32 1995 Miles Bader <miles@gnu.ai.mit.edu>
2589
2590 * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
2591 instead of putting it (and other uids) in the gids and leaving the
2592 old uids as is.
2593
8ef76445
RM
2594Wed Dec 20 18:23:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2595
2596 * stdio/internals.c (flushbuf): If the target is -1, always
2597 discard the buffer of read data.
2598 Only set TWIDDLED flag in !ALIGNED case.
2599 Never increment target or offset when old value is -1.
2600
f94a3574
RM
2601Tue Dec 19 17:00:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2602
2603 * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
2604 pgrp changes.
2605
755f55b0
RM
2606Mon Dec 18 13:40:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2607
2608 * stdio/fread.c: Don't increment __offset when it's -1.
2609
2610 * elf/rtld.c (dl_main): Prepend tab to "statically linked". Exit
2611 0 in that case.
2612
2613 * misc/err.c (vwarnx, vwarn): Fix major brainos.
2614
2615 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
2616 inheritance.
2617
8882961f
RM
2618Sun Dec 17 15:56:35 1995 Miles Bader <miles@gnu.ai.mit.edu>
2619
2620 * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
2621
102800e0
RM
2622Sat Dec 16 10:33:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2623
2624 * Makerules: Use $(do-install-so) for installing shared objects.
2625 (do-install-so): New canned sequence. Make a symlink LIB.so after
2626 installing LIB.so.VERSION.
2627
2628 * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
2629
05be689b
RM
2630Fri Dec 15 04:41:22 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2631
2632 * stdio-common/Makefile (tests): Add bug10.
2633 * stdio-common/bug10.c: New file. From HJ Lu.
2634
2635 * stdio-common/tstdiomisc.c: Make more test-suite like: exit
2636 status tells about successful run.
2637
2638 * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
2639 format correctness.
2640 Correct handling of trailing white spaces in format + EOF.
2641
2642Fri Dec 15 01:31:56 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2643
2644 * stdio-common/Makefile (tests): Add bug8 and bug9.
2645 * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
2646
2647 * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
2648
2649 * stdlib/strtod.c: Correct spelling: nominator -> numerator.
2650 Thanks to Jim Meyering.
2651
2652Sat Nov 25 06:05:12 1995 H.J. Lu <hjl@nynexst.com>
2653
2654 * stdio-common/vfscanf.c: Always check width !=0.
2655 Correctly handle %%.
4984f343 2656
faf92f2a
RM
2657Thu Dec 14 02:28:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2658
2659 * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
2660 and cast STREAM to DIR * before passing to readdir and closedir.
2661
2662Wed Dec 13 22:06:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2663
2664 * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
2665 after aborting RPCs but before calling proc_mark_stop.
2666
3be01400
RM
2667Mon Dec 11 20:07:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2668
2669 * posix/glob.c [! STDC_HEADERS]: Declare getenv.
2670 (glob): Avoid using function as value.
2671
2672 * elf/rtld.c (dl_main): When mapping argument executable, set
2673 l_name to "", not l_libname.
2674 After loading DT_NEEDED library, set its l_type to lt_library.
2675
2676 * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
2677 VM_INHERIT. We can't handle MAP_INHERIT easily.
2678 Handle non-page-aligned addresses if congruent to offset.
2679
2680 * elf/dl-init.c: Skip the initializer for l_type lt_executable
2681 with l_name "". Start at _dl_loaded; don't skip the first element.
2682
2683 * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
2684 (MAP_COPY): Define to MAP_PRIVATE if undefined.
2685 (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
2686 If file it ET_EXEC, set its l_type to lt_executable.
2687
25b86c05
RM
2688Sun Dec 10 09:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2689
2690 * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
2691
787e4db9
RM
2692Fri Dec 8 13:04:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2693
2694 * locale/error.c, locale/error.h: Files removed.
2695 * locale/Makefile (distribute): Remove error.h.
2696 (lib-modules): Remove error.
2697
2698 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
2699 magic, return ENXIO if no ctty.
2700
2701 * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
2702 mapping if vm_map fails for that reason.
2703
2704 * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
2705 GLOB_TILDE, GLOB_NOMAGIC.
2706 (glob): Use stat instead of lstat to determine directoriness.
2707 * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
2708 New flag bits.
2709 (__GLOB_FLAGS): Include them.
2710 (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
2711 gl_stat.
2712
2713 * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
2714
2715 * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
2716 define all the bit values.
2717 (MAP_*, MCL_*): Macros removed.
2718
c994299d
RM
2719Thu Dec 7 02:27:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2720
2721 * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
2722 Updated from BIND 4.9.3-BETA27.
2723
2724Wed Dec 6 18:44:01 1995 Miles Bader <miles@gnu.ai.mit.edu>
2725
2726 * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
2727
2728 * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
2729 we get a delayed reply.
2730 Only grab values out of entries in TYPES that have SELECT_RETURNED
2731 turned on, and turn it on whenever an rpc returns.
2732 Only clear bits in the user's fdsets -- those needing to be set
2733 should be already.
2734 Use SELECT_ALL in appropiate places.
2735 (SELECT_RETURNED, SELECT_ALL): New macros.
2736
2737Wed Dec 6 09:10:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2738
2739 * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
2740
2741 * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
2742
edbba60a
RM
2743Tue Dec 5 14:00:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2744
2745 * misc/Makefile (headers): Add error.h, err.h.
2746 (routines): Add error, err.
2747 (gpl2lgpl): New variable.
2748 * misc/err.c: New file.
2749 * misc/err.h: New file.
2750 * misc/error.c, misc/error.h: New files.
2751
2752 * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
2753
2754 * Makeconfig (+link): Translate libc% from $^, not just libc.a.
2755 (link-libc): Append $(libc.so-version) to libc.so.
2756 (built-program-cmd): Fix comma usage.
2757 * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
2758 symlink to libc.so in the build directory.
2759 * Rules ($(others) $(tests)): Depend on the library that appears
2760 in $(link-libc).
2761 (%.out): Use $(built-program-cmd) in commands.
2762
2763 * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
2764
2765 * sysdeps/generic/setenv.c: Added canonical portability cruft.
2766 (setenv): Use realloc on LAST_ENVIRON instead of always copying.
2767 (unsetenv): New function.
2768 * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
2769 * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
2770
77a58cad
RM
2771Tue Dec 5 02:27:32 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2772
edbba60a 2773 * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
77a58cad
RM
2774
2775 * libio/iofscanf.c: Remove file.
2776
2777 * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
2778 termination.
2779
2780 * libio/iopopen.c: New file from GNU libio.
2781
2782 * libio/memstream.c: Fixed bug in fclose handling. Instead of
2783 providing a close callback we need a finish callback.
2784
2785 * libio/pclose.c: New file. Derived from popen.c in GNU libio.
2786
2787 * posix/gnu/types.h: Fixed typo.
2788
2789 * stdio-common/errnobug.c: fputs returns EOF in error case. Do
2790 not test for != 0.
2791
2792 * stdio-common/printf-parse.h (parse_one_spec): Do not force
2793 padding with ' ' if precision is given. Fix by HJ Lu.
2794
2795 * stdio-common/printf_fp.c: Fix comment.
2796
2797 * stdio-common/tfformat.c, stdio-common/tiformat.c,
2798 stdio-common/tstdiomisc.c: New files from GNU libio test suite.
2799
2800 * stdio-common/tstgetln.c: Provide ssize_t type when testing
2801 libio.
2802
2803 * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
2804 (vfprintf): Cleasr args_type array before using it.
2805 When printing 0 as an integer with precision 0 nothing must be
2806 written for the number.
2807 Based on patch by HJ Lu.
2808
2809 * stdio-common/vfscanf.c: Remove fixed input buffer. Now we
2810 have a dynamically extended buffer.
2811
2812 * stdlib/strtod.c: Merge with version in Linux libc. This fixes
2813 some bugs with handling of very small numbers and has different
2814 solution for formaer patches.
2815
2816 * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
2817 macros r1 and r2 to t1, and t2 resp. This is necessary because
2818 glibc headers also define r1.
2819
b5a08c5a
RM
2820Mon Dec 4 12:10:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2821
2822 * stdlib/gen-mpn-copy (translations): Updated for new layout in
2823 GMP 1.910.
2824
2825 * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
2826 made global.
2827 (malloc): Caller changed.
2828 * malloc/realloc.c (realloc): Call __malloc_initialize if
2829 necessary, before checking hook.
2830 * malloc/malloc.h: Declare __malloc_initialize.
2831
2832 * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
2833 as integer_t arg in RPC.
2834
0fe4e552
RM
2835Sat Dec 2 03:47:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2836
683158e0
RM
2837 * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
2838 (_hurd_set_brk): Try to allocate more space when we run out.
0fe4e552 2839
683158e0
RM
2840 * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
2841 zero and examine it again.
2842 * sysdeps/unix/sysv/linux/i386/brk.c: New file.
2843 * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
2844 * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
2845 * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
0fe4e552
RM
2846 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
2847 Invoke this macro before calling DL_MAIN.
2848
2849 * malloc/malloc.c (malloc): Do initialization here, before
2850 checking the hook.
2851 (_malloc_internal): Don't do it here.
2852
b2518f55
RM
2853Wed Nov 29 12:30:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2854
2855 * libio/vsnprintf.c (__vsnprintf): Define as alias.
2856 * libio/iovsscanf.c (__vsscanf): Define as alias.
2857 * asprintf.c: Remove libio adaptation code added by drepper.
2858 * dprintf.c: Likewise.
2859 * printf.c: Likewise.
2860 * scanf.c: Likewise.
2861 * snprintf.c: Likewise.
2862 * sprintf.c: Likewise.
2863 * sscanf.c: Likewise.
2864 * vprintf.c: Likewise.
2865 * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
2866 function.
2867 (vfscanf): Define unconditionally.
2868
2869 * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
2870 zero for value.
2871
2872 * misc/getpass.c: Write a newline after reading the unechoed
2873 password.
2874
b7843ea9
RM
2875Mon Nov 27 19:24:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2876
2877 * posix/Makefile (routines): Add getsid.
2878 * sysdeps/unix/sysv/linux/getsid.S: New file.
2879 * sysdeps/mach/hurd/getsid.c: New file.
2880 * sysdeps/stub/getsid.c: New file.
2881 * posix/unistd.h [__USE_GNU]: Declare getsid.
2882
f45e34fc
RM
2883Sun Nov 26 12:44:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2884
2885 * libc-symbols.h (N_): New macro.
2886
cbd3dceb
RM
2887Sat Nov 25 02:48:47 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2888
2889 * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
2890 malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
2891 resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
2892 sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
2893 sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
2894 sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
2895 sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
2896 sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
2897 strings.
2898
fbaad149
RM
2899Sun Nov 26 02:00:02 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2900
2901 * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
2902
2903Thu Nov 23 02:21:55 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2904
2905 * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
2906 New files.
1ed0083c 2907 * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
fbaad149
RM
2908 mlock, munlock, mlockall, and munlockall.
2909
f4482045
RM
2910Thu Nov 23 18:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2911
2912 * configure.in (--enable-libio): Set $stdio based on $enableval,
2913 not always to libio.
2914
2915Thu Nov 23 18:06:48 1995 Richard Stallman <rms@gnu.ai.mit.edu>
2916
2917 * malloc/malloc.c (_malloc_internal): Can't use
2918 get_contiguous_space when the heap info table
2919 will be growing. Account for new contiguous space in _heaplimit.
2920
42d2676e
RM
2921Wed Nov 22 12:37:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2922
2923 * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
2924 for errno.
2925
2926 * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
2927 alias for _IO_vfprintf.
2928
2929 * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
2930
2931 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
2932 __fpu_control instead of ___fpu_control.
2933 * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
2934 (___fpu_control): Renamed to __fpu_control.
2935 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
2936 * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
2937
2938 * elf/dl-minimal.c: New file.
2939 * elf/Makefile (rtld-routines): Add dl-minimal.
2940 * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
2941 Functions moved to dl-minimal.c.
2942 * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
2943 sigjmp_save, longjmp): Likewise.
2944
2945 * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
2946 to &_end, regardless of PIC.
2947
2948 * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
2949
1a3a58fd
RM
2950Tue Nov 21 14:12:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2951
2952 * malloc/malloc.c (align): Don't check contiguity and call abort.
2953
2954 * hurd/hurdsig.c (post_reply): Function removed.
2955 (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
2956 Take single callback fn arg instead of reply port and type.
2957 (_hurd_internal_post_signal): Callers changed.
2958 Cache reply stub fn ptr in local var before UNTRACED might be changed.
2959
2960 * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
2961 PROT_READ|PROT_WRITE copy mapping. Pass a proper vm_inherit_t to
2962 vm_map.
2963
2964 * elf/rtld.c (_dl_start): For --list, do output and exit before
2965 relocating.
2966
91c7b85d
RM
2967Mon Nov 20 16:19:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2968
2969 * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
2970 get .c and .h files.
2971
2972 * malloc/malloc.c (align): Use abort instead of assert.
2973
054cc4cc
RM
2974Sun Nov 19 18:23:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2975
2976 * Makeconfig (+includes): Add $($(stdio)-include).
2977 (libio-include): New variable.
2978
2979 * stdlib/strtod.c: Put weak_symbol after function defn.
2980 * stdlib/strtol.c: Likewise.
2981
2982 * configure.in (--enable-libio): If not present, set $stdio to
2983 "default". Move stdio/libio check to end, so sysdeps fragments
2984 can affect it. Reset $stdio to "stdio" if it's "default".
2985 * sysdeps/unix/sysv/linux/configure: New file.
2986
96aa2d94
RM
2987Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2988
2989 * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
2990 libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
2991 libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
2992 libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
2993 libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
2994 libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
2995 libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
2996 libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
2997 libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
2998 libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
2999 libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
3000 libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
3001 libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
3002 libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
3003 libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
3004 New files. Slightly modified version from Linux libc.
3005
3006 * libio/memstream.c, libio/vdprintf.c: New files for functions not
3007 (yet) part of GNU libio.
3008
3009 * libio/iofopncook.c: Implementation of `fopencookie', mainly written
3010 by Per Bothner.
3011
3012 * stdio-common/getline.c: Adapted to libio.
3013 * stdio-common/snprintf.c: Adapted to libio.
3014 * stdio-common/vfprintf.c: Adapted to libio.
3015 * stdio-common/vfscanf.c: Adapted to libio.
3016 * sysdeps/posix/tempname.c: Adapted to libio.
3017
a5a81fec
RM
3018Fri Nov 17 17:57:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3019
3020 * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
3021
3022 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
3023 function.
3024
3025 * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
3026 (_hurdsig_fault_init): Remove #if 0 from setting exception port.
3027 Insert send right for SIGEXC before thread_set_special_port.
3028 * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
3029 (_hurdsig_init): Remove #if 0 from setting exception port.
3030
3031 * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
3032 HURD_MSGPORT_RPC macro.
3033
4cb20290
RM
3034Thu Nov 16 06:07:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3035
3036 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
3037 function.
3038 (_dl_sysdep_start): Move cleanup code there.
3039
3040 * Makeconfig (default-rpath): New variable.
3041 (link-libc): Use it.
3042 * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
3043 * elf/rtld.c (_dl_rpath): New variable.
3044 (_dl_start): Set it from rtld_map's DT_RPATH.
3045 Call _dl_setup_hash on rtld_map.
3046 (dl_main): Cache address of _exit in variable before relocating,
3047 and use that in later calls. Call _dl_sysdep_start_cleanup before
3048 relocating. Keep track of dependency order while loading; remove
3049 rtld_map from chain, and reinsert in proper order if there is a
3050 dependency on it.
3051
3052 * sysdeps/generic/Makefile (make_siglist): Pass
3053 -DSIGNUM_H=... with config's signum.h location.
3054 * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
3055 signal numbers.
3056 (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
3057 (main): Deansideclize output.
3058
3059 * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
3060 of DEFAULT_RPATH macro.
3061 * elf/Makefile: Undo last change.
3062
3063 * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
3064
ec967c06
RM
3065Wed Nov 15 19:22:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3066
8738e7f8
RM
3067 * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
3068 error if weak.
3069
3070 * elf/Makefile (default-rpath): New variable.
3071 (CPPFLAGS): Append -DDEFAULT_RPATH=....
3072 * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
3073 hard-coded "/lib:/usr/lib".
3074
ec967c06
RM
3075 * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
3076 instead of stdio.
3077 (_dl_sysdep_start): If passed user entry is zero and
3078 EXEC_STACK_ARGS flag set, reset user entry to &_start.
3079
3080 * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
3081 DT_HASH element.
3082
3083 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
3084 repeat weak decl using weak_symbol macro, in case using broken GCC
3085 (<2.8).
3086
3087Wed Nov 15 18:49:55 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3088
3089 * sysdeps/i386/isnanl.c: New file.
3090 * sysdeps/i386/isinfl.c: New file.
3091
2ede96c9
RM
3092Tue Nov 14 18:44:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3093
3094 * malloc/free.c (free): Moved null and aligned_blocks checks
3095 inside _free_internal.
3096
9199ec6e
RM
3097Mon Nov 13 15:23:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3098
3099 * malloc/malloc.c (morecore): Fix inverted test in allocating new
3100 info table.
3101
3102 * malloc/malloc.c (align): Fix assertion.
3103
3104 * malloc/malloc.c: Include assert.h.
3105
3106 * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
3107
3108 * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
3109 (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
3110
75914335
RM
3111Fri Nov 10 14:15:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3112
accc07a9
RM
3113 * malloc/malloc.c (align): Assert that space for alignment
3114 adjustment is same original space.
3115
3116 * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
3117 arg to vm_address_t.
3118
75914335
RM
3119 * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
3120 skip straight to pending check. When UNTRACED, resume process
3121 from suspension first.
3122
3123 * intl/Makefile (headers): New variable, libintl.h.
3124 [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
3125 * configure.in: Check for --with-gettext arg.
3126
3127Fri Nov 10 13:51:30 1995 Richard Stallman <rms@gnu.ai.mit.edu>
3128
3129 * malloc/malloc.c (get_contiguous_space): New function.
3130 (morecore): Rewrite allocating new malloc info table.
3131 (_malloc_internal): Use get_contiguous_space.
3132
3133Fri Nov 10 13:03:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3134
3135 * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
3136 _hurd_msgport to be destroyed.
3137
3138 * Makerules (installed-libcs): Filter out %_pic.a.
3139
3140 * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
3141 to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
3142
3143 * hurd/Makefile (user-interfaces): Add hurd/process_request.
3144
d7435cd8
RM
3145Wed Nov 8 16:31:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3146
3147 * termios/Makefile (headers): Add sys/ttychars.h.
3148 * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
3149 for compatibility.
3150
3151 * signal/signal.h [__USE_BSD] (sig_t): New typedef.
3152
3153Wed Nov 8 15:12:47 1995 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3154
3155 * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
3156 proc server that we are now traced.
3157
86d2c878
RM
3158Tue Nov 7 12:29:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3159
094bacdb
RM
3160 * elf/Makefile (ldd): Make it executable.
3161
3162 * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
3163
3164 * Makeconfig (slibdir): New variable.
3165 * Makerules (install): Install libc.so in $(slibdir).
3166 * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
3167 in $(slibdir).
3168
86d2c878
RM
3169 * elf/linux-compat.c: New file.
3170 * elf/Makefile (distribute): Add linux-compat.c.
3171 (generated): Add librtld.so.
3172 [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
3173 [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
3174 (librtld.so): New target.
3175 (ld.so, ld-linux.so.1): Make from librtld.so.
3176
3177 * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
3178 call our own DT_INIT if we have one (and then clear it).
3179 (__dgettext): New weak function.
3180
3181 * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
3182 by hand instead.
3183
3184 * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
3185 instead of snprintf.
3186
3187 * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
3188 BUF[BUFLEN].
3189
3190 * elf/rtld.c (rtld_map): New static variable.
3191 (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
3192 bootstrapping. Then copy data into `rtld_map'.
3193 (dl_main): Finish filling in rtld_map and link it into the chain,
3194 instead of allocating a new structure.
3195 (dl_main): Call _dl_compat_init if it is defined (use weak ref).
3196
3197 * elf/dlsym.c: Fix last change: move REF out of `doit'.
3198
51093422
RM
3199Mon Nov 6 16:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3200
3201 * elf/dlsym.c: Return the proper value, not just the defining
3202 object's loadbase.
3203
e380bf62
RM
3204Sun Nov 5 16:09:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3205
f797c383
RM
3206 * stdio-common/vfprintf.c (%c): Count the character itself towards
3207 the field width in all cases.
3208
e380bf62
RM
3209 * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
3210 __vm_deallocate arg to vm_address_t.
3211
853f0eea
RM
3212Fri Nov 3 17:27:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3213
3214 * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
3215 socket_create_address.
3216 * sysdeps/mach/hurd/connect.c: Likewise.
3217 * sysdeps/mach/hurd/bind.c: Likewise.
3218
3219 * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
3220 args to proc_getprocinfo.
3221 * sysdeps/mach/hurd/getpriority.c: Likewise.
3222
3223 * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
3224
27cc33c3
RM
3225Thu Nov 2 19:24:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3226
3227 * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
3228
3bbceb12
RM
3229Tue Oct 31 00:07:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3230
80b55d32
RM
3231 * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
3232 PI_FETCH_TASKINFO to proc_getprocinfo and through
3233 _hurd_priority_which_map.
3234
3235 * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
3236 _hurd_priority_which_map.
3237 * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
3238 passed through to proc_getprocinfo RPC.
3239 * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
3240
3bbceb12
RM
3241 * sysdeps/mach/hurd/group_member.c: New file.
3242 * sysdeps/generic/group_member.c: New file.
3243
3244 * Makerules (lib-noranlib): Don't depend on $(install-lib).
3245 (others): Do.
3246 * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
3247
3248Mon Oct 30 12:33:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3249
3250 * Rules (others): Depend on $(extra-objs).
3251
3252 * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
3253 * posix/Makefile (routines): Add group_member.
3254
3255 * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
3256
3257 * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
3258 SIG operand in asm so it must be a register.
3259 Add dead return to quiet gcc warning.
3260
3261 * Makerules (sysd-rules): Write a defn for sysd-rules-done.
3262 [! sysd-rules-done]: Inhibit deps.
3263
3e2ee727
RM
3264Thu Oct 26 23:11:11 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3265
3266 * sysdeps/unix/sysv/linux/poll.c: Don't define as stub. Use
3267 simulation of system call using select.
3268
3269 * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
3270
3271 * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
3272
3273 * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
3274 name usage (new->act, old->oact).
3275 Correct asm statement because of gcc strangeness.
86d2c878 3276
3e2ee727
RM
3277 * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
3278
3279 * sunrpc/clnt_perr.c: Remove declaration of sys_errlist. They
3280 conflict with the ones in stdio.h.
3281
3282 * string/tester.c: %Z is no complete format. Change to %Zd.
3283
f094496c
RM
3284Thu Oct 26 18:13:33 1995 Miles Bader <miles@gnu.ai.mit.edu>
3285
3286 * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
3287 * sysdeps/mach/hurd/link.c (__link): Ditto.
3e2ee727 3288 * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
f094496c
RM
3289 * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
3290 Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
3291
efc755b2
RM
3292Thu Oct 26 00:11:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3293
3294 * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
3295
3296 * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
3297 on syscall_error. For PIC, it is a local label;
3298 for non-PIC, JUMPTARGET expands to the unadorned name anyway.
3299 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
3300 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3301 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3302 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
3303 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3304 * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
3305
41334987
RM
3306Thu Oct 26 03:01:22 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3307
3308 * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
3309 comment to the necessary ones. Add _readv and _writev.
3310
3311 * sysdeps/unix/configure.in: Change syntax for system call test
3312 candidates and adapt sed script for this. Now use : to separate
3313 syscall name and file name.
3314
3315 * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
3316 number is now set is DO_CALL. So call with additional argument.
3317 (DO_CALL): Takes an additional argument. Load system call
3318 number according to new argument.
3319 (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
3320 * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
3321 locally using SYSCALL_ERROR_HANDLER macro.
3322 * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3323 * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
3324 * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3325 * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
3326 * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
3327 * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3328 Don't use DO_CALL macro; instead use lower level macros for better
86d2c878 3329 control.
41334987
RM
3330
3331 * sysdeps/unix/sysv/linux/sigaction.h: New file.
3332 * sysdeps/unix/sysv/linux/sigaction.S: File removed.
3333 * sysdeps/unix/sysv/linux/signal.S: File removed.
3334
ff9bef7f
RM
3335Wed Oct 25 14:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3336
c14e4c32
RM
3337 * hurd/hurdstartup.c (_hurd_startup): Use new
3338 exec_startup_get_info RPC from exec_startup.defs
3339 in place of old exec_startup from exec.defs. Remove kludge to
3340 guess user entry and phdr locations, since the new RPC gives us
3341 that info.
3342
f44f9c33 3343 * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
c14e4c32 3344 * sysdeps/generic/_strerror.c: Undo last change.
f44f9c33 3345
ff9bef7f
RM
3346 * sysdeps/unix/sysv/linux/stat.c: New file.
3347 * sysdeps/unix/sysv/linux/fstat.c: New file.
3348 * sysdeps/unix/sysv/linux/lstat.c: New file.
3349 * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
3350 * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
3351 * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
3352
21ee7166
RM
3353Tue Oct 24 15:22:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3354
03a75825
RM
3355 * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3356 New macro.
3357 (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
3358
3359 * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
3360 only #ifndef PIC.
3361
3362 * Makeconfig (built-program-cmd): New variable.
3363 * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
3364 * time/Makefile (zic-cmd): Likewise.
3365
3366 * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
3367
e97ec51d
RM
3368 * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
3369 * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
3370 make `others' rather than `lib-noranlib' depend on the libraries.
3371
21ee7166
RM
3372 * sysdeps/unix/configure.in: Check for fchdir syscall.
3373 Improve sed script to allow / on rhs without / on lhs.
3374
3375Thu Oct 19 03:47:32 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3376
3377 * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
3378
3379 * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
3380
3381 * sysdeps/unix/sysv/linux/select.S: New file.
3382
4d049a8b
RM
3383Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3384
1d234146
RM
3385 * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
3386 SYSCALL_PIC_SETUP before jumping to syscall_error.
3387 * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
3388 (PSEUDO): Use it before jumping to syscall_error.
3389 * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
3390 expect it in %ebx on entry. Pop old %ebx value off stack after
86d2c878 3391 using it.
1d234146 3392
580c1888
RM
3393 * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
3394 them.
3395
4d049a8b
RM
3396 * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
3397
3398 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
3399 `fd/', pass the right pointer to strtol to parse the number.
3400
cabcc273
RM
3401Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3402
3403 * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
3404 of stdio/_itoa.h.
3405
3406Tue Oct 17 19:51:17 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3407
3408 * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
3409 register %ebx before calling __xstat through PLT.
3410
3411 * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
3412
3413 * sysdeps/unix/sysv/linux/sigset.h: Remove file.
3414
b3a59f40
RM
3415Tue Oct 17 01:21:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3416
cabcc273
RM
3417 * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
3418 stdio/_itoa.h.
3419 * hurd/hurdlookup.c: Likewise.
86d2c878 3420
f2149f69
RM
3421 * hurd/hurd/signal.h: Declare hurd_preempt_signals and
3422 hurd_unpreempt_signals.
3423
3424 * stdio/stdio.h: Declare __snprintf and __vsnprintf.
3425
b3a59f40
RM
3426 * stdio-common/psignal.c: Translate signal description strings.
3427 * string/strsignal.c: Likewise.
3428 * sysdeps/generic/_strerror.c (_strerror_internal): Translate
3429 error strings.
3430 * sysdeps/mach/_strerror.c: Likewise.
3431
3432 * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
3433 call __vsnprintf.
3434 (snprintf): Define as weak alias.
3435 * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
3436 (vsnprintf): Define as weak alias.
3437
924b9ff6
RM
3438Mon Oct 16 03:22:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3439
0700dfa1
RM
3440 * Makerules (install-lib): Filter out %_pic.a; install only the
3441 linked shared objects.
3442
cb2f05ed
RM
3443 * locale/Makefile (aux): Add SYS_libc.
3444 * locale/SYS_libc.c: New file.
b3a59f40 3445 * libc-symbols.h [! ASSEMBLER] (_): New macro.
cb2f05ed
RM
3446
3447 * configure.in (libc_cv_asm_set_directive): Link program into
3448 conftest instead of letting it default to a.out.
3449
d17e960c
RM
3450 * elf/Makefile (install-others): Add missing slash.
3451
3452 * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
3453 won't search LD_LIBRARY_PATH.
3454
deab9dea
RM
3455 * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
3456 * configure.in: Grok arg --enable-libio.
3457 ($stdio = libio): Define USE_IN_LIBIO.
3458 * config.h.in (USE_IN_LIBIO): Add #undef.
3459 * config.make.in (stdio): New variable, set by configure.
3460 * Makeconfig (stdio): New variable.
3461 * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
3462 stdio/stdio.h.
3463 * stdio-common/Makefile: New file.
3464 * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
3465 * stdio/_itoa.c: Moved to stdio-common.
3466 * stdio/_itoa.h: Moved to stdio-common.
3467 * stdio/asprintf.c: Moved to stdio-common.
3468 * stdio/bug1.c: Moved to stdio-common.
3469 * stdio/bug1.input: Moved to stdio-common.
3470 * stdio/bug2.c: Moved to stdio-common.
3471 * stdio/bug3.c: Moved to stdio-common.
3472 * stdio/bug4.c: Moved to stdio-common.
3473 * stdio/bug5.c: Moved to stdio-common.
3474 * stdio/bug6.c: Moved to stdio-common.
3475 * stdio/bug6.input: Moved to stdio-common.
3476 * stdio/bug7.c: Moved to stdio-common.
3477 * stdio/dprintf.c: Moved to stdio-common.
3478 * stdio/errnobug.c: Moved to stdio-common.
3479 * stdio/getline.c: Moved to stdio-common.
3480 * stdio/getw.c: Moved to stdio-common.
3481 * stdio/perror.c: Moved to stdio-common.
3482 * stdio/printf-parse.h: Moved to stdio-common.
3483 * stdio/printf-prs.c: Moved to stdio-common.
3484 * stdio/printf.c: Moved to stdio-common.
3485 * stdio/printf.h: Moved to stdio-common.
3486 * stdio/printf_fp.c: Moved to stdio-common.
3487 * stdio/psignal.c: Moved to stdio-common.
3488 * stdio/putw.c: Moved to stdio-common.
3489 * stdio/reg-printf.c: Moved to stdio-common.
3490 * stdio/scanf.c: Moved to stdio-common.
3491 * stdio/snprintf.c: Moved to stdio-common.
3492 * stdio/sprintf.c: Moved to stdio-common.
3493 * stdio/sscanf.c: Moved to stdio-common.
3494 * stdio/tempnam.c: Moved to stdio-common.
3495 * stdio/temptest.c: Moved to stdio-common.
3496 * stdio/test-fseek.c: Moved to stdio-common.
3497 * stdio/test-fwrite.c: Moved to stdio-common.
3498 * stdio/test-popen.c: Moved to stdio-common.
3499 * stdio/test_rdwr.c: Moved to stdio-common.
3500 * stdio/tmpfile.c: Moved to stdio-common.
3501 * stdio/tmpnam.c: Moved to stdio-common.
3502 * stdio/tst-fileno.c: Moved to stdio-common.
3503 * stdio/tst-printf.c: Moved to stdio-common.
3504 * stdio/tstgetln.c: Moved to stdio-common.
3505 * stdio/tstgetln.input: Moved to stdio-common.
3506 * stdio/tstscanf.c: Moved to stdio-common.
3507 * stdio/tstscanf.input: Moved to stdio-common.
3508 * stdio/vfprintf.c: Moved to stdio-common.
3509 * stdio/vfscanf.c: Moved to stdio-common.
3510 * stdio/vprintf.c: Moved to stdio-common.
3511 * stdio/xbug.c: Moved to stdio-common.
3512 * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
3513 stdio-common instead of stdio.
3514 * sysdeps/unix/Makefile (errlist.c rules): Likewise.
3515 * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
3516 function.
3517 * stdio-common/dprintf.c: Likewise.
3518 * stdio-common/printf.c: Likewise.
3519 * stdio-common/scanf.c: Likewise.
3520 * stdio-common/snprintf.c: Likewise.
3521 * stdio-common/sprintf.c: Likewise.
3522 * stdio-common/sscanf.c: Likewise.
3523 * stdio-common/vprintf.c: Likewise.
3524
3525 * Makerules: Include $(+depfiles) directly instead of generating
3526 depend-$(subdir).
3527 (depend-$(subdir)): Target removed.
3528 (common-clean): Don't remove depend-$(subdir).
3529
32a392b6
RM
3530 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
3531 (config-LDFLAGS): Variable removed.
3532
924b9ff6
RM
3533 * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
3534 * sysdeps/mach/hurd/bind.c: Likewise.
3535 * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
3536 calling convention.
3537
3538 * hurd/hurdexec.c: Undo last change (10 Oct 95).
3539
6cab5056
RM
3540Sun Oct 15 21:04:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3541
2948fc64
RM
3542 * hurd/hurd/lookup.h: New file.
3543 * hurd/hurdlookup.c (__file_name_lookup_under): New function.
3544 (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
3545 __hurd_file_name_split): Rewritten to take callback functions for
3546 using any needed init or dtable port, instead of passing in crdir
86d2c878 3547 and cwdir ports.
2948fc64
RM
3548 (__file_name_lookup, __file_name_split): Use new calling
3549 convention; pass _hurd_ports_use and __getdport as the callback
86d2c878 3550 functions.
2948fc64
RM
3551
3552 * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
3553 of __hurd_file_name_lookup.
3554 * sysdeps/mach/hurd/chdir.c: Likewise.
3555 * sysdeps/mach/hurd/fchdir.c: Likewise.
3556 * hurd/fchroot.c: Likewise.
3557
6cab5056
RM
3558 * stdlib/Makefile (mpn-found): Don't omit %.s.
3559 (mpn-copy-sysdep): Omit files in nonexistent directories.
3560 (copy-mpn): Commit files to CVS.
3561 * stdlib/gen-mpn-copy (translations): Update translations for GMP
3562 1.906.7.
3563
3564 * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
3565
8f5ca04b
RM
3566Sat Oct 14 02:52:36 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3567
3568 * malloc/malloc.c (_malloc_internal): Performance fix. Move
3569 if statement out of loop.
3570
3571 * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite. Much faster
3572 implementation using GMP functions. Contributed by
3573 Torbjorn Granlund and Ulrich Drepper.
3574
3575 * stdio/test_rdwr.c: Include <errno.h>.
3576
3577 * sysdeps/i386/i586/Implies: New file.
3578
3579 New highly optimized string functions for i[345]86.
3580 * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
3581 * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
3582 * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
3583 * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
3584 * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
3585 * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
3586 * sysdeps/i386/i586/strlen.S: New file.
3587 * sysdeps/i386/memchr.c: Removed. There is now an assembler version.
3588
3589 * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
3590 not correspond to used values.
3591
3592 * sysdeps/unix/sysv/linux/nfs/nfs.h: New file. Simply a wrapper
3593 around a kernel header file.
3594 * sysdeps/unix/sysv/linux/Dist: Add it.
3595 * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
3596 Likewise.
3597
3598 * sysdeps/unix/sysv/linux/local_lim.h: Rewrite. Instead of
3599 defining ourself we use a kernel header file.
3600
3601 * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
3602 call handler for i586.
3603
3604 * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
3605
6cab5056
RM
3606Thu Oct 12 15:45:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3607
3608 * hurd/hurd.h (file_name_lookup_under): Declare it.
3609 * hurd/Makefile (headers): Add hurd/lookup.h.
3610
3611 * hurd/hurdinit.c (_hurd_ports_use): New function.
3612 * hurd/hurd.h (_hurd_ports_use): Declare it.
3613 (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
3614 hurd_file_name_lookup_retry): Remove these decls.
3615 * hurd/Makefile (routines): Remove invoke-trans.
3616
db65048b
RM
3617Wed Oct 11 00:00:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3618
5d82cf5c
RM
3619 * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
3620 apply R_386_PC32 reloc.
3621
db65048b
RM
3622 * Makeconfig (config-LDFLAGS): Add missing slash.
3623
3624 * sysdeps/mach/hurd/profil.c (fork_profil): Only call
3625 update_waiter if profiling was enabled in the parent.
3626
3627 * csu/initfini.c: Don't pass -f flag to cp.
3628
8e3cc80f
RM
3629Tue Oct 10 23:08:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3630
3631 * Makerules (build-shlib): Pass -rpath and -rpath-link options.
3632 (LDFLAGS-c.so): Don't pass -dynamic-linker here.
3633 * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
3634 (link-libc): Pass -rpath and -rpath-link options.
3635
3636 * MakeTAGS (all-dirs): Omit CVS directories.
3637 Specify vpath directives to find source files in $(all-dirs).
3638 (sources, headers): Append sources and headers from $(all-dist) to
86d2c878 3639 these.
8e3cc80f
RM
3640 (all-dist): Filter them out of this.
3641 (all-headers, all-sources): Use $(shell find ...) instead of
3642 $(wildcard ...).
3643
3644 * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
3645 -rpath-link.
3646
3647 * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
3648
3649 * elf/Makefile (install-others): Add missing $.
3650
b122c703
RM
3651Mon Oct 9 02:54:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3652
8e3cc80f
RM
3653 * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
3654
b122c703
RM
3655 * Makeconfig (config-LDFLAGS): Define to
3656 -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
3657 (rtld-installed-name): New variable.
3658 * elf/Makefile (install-lib): Variable removed.
3659 (install-others): Define this instead, to
86d2c878 3660 $(libdir)(rtld-installed-name).
b122c703
RM
3661 ($(libdir)(rtld-installed-name)): New target; install from ld.so.
3662
3663 * elf/ldd.sh.in: New file.
3664 * elf/Makefile (distribute): Add ldd.sh.in.
3665 (install-bin): Add ldd.
3666 ($(objpfx)ldd: ldd.sh.in): New rule.
3667
3668 * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
3669 * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
3670 Translate some Mach errors to Hurd errors.
3671
3672 * elf/rtld.c (dl_main): Under --list, print msg if executable is
3673 statically linked.
3674
3675 * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
3676 table processing.
3677
3678Sat Oct 7 01:25:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3679
3680 * sysdeps/stub/machine-gmon.h: Add #error.
3681
3682Fri Oct 6 01:49:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3683
3684 * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
3685 examine it.
3686
80fd7387
RM
3687Fri Sep 29 03:43:51 1995 Paul Eggert <eggert@twinsun.com>
3688
3689 Rewrite mktime from scratch for performance, and for correctness
3690 in the presence of leap seconds.
3691
3692 * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
3693 New functions.
3694 (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
3695 TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
3696 <limits.h>, <stdlib.h>: New #includes.
3697 (main): Support tests with given broken-down value; support benchmarks.
3698 (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
3699 do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
3700 <ctype.h>): Remove.
3701
3702 * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
3703 * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
3704
3705 * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
3706 time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
86d2c878 3707
80fd7387
RM
3708 * time/offtime.c (__offtime): Remove useless assignment
3709 `tp->tm_isdst = -1'.
3710
3711 * manual/maint.texi: Update credits.
3712
3713Fri Oct 6 00:28:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3714
3715 * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
3716 * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
3717 * sysdeps/unix/sysv/linux/readv.c: File removed.
3718 * sysdeps/unix/sysv/linux/writev.c: File removed.
3719 * sysdeps/unix/configure.in: Check for readv and writev syscalls.
3720
3721 * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
3722 set it to $unix_syscall instead of $unix_function.
3723
6a76c115
RM
3724Thu Oct 5 00:59:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3725
3726 * elf/rtld.c (dl_main): Grok --list flag.
3727 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
3728
5f770861
RM
3729Wed Oct 4 00:21:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3730
6a76c115
RM
3731 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
3732 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
3733 * elf/link.h (_dl_sysdep_message): Declare it.
3734
57aefafe
RM
3735 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
3736 the list.
3737
3738 * time/northamerica: Corrections to Canada data from ADO 95i.
3739
3740 * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
3741 unconditionally. In socket subdir, append sys/socketcall.h; in
3742 time subdir, append sys/timex.h.
3743 (config-LDFLAGS): New variable.
3744 * sysdeps/unix/sysv/linux/Dist: New file.
3745 * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
3746
5f770861
RM
3747 * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
3748
3749 * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
3750
41cfadd6
RM
3751Sat Sep 30 11:47:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3752
879bf2e6
RM
3753 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
3754 kernel with args on stack, point _dl_hurd_data at zero data
3755 instead of garbage. When ld.so run as program, grok args
3756 -LIB=MEMOBJ and pre-load shared object files found in memory
3757 objects loaded by the boot loader.
3758
3759 * elf/link.h (struct link_map): New member `l_entry'.
3760 (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
3761 * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
3762 last arg ENTRY_POINT. Store the entry point location in the
3763 `l_entry' member of the new map.
3764 * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
3765 _dl_map_object. When run as program, set *USER_ENTRY to L->l_entry.
3766 * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
3767 _dl_map_object.
3768
41cfadd6
RM
3769 * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
3770
3771 * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
3772 restore %ebx by hand for personality syscall.
3773 GCC cannot deal with spilling the dedicated GOT register.
3774
3775 * misc/Makefile (routines): Add mntent, which was somehow omitted.
3776
3777Fri Sep 29 15:07:10 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
3778
3779 * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
3780 Change name of field `mode' in `struct timex' to `modes'.
3781 Linux-1.3.28 updates this name according to RFC 1489.
3782
24906b43
RM
3783Thu Sep 28 13:05:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3784
3785 Merge new message handling code from GNU gettext, by Drepper.
3786 * intl: New directory.
3787 * Makefile (subdirs): Add intl.
3788
3789 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
3790 USER_ENTRY instead of storing it on our stack.
3791
3792 * elf/rtld.c (rtld_command): Variable removed.
3793 (_dl_skip_args): New variable.
3794 (dl_main): Increment _dl_skip_args instead of setting rtld_command.
3795 If the link_map for the executable itself is not first in the chain,
3796 make it so.
3797 * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
3798 count of args to skip.
3799
3800Thu Sep 28 09:20:04 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
3801
3802 * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
86d2c878
RM
3803 leading zeroes.
3804
ea03559a
RM
3805Wed Sep 27 00:27:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3806
3ec41e03
RM
3807 * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
3808 (getcwd): Define as weak alias.
3809 * sysdeps/posix/getcwd.c: Likewise.
3810 * sysdeps/stub/getcwd.c: Likewise.
3811 * posix/unistd.h: Declare __getcwd.
3812
3813 * string/string.h: Declare __strcasecmp.
3814 * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
3815 strcasecmp.
3816 (strcasecmp): Define as weak alias.
3817
3818 * string/string.h: Declare __stpcpy.
3819 * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
3820 (stpcpy): Define as weak alias.
3821
f94f8067
RM
3822 * sysdeps/unix/sysv/linux/Implies: Add unix/common.
3823
3f33a4ce
RM
3824 * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
3825 Don't use `type' for arg name, since we are using it as a keyword
86d2c878 3826 in the rhs.
3f33a4ce
RM
3827
3828 * sysdeps/unix/configure.in: Check for syscalls getpriority,
3829 setpriority, getrlimit, setrlimit.
3830
3831 * sysdeps/posix/truncate.c: Include fcntl.h.
3832
3833 * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
3834
3835 * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
3836 use new stub_warning syntax.
3837 * sysdeps/stub/setpriority.c: Likewise.
3838 * sysdeps/stub/__longjmp.c: Likewise.
3839 * sysdeps/stub/_exit.c: Likewise.
3840 * sysdeps/stub/accept.c: Likewise.
3841 * sysdeps/stub/acos.c: Likewise.
3842 * sysdeps/stub/alarm.c: Likewise.
3843 * sysdeps/stub/asin.c: Likewise.
3844 * sysdeps/stub/atan2.c: Likewise.
3845 * sysdeps/stub/bind.c: Likewise.
3846 * sysdeps/stub/cbrt.c: Likewise.
3847 * sysdeps/stub/chroot.c: Likewise.
3848 * sysdeps/stub/closedir.c: Likewise.
3849 * sysdeps/stub/connect.c: Likewise.
3850 * sysdeps/stub/cos.c: Likewise.
3851 * sysdeps/stub/cosh.c: Likewise.
3852 * sysdeps/stub/ctermid.c: Likewise.
3853 * sysdeps/stub/cuserid.c: Likewise.
3854 * sysdeps/stub/defs.c: Likewise.
3855 * sysdeps/stub/exp.c: Likewise.
3856 * sysdeps/stub/fmod.c: Likewise.
3857 * sysdeps/stub/frexp.c: Likewise.
3858 * sysdeps/stub/fsync.c: Likewise.
3859 * sysdeps/stub/getcwd.c: Likewise.
3860 * sysdeps/stub/getenv.c: Likewise.
3861 * sysdeps/stub/gethostid.c: Likewise.
3862 * sysdeps/stub/getlogin.c: Likewise.
3863 * sysdeps/stub/getpeername.c: Likewise.
3864 * sysdeps/stub/getrlimit.c: Likewise.
3865 * sysdeps/stub/getsockname.c: Likewise.
3866 * sysdeps/stub/getsockopt.c: Likewise.
3867 * sysdeps/stub/listen.c: Likewise.
3868 * sysdeps/stub/log.c: Likewise.
3869 * sysdeps/stub/log10.c: Likewise.
3870 * sysdeps/stub/mkfifo.c: Likewise.
3871 * sysdeps/stub/morecore.c: Likewise.
3872 * sysdeps/stub/nice.c: Likewise.
3873 * sysdeps/stub/nlist.c: Likewise.
3874 * sysdeps/stub/opendir.c: Likewise.
3875 * sysdeps/stub/pipestream.c: Likewise.
3876 * sysdeps/stub/ptrace.c: Likewise.
3877 * sysdeps/stub/putenv.c: Likewise.
3878 * sysdeps/stub/readdir.c: Likewise.
3879 * sysdeps/stub/reboot.c: Likewise.
3880 * sysdeps/stub/recv.c: Likewise.
3881 * sysdeps/stub/recvfrom.c: Likewise.
3882 * sysdeps/stub/rename.c: Likewise.
3883 * sysdeps/stub/rewinddir.c: Likewise.
3884 * sysdeps/stub/seekdir.c: Likewise.
3885 * sysdeps/stub/send.c: Likewise.
3886 * sysdeps/stub/sendto.c: Likewise.
3887 * sysdeps/stub/setegid.c: Likewise.
3888 * sysdeps/stub/seteuid.c: Likewise.
3889 * sysdeps/stub/setgroups.c: Likewise.
3890 * sysdeps/stub/sethostid.c: Likewise.
3891 * sysdeps/stub/sethostname.c: Likewise.
3892 * sysdeps/stub/setjmp.c: Likewise.
3893 * sysdeps/stub/setrlimit.c: Likewise.
3894 * sysdeps/stub/setsockopt.c: Likewise.
3895 * sysdeps/stub/shutdown.c: Likewise.
3896 * sysdeps/stub/signal.c: Likewise.
3897 * sysdeps/stub/sigsuspend.c: Likewise.
3898 * sysdeps/stub/sin.c: Likewise.
3899 * sysdeps/stub/sinh.c: Likewise.
3900 * sysdeps/stub/socket.c: Likewise.
3901 * sysdeps/stub/socketpair.c: Likewise.
3902 * sysdeps/stub/sqrt.c: Likewise.
3903 * sysdeps/stub/sync.c: Likewise.
3f33a4ce
RM
3904 * sysdeps/stub/system.c: Likewise.
3905 * sysdeps/stub/tan.c: Likewise.
3906 * sysdeps/stub/tanh.c: Likewise.
3907 * sysdeps/stub/tcdrain.c: Likewise.
3908 * sysdeps/stub/tcflow.c: Likewise.
3909 * sysdeps/stub/tcgetpgrp.c: Likewise.
3910 * sysdeps/stub/tcsendbrk.c: Likewise.
3911 * sysdeps/stub/tcsetattr.c: Likewise.
3912 * sysdeps/stub/tcsetpgrp.c: Likewise.
3913 * sysdeps/stub/telldir.c: Likewise.
3914 * sysdeps/stub/tempname.c: Likewise.
3915 * sysdeps/stub/ttyname.c: Likewise.
3916 * sysdeps/stub/ttyname_r.c: Likewise.
3917 * sysdeps/stub/utime.c: Likewise.
3918
3919 * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
3920
3921 * time/mktime.c (localtime_r): Use 0 instead of NULL.
3922
ea03559a
RM
3923 * config.make.in (AS): New variable; set to `$(CC) -c'.
3924
3925 * posix/unistd.h [__USE_BSD]: Declare profil.
3926
3927 * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
3928 of _dl_map_object.
3929 (_dl_map_object): Call it.
3930 * elf/link.h (_dl_map_object_from_fd): Declare it.
3931
11c981a9
RM
3932Tue Sep 26 16:50:17 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3933
c709e372
RM
3934 * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
3935 gettext code.
3936
3937 * sysdeps/unix/sysv/linux/sys/param.h: New file.
3938 * sysdeps/unix/sysv/linux/Subdirs: File removed.
3939
3940 * libc-symbols.h (_LIBC): Define to 1, not just empty.
3941
11c981a9
RM
3942 * gmon: New directory of profiling code, incorporated from
3943 4.4BSD-Lite and modified.
3944 * sysdeps/i386/machine-gmon.h: New file.
3945 * sysdeps/stub/machine-gmon.h: New file.
3946 * sysdeps/mach/hurd/profil.c: New file.
3947 * sysdeps/stub/profil.c: New file.
3948 * sysdeps/unix/bsd/profil.S: New file.
3949 * Makefile (subdirs): Add gmon.
3950 * csu/gmon-start.c: New file.
3951 * csu/Makefile (extra-objs): Add gmon-start.o,
3952 g$(start-installed-name).
3953 (install-lib, omit-deps): Add g$(start-installed-name).
3954 ($(objpfx)g$(start-installed-name)): New target.
3955
969705cc
RM
3956Fri Sep 22 14:24:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3957
3958 * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
3959 time being.
3960
0324daa0
RM
3961Thu Sep 21 00:03:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3962
969705cc
RM
3963 * sysdeps/unix/configure.in: Check for `profil' syscall.
3964
c12d1df0
RM
3965 * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
3966 removed.
3967
a5570f62
RM
3968 * time/africa, time/asia, time/europe, time/northamerica,
3969 time/yearistype: New data from ADO 95h.
3970
193bd2ce
RM
3971 * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
3972 $(notdir $*), so it wins for the explicit libc.so rule as well as the
86d2c878 3973 pattern rule.
10b40b11 3974
0324daa0
RM
3975 * sysdeps/stub/sys/sem_buf.h (union semun): New type.
3976
3977 * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
3978 __libc_global_ctors.
3979 * sysdeps/i386/init-first.c: Rewritten.
3980 * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
3981 * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
3982
3983 * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
3984 ___fpu_control.
3985
3986 * Makerules (build-shlib): New canned sequence, broken out of
3987 lib%.so rule. Link in $^ instead of just $<.
3988 (lib%.so: lib%_pic.a): Use it.
3989 (libc.so): New target; use $(build-shlib) for cmds, but also depend
3990 on soinit.so first and sofini.so last.
3991
3992 * elf/soinit.c: New file.
3993 * elf/sofini.c: New file.
3994 * elf/Makefile (distribute): Add soinit.c and sofini.c.
3995 (extra-objs): Add soinit.so and sofini.so.
3996
3997 * sysvipc/sys/shm.h (shmat): Fix return type to char *.
3998 * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
3999
4000 * misc/syslog.c (vsyslog): Rewritten using open_memstream to
4001 dynamically allocate buffers.
4002
4003 * Makerules (install-lib-nosubdir): Make this, rather than
4004 install-no-libc.a, depend on the installed shared libraries.
4005
60092701
RM
4006Wed Sep 20 18:02:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4007
4008 * locale/locale.c: Include errno.h.
4009 * locale/localedef.c: Likewise.
4010
4011Tue Sep 19 00:02:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4012
4013 * Makefile (distclean-1): Remove config.cache, config.log, config.h.
4014 (parent-mostlyclean): Remove all flavors of the parent library.
4015
4016 * misc/mntent.c (getmntent): Skip multiple whitespace chars
4017 between fields.
4018
4019 * hurd/hurdstartup.c (_hurd_startup): If RPC returns
4020 EXEC_STACK_ARGS flag, get args from stack.
4021 If args on stack but have info from RPC, relocate args on stack to make
4022 space for struct hurd_startup_data.
4023
bf40c56f
RM
4024Mon Sep 18 15:06:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4025
60092701
RM
4026 * elf/dl-object.c: Include errno.h.
4027 * posix/execvp.c: Likewise.
4028 * dirent/scandir.c: Likewise.
4029 * sysdeps/posix/system.c: Likewise.
4030 * sysdeps/generic/setenv.c: Likewise.
4031 * stdlib/msort.c: Likewise.
4032 * stdio/memstream.c: Likewise.
4033 * stdio/fclose.c: Likewise.
4034 * stdio/getdelim.c: Likewise.
4035 * stdio/setvbuf.c: Likewise.
4036 * sysdeps/ieee754/ldexp.c: Likewise.
4037 * locale/locfile-parse.c: Likewise.
4038
4039 * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
4040 * stdlib/seed48_r.c: Likewise.
4041 * stdlib/srand48_r.c: Likewise.
4042 * stdlib/jrand48_r.c: Likewise.
4043 * stdlib/nrand48_r.c: Likewise.
4044
bf40c56f
RM
4045 * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
4046 to be useless.
4047
c2216480
RM
4048Mon Sep 18 12:39:22 1995 Paul Eggert <eggert@twinsun.com>
4049
4050 * mktime.c (localtime_r): Add substitute if the system doesn't
4051 provide one.
4052
4053Mon Sep 18 14:39:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4054
4055 * time/gmtime.c (gmtime_r): Define as weak alias.
4056 * time/localtime.c (localtime_r): Define as weak alias.
4057 * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
4058
4059 * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
4060 #undef __need_Emath after including errnos.h.
4061 [_ERRNO_H]: Protect decls with this.
4062
4063Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
4064
4065 Fix mktime so that it does not write over localtime's returned value.
4066 * localtime.c (__localtime_r): New function, with extra arg
4067 specifying where to store result.
4068 (localtime): Use it.
4069 (_tmbuf): New var.
4070 * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
4071 * mktime.c (__mktime_internal): Conversion function is now
4072 __localtime_r style, not localtime style.
4073 (mktime): Pass __localtime_r, not localtime.
4074 * timegm.c (timegm): Pass __gmtime_r, not gmtime.
4075 * offtime.c (__offtime): New arg specifying where to store result.
4076 * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
4077 (__gmtime_r, __localtime_r): New decls.
4078
4079 * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
4080 <stdlib.h>, <string.h>: Remove includes.
4081 <errno.h>: Add include.
4082
4083 * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
4084 Renamed from _mktime_internal to avoid namespace pollution.
4085
4086 * time/gmtime.c: Clear tm_isdst.
4087
aa910907
RM
4088Mon Sep 18 01:58:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4089
c2216480
RM
4090 * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
4091 * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
4092 size_t.
4093
4094 * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
4095 __file_pathconf.
4096 * sysdeps/mach/hurd/pathconf.c: Likewise.
4097
aa910907
RM
4098 * Makefile (subdirs): Add sysvipc.
4099
4100 * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
4101 * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
4102
e537c55e
RM
4103Sun Sep 17 18:29:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4104
aa910907
RM
4105 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
4106 __file_set_size instead of __file_truncate.
4107
4108 * features.h (__USE_REENTRANT): New macro.
4109
e537c55e
RM
4110 * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
4111 __file_truncate.
4112 * sysdeps/mach/hurd/ftruncate.c: Likewise.
4113
4114 * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
4115
60478656
RM
4116Sat Sep 16 17:47:19 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
4117
4118 * elf/elf.h (AT_GID): Fix typo: Read -> Real.
4119
4120 * misc/efgvt_r.c: New file. Reentrant version of [efg]cvt functions.
4121 * misc/efgcvt.c: Rewrite to use reentrant functions.
60092701 4122 * misc/search.h: Many decls for hsearch functions.
60478656
RM
4123 * misc/hsearch_r.c: New file. Reentrant version of functions from
4124 hsearch family.
4125 * misc/hsearch.c, misc/tsearch.c: New files.
4126 * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
4127
4128 * posix/unistd.h (ttyname_r): Add prototype for new function.
4129
4130 * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
4131 stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
4132 stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
4133 stdlib/drand48-iter.c: New files implementing reentrant versions
4134 of functions from drand48 family.
4135 * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
4136 stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
4137 stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
4138 Rewrite to use reentrant versions.
4139 * stdlib/a64l.c, stdlib/l64a.c: New files. Implement a64l()
4140 and l64a() functions from SysV library.
4141 * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
4142 nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
4143 drand48-iter, a64l, l64a.
4144 * stdlib/stdlib.h: Declare them.
4145
4146 * stdlib/random_r.c: New file. Reentrant version of functions
4147 from random family.
4148 * stdlib/stdlib.h: Declare them.
4149 * stdlib/random.c: Rewrite to use reentrant functions.
4150
4151 * string/strerror_r.c: New file. Reentrant version.
4152 * string/strerror.c: Change for new _strerror_internal form.
4153 * string/Makefile (routines): Add strerror_r.
4154
4155 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
4156 value of user_entry to `_start'.
4157 Close AT_ENTRY case with `break'.
4158
4159 * sysdeps/generic/strstr.c: New and much faster implementation
4160 by Stephen R. van den Berg.
4161
4162 * sysdeps/generic/_strerror.c: _strerror_internal now takes
4163 three argument and has and explicit buffer length.
4164 * sysdeps/mach/_strerror.c: Change for new interface with three
4165 arguments.
4166 * stdio/perror.c, stdio/vfprintf.c: Callers changed.
86d2c878 4167
60478656
RM
4168 * sysdeps/mach/hurd/ttyname_r.c: New file. Reentrant version.
4169 * sysdeps/posix/ttyname_r.c: New file. Reentrant version.
4170 * sysdeps/stub/ttyname_r: New file. Define as dummy function.
4171
4172 * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
4173 (utimes): First parameter to utime must be file, not path.
4174
4175 * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
4176 _SC_CLK_TCK and return it when available.
4177 Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
4178 available.
4179 Add case for _SC_2_LOCALEDEF which is now available.
4180
4181 * posix/sys/types.h [__USE_SVID] (key_t): New type.
4182 * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
4183 sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
4184 sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
4185 sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
4186 sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
4187 sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
4188 sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
4189 sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
4190 Add implementation of System V IPC.
e11c3949 4191
9fd18b6c
RM
4192Fri Sep 15 21:34:28 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4193
4194 * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
4195 (write_corefile): Call __crash_dump_task instead of __core_dump_task.
4196 Use envariable CRASHSERVER instead of CORESERVER.
4197 * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
4198
7a770247
RM
4199Tue Sep 12 14:30:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4200
4201 * misc/mntent.c: New file.
4202 * misc/mntent.h: New file.
4203 * misc/Makefile (headers): Added mntent.h.
4204 (routines): Added mntent.
4205 * misc/fstab.c: Rewritten using mntent functions.
4206
4207Mon Sep 11 14:00:14 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
4208
4209 * posix/glob.c (glob): Comment fix.
4210
c64908b0
RM
4211Fri Sep 8 16:25:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4212
f87cd5a2
RM
4213 * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
4214 symbols weak.
4215
c64908b0
RM
4216 * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
4217 not empty.
4218
d2f5be2a
UD
4219Fri Sep 8 16:32:12 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
4220
4221 * sysdeps/unix/sysv/linux/Implies,
4222 sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
4223 sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
4224 sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
4225 sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
4226 sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
4227 sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
4228 sysdeps/unix/sysv/linux/gethostname.C,
4229 sysdeps/unix/sysv/linux/getpeername.S,
4230 sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
4231 sysdeps/unix/sysv/linux/getsockname.S,
4232 sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
4233 sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
4234 sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
4235 sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
4236 sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
4237 sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
4238 sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
4239 sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
4240 sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
4241 sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
4242 sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
4243 sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
4244 sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
4245 sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
4246 sysdeps/unix/sysv/linux/settimeofday.S,
4247 sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
4248 sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
4249 sysdeps/unix/sysv/linux/shutdown.S,
4250 sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
4251 sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
4252 sysdeps/unix/sysv/linux/sockaddrcom.h,
4253 sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
4254 sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
4255 sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
4256 sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
4257 sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
4258 sysdeps/unix/sysv/linux/tcsetattr.c,
4259 sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
4260 sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
4261 sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
4262 sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
4263 sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
4264 New Linux/ELF specific, architecture independent files.
c64908b0 4265 * sysdeps/unix/sysv/linux/i386/Dist,
d2f5be2a
UD
4266 sysdeps/unix/sysv/linux/i386/Makefile,
4267 sysdeps/unix/sysv/linux/i386/brk.S,
4268 sysdeps/unix/sysv/linux/i386/fcntlbits.h,
4269 sysdeps/unix/sysv/linux/i386/fpu_control.c,
4270 sysdeps/unix/sysv/linux/i386/fpu_control.h,
4271 sysdeps/unix/sysv/linux/i386/fstat.S,
4272 sysdeps/unix/sysv/linux/i386/fxstat.S,
4273 sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
4274 sysdeps/unix/sysv/linux/i386/init-first.S,
4275 sysdeps/unix/sysv/linux/i386/ipc.S,
4276 sysdeps/unix/sysv/linux/i386/lstat.S,
4277 sysdeps/unix/sysv/linux/i386/lxstat.S,
4278 sysdeps/unix/sysv/linux/i386/mknod.S,
4279 sysdeps/unix/sysv/linux/i386/mmap.S,
4280 sysdeps/unix/sysv/linux/i386/sbrk.S,
4281 sysdeps/unix/sysv/linux/i386/setfpucw.c,
4282 sysdeps/unix/sysv/linux/i386/signum.h,
4283 sysdeps/unix/sysv/linux/i386/socket.S,
4284 sysdeps/unix/sysv/linux/i386/stat.S,
4285 sysdeps/unix/sysv/linux/i386/syscall.S,
4286 sysdeps/unix/sysv/linux/i386/sysdep.S,
4287 sysdeps/unix/sysv/linux/i386/sysdep.h,
4288 sysdeps/unix/sysv/linux/i386/xmknod.S,
4289 sysdeps/unix/sysv/linux/i386/xstat.S:
4290 New Linux i386/ELF specific files.
c64908b0 4291 * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
d2f5be2a
UD
4292 sysdeps/unix/sysv/linux/sys/mman.h,
4293 sysdeps/unix/sysv/linux/sys/msq_buf.h,
4294 sysdeps/unix/sysv/linux/sys/sem_buf.h,
4295 sysdeps/unix/sysv/linux/sys/shm_buf.h,
4296 sysdeps/unix/sysv/linux/sys/socketcall.h,
4297 sysdeps/unix/sysv/linux/sys/timex.h:
4298 New Linux/ELF specific, architecture independent header files.
c64908b0 4299 * sysdeps/unix/sysv/sysv4/linux: Tree removed.
86d2c878 4300
c64908b0
RM
4301Thu Sep 7 17:05:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4302
4303 * stdlib/msort.c (msort_with_tmp): Fixed alignment test. B1 and
e11c3949 4304 B2 are always congruent; just test that B1 is aligned.
d2f5be2a 4305
1571a016
RM
4306Wed Sep 6 19:41:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4307
4308 * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
4309 than WEAK_VALUE.a to see if a weak value has been set. A valid
4310 weak value may set WEAK_VALUE.a to 0.
4311
44c8d1a2
RM
4312Fri Sep 1 16:16:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4313
f405bed5
RM
4314 * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
4315 jmp_buf.
4316
44c8d1a2
RM
4317 * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
4318 for a warning on references to that specific symbol, not the
4319 entire containing object file.
4320 (stub_warning): Pass symbol name to link_warning.
4321 * stdio/gets.c: Pass function name in link_warning invocation.
4322
4323 * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
4324 MACH_SEND_INTERRUPTED. That indicates interrupt_operation was
4325 sent, but failed.
4326
4327 * stdlib/msort.c: Include memcopy.h.
4328 (msort_with_tmp): If operating on aligned op_t words, use direct word
4329 fetches and stores.
4330
4331 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
4332 missing backslash.
4333
e3726b05
RM
4334Thu Aug 31 13:23:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4335
4336 * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
4337
4338 Rewrote i386 setjmp code in assembly, so as to avoid fighting
4339 with the compiler for the register values.
4340 * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
4341 * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
4342 * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
4343 [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
4344 (_JMPBUF_UNWINDS): Use JB_SP.
4345
a993273c
RM
4346Wed Aug 30 16:44:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4347
4348 * sysdeps/mach/hurd/select.c: Deal with out of order replies
4349 during io_select request loop.
4350 Handle MACH_RCV_TIMED_OUT error from requests.
4351 * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
4352 distinguish MACH_RCV_TIMED_OUT from EINTR.
4353
4354 * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
4355 slash.
4356 (glob_in_dir): Don't allocate extra byte here.
4357
4358 * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4359 Decrement the DT_RELSZ value for the skipped reloc.
4360
18926cf4
RM
4361Tue Aug 29 12:35:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4362
4363 * time/australasia: Updated data from ADO.
4364
4365Mon Aug 28 17:47:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4366
4367 * dirent/dirent.h: Don't include <dirstream.h>.
4368 Instead, define DIR as typedef for (undefined) `struct __dirstream'.
4369
7752137a
RM
4370Fri Aug 25 12:12:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4371
9e865ade
RM
4372 * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
4373 instead of `DIR'.
4374 * sysdeps/unix/bsd/dirstream.h: Likewise.
4375 * sysdeps/stub/dirstream.h: Likewise.
4376 * sysdeps/unix/dirstream.h: Likewise.
4377 * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
4378 * sysdeps/mach/hurd/seekdir.c: Likewise.
4379 * sysdeps/mach/hurd/opendir.c: Likewise.
4380 * sysdeps/mach/hurd/closedir.c: Likewise.
4381 * sysdeps/mach/hurd/readdir.c: Likewise.
4382 * sysdeps/unix/telldir.c: Likewise.
4383 * sysdeps/unix/seekdir.c: Likewise.
4384 * sysdeps/unix/rewinddir.c: Likewise.
4385 * sysdeps/unix/readdir.c: Likewise.
4386 * sysdeps/unix/opendir.c: Likewise.
4387 * sysdeps/unix/closedir.c: Likewise.
4388 * sysdeps/unix/bsd/telldir.c: Likewise.
4389 * sysdeps/unix/bsd/readdir.c: Likewise.
4390 * dirent/Makefile (headers): Remove dirstream.h.
4391 (distribute): Put it here instead.
4392
7752137a
RM
4393 * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
4394
4395 * stdio/vfscanf.c (number): Allow field width to inhibit first
4396 digit after base detection.
4397
4398 * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
4399 specified by the precision.
4400
4401 * grp/grpread.c (__grpscan): New function.
4402 * grp/grp.h (__grpscan): Declare it.
4403 * grp/getgrgid.c: Use __grpscan.
4404 * grp/getgrnam.c: Likewise.
4405 * pwd/pwdread.c (__pwdscan): New function.
4406 * pwd/pwd.h (__pwdscan): Declare it.
4407 * pwd/getpwnam.c: Use __pwdscan.
4408 * pwd/getpwuid.c: Likewise.
4409
4410Thu Aug 24 16:29:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4411
4412 * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
4413 MAP_FILE.
4414
4415 * hurd/thread-cancel.c: Return EINTR when called on self.
4416 * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
4417 __data_start.
4418
3cf595e5
RM
4419Tue Aug 22 16:49:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4420
4421 * inet/netdb.h: Moved to resolv.
4422 * inet/Makefile (headers): Remove netdb.h.
4423 * resolv/Makefile (headers): Add netdb.h.
4424 * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
4425 resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
4426
4427 * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
4428 resuming the thread.
4429 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
4430
4431 * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
4432
4433Mon Aug 21 16:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4434
4435 * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
4436 relocs, and do nothing. Why the linker generates them we may
86d2c878 4437 never know.
3cf595e5 4438
3fe9de0d
RM
4439Thu Aug 17 16:18:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4440
a4bb2589
RM
4441 * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
4442 `subdirs' variable.
4443
3cf595e5 4444 * sysdeps/mach/hurd/i386/intr-msg.h: New file.
3fe9de0d
RM
4445 * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
4446 "intr-msg.h" for special syscall code, instead of i386-specific asm.
4447 * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
4448 machine-dependent "intr-msg.h" before mutating thread state to
4449 skip RPC.
4450
4451 * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
4452 _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
4453 %ecx.
4454
4455 * Makeconfig (link-libc): New variable; use shared library if
4456 available.
4457 (+link): Use it.
4458
4459 * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
4460 Instead, declare with `symbol_set_declare'.
86d2c878 4461 (fork): Use symbol_set_* macros for _hurd_fork_locks.
3fe9de0d
RM
4462 Use SS->thread instead of __mach_thread_self (). Suspend all
4463 other threads during task_create and port copying.
4464
191abc51
RM
4465Wed Aug 16 17:04:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4466
4467 * hurd/intr-msg.c: Fixed calculation of syscall %esp.
4468
4469Tue Aug 15 12:26:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4470
4471 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
4472
4473 * hurd/Makefile (sig): Add intr-msg.
4474
54da5be3
RM
4475Mon Aug 14 16:51:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4476
4477 * hurd/thread-cancel.c: New file.
4478 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
4479 rpc_wait case, frob mach_msg args to set timeout on receive.
4480 (_hurdsig_rcv_interrupted_p): Function removed.
4481 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
4482 * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
4483 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
4484 * hurd/intr-msg.c: New file.
4485 * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
4486 (_hurdsig_rcv_interrupted_p): Declaration removed.
4487 (HURD_EINTR_RPC): Macro removed.
4488 (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
4489 these.
4490 * hurd/intr-rpc.h: New file.
4491 * hurd/intr-rpc.defs: Just import intr-rpc.h.
4492 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
4493 (interrupted_reply_port_location): Take new flag arg; only catch
4494 faults if it's set.
4495 (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
4496 No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
4497 &_hurd_intr_rpc_msg_in_trap. If before it, mutate state to simulate
4498 MACH_SEND_INTERRUPTED return; on it, interrupt the operation. All
4499 callers changed.
4500 * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
4501 * hurd/Makefile (distribute): Remove intr-rpc.awk.
4502 (sig): Add thread-cancel.
4503 (transform-user-stub, transform-user-stub-output): Variables removed.
4504 * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
4505 `__hurd_intr_rpc_*' to `__*'.
4506 (_hurd_intr_rpc_mach_msg): New function.
4507 (_hurd_thread_sigstate): Function removed.
4508 * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
4509 instead of __mach_msg inside HURD_EINTR_RPC macro.
4510
4511 * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
4512 to take ptrdiff_t arg.
4513
4514 * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
4515
4516 * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
4517
4518 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
4519 weak_alias): Use `extern' storage class.
4520
76894e2e
RM
4521Wed Aug 9 14:25:35 1995 Miles Bader <miles@geech.gnu.ai.mit.edu>
4522
4523 * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
4524 port-count parameters to __auth_makeauth.
4525 * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
4526
4527Tue Aug 8 12:22:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4528
4529 * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
4530
4531 * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
4532
4533Tue Aug 8 12:06:04 1995 Michael I. Bushnell, p/BSG <mib@duality.gnu.ai.mit.edu>
4534
4535 * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
4536 IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
4537 layer socket options.
4538 (IPPROTO_GGP): Delete obsolote protocol.
4539 (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
4540 (struct ip_mreq): New type.
4541
99a9e88e
RM
4542Mon Aug 7 14:04:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4543
b25c5d66
RM
4544 * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
4545
4546 * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
4547 (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
4548
99a9e88e
RM
4549 * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
4550 when __stdio_open fails with a code other than ENFILE or EMFILE.
4551
5e98d83c 4552Fri Aug 4 16:01:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507fcb75 4553
5e98d83c
RM
4554 * Makefile (headers): Added gnu-versions.h.
4555
4556Thu Aug 3 14:41:11 1995 Michael I. Bushnell <mib@duality.gnu.ai.mit.edu>
4557
4558 * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
4559 equality, not assignment, to test bitfields.
4560
4561Sat Jul 29 10:41:06 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
4562
4563 * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
4564 resolve AF_LOCAL addresses.
4565
4566 * sysdeps/mach/hurd/accept.c (accept): If the protocol family
4567 can't tell us what an address means, just return a zero-length
4568 buffer instead.
4569 * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
4570
4571Fri Jul 28 15:29:11 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
4572
4573 * sysdeps/mach/hurd/bind.c (bind): Don't use
4574 file_invoke_translator, as it doesn't work. Instead just lookup
4575 the translated node again, and hope we're not hit by any race
4576 conditions.
507fcb75 4577
958f803f
RM
4578Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4579
b8dc6a10
RM
4580 * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
4581 [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
4582 [start-installed-name-rule]: If this is defined, elide rule for
4583 $(objpfx)$(start-installed-name).
99a9e88e
RM
4584 * csu/initfini.c (SECTION): New macro, different definitions for
4585 #ifdef HAVE_ELF and not.
4586 (_init, _fini): Use that macro.
b8dc6a10
RM
4587 * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
4588 (start-installed-rule, start-installed-name-rule): New variables;
4589 specify crt1.o, created by our own rule.
4590 ($(objpfx)crt1.o): New rule.
4591 * configure.in: Require autoconf 2.4.2 or later. Change all
4592 AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
4593 prettify some messages.
4594 [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
4595 sections.
4596 * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
4597 this case rather than #ifdef HAVE_ELF.
4598 * config.h.in (HAVE_INITFINI): New macro.
99a9e88e 4599 * config.make.in (have-initfini): New variable, set by configure.
b8dc6a10 4600
4e1bac76
RM
4601 * stdio/vfscanf.c (conv_error): Simplify expression to avoid
4602 "value computed is not used" warning.
4603
4604 * Makeconfig (+gccwarn): Removed -Wconversion.
4605
4606 * csu/initfini.c (GLOBAL): Macro removed.
4607 (_init, _fini): Always define globally.
4608 * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
4609
3d61b63c
RM
4610 * asia, backward, europe, leapseconds, southamerica: New data from
4611 ADO's 95e.
4612
4613 * inet/Makefile (routines): Removed inet_addr.
4614 * inet/inet_addr.c: Moved to resolv/ subdirectory.
4615 * resolv/Makefile (routines): Added inet_addr.
4616 * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
4617 * resolv/gethnamaddr.c: Likewise.
4618 * resolv/getnetbyaddr.c: Likewise.
4619 * resolv/getnetbyname.c: Likewise.
4620 * resolv/getnetent.c: Likewise.
4621 * resolv/getnetnamadr.c: Likewise.
4622 * resolv/herror.c: Likewise.
4623 * resolv/nsap_addr.c: Likewise.
4624 * resolv/res_comp.c: Likewise.
4625 * resolv/res_debug.c: Likewise.
4626 * resolv/res_init.c: Likewise.
4627 * resolv/res_mkquery.c: Likewise.
4628 * resolv/res_query.c: Likewise.
4629 * resolv/res_send.c: Likewise.
4630 * resolv/resolv.h: Likewise.
4631 * resolv/sethostent.c: Likewise.
4632 * resolv/arpa/nameser.h: Likewise.
4633 * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
4634 [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
4635 its declarations (and doing so only #ifdef sun!).
99a9e88e 4636 * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
3d61b63c
RM
4637
4638 * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
4639 [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
4640
958f803f
RM
4641 * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
4642 if possible.
4643
4644 * mach/shortcut.awk: Emit decls for RPC.
4645
4646 * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
4647 weak_alias, strong_alias): Define using GCC __attribute__ syntax.
4648
4649 * Makerules ($(installed-libcs)): Depend on `lib' (only).
4650
874f1b9b
RM
4651Tue Jul 25 09:14:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4652
ff48a63c
RM
4653 * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
4654
4356cfd7
RM
4655 * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
4656
4657 * sysdeps/unix/sysv/ftime.S: New file.
4658
4659 * locale/locfile-parse.c (categories_write): Cast "" to char *.
4660
4661 * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
4662
4663 * time/strftime.c: Use year modulo 100 for %y.
4664
4665 * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
4666
4667 * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
4668 of one, to work around bug in sunos4.1.2 sed.
4669
874f1b9b
RM
4670 * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
4671 memchr instead of strlen to limit search for NUL by precision.
4672
51813e80
RM
4673Mon Jul 24 03:13:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4674
4675 * sysdeps/posix/pathconf.c: New file.
4676
d7e16e9e
RM
4677Sat Jul 22 20:53:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4678
4679 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
4680 before @PLT.
4681 * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
4682 * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
4683 * sysdeps/i386/bsd-setjmp.S: Likewise.
4684
9c9022dd
TBB
4685Sat Jul 22 19:58:54 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4686
4687 * inet/Makefile (routines): Added `ruserpass'.
4688 * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
4689 client. Modified to remove the fourth arg AACCT. Do nothing for
4690 the `account' and `macdef' keywords. Other incidental changes
4691 because we are not in the FTP source tree.
4692
439d1d45
RM
4693Sat Jul 22 01:56:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4694
9c9022dd
TBB
4695 * sysdeps/stub/init-posix.c: Removed stub warning.
4696
587dbc6f
RM
4697 * Makefile (autoconf-it): Make it executable and unwritable.
4698
4699 * configure.in (sysnames): Under --enable-debug-configure, spew
4700 potential sysnames.
4701
439d1d45
RM
4702 * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
4703 #ifdef PIC.
4704 (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
4705 * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
4706 jump insn.
4707
4708 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
4709 * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
4710 * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
4711 <sys/socketcall.h>. Save %ebx in call-clobbered %edx instead of
4712 stack. Use JUMPTARGET(syscall_error) in jump insn.
4713
4714 * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
4715
4716 * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
4717 ASM_TYPE_DIRECTIVE.
4718 (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
4719
86d2c878 4720 * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
439d1d45
RM
4721 Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
4722 * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
4723
439d1d45 4724 * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
86d2c878 4725 instead of unix/sysv.
439d1d45
RM
4726 * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
4727 socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
4728 to new directory sysdeps/unix/sysv/sysv4/linux.
4729 * sysdeps/unix/sysv/linux: Directory removed.
4730 * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
4731 to new directory sysdeps/unix/sysv/sysv4/linux/i386.
4732 * sysdeps/unix/sysv/linux/i386: Directory removed.
4733
9c9022dd
TBB
4734 Fixes to help Linux, inspired by drepper's work:
4735 * sysdeps/posix/utimes.c: New file.
4736 * sysdeps/generic/getdomain.c: New file.
4737 * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
4738 * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
4739 externals _dl_argc, _dl_argc, and _environ.
4740
584de3b9
TBB
4741Fri Jul 21 12:57:29 1995 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
4742
4743 * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
4744 EOPNOTSUPP as indications that the server has died.
4745 * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
4746 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
4747
ac00263e
JM
4748Mon Jul 17 08:45:40 1995 Jim Meyering (meyering@comco.com)
4749
4750 * strtol.c: Portability changes from Uli Drepper.
4751 [!STDC_HEADERS && !defined(NULL)]: Define NULL.
4752
d819080c
RM
4753Mon Jul 10 05:39:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4754
4755 * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
4756 DATA for the entry SP; DATA[-1] is always the return address
4757 location. In both cthreads and non-cthreads cases, use asm to
4758 force parameters into %eax and %ecx before return, and mutate
4759 DATA[-1] to return to specific asm code to set up the user from
4760 %eax and %ecx.
4761 [PIC] (_init): Caller changed.
4762 (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
4763 with SP unwound to argument data ptr.
4764
4765Thu Jul 6 14:28:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4766
4767 * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
4768 when 0x08000000 and up are not mapped.
4769
4770 * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
4771 before touching it.
4772 (lib%.so): Use -Wl to get -soname to ld.
4773
4774 * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
4775
4776 * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
4777
487253ea
RM
4778Tue Jun 20 02:18:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4779
4780 * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
4781 library's name including $(libprefix) and major version number.
4782
4783 * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
4784 in place of xcalloc.
4785
4786 * Makeconfig (prefix, exec_prefix, libprefix): Instead of
4787 `ifndef', use the $(origin) function to only set these if they are
4788 undefined, and not if they are defined to empty.
4789
4790 * gnu-versions.h: New file.
4791 * features.h (__GNU_LIBRARY__): Increase value to 5.
4792
d6e2f671
RM
4793Wed Jun 14 03:45:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4794
4795 * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
4796 expression, to avoid gcc's "value computed is not used" warning.
4797
4798 * libc-symbols.h (_elf_set_element): Give the set-element variable
4799 an `unused' attribute.
4800
4801 * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
4802 __attribute__ ((__const__)).
4803 * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
4804
4805 * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
4806 LINK->resource.next->resource.prevp when appropriate, not
4807 LINK->resource.next->thread.prevp!!!
4808
882087b9
RM
4809Tue Jun 13 15:45:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4810
df2a0c93
RM
4811 * configure.in (libc_cv_asm_set_directive): Make sure that the
4812 `.set' directive really worked by linking against a reference to
4813 the alias.
4814
882087b9
RM
4815 * sysdeps/stub/init-first.c: Don't include <hurd.h>.
4816 [PIC] (soinit): Renamed to (global) _init.
4817
1a2df358
RM
4818Mon Jun 12 13:15:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4819
882087b9
RM
4820 * malloc/Makefile (gmalloc-routines): Remove valloc.
4821 (dist-routines): Add it here.
4822
4823 * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
4824 emacs_loser_valloc to inhibit valloc declaration below.
4825
1a2df358
RM
4826 * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
4827 installation rules.
4828
4829 * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
4830 it uses the `.type' directive, which is necessary for shared
4831 libraries to work properly.
4832
5bf62f2d
RM
4833Thu Jun 8 02:50:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4834
f2b0f935
RM
4835 * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
4836 from zero fill.
4837
4838 * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
4839 if nonzero, don't let *REF satisfy the reference itself.
4840 * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
4841 * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
4842 _dl_lookup_symbol.
4843 * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
4844 R->r_offset to RESOLVE callback.
4845 * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
4846 satisfy the reference itself if its value equals the reloc's
4847 offset.
4848
4849 * elf/rtld.c (dl_main): Write a newline in fatal msg.
4850
4851 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
4852
5bf62f2d
RM
4853 * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
4854
4855 * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
4856 and user entry point addresses.
4857
4858 * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
4859 (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
4860
4861 * Makerules (install-lib.so): Don't include libc.so.
4862 [$(build-shared)=yes] (install): Depend on the installed libc.so file.
4863 [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
4864 install, depend on the installed $(install-lib.so) files.
4865 [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
4866
4867 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
4868 allocate high addresses to avoid random mappings appearing there.
4869 (mmap): Comment out mask; always pass zero.
4870
4871Tue Jun 6 13:34:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4872
4873 * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
4874 * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
4875
4876 * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
4877 when successful.
4878
4879 * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
4880 (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
4881 variables, using the `threadvars' buffer.
4882
4883 * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
4884 * sysdeps/i386/dl-runtime.c: Likewise.
4885
4886 * elf/rtld.c (dl_main): Add missing NULL terminating argument in
4887 _dl_sysdep_fatal call.
4888 (__assert_fail): Likewise.
4889
4890 * locale/Makefile (localedef-modules): Renamed ctype to
4891 locale-ctype so as not to conflict with the object file for
4892 ctype/ctype.c in the build directory.
4893
75598ca6
RM
4894Mon Jun 5 04:02:26 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4895
4896 * elf/elf.h (ELFMAG): Use \177 instead of \x7f. It seems GCC
4897 insists on seeing the following E as part of hex 7FE, and
4898 complaining that is wider than a byte.
4899
ded29119
RM
4900Sun Jun 4 22:14:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4901
4902 * hurd/Makefile (sig): Added thread-self.
4903 * hurd/hurd.h: Declare hurd_thread_self.
4904 * hurd/thread-self.c: New file.
4905
4906Thu Jun 1 12:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4907
4908 * elf/rtld.c: Initialize RTLD_MAP.l_type.
4909 * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
4910 the dynamic linker itself.
5bf62f2d
RM
4911 * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
4912 lt_interpreter, first undo relocation done during bootstrapping.
ded29119 4913
a1a9d215
RM
4914Tue May 30 15:52:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4915
4916 * mach/Makefile (server-interfaces): Removed notify and
4917 device_reply. For shlibs with eager binding, libmachuser.so must
4918 not refer to any functions not defined in libc.
4919
6f6ce652
JM
4920Sat May 27 16:23:22 1995 Jim Meyering (meyering@comco.com)
4921
4922 * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
4923 to avoid error from Irix-4.0.5's C compiler. From Kaveh Ghazi.
4924
7cc645ed
RM
4925Fri May 26 13:00:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4926
4927 * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
4928 pending signals if the thread is in a critical section. It will
4929 send us a msg when it finishes.
4930
4931 * sysdeps/mach/hurd/pathconf.c: New file.
4932 * sysdeps/mach/hurd/fpathconf.c: New file.
4933
4934 * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
4935 SIGCHLD when the SA_NOCLDSTOP bit actually changes.
4936
a692d003
RM
4937Sun May 21 05:05:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4938
4939 * elf/Makefile (ld.so): Use -nostartfiles in addition to
4940 -nostdlib.
4941
3b5a8107
JM
4942Sun May 21 02:01:29 1995 Jim Meyering (meyering@comco.com)
4943
4944 * sysdeps/generic/memchr.c: Don't include <string.h> at all.
4945 HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
4946 memchr unless one manually arranges for them to define __STDC__.
4947
a2fe9c76
RM
4948Fri May 19 17:16:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4949
4950 * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
4951 args on stack from kernel.
4952
4953 * posix/Makefile, sysdeps/alpha/Makefile,
4954 * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
4955 * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
4956 in the absence of CVS dirs.
4957
4958 * hurd/hurdstartup.c: Don't call __mach_init. Grok args from the
4959 kernel on the stack properly.
4960
4961 * set-init.c: Never call _init/_fini; just run __libc_subinit.
4962
4963 * Makerules (LDFLAGS-c.so): Add -nostartfiles.
4964 * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
4965
4966 * configure.in: Move defaulting of --with-elf and --with-gnu-*
4967 based on host os outside the AC_CACHE_VAL for the sysdirs
4968 calculation.
4969
4970 * Makeconfig (localedir, nlsdir): New variables.
4971
4972 * values.h: New file.
4973 * Makefile (headers): Add values.h.
4974
4975 * locale/Makefile (distribute): Add error.h.
4976 * locale/localedef.c: Include "error.h".
4977 (main): Use error_message_count instead of warning_cntr.
4978
2b83a2a4
RM
4979Wed May 17 16:50:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4980
4981 Merged 1003.2 locale and localedef programs by Ulrich Drepper.
4982 * locale/charmap.c: New file.
4983 * locale/collate.c: New file.
4984 * locale/config.h: New file.
4985 * locale/ctype.c: New file.
4986 * locale/ctypedump.c: New file.
4987 * locale/hash.c: New file.
4988 * locale/hash.h: New file.
4989 * locale/iso-4217.def: New file.
4990 * locale/keyword.gperf: New file.
4991 * locale/keyword.h: New file.
4992 * locale/libintl.h: New file.
4993 * locale/locale.c: New file.
4994 * locale/localedef.c: New file.
4995 * locale/localedef.h: New file.
4996 * locale/locfile-lex.c: New file.
4997 * locale/locfile-parse.c: New file.
4998 * locale/messages.c: New file.
4999 * locale/monetary.c: New file.
5000 * locale/numeric.c: New file.
5001 * locale/token.h: New file.
5002
5003 * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
5004 * posix/Makefile (headers): Add regex.h.
5005 (routines): Add regex.
5006 (gpl2lgpl): Add regex.c and regex.h.
5007
5008Tue May 16 17:35:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5009
5010 * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
5011 instead of hard-coding "/share/locale".
5012
74aa5ce5
RM
5013Sat May 13 02:16:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5014
5015 * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
5016
5017Fri May 12 15:31:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5018
5019 * elf/elf.h (ELFMAG, SELFMAG): New macros.
5020
5021Fri May 12 11:24:53 1995 Michael I Bushnell <mib@duality.gnu.ai.mit.edu>
5022
5023 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
5024 the case where it starts out less than _hurd_dtablesize.
5025
5026Thu May 11 20:51:05 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5027
5028 * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
5029 make sure the new size exceeds FIRST_FD.
5030
99b306dc
RM
5031Wed May 10 21:00:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5032
5033 * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
5034
1d26b22c
RM
5035Tue May 9 01:26:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5036
99b306dc
RM
5037 * Makerules (install-lib.so): Add %.so for each %_pic.a.
5038
1d26b22c
RM
5039 * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
5040 the first thing in .data.
5041
5042 * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
5043
5044 * hurd/hurdstartup.h: New file.
5045
5046 * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
5047 are the same. Use `jz' instead of `jeq'.
5048
5049 * Makeconfig (config.make): Depend on config.status, and run it to
5050 update.
5051 (config.status): New target; depend on configure.
5052 If target (config.status) exists, run it with --recheck to update;
5053 if not, give error msg saying to run confiugre by hand.
5054 * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
5055 (sysd-Makefile-force): Set this variable to FORCE in this case, to
5056 force a rebuild of sysd-Makefile.
5057 (sysd-Makefile): Depend on $(sysd-Makefile-force).
5058 Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
5059 [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
5060 variable to FORCE in this case, to force a rebuild of sysd-rules.
5061 (sysd-rules): Depend on $(sysd-rules-force).
5062 Write into the file sysd-rules-sysdirs:=$(sysdirs).
86d2c878 5063
1d26b22c 5064 * Makerules (LDFLAGS-c.so): Change ld option -interp to
86d2c878 5065 -dynamic-linker.
1d26b22c
RM
5066
5067 * Makerules (do-install-program): New canned sequence.
5068 (install-bin, install-sbin): Use it.
5069 (install for lib*.so): Use it instead of $(do-install).
5070 Fix .so installation rules to handle lib*.so and *.so, deal with
5071 $(libprefix) right, and install *.so as *.so$($(*.so)-version);
5072 i.e. "libc.so-version = .1".
5073
5074Mon May 8 05:10:25 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5075
5076 * elf/do-rel.h: New file, split out of dynamic-link.h.
5077 * elf/Makefile (distribute): Add do-rel.h.
5078
421f82e5
RM
5079Sat May 6 11:06:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5080
5081 * Makeconfig (+gccwarn): Add -Winline.
5082
5083 * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
5084 set, avoid abort_rpcs, and use reply and intr ports saved in
5085 SS->context.
5086 * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
5087 from SS->context. Don't clear SS->context.
5088 * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
5089 setting SS->context. If msg_sig_post returns, re-lock and clear
5090 SS->context.
5091
5092Fri May 5 10:37:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5093
5094 * mach/Makefile (errsystems.c): Comment out generation rule.
5095
5096 * sysdeps/mach/_strerror.c: Consider a system unknown if its
5097 bad_sub member is null.
5098
5099 * mach/mig-alloc.c: Add weak alias to non-__ name.
5100
e4448b6f
RM
5101Wed May 3 11:56:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5102
5103 * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
5104
08162fa8
RM
5105Tue May 2 01:52:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5106
e4448b6f
RM
5107 * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
5108 function. Duh.
5109
5110 * hurd/Makefile (distribute): Added hurdstartup.h.
5111 * hurd/hurd.h: Remove _hurd_startup decl.
5112
5113 * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
5114 ((__unused__)) instead of gratuitous self reference.
5115
5116 * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
5117 table if FD2 doesn't fit.
5118
5119 * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
5120 not the current table size.
5121
d66e34cd
RM
5122 * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
5123
08162fa8
RM
5124 Implemented runtime dynamic linker to support ELF shared libraries.
5125 * elf/Makefile: Added rules to make ld.so and libdl.
5126 * elf/dl-error.c: New file.
5127 * elf/dl-fini.c: New file.
5128 * elf/dl-init.c: New file.
5129 * elf/dl-load.c: New file.
5130 * elf/dl-lookup.c: New file.
5131 * elf/dl-object.c: New file.
5132 * elf/dl-reloc.c: New file.
5133 * elf/dlclose.c: New file.
5134 * elf/dlerror.c: New file.
5135 * elf/dlopen.c: New file.
5136 * elf/dlsym.c: New file.
5137 * elf/dynamic-link.h: New file.
5138 * elf/link.h: New file.
5139 * elf/rtld.c: New file.
d66e34cd
RM
5140 * sysdeps/i386/dl-machine.h: New file.
5141 * sysdeps/stub/dl-machine.h: New file.
5142 * sysdeps/i386/dl-runtime.c: New file.
5143 * sysdeps/stub/dl-runtime.c: New file.
5144 * sysdeps/i386/elf/start.S: New file.
5145 * sysdeps/generic/dl-sysdep.c: New file.
5146 * sysdeps/mach/hurd/dl-sysdep.c: New file.
99b306dc 5147 * sysdeps/mach/hurd/i386/init-first.c: New file.
e4448b6f
RM
5148 * sysdeps/i386/init-first.c: New file.
5149 * sysdeps/stub/init-first.c: New file.
86d2c878 5150
08162fa8
RM
5151Mon May 1 18:48:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5152
5153 * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
5154 libc.so runnable.
5155 * version.c (__libc_print_version): Add "et al" and missing NL to
5156 author credit.
5157
b7eb8445
RM
5158Sat Apr 29 15:46:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5159
5160 * posix/glob.c (S_ISDIR): Define if undefined.
5161
10ceac89
RM
5162Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5163
5164 * configure.in: Unless --without-fp, prepend */fpu before each
5165 machine dir in $mach; don't prepend FPU dirs at end. If
5166 --with-elf, prepend MACHINE/elf directories at end; don't insert
5167 them into $mach.
5168
5169 * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
5170
5171 * sysdeps/stub/clock.c: Added stub warning.
5172 * sysdeps/stub/dirfd.c: Likewise.
5173 * sysdeps/stub/exc2signal.c: Likewise.
5174 * sysdeps/stub/fdopen.c: Likewise.
5175 * sysdeps/stub/flock.c: Likewise.
5176 * sysdeps/stub/fpathconf.c: Likewise.
5177 * sysdeps/stub/ftruncate.c: Likewise.
5178 * sysdeps/stub/gtty.c: Likewise.
5179 * sysdeps/stub/isatty.c: Likewise.
5180 * sysdeps/stub/killpg.c: Likewise.
5181 * sysdeps/stub/madvise.c: Likewise.
5182 * sysdeps/stub/mkstemp.c: Likewise.
5183 * sysdeps/stub/mktemp.c: Likewise.
5184 * sysdeps/stub/mprotect.c: Likewise.
5185 * sysdeps/stub/msync.c: Likewise.
5186 * sysdeps/stub/pathconf.c: Likewise.
5187 * sysdeps/stub/poll.c: Likewise.
5188 * sysdeps/stub/raise.c: Likewise.
5189 * sysdeps/stub/readv.c: Likewise.
5190 * sysdeps/stub/setenv.c: Likewise.
5191 * sysdeps/stub/setlogin.c: Likewise.
5192 * sysdeps/stub/sigaltstack.c: Likewise.
5193 * sysdeps/stub/sigintr.c: Likewise.
5194 * sysdeps/stub/sigstack.c: Likewise.
5195 * sysdeps/stub/sleep.c: Likewise.
5196 * sysdeps/stub/sstk.c: Likewise.
5197 * sysdeps/stub/stime.c: Likewise.
5198 * sysdeps/stub/stty.c: Likewise.
5199 * sysdeps/stub/syscall.c: Likewise.
5200 * sysdeps/stub/sysconf.c: Likewise.
5201 * sysdeps/stub/truncate.c: Likewise.
5202 * sysdeps/stub/ualarm.c: Likewise.
5203 * sysdeps/stub/usleep.c: Likewise.
5204 * sysdeps/stub/utimes.c: Likewise.
5205 * sysdeps/stub/writev.c: Likewise.
5206
5207 * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
5208
5209Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5210
5211 * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
5212
5213Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5214
5215 * posix/glob.c (glob): If GLOB_MARK set, stat names to find
5216 directories and append slashes to them in final pass before
5217 sorting.
5218 (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
5219 slash; never append it here.
5220
11872325
RM
5221Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5222
5223 * mach/Machrules [interface-library]
5224 (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
5225 -nostdlib.
5226
5227 * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed. Lock
5228 _hurd_siglock only around initial task creation in parent. Use
5229 _hurd_critical_section_unlock at end. Handle dead name rights
5230 properly, and deal with a send right dying while we try to copy
5231 it. For the time being, use assert_perror for kernel and proc RPC
5232 failures.
5233
5234Fri Apr 21 01:10:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5235
5236 * extra-lib.mk: Don't include $(o-iterator); construct it by hand
5237 using $(object-suffixes-$(lib)) instead.
5238
5239 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
5240
5241 * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
5242 (LDFLAGS-c.so): New variable.
5243
5244 * resolv/res_init.c (res_init): Don't clobber _res.options with
5245 RES_DEFAULT. If RES_INIT is clear, OR in RES_DEFAULT.
5246
5247 * hurd/hurd.h: Declare _hurd_startup.
5248 * hurd/hurdstartup.c: New file.
5249 * hurd/Makefile (routines): Add hurdstartup.
5250
11d90def
RM
5251Thu Apr 20 22:23:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5252
b96bdcd7
RM
5253 * hurd/hurdsig.c: Use assert_perror for many calls which should
5254 never fail and previously were not checked.
5255
11d90def
RM
5256 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5257 Point the return address for sigreturn's frame at a "hlt" insn so
5258 it will definitely crash if sigreturn returns.
5259
0ac2e7d8
BK
5260Wed Apr 19 18:40:11 1995 Brendan Kehoe (brendan@zen.org)
5261
5262 * time/tzset.c (__tzname, __daylight, __timezone): Don't check
11d90def 5263 HAVE_WEAK_SYMBOLS for doing weak_alias.
0ac2e7d8 5264
f4153e13
RM
5265Wed Apr 19 18:12:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5266
5267 * configure.in: Move $os tests to set $elf et al earlier, before
5268 construction of $sysnames. Instead of prepending MACHINE/elf to
5269 $sysnames, append &/elf after each elt appended to $mach.
65b3cbcb 5270
f4153e13 5271Tue Apr 18 14:00:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
67be1ecf 5272
65b3cbcb
RM
5273 * configure.in (libc_cv_asm_global_directive): New check to define
5274 ASM_GLOBAL_DIRECTIVE.
5275 * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
d02907df
RM
5276 * libc-symbols.h (strong_alias_asm, strong_alias): Use
5277 ASM_GLOBAL_DIRECTIVE on the alias.
65b3cbcb
RM
5278
5279 * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
5280 HAVE_WEAK_SYMBOLS" #defns.
5281
5fa25886
BK
5282Mon Apr 17 12:02:49 1995 Brendan Kehoe (brendan@zen.org)
5283
5284 * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
5285 of the byte that was zero, so we return a valid number.
5286
e0585da1
BK
5287Sun Apr 16 03:23:09 1995 Brendan Kehoe (brendan@zen.org)
5288
5fa25886 5289 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
e0585da1
BK
5290 NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
5291
dce38123
BK
5292Fri Apr 14 18:49:03 1995 Brendan Kehoe (brendan@zen.org)
5293
fc40c039
BK
5294 * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
5295 [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
5296 * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
5297 [BITS_PER_MP_LIMB == 64]: Likewise.
5298
d619f2a8
BK
5299 * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
5300 * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
5301 * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
5302 * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
5303 * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
5304 * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
5305 * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
5306 * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
5307 * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
5308 * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
5309 * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
5310
5311 * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
77162807
BK
5312 * sysdeps/unix/mips/fork.S (fork): Likewise.
5313 * sysdeps/unix/mips/pipe.S (fork): Likewise.
5314 * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
5315 * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
5316 * sysdeps/unix/mips/wait.S (__handler): Likewise.
5317 * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
5318 * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
5319 * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
5320 * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
5321 * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
5322 * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
5323 * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
5324 * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
5325 * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
5326 * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise. Use `$0'
5327 instead of `zero' for the li instruction.
5328
dfd5ddb7
BK
5329 * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
5330 preprocessor comments, not assembler comments.
fa21d693 5331 * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
dce38123
BK
5332 * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
5333
eb712cf1
RM
5334Fri Apr 14 15:53:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5335
5336 * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
5337 in place of inline.
5338
6e33fad3
RM
5339Thu Apr 13 09:45:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5340
e215c478 5341 * Makefile (distribute): Add ChangeLog.[0-9].
335aa320 5342
e215c478
RM
5343 * configure.in: Add check for .set directive.
5344 * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
335aa320
RM
5345 * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
5346 strong_alias_asm): Use `foo = bar' syntax instead.
e215c478
RM
5347
5348 * Makerules [! subdir] (O%-lib): Don't prepend ../.
5349
5350 * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
5351
335aa320
RM
5352 * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move
5353 $host_os checks to set gnu_ld/as and elf before sysdirs
5354 generation. Fix $with_fp test.
5355 [$elf=yes]: Prepend MACHINE/elf directory.
5356
6e33fad3
RM
5357 * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
5358 being cleared are already known to be set. Thanks Ulrich.
5359
6432a779
RM
5360Wed Apr 12 23:27:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5361
5362 * posix/environ.c: Add weak alias `_environ'.
5363
53afa8d9
RM
5364Tue Apr 11 20:38:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5365
5366 * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
5367 * sysdeps/i386/sub_n.S [PIC]: Likewise.
5368
217d85b9
RM
5369Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5370
53afa8d9
RM
5371 * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
5372 word `const'.
5373
5374 * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
5375 $(foo-$(suffix $@)).
5376
5377 * manual/Makefile (chapters-incl): Filter out summary.texi.
5378
217d85b9
RM
5379 * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
5380 a weak symbol instead of literal "STRTOF".
5381
5382 * locale/setlocale.c: Work around ld bug: don't weakify refs to
5383 _nl_{current,C}_*.
5384
8c0dc19c
RM
5385Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5386
5387 * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
5388
5389 * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
5390 * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
5391
5392 * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
5393 #ifdef emacs, but only #ifndef memmove.
5394 * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
5395 safe_bcopy.
5396 (memmove): Define only if undefined.
5397
73fbb9a5
RM
5398Sat Apr 8 00:40:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5399
6aa8372e
RM
5400 * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
5401 sure these are simply-expanded variables.
5402
883bc19b
RM
5403 * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
5404 mmap call.
5405
5406 * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
5407 for these too.
5408
5409 * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
5410 set c_oflag value.
5411
5412 * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
5413
5414 * locale/Makefile (categories): Uncomment collate.
5415 * locale/lc-collate.c: New file.
5416
8ab69eb3
RM
5417 * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
5418 #ifdef emacs.
5419 * malloc/realloc.c: Likewise.
5420
8c0dc19c
RM
5421 * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
5422 (_itoa): Use it in defn.
8ab69eb3
RM
5423 * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
5424 "_itoa.h".
5425 (_itoa): Function removed.
5426
73fbb9a5
RM
5427 * malloc/free.c: Remove use of `assert'.
5428
5429 * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
5430 __malloc_safe_bcopy; #define safe_bcopy.
5431 * malloc/free.c: Cope with systems lacking `memmove'.
5432 (_free_internal): Cast result of _malloc_internal.
5433
4bca5a35
RM
5434Wed Apr 5 00:13:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5435
e627021e
RM
5436 * hurd/hurdinline.c: Include signal.h first, so we don't define
5437 its inlines too.
5438
5439 * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
5440 of -1 to avoid compiler warning.
5441
5442 * configure.in (host_os=linux*): Set elf=yes for this, not just
5443 linux*elf*.
5444
c0fef53b
RM
5445 * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
5446 and open.
5447
4bca5a35
RM
5448 * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
5449
45b28a8f
RM
5450Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5451
fa0ad204
RM
5452 * sysdeps/unix/start.c: Remove spurious decl and #endif.
5453
45b28a8f
RM
5454 * misc/progname.c (program_invocation_name,
5455 program_invocation_short_name): Make these initialized data
5456 definitions.
5457
5458 * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
5459 so gcc doesn't optimize out the function entirely.
5460
e607b492
RM
5461Sun Apr 2 13:13:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5462
c4bf5a3e
RM
5463 * posix/execvp.c: Don't use stat to search path; just try execv
5464 until it works.
5465
e607b492
RM
5466 * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
5467 SS->active_resources, so that _hurdsig_longjmp_from_handler will
5468 be called when a longjmp unwinds the signal frame.
5469 * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
5470 SS->active_resources chain added by _hurd_setup_sighandler.
5471 * hurd/sigunwind.c: New file.
5472 * hurd/Makefile (sig): Add sigunwind.
5473
5474 * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
5475
5476 * MakeTAGS (tags-sources): Include $(all-dist).
5477 [subdir] (all-dist): Define to $(distribute).
5478
2f8033d6
RM
5479Sat Apr 1 00:08:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5480
193ce8dc
RM
5481 * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
5482 parent objdirs.
5483
5484 * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
5485 filtering out $($(lib)-inhibit-o); use that instead of
5486 $(object-suffixes) in all the other variables.
5487
2f8033d6
RM
5488 * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
5489 if undefined.
5490
5491 * string/strxfrm.c: Just copy the string (for now).
5492 * string/strcoll.c: Just call strcmp (for now).
5493
5494 * mach/Makefile (lock): Add mutex-init.
5495 * mach/mutex-solid.c (_cthread_mutex_lock_routine,
5496 _cthread_mutex_unlock_routine): Variables removed.
5497 (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
5498 (__mutex_init): Function moved to new file mutex-init.c.
5499 * mach/mutex-init.c: New file, broken out of mutex-solid.c.
5500
67188fe6
BK
5501Thu Mar 30 20:43:02 1995 Brendan Kehoe <brendan@zen.org>
5502
5503 * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
0a648051 5504 * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
67188fe6 5505
b1f11361
RM
5506Thu Mar 30 01:38:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5507
5508 * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
5509 both are zero).
5510
a9df8829
RM
5511Wed Mar 29 11:26:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5512
b1f11361
RM
5513 * elf/dlfcn.h: New file.
5514
ea7d9938
RM
5515 * Make-dist (README): Commit it to CVS if there is a CVS directory.
5516
a9df8829
RM
5517 More changes from Germano Caronni <caronni@tik.ethz.ch>:
5518 * malloc/free.c: Relocate _heapinfo when that allows us to return
5519 core to the system.
5520
5521 * malloc/malloc.c: Move #include <errno.h> outside #ifndef
5522 _MALLOC_INTERNAL.
5523
1474b80f
RM
5524Mon Mar 27 02:23:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5525
c316b486
RM
5526 * mach/Makefile (headers): Add mach/mach_traps.h.
5527
5528 * Makerules ($(installed-libcs) rule): Fix typos.
5529
342414a6
RM
5530 * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
5531 * sysdeps/stub/revoke.c: New file.
5532 * misc/Makefile (routines): Add revoke.
5533 * posix/unistd.h [__USE_BSD] (revoke): Declare it.
5534 * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
5535 (forkpty): Declare login_tty.
5536 * misc/logwtmp.c (logwtmp): Declare to return void.
5537 * misc/login_tty.c (login_tty): Include unistd.h. Declare return type.
5538
1474b80f
RM
5539 * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
5540
5541 * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
5542 unless L_SET already defined.
5543 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
5544 already defined.
5545
5546 Incorporated -lutil library from 4.4-Lite.
5547 * misc/Makefile (extra-libs, libutil-routines): New variables.
5548 * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
5549 sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
5550
5551 Support simple, light-weight unwind-protect mechanism for longjmp.
5552 * setjmp/longjmp.c: Call _longjmp_unwind first thing.
5553 * sysdeps/mach/hurd/jmp-unwind.c: New file.
5554 * sysdeps/stub/jmp-unwind.c: New file.
5555 * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
5556 * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
5557 * setjmp/Makefile (routines): Add jmp-unwind.
5558 * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
5559 `prevp' members into new substructure `resource'; add another such
5560 substructure `thread' and members `cleanup' (function ptr) and
5561 `cleanup_data' (generic ptr).
5562 (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
5563 into the `_hurd_self_sigstate ()->active_resources' list via the
5564 `thread' substructure.
5565 * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
5566 (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
5567 LINK->cleanup_data' to the port extracted.
5568 * hurd/hurd/signal.h (struct hurd_sigstate): New member
5569 `active_resources'.
5570 * hurd/port-cleanup.c: New file.
5571 * hurd/Makefile (routines): Add port-cleanup.
5572
5573 * malloc/malloc.c: Include errno.h.
5574
5575Sat Mar 25 18:24:21 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5576
5577 * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
5578
a04e7405
RM
5579Fri Mar 24 02:35:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5580
d365fd2c
RM
5581 * misc/Makefile (headers): Add utmp.h.
5582 * misc/utmp.h: New file, incorporated from 4.4-Lite.
5583
a04e7405
RM
5584 * stdio/printf-parse.h: New file, mostly written by drepper.
5585 * stdio/vfprintf.c: Rewritten, mostly by drepper.
5586 * stdio/printf-prs.c: Rewritten.
5587 * stdio/Makefile (distribute): Add printf-parse.h.
5588
5589Thu Mar 23 22:03:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5590
5591 * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
5592 with asm name. Just do a ".set start, __start".
5593
5594 * malloc/realloc.c: Call _free_internal instead of free.
5595
49e522bf
RM
5596Tue Mar 21 00:14:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5597
5598 * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
5599 directory, open LOCALE/LC_*/SYS_LC_* instead.
5600
1e9dc039
RM
5601Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5602
49e522bf
RM
5603 * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
5604 stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
5605 stdio/gen-mpn-copy: Files moved to stdlib.
5606 * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
a04e7405 5607 * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
49e522bf
RM
5608 * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
5609 headers.
5610 * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
5611 headers.
5612
6bf02878
RM
5613 * Makefile (parent-mostlyclean): Don't use $(libc.a).
5614 (parent-clean): Use $(objpfx) to find sysd-*.
5615 * Rules (generated): Append dummy.o dummy.c.
4788ab46
RM
5616 * Makerules (lib): Depend on lib-noranlib.
5617 (lib-noranlib): Depend on $(install-lib) in objdir.
5618 (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
5619 from objdir. Don't remove TAGS; it comes in the distribution.
5620
5621 * malloc/malloc.c (morecore): Save errno around call to
5622 _realloc_internal. Don't account for the additional new blocks of
5623 the info table itself when choosing the new table size for the
5624 first crack; if it succeeds, the new blocks will have been found
5625 in existing free space already described by the existing info
5626 table.
5627
1e9dc039
RM
5628 * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
5629 read-ahead character.
5630
be69ea41
RM
5631Sat Mar 18 14:07:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5632
1e9dc039
RM
5633 * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
5634 hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
5635 hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
5636 hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
5637 Get anal with unsigned to pacify compiler.
5638
be69ea41
RM
5639 * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
5640 means %d from 3rd arg).
5641
5642 * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
5643
5644 * stdlib/strtol.c: If !GROUP, set END to null. In loop, test only
5645 END, not GROUP.
5646
693e7b96
RM
5647Fri Mar 17 12:58:37 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5648
a38f13ba
RM
5649 * Makefile (subdirs): Put elf last.
5650
693e7b96
RM
5651 * sunrpc/Makefile (install-lib): Variable removed.
5652 (rpcsvc-objs): Variable removed.
5653 (extra-objs): Don't include $(rpcsvc-objs).
5654 (extra-libs): New variable, contains librpcsvc.
5655 (librpcsvc-routines): New variable.
5656 (librpcsvc-inhibit-o): New variable, contains .so.
5657 (omit-deps): Set this to $(librpcsvc-routines).
5658 ($(objpfx)rpcgen): Don't use $(libc.a).
5659 (lib, $(objpfx)librpcsvc.a): Targets removed.
5660
5661 * o-iterator.mk, extra-lib.mk: New files.
5662 * Makerules (o-iterator): New variable.
5663 [extra-libs]: Include extra-lib.mk to generate rules for each word
5664 of $(extra-libs).
5665 * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
5666
b3fe1350
UD
5667Fri Mar 17 13:28:04 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
5668
5669 * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
68b3ef49 5670 Handle 80-bit denormalized numbers correctly.
b3fe1350 5671
68b3ef49 5672 * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
693e7b96 5673 (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
68b3ef49
RM
5674 * stdlib/strtod.c (RETURN): Add parentheses around return value.
5675 (round_and_return): Correct handling of denormalized numbers.
b3fe1350 5676
693e7b96
RM
5677 * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
5678 LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
5679 exponent.
b3fe1350 5680
f0bf9cb9
RM
5681Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5682
5683 * locale/C-ctype.c: New correct data generated by drepper.
5684
5685 * Rules: Don't use $(libc.a).
5686
5687 Parsing of grouped numbers contributed by Ulrich Drepper.
5688 * stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
5689 new flag arg; if nonzero, parse locale-dependent thousands
5690 grouping and interpret only the prefix that is correctly grouped.
5691 (strtol): Define this to call _strtol_internal with zero for the flag.
5692 Use a weak symbol for the definition.
5693 * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
5694 Check for the exponent of the number overflowing the float format.
5695 * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
5696 (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
5697 [__OPTIMIZE__]: Define inline functions calling those.
c45e5aa9
RM
5698 * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
5699 (strtold): Remove weak alias.
5700 * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
5701 (strtof): Remove weak alias.
f0bf9cb9
RM
5702 * stdlib/grouping.h: New file, written by drepper.
5703 * stdlib/Makefile (distribute): Add grouping.h.
5704 * stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
5705 __strtoX_internal with the grouping flag set iff the modifier is
5706 present.
5707
5708Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5709
5710 * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
5711
5712 * mach/Machrules: Produce static deps for all object flavors.
5713 [interface-library]: Remove all these variables and rules.
5714 ($(interface-library)-routines): Define this variable.
5715 (extra-libs): Append $(interface-library) to this.
5716 * mach/Makefile (interface-library): Omit .a suffix.
5717 * hurd/Makefile: Likewise.
5718
5719Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5720
5721 * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
5722 early if no new data in buffer after priming.
5723
01a36ad3
RM
5724Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5725
f0bf9cb9
RM
5726 * Makerules (object-suffixes, libtypes): Move all these variables
5727 to Makeconfig.
5728 * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
5729
5730 * Makerules (build-extra-lib): New canned sequence.
5731
5732 * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
5733 fix uses of FILE and PORT. Remove bogus weak alias for `access'.
5734
5735 * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
5736 Add missing semicolon.
5737 * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
5738 hurd_fd *' temp var, since DIRP->__fd is a `void *'.
5739 * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
5740
5741 * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
5742 locale data format is implemented.
5743
5744 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5745 Pass &__sigreturn on the stack to the trampoline code, so it is
5746 not position-dependent.
5747
5748 * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
5749 Don't include <stdarg.h>.
86d2c878 5750 (__printf_fp): Last arg ARGS is now `const void **const';
f0bf9cb9
RM
5751 dereference ARGS[0] instead of using va_arg.
5752
5753 * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
5754 loop to install data.
5755
5756 * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
5757 to extract number from item code.
5758 (_nl_load_locale): Close the descriptor when finished.
5759
5760 * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
5761 place of malloc.
5762
5763 * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
5764
67a3a8ac
RM
5765 * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
5766 to avoid warning.
5767 * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
5768 int to avoid warning.
5769
51f75302
RM
5770 Support building several flavors of objects and libraries.
5771 * Makerules (libtypes, object-suffixes): New variables.
5772 (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
5773 suffix.
5774 (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
5775 (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
5776 (close-check-inhibit-asm): Append a semicolon.
5777 (sysd-rules): Generate rules for each object suffix.
5778 (compile.S, compile.c): Always assume gcc.
5779 (OUTPUT_OPTION): Define unconditionally.
5780 (+make-deps): In generated rule, produce a dependent for each
5781 object suffix.
5782 (.SUFFIXES): Add $(object-suffixes) in place of .o.
5783 (.PRECIOUS): Make all suffix flavors precious.
5784 ($(libc.a)): Target removed.
5785 (lib): Depend on each enabled libtype.
5786 (libobjs, objects, objs): Depend on all the enabled object flavors.
5787 (lib%.a): New pattern rule.
5788 [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
5789 (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
5790 to make one for each flavor; library dep rule likewise rewritten.
5791 ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
5792 flavor.
5793 (symdef.%): New pattern rule; helper for __.SYMDEF targets.
5794 (installed-libcs): New variable.
5795 (install): Depend on that instead of
5796 $(libdir)/lib$(libprefix)$(libc-name).a;
5797 that file's rule rewritten to make each enabled libtype.
5798 (install-lib.so): New variable, filters lib%.so from $(install-lib).
5799 (install-lib): Filter out lib%.so after setting install-lib.so.
5800 [$(build-shared)=yes] (install): Install $(install-lib.so).
5801 (common-mostlyclean): Remove all flavors of objects.
01a36ad3
RM
5802 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
5803 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
5804
424f8c09
RM
5805Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5806
01a36ad3
RM
5807 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
5808 * sysdeps/stub/pause.c: Likewise.
5809 * sysdeps/stub/time.c: Likewise.
5810
5811 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
5812 locale data format is implemented.
5813 * stdlib/wctomb.c: Likewise.
5814
5815 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
5816 gcc bug is fixed.
5817 * mach/errsystems.c: File removed.
5818
5819 * Makeconfig (libc.a): Variable removed.
5820 (+link): Don't use it.
5821
5822 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
5823 assuming `yes'.
5824
424f8c09
RM
5825 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
5826 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
5827 don't use __realloc_hook.
5828 (realloc): New function; call __realloc_hook ?: _realloc_internal.
5829 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
5830 don't use __malloc_hook.
5831 (malloc): New function; call __malloc_hook ?: _malloc_internal.
4788ab46 5832 Changes from Germano Caronni <caronni@tik.ethz.ch>:
424f8c09
RM
5833 (initialize): Set up _heaplimit to cover the _heapinfo table.
5834 (morecore_recursing): New static variable.
5835 (morecore): If that is set, return null immediately.
5836 When growing the info table, before getting new core from the
5837 system for it, set morecore_recursing and try moving _heapinfo
5838 with _realloc_internal. When that fails and we get new core, set
5839 _heaplimit to cover the core for the new _heapinfo table.
5840 (register_heapinfo): New function. Record the _heapinfo table's
5841 own blocks in that table and in the statistics variables.
5842 (initialize, _malloc_internal): Use it after allocating new table.
5843
5844Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
5845
5846 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
5847 by other packages.
5848 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
5849
cfe33fd9
RM
5850Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5851
424f8c09
RM
5852 * mach/errorlib.h (errors): Use const for decl.
5853
5854 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
5855 (decode): New inline function; decode signed 32-bit integers, and
5856 sign-extend properly when long is longer than 32 bits.
5857 (__tzfile_read): Changed all uses of uc2ul to decode.
5858 Decode the transition times properly when sizeof (time_t) > 4.
5859
cfe33fd9
RM
5860 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
5861 (printf_function): Make last arg ARGS a vector of pointers instead of a
5862 pointer to va_list.
5863
5864Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
5865
424f8c09
RM
5866 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
5867 (buffered_vfprintf): Remove line buffer when flush failed.
cfe33fd9
RM
5868
5869Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5870
5871 * time/tzfile.c (struct ttinfo): New member `isgmt'.
5872 (__tzfile_read): Read isgmt flags for each type.
5873 (__tzfile_default): When using TZDEFRULES DST rules, adjust
5874 transition times according to the isstd and isgmt flags for the
5875 types of each transition, and adjust each transition to point to
5876 type index either 0 or 1. Reset type indices 0 and 1 to describe
5877 the user's settings.
5878
d8cc5f0c
RM
5879Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5880
40deae08
RM
5881 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
5882 into just CLASS. Add standard/optional flag to all items.
5883
5884 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
5885
5886 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
5887 Rearrange defn to satisfy compiler.
5888
5889 * locale/localeinfo.h: Declare _nl_current.
5890
ff3d7ed3
RM
5891 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
5892 --enable-shared, --enable-profile, --enable-omitfp; pass settings
5893 through to config.make.
5894 * config.make.in (build-shared, build-profile, build-omitfp): New
5895 config vars.
5896
d8cc5f0c
RM
5897 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
5898 (DT_NUM): New macro.
5899
5900 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
5901
5902 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
5903
5904 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
5905 MAP_COPY to MAP_PRIVATE.
5906
222c4e71
BK
5907Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
5908
06c48879
BK
5909 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
5910 that's used inside the alpha sysdep.h.
5911
5638ea42
BK
5912 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
5913 keyword.
eded85e0 5914 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
127b3c35 5915
222c4e71
BK
5916 * configure.in: Match `osf*', not `osf1*'.
5917 * configure: Likewise.
134c1236 5918 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
222c4e71 5919
6c2f0507
RM
5920Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5921
5922 * posix/glob/configure.bat: Fixes from DJ.
5923
5924 * time/backward, time/europe, time/northamerica, time/pacificnew,
5925 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
5926 time/ialloc.c: Code and data updated from ADO's 95b.
5927 * time/emkdir.c: File removed.
5928 * time/Makefile (distribute, extra-objs, zic): Omit it.
86d2c878 5929
6c2f0507
RM
5930 * time/localtime.c: Deansideclized. Never #define __tzname et al
5931 to non-__ names.
5932
5933 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
5934 instead of short int *.
5935 * ctype/ctype-info.c: Likewise.
5936 * ctype/ctype.h: Likewise.
5937
5938 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
5939 of EB and EL versions.
5940
28635115
RM
5941Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5942
5943 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
5944 (_IS* enum): Use _ISbit to produce values.
5945
933e73fa
RM
5946Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5947
5948 * locale/localeinfo.h: Rewritten for new locale system, using
5949 locale data files and with <langinfo.h> interface.
5950 * locale/setlocale.c: Rewritten to use locale data files.
5951 * langinfo.h: New file.
5952 * locale/langinfo.h: New file.
5953 * locale/nl_langinfo.c: New file.
5954 * locale/loadlocale.c: New file.
5955 * locale/lc-ctype.c: New file.
5956 * locale/lc-messages.c: New file.
5957 * locale/lc-monetary.c: New file.
5958 * locale/lc-numeric.c: New file.
5959 * locale/lc-time.c: New file.
5960 * locale/categories.def: New file.
5961 * locale/Makefile (headers): Remove localeinfo.h.
5962 (distribute): New variable; put localeinfo.h here, and categories.def.
5963 (routines): Add loadlocale.
5964 (categories): New variable.
5965 (aux): Use that to get C-category and lc-category.
5966 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
797fa620
RM
5967 * ctype/ctype-info.c: For initial tables, use
5968 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
86d2c878 5969 locale/C-ctype.c.
933e73fa
RM
5970 * locale/C-ctype.c, locale/C-messages.c: New files.
5971 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
5972 Default "C" locale data updated for new locale system.
5973 * locale/C-collate.c: File removed.
5974 * locale/C-ctype_ct.c: File removed.
5975 * locale/C-ctype_mb.c: File removed.
5976 * locale/C-response.c: File removed.
5977 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
5978 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
5979 stdlib/strtod.c, time/asctime.c, time/strftime.c:
5980 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
5981 locale data.
5982 * time/localtime.c: Don't include <localeinfo.h>.
5983 * time/tzset.c: Don't use locale items for default TZ value or
5984 "GMT" string (use "UTC").
5985
5986 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
5987 WIDTH>0; update DONE.
5988
5989 * malloc/malloc.c (morecore): Fix last change to calculate by
5990 blocks instead of bytes.
5991
6408bdde
RM
5992Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5993
5994 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
5995 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
5996 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
5997 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
5998 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
5999 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
6000 alias munmap.
6001 * sysdeps/unix/mman/munmap.S: Likewise.
6002 * sysdeps/mach/munmap.c: Likewise.
6003 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
6004 alias mmap.
6005 * sysdeps/unix/mman/mmap.S: Likewise.
6006 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
6007 * sysdeps/stub/mmap.c: Likewise.
6008
6009 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
6010
6011 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
6012
6013Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6014
6015 * misc/search.h: Add missing semicolon.
6016
6017 * sysdeps/unix/dirfd.c: Fix typo.
6018
6019 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
6020 in decl.
6021
6022 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
6023 WIDTH before test.
6024
30e77772
RM
6025Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6026
4933a099
RM
6027 * stdlib/strtod.c: Fixes from drepper.
6028 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
6029 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
6030 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
6031
6032 * stdio/vfprintf.c: Correctly notice Z modifier.
6033
30e77772
RM
6034 * misc/search.h: New file.
6035 * misc/Makefile (headers): Add search.h.
6036 * misc/insremque.c: Include search.h.
6037 (struct qelem): Type removed.
6038
e32a7957
RM
6039Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6040
6041 * elf/libelf.h: New file.
6042 * elf/elf_hash.c: New file.
6043
24b76949
RM
6044Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6045
4788ab46 6046 Changes from Germano Caronni <caronni@tik.ethz.ch>:
24b76949
RM
6047 * malloc/malloc.c (morecore): Account in NEWSIZE for the
6048 malloc_info structures for each new block.
6049
3c46a92d
RM
6050Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6051
6052 * sysdeps/mach/hurd/kill.c: When the process has no message port
6053 registered and we have its task port, translate a few signals to
6054 task_suspend/task_resume/task_terminate.
6055
e66f63fb
RM
6056Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6057
22a1292a
RM
6058 * io/Makefile (routines): Add euidaccess.
6059 * sysdeps/mach/hurd/euidaccess.c: New file.
6060 * sysdeps/stub/euidaccess.c: New file.
6061 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
6062
6063 * dirent/Makefile (routines): Add dirfd.
6064 * sysdeps/stub/dirfd.c: New file.
6065 * sysdeps/unix/dirfd.c: New file.
6066 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
6067 * dirent/dirent.h (dirfd): Declare new function. Define as macro
6068 _DIR_dirfd if that is defined.
6069 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
6070 with `void *__fd'.
6071 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
6072 Open the file with `open'; set FD_CLOEXEC on the fd.
6073 * sysdeps/mach/hurd/closedir.c: Likewise.
6074 * sysdeps/mach/hurd/readdir.c: Likewise.
6075 * sysdeps/mach/hurd/dirfd.c: New file.
6076
6077 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
6078 directory.
6079 (glob/ChangeLog): Likewise.
6080
6081 * locale/locale.h (LC_*): Use small integers instead of bit masks.
6082
e66f63fb
RM
6083 * stdio/bug4.c: Put temporary files in /tmp.
6084 * stdio/bug3.c: Likewise.
6085 * stdio/bug5.c: Likewise.
6086 * stdio/test-fseek.c: Likewise.
6087 * stdio/test-popen.c: Likewise.
6088
50843ff0
RM
6089Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6090
b5388cb6
RM
6091 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
6092
6093 * libc-symbols.h (weak_symbol): New macro.
6094
0677a80c
RM
6095 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
6096 elts with null handlers.
6097
50843ff0
RM
6098 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
6099
23ad311d
RM
6100Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6101
50843ff0
RM
6102 * stdlib/random.c (__srandom): Change algorithm used to populate
6103 the state array.
6104 (randtbl): Recomputed with new algorithm.
6105
23ad311d
RM
6106 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
6107 to original value of `crypt'.
6108 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
6109 (crypt): New variable, set to crypt.solar.
6110
daf12887
BK
6111Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
6112
d53f392b
BK
6113 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
6114
daf12887
BK
6115 * config.h.in: Put comment around ^L to pacify Solaris as here too.
6116
37f91d33
RM
6117Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6118
67a87b93
RM
6119 * string/Makefile (distribute): Add pagecopy.h.
6120 * sysdeps/mach/pagecopy.h: New file.
6121 * sysdeps/generic/pagecopy.h: New file.
6122 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
6123 PAGE_COPY_FWD_MAYBE first when word aligned.
6124 * sysdeps/generic/memmove.c: Likewise.
6125
787126fe
RM
6126 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
6127 (getpgrp): Call __getpgid instead of __getpgrp.
6128
01cc0be6
RM
6129 * Makefile (subdirs): Add elf first.
6130 * elf/Makefile: New file.
6131 * elf/elf.h: New file.
6132
8b60020b
RM
6133 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
6134 as a macro.
6135 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
6136 indirection.
6137
37f91d33
RM
6138 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
6139 add crti_s, crtn_s.
6140 (install-lib, extra-objs, generated-, omit-deps): Use that.
6141 (initfini): New canned sequence, broken out of crt[in].s rule.
6142 (crt[in].s rule): Use it.
6143 (crt[in]_s.s): New rule.
6144 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
6145 (_init, _fini): Use GLOBAL as storage class.
6146 Add self reference to avoid GCC optimizing out the functions.
6147
6148 * Makefile (headers): Remove $(stddef.h).
6149 * Makeconfig (stddef.h): Variable removed; now require gcc version
6150 >= 2.2.
6151 * stddef.h: File removed.
6152
6153Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6154
6155 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
6156 definition.
6157 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
6158
6159 * stdlib/strtod.c: Allow the string to start with a decimal point
6160 without a leading zero.
6161
0923c7a5
RM
6162Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
6163
41d43dbc
RM
6164 * Makefile (subdirs): Put csu first.
6165
6166 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
6167
96f873b9
RM
6168 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
6169 to crt[in].o.
6170 (csu-objpfx): New variable.
6171 (+link): Use it to find start.o and $(+preinit), $(+postinit).
6172
6173 * Rules (subdir_lib, all): Depend on objs.
6174
0923c7a5
RM
6175 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
6176
6177 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
6178 access to float.h macros.
6179
6180 * misc/efgcvt.c: New file.
6181 * misc/Makefile (routines): Add efgcvt.
6182
5ace96c8
BK
6183Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
6184
6185 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
6186 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
6187 to avoid a misreference that would override sysdeps/generic/mul.c.
6188 * sysdeps/sparc/Dist: Likewise.
6189
5f9e57ba
RM
6190Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
6191
6192 * posix/Makefile (aux): Add environ.
6193 * posix/environ.c: New file.
6194 * sysdeps/unix/sparc/start.c: Remove __environ definition.
6195 * sysdeps/unix/start.c: Likewise.
6196 * sysdeps/unix/sysv/irix4/start.c: Likewise.
6197 * sysdeps/mach/hurd/start.c: Likewise.
6198 * sysdeps/mach/start.c: Likewise.
6199 * sysdeps/stub/start.c: Likewise.
6200
6201 * sysdeps/unix/make_errlist.c: In produced program, test
6202 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
6203 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
6204 Remove extra weak alias.
6205
6206 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
6207 in #include.
6208
6209 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
6210
6211 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
6212 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
6213 $(CPPFLAGS).
6214 (mk-stdiolim): Use it instead.
6215
28f540f4
RM
6216Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
6217
5f9e57ba
RM
6218 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
6219 not work to make a weak alias to a bss symbol.
6220
6221 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
6222 (tests): Add test-fwrite.
6223 * stdio/test-fwrite.c: New file.
6224
6225 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
6226 __strtold.
6227
6228 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
6229 there is a CVS directory.
6230 (configure, %/configure): Use $(autoconf-it) for cmds.
6231 * Make-dist: Likewise.
28f540f4
RM
6232 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
6233 if there is a CVS directory.
6234 * sysdeps/sparc/Makefile (divrem output): Likewise.
6235 * sysdeps/alpha/Makefile (divrem output): Likewise.
5f9e57ba 6236 * Makerules ($(gpl2lgpl)): Likewise.
28f540f4
RM
6237
6238 * Makerules (rule to install lib%.a from $(install-lib)): Fix
6239 patsubst to elide ranlib for $(non-lib.a).
6240
6241 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
6242
6243Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
6244
6245 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
6246 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
6247
6248Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6249
6250 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
6251 DEALLOC_REFPORT; deallocate the refport after use only if it
6252 evaluates to nonzero.
6253 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
6254 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
6255
6256 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
6257 *STATE_CHANGE to indicate whether or not we changed *STATE and it
6258 should be committed to the thread.
6259 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
6260 state for a thread, do thread_set_state on that thread. Don't use
6261 SS->intr_port for collecting reply ports, it is not safe to
6262 clobber that when suspending; instead, alloca a temporary array.
6263 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
6264 zero when dying, one when suspending. Pass new arg to abort_rpcs.
6265
6266 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
6267 HURD_FD_PORT_USE will. Don't use critical sections around
6268 HURD_FD_PORT_USE invocations.
6269
6270 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
6271 * sysdeps/posix/stdio_init.c: Likewise.
6272
6273Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6274
6275 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
6276 locking; don't leave the descriptor locked on return.
6277 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
6278 Use a critical section around locking the descriptor.
6279 Check for an empty descriptor and return EBADF.
6280 * sysdeps/mach/hurd/dup2.c: Likewise.
6281 * sysdeps/mach/hurd/fcntl.c: Likewise.
6282 Use HURD_FD_PORT_USE macro for RPCs.
6283 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
6284 using HURD_FD_PORT_USE.
6285 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
6286 to lock the descriptor.
6287 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
6288 locking the descriptor.
6289 * sysdeps/mach/hurd/fdopen.c: Likewise.
6290 * hurd/fd-close.c: Likewise.
6291 Don't expect the descriptor to be locked on entry.
6292 Check for empty descriptor and return EBADF.
6293
6294 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
6295 new functions _hurd_ctty_input and _hurd_ctty_output, each
6296 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
6297 * hurd/ctty-input.c: New file.
6298 * hurd/ctty-output.c: New file.
6299 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
6300 * hurd/fd-read.c: Use _hurd_ctty_input.
6301 * hurd/fd-write.c: Use _hurd_ctty_output.
6302 * sysdeps/mach/hurd/ioctl.c: Likewise.
6303 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
6304
6305Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6306
6307 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
6308 as appropriate to the type.
6309
6310 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
6311 repeating the union.
6312 (HUGE_VAL, __huge_val): Use it.
6313 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
6314 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
6315 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
6316 (STRTOF): Set to __strtold; define strtold as weak alias.
6317 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
6318 (STRTOF): Set to __strtof; define strtof as weak alias.
6319
6320 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
6321 (IEEE754_FLOAT_BIAS): New macro.
6322
6323 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
6324
6325 * stdlib/testmb.c: Add tests from rfg for using normal chars as
6326 multibyte chars.
6327
6328 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
6329 only the `defined but not used' warning, but also to avoid GCC
6330 optimizing out the entire function (!).
6331
6332 * stdlib/wctomb.c: Include ctype.h.
6333
6334 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
6335
6336 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
6337
6338Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6339
6340 * stdio/printf_fp.c: Include "fpioconst.h".
6341 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
6342 (__printf_fp): All references changed.
6343 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
6344 (group_number): Use memmove instead of memcpy, since operands overlap.
6345 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
6346 * stdio/fpioconst.h: New file, header declaring the table data.
6347 * stdio/Makefile (aux): Add fpioconst.
6348 (distribute): Add fpioconst.h.
6349 * stdlib/strtod.c: Complete rewrite from drepper.
6350 * stdlib/strtof.c: New file.
6351 * stdlib/strtold.c: New file.
6352 * stdlib/Makefile (routines): Add strtof, strtold.
6353 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
6354 * sysdeps/stub/mpn2flt.c: New file.
6355 * sysdeps/stub/mpn2dbl.c: New file.
6356 * sysdeps/stub/mpn2ldbl.c: New file.
6357 * sysdeps/ieee754/mpn2flt.c: New file.
6358 * sysdeps/ieee754/mpn2dbl.c: New file.
6359 * sysdeps/ieee754/mpn2ldbl.c: New file.
6360
6361 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
6362 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
6363 appears in $(non-lib.a).
6364
6365Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6366
6367 * stdlib/wctomb.c: A normal ASCII character translates to itself.
6368 * stdlib/mbtowc.c: Likewise.
6369
6370Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6371
6372 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
6373 Remove `const' from prototypes.
6374 * sysdeps/m68k/__longjmp.c: Likewise.
6375 * setjmp/longjmp.c: Likewise.
6376 * sysdeps/i386/__longjmp.c: Likewise.
6377
6378 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
6379 so when we return a name, it is incremented past the value that
6380 produces that same name.
6381
6382 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
6383 * stdio/stdio.h (fgets): Likewise.
6384
6385 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
6386
6387 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
6388 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
6389 and retry the RPC.
6390 * hurd/fd-read.c: Likewise.
6391
6392Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6393
6394 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
6395 <mach/mig_support.h>.
6396 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
6397 * assert/assert.c: Likewise.
6398 * sysdeps/posix/libc_fatal.c: Likewise.
6399
6400Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6401
6402 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
6403 as macros, to satisfy ANSI pedants.
6404
6405 * stdio/internals.c (flushbuf): When there is no new data after
6406 priming the stream, return without writing out the buffer.
6407 * stdio/Makefile (tests): Add bug7.
6408 * stdio/bug7.c: New file.
6409
6410 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
6411 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
6412 is defined.
6413
6414 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
6415
6416 * stdio/Makefile (tests): Add errnobug.
6417 * stdio/errnobug.c: New file.
6418
6419 * mach/mig_strncpy.c: Include string.h.
6420
6421 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
5f9e57ba 6422 inlines cause trouble for files defining global register variables.
28f540f4
RM
6423
6424 * stdio/vfprintf.c: Use _strerror_internal for %m.
6425
6426 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
6427
6428 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
6429 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
6430 * stdio/vfprintf.c (group_number): New function.
6431 (vfprintf): Support %' flag for integer formats, by calling
6432 group_number after formatting the number in WORK.
6433 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
6434 (__printf_fp): Implement `group' flag using them.
6435
6436 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
6437 (parent-clean): Remove sysd-rules, not sysdirs.
6438 (distclean): Pass avoid-generated=yes to submake.
6439 (distclean-1): Remove $(sysdep-$(distclean-1)).
6440
6441 * Makerules (objects, objs): Depend on $(extra-objs) too.
6442 (include sysd-Makefile): Protect with ifndef avoid-generated.
6443
6444 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
6445 (CPPFLAGS): Use $(defines) in place of $(+defines).
6446 Replace -D_LIBC with -include $(..)libc-symbols.h.
6447
6448 * stdio/freopen.c: Set seen bit before calling fclose.
6449
6450Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6451
6452 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
6453 successes and each kind of failure. Return EPERM or EACCES only
6454 if every task failed that way.
6455
6456 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
6457 correctly.
6458
6459 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
6460 or resume the process after frobbing.
6461
6462 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
6463 throughout.
6464 (_hurd_thread_sigstate): Don't lock the sigstate lock.
6465 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
6466 repeated sequences with calls to it. Don't expect the sigstate
6467 lock to be held on entry; lock it just before examining sigaction.
6468 In handler case, check SS->critical_section after calling
6469 abort_rpcs; if set, mark the signal pending and resume the thread.
6470 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
6471 (_hurd_self_sigstate): Don't lock the sigstate lock.
6472 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
6473 _hurd_self_sigstate_unlocked.
6474 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
6475 the sigstate lock.
6476 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
6477 Don't expect _hurd_self_sigstate to lock it. Fix critical section
6478 locking.
6479 * hurd/hurd-raise.c: Likewise.
86d2c878 6480 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
28f540f4
RM
6481 * sysdeps/mach/hurd/sigpending.c: Likewise.
6482 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
6483 * sysdeps/mach/hurd/sigaction.c: Likewise.
6484 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
6485 * hurd/fd-write.c: Likewise.
6486 * hurd/fd-read.c: Likewise.
6487 * sysdeps/mach/hurd/ioctl.c: Likewise.
6488 * sysdeps/mach/hurd/fork.c: Likewise.
6489 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
86d2c878 6490 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
28f540f4
RM
6491 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
6492 * hurd/hurdmsg.c (get_int): Likewise.
6493
6494 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
6495
6496 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
6497 global.
6498 (PAD): Caller changed.
6499 * stdio/printf_fp.c (__pad): Function removed.
6500 (PAD): Use __printf_pad instead.
6501
6502Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6503
6504 Merged new FP printer by Ulrich Drepper.
6505 * stdio/printf_fp.c: Rewrite by drepper.
6506 * stdio/Makefile (routines): Add ldbl2mpn.
6507 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
6508 member.
6509 (union ieee854_long_double): New type, from drepper.
6510 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
6511 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
6512 * sysdeps/stub/ldbl2mpn.c: New file.
6513 * math/Makefile (routines): Add isinfl and isnanl.
6514 * sysdeps/ieee754/isinfl.c: New file.
6515 * sysdeps/stub/isinfl.c: New file.
6516 * sysdeps/ieee754/isnanl.c: New file.
6517 * sysdeps/stub/isnanl.c: New file.
6518
6519 * malloc/malloc.c (__malloc_extra_blocks): New variable.
6520 (malloc): When getting more core, get __malloc_extra_blocks extra;
6521 put the new block at the end of the free list and let the next loop
6522 iteration use the initial portion of it.
6523 * malloc/free.c (_free_internal): Account for twice
6524 __malloc_extra_blocks in deciding if we have so much extra memory
6525 we should return it to the system.
6526 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
6527 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
6528 const in parameter decl.
6529
6530 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
6531
6532Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6533
6534 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
6535
6536 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
6537 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
6538 * sysdeps/mips/bsd-setjmp.S: Likewise.
6539 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
6540 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
6541 Use `long int' for sigcode. Use explicit register numbers instead
6542 of names.
6543 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
6544 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
6545
6546Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6547
6548 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
6549
6550 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
6551 using __stpncpy.
6552
6553 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
6554
5f9e57ba 6555 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
28f540f4
RM
6556
6557Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6558
6559 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
6560 vm_size_t instead of size_t for arg and return types.
6561
6562 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
6563 already does.
6564
6565Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6566
6567 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
6568
6569 * configure.in (friendly stddef.h check): Write override defn for
6570 `stddef.h' Make variable.
6571 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
6572
6573 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
6574
6575 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
6576 empty file.
6577
6578 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
6579
6580Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6581
6582 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
6583
6584 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
6585 mach/machine/syscall_sw.h with this.
6586
6587Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6588
6589 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
6590 instead of <lock-intern.h>.
6591 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
6592 (_hurd_critical_section_lock): Use spin lock operators.
6593 Don't hold the sigstate lock, unlock it after setting the flag.
6594 (_hurd_critical_section_unlock): Take the sigstate lock
6595 to clear the flag; while holding it, check pending signals. After
6596 unlocking, sig_post ourselves if there were pending signals.
6597
6598 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
6599 sigstate lock. If it is locked, clear SS->critical_section and
6600 SS->context, and unlock it.
6601
6602 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
6603
6604 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
6605 * munch-tmpl.c: Likewise.
6606
6607 * mach/Makefile (routines): Don't filter out syscall_% from
6608 $(mach-syscalls).
6609
6610Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
6611
6612 * posix/fnmatch.c: Declare errno if it's not defined.
6613 That's simpler than testing #if !defined(__GNU_LIBRARY__)
6614 && !defined(STDC_HEADERS).
6615
6616Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6617
6618 * csu/Makefile: New file.
6619 * csu/initfini.c: New file.
6620 * Makefile (+other_dirs): Add csu.
6621 (+init): Variable renamed to libc-init. All references changed.
6622 (aux): Remove start.
6623 (install-lib): Variable removed.
6624 (crt0.o, Mcrt1.o crt1.o): Targets removed.
6625
6626 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
6627 and $(objpfx)config.h.
6628 (static deps of RPC alias *.o): Removed.
6629
6630 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
6631 Protect macros with this.
6632 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
6633 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
6634 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
6635 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
6636 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
6637 * sysdeps/unix/mips/sysdep.h: Likewise.
6638
6639Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6640
6641 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
6642 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
6643
6644 * hurd/intr-rpc.awk: Emit weak alias.
6645
6646 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
6647 __getpgrp.
6648
6649 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
6650 this.
6651 * sysdeps/unix/i386/sysdep.h: Likewise.
6652 * sysdeps/unix/sparc/sysdep.h: Likewise.
6653
6654 * io/ftw.c: Avoid `ret' as variable name.
6655 * posix/glob.c: Likewise.
6656
6657 * ctype/ctype.h (_ISalpha): Define as its own bit.
6658 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
6659
6660 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
6661 DEFINE_HOOK with this.
6662
6663Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6664
6665 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
6666 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
6667 * mach/shortcut.awk: Emit weak alias.
6668 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
6669 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
6670 __ names.
6671 * mach/Makefile (lock): Remove spin-syms.
6672 (routines): Remove __ names, vm_page_size, msgserver_t.
6673 ($(mach-syscalls) rule): Generate files without __, add weak alias.
6674 Remove symbol alias file rule.
6675 ($(mach-shortcuts) rule): Likewise.
6676 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
6677 * mach/Machrules (if-calls.c): Variable and rule removed.
6678 (interface-headers): Don't add $($(if)-calls).
6679 (transform-user-stub): Define to add weak alias.
6680 * set-hooks.h: Use new libc-symbols.h set access macros.
6681 * time/Makefile (routines): Remove __ names.
6682 (aux): Variable removed.
6683 * hurd/Makefile: Likewise.
6684 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
6685 (data_start): Define as weak alias for __data_start.
6686 * sysdeps/mach/hurd/start.c: Likewise.
6687 * sysdeps/unix/sparc/start.c: Likewise.
6688 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
6689 sys_errlist.
6690 * sysdeps/mach/hurd/errlist.awk: Likewise.
6691 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
6692 alias for __environ.
6693 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6694 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
6695 * sysdeps/stub/getdomain.c: Likewise.
6696 * sysdeps/stub/vhangup.c: Likewise.
6697 * sysdeps/stub/swapon.c: Likewise.
6698 * sysdeps/stub/sendmsg.c: Likewise.
6699 * sysdeps/stub/recvmsg.c: Likewise.
6700 * sysdeps/stub/acct.c: Likewise.
6701 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
6702 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
6703 * sysdeps/posix/libc_fatal.c: Likewise.
6704 * sysdeps/i386/abort.c: Likewise.
6705 * sysdeps/i386/__longjmp.c: Likewise.
6706 * sysdeps/generic/make_siglist.c: Emit defn always for
6707 _sys_siglist. Emit weak alias to sys_siglist.
6708 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
6709 * sysdeps/ieee754/log10.c: Likewise.
6710 * time/difftime.c: Likewise.
6711 * stdlib/random.c (srand): Define as weak alias for __srandom.
6712 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
6713 macros for __libc_atexit.
6714 * stdlib/Makefile (routines): Remove __random, srand.
6715 * stdio/gets.c: Use new link_warning macro instead of old
6716 warn_references.
6717 * stdio/Makefile (routines): Remove __ names.
6718 (aux): Remove syms-stdio.
6719 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
6720 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
6721 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
6722 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
6723 * stdio/stdio.h: Likewise.
6724 * misc/Makefile (routines): Remove __ names.
6725 (aux): Remove data_start.
6726 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
6727 * sysdeps/mach/hurd/brk.c: Likewise.
6728 * hurd/hurdid.c: Likewise.
6729 * hurd/hurdpid.c: Likewise.
6730 * hurd/openport.c: Likewise.
6731 * hurd/hurdsock.c: Likewise.
6732 * hurd/hurdsig.c: Likewise.
6733 * hurd/hurdrlimit.c: Likewise.
6734 * hurd/hurdmalloc.c: Likewise.
6735 * hurd/dtable.c: Likewise.
6736 * hurd/setauth.c: Likewise.
6737 * misc/progname.c: Likewise.
6738 * misc/init-misc.c: Likewise.
6739 * sysdeps/generic/vfork.c: Likewise.
6740 * sysdeps/unix/bsd/init-posix.c: Likewise.
6741 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
6742 * time/time.h: Likewise.
6743 * math/Makefile (routines): Remove __ names.
6744 * io/Makefile: Likewise.
6745 * termios/Makefile: Likewise.
6746 * resource/Makefile: Likewise.
6747 * signal/Makefile: Likewise.
6748 * dirent/Makefile: Likewise.
6749 * assert/assert.h: Replace __NORETURN keyword with __attribute__
6750 uses. Functions return void and macros deal with this.
6751 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
6752 Return void. Don't include gnu-stabs.h.
6753 * assert/assert.c: Likewise.
6754 * posix/Makefile (routines): Remove __ names, setpgrp. Add
6755 getpgid.
6756 (aux): Remove environ.
6757 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
6758 __attribute__ use.
6759 * posix/unistd.h (_exit): Likewise.
6760 (__getpgrp, __setpgrp): Declarations removed.
6761 (__getpgid, getpid): Declare these.
6762
6763 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
6764 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
6765 $libc_link_{sources,dests}.
6766 * sysdeps/unix/configure.in: Remove __ from file names. Don't
6767 create files, just add to libc_link_{dests,sources}.
6768
6769 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
6770
6771 * config.h.in: Add #undefs used by sysdeps configures.
6772
6773 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
6774 __setpgid, __getpgid.
6775 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
6776 from setpgrp.c.
6777 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
6778 from __getpgrp.c.
6779 * sysdeps/unix/bsd/getpgrp.c: File removed.
6780 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
6781 Call __getpgid with zero.
6782 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
6783 weak aliases setpgid and setpgrp.
6784 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
6785 * sysdeps/unix/common/setpgid.S: Likewise.
6786 * sysdeps/mach/hurd/setpgid.c: Likewise.
6787 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
6788 Use subcall 5 to __pgrpsys.
6789 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
6790 weak alias getpgid.
6791 * sysdeps/mach/hurd/getpgid.c: Likewise.
6792 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
6793 * sysdeps/unix/common/getpgid.S: Likewise.
6794 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6795 Use subcall 4 to __pgrpsys.
6796 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
6797 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
6798 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
6799 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
6800 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
6801 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
6802 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
6803 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
6804 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
6805 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
6806 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
6807 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
6808
6809 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
6810 from __getdents.S.
6811
6812 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
6813 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
6814 warning.
6815 * sysdeps/stub/fexecve.c: Likewise.
6816 * sysdeps/stub/fchdir.c: Likewise.
6817 * sysdeps/stub/fchflags.c: Likewise.
6818 * sysdeps/stub/chflags.c: Likewise.
6819
6820 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
6821 * sysdeps/generic/abort.c: Likewise.
6822 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
6823
6824 * hurd/hurdioctl.c: Include hurd/ioctl.h.
6825 (_hurd_ioctl_handler_lists): Define this set.
6826 (_hurd_lookup_ioctl_handler): New function.
6827 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
6828 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
6829 (_hurd_lookup_ioctl_handler): Declare it.
6830 (ioctl_handler_t): New typedef. Use it throughout.
6831 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
6832 (_hurd_ioctl_handler_lists): Don't define.
6833 (__ioctl): Call _hurd_lookup_ioctl_handler.
6834
6835 * stdlib/strtol.c (maxquad): Make this const.
6836 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
6837
6838 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
6839 any compile tests.
6840
6841 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
6842 __msg_sig_post_request, not __sig_post_request.
6843
6844 * misc/getusersh.c: Renamed to getusershell.c.
6845 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
6846 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
6847 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
6848 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
6849
6850Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6851
6852 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
6853 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
6854 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
6855 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
6856 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
6857 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
6858 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
6859 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
6860 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
6861 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
6862 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
6863 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
6864 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
6865 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
6866 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
6867 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
6868 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
6869 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
6870 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
6871 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
6872 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
6873 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
6874 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
6875 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
6876 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
6877 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
6878 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
6879 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
6880 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
6881 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
6882
6883 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
6884 of __sig_post.
6885 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
6886 * sysdeps/mach/hurd/kill.c: Likewise.
6887 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
6888
6889 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
6890 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
6891
6892 * sysdeps/stub/remove.c: New file.
6893 * sysdeps/posix/remove.c: New file.
6894
6895Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6896
6897 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
6898 mktime.
6899 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
6900 __mig_strncpy.
6901 * mach/msg-destroy.c: Renamed from __msg_dest.c.
6902 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
6903 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
6904 * time/tzset.c (tzname, daylight, timezone): Define as weak
6905 aliases for __ names.
6906 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
6907 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
6908 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
6909 being defined.
6910
6911Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6912
6913 * string/Makefile (routines): Remove __ names, index, rindex, and
6914 bcmp.
6915 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
6916 alias for strchr.
6917 * sysdeps/generic/strchr.c: Likewise.
6918 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
6919 alias for strrchr.
6920 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
6921 alias for memcmp.
6922
6923 * malloc/free.c (cfree): Define this function, with weak_alias if
6924 available, otherwise a C function.
6925 * malloc/Makefile (gmalloc-routines): Remove cfree.
6926
6927Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
6928
6929 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
6930 get_limit. This has the effect of no-op'ing properly for zero.
6931
6932 * configure.in: Add AC_CONFIG_HEADER(config.h).
6933 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
6934 * config.h.in: New file.
6935
6936 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
6937 All code converted to use weak symbols, defined in the files which
6938 define the real code (with the __ names, the non-__ names are weak).
6939 All old symbol alias files removed.
6940 Many files renamed to remove __ prefix since there is now just
6941 the one file for both the __ and non-__ name for each function.
6942 * libc-symbols.h: New file.
6943 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
6944 sets.
6945 * gnu-stabs.h: Prepend #error this file is obsolete.
6946 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
6947 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
6948 access.
6949 * sysdeps/unix/common/__access.S: Likewise.
6950 * sysdeps/mach/hurd/__access.c: Likewise.
6951 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
6952 adjtime.
6953 * sysdeps/unix/common/__adjtime.S: Likewise.
6954 * sysdeps/mach/__adjtime.c: Likewise.
6955 * sysdeps/mach/hurd/__adjtime.c: Likewise.
6956 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
6957 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
6958 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
6959 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
6960 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
6961 * sysdeps/unix/i386/__brk.S: Likewise.
6962 * sysdeps/unix/sparc/__brk.S: Likewise.
6963 * sysdeps/unix/mips/__brk.S: Likewise.
6964 * sysdeps/mach/hurd/__brk.c: Likewise.
6965 * sysdeps/standalone/__brk.c: Likewise.
6966 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
6967 * sysdeps/unix/__chdir.S: Likewise.
6968 * sysdeps/mach/hurd/__chdir.c: Likewise.
6969 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
6970 * sysdeps/unix/__chmod.S: Likewise.
6971 * sysdeps/mach/hurd/__chmod.c: Likewise.
6972 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
6973 * sysdeps/unix/__chown.S: Likewise.
6974 * sysdeps/mach/hurd/__chown.c: Likewise.
6975 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
6976 * sysdeps/unix/__close.S: Likewise.
6977 * sysdeps/mach/hurd/__close.c: Likewise.
6978 * sysdeps/standalone/__close.c: Likewise.
6979 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
6980 alias copysign.
6981 * sysdeps/ieee754/__copysign.c: Likewise.
6982 * sysdeps/alpha/__copysign.c: Likewise.
6983 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
6984 * sysdeps/m68k/fpu/__drem.c: Likewise.
6985 * sysdeps/stub/__drem.c: Likewise.
6986 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
6987 * sysdeps/stub/__dup.c: Likewise.
6988 * sysdeps/unix/__dup.S: Likewise.
6989 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
6990 * sysdeps/stub/__dup2.c: Likewise.
6991 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
6992 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
6993 * sysdeps/unix/common/__dup2.S: Likewise.
6994 * sysdeps/mach/hurd/__dup2.c: Likewise.
6995 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
6996 execve.
6997 * sysdeps/unix/__execve.S: Likewise.
6998 * sysdeps/mach/hurd/__execve.c: Likewise.
6999 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
7000 expm1.
7001 * sysdeps/m68k/fpu/__expm1.c: Likewise.
7002 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
7003 fchmod.
7004 * sysdeps/unix/common/__fchmod.S: Likewise.
7005 * sysdeps/mach/hurd/__fchmod.c: Likewise.
7006 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
7007 fchown.
7008 * sysdeps/unix/common/__fchown.S: Likewise.
7009 * sysdeps/mach/hurd/__fchown.c: Likewise.
7010 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
7011 * sysdeps/unix/__fcntl.S: Likewise.
7012 * sysdeps/mach/hurd/__fcntl.c: Likewise.
7013 * math/__finite.c: Renamed to finite.c; added weak alias finite.
7014 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
7015 * sysdeps/stub/__flock.c: Likewise.
7016 * sysdeps/unix/bsd/__flock.S: Likewise.
7017 * sysdeps/mach/hurd/__flock.c: Likewise.
7018 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
7019 fopenport.
7020 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
7021 * sysdeps/unix/__fork.S: Likewise.
7022 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
7023 * sysdeps/unix/i386/__fork.S: Likewise.
7024 * sysdeps/unix/sparc/__fork.S: Likewise.
7025 * sysdeps/unix/mips/__fork.S: Likewise.
7026 * sysdeps/mach/hurd/__fork.c: Likewise.
7027 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
7028 alias fpathconf.
7029 * sysdeps/stub/__fpathcon.c: Likewise.
7030 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
7031 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
7032 * sysdeps/unix/__fstat.S: Likewise.
7033 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
7034 * sysdeps/mach/hurd/__fstat.c: Likewise.
7035 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
7036 getdelim.
7037 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
7038 alias getdents.
7039 * sysdeps/unix/__getdents.c: Likewise.
7040 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
7041 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
7042 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
7043 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
7044 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
7045 * sysdeps/unix/sysv/__getdents.c: Likewise.
7046 * sysdeps/mach/hurd/__getdents.c: Likewise.
7047 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
7048 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
7049 alias getdtablesize.
7050 * sysdeps/stub/__getdtsz.c: Likewise.
7051 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
7052 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
7053 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
7054 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
7055 getegid.
7056 * sysdeps/unix/__getegid.S: Likewise.
7057 * sysdeps/mach/hurd/__getegid.c: Likewise.
7058 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
7059 geteuid.
7060 * sysdeps/unix/__geteuid.S: Likewise.
7061 * sysdeps/mach/hurd/__geteuid.c: Likewise.
7062 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
7063 getgid.
7064 * sysdeps/unix/__getgid.S: Likewise.
7065 * sysdeps/mach/hurd/__getgid.c: Likewise.
7066 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
7067 alias getgroups.
7068 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
7069 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
7070 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
7071 * sysdeps/unix/common/__getgrps.S: Likewise.
7072 * sysdeps/mach/hurd/__getgrps.c: Likewise.
7073 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
86d2c878 7074 alias gethostname.
28f540f4
RM
7075 * sysdeps/unix/inet/__gethstnm.S: Likewise.
7076 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
7077 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
7078 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
7079 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
7080 alias getitimer.
7081 * sysdeps/unix/common/__getitmr.S: Likewise.
7082 * sysdeps/mach/hurd/__getitmr.c: Likewise.
7083 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
7084 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
7085 alias getpagesize.
7086 * sysdeps/stub/__getpgsz.c: Likewise.
7087 * sysdeps/unix/__getpgsz.c: Likewise.
7088 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
7089 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
7090 * sysdeps/mach/__getpgsz.c: Likewise.
7091 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
7092 getpid.
7093 * sysdeps/unix/__getpid.S: Likewise.
7094 * sysdeps/mach/hurd/__getpid.c: Likewise.
7095 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
7096 getppid.
7097 * sysdeps/unix/__getppid.S: Likewise.
7098 * sysdeps/mach/hurd/__getppid.c: Likewise.
7099 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
7100 alias gettimeofday.
7101 * sysdeps/stub/__gettod.c: Likewise.
7102 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
7103 * sysdeps/unix/common/__gettod.S: Likewise.
7104 * sysdeps/mach/__gettod.c: Likewise.
7105 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
7106 getuid.
7107 * sysdeps/unix/__getuid.S: Likewise.
7108 * sysdeps/mach/hurd/__getuid.c: Likewise.
7109 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
7110 alias infnan.
7111 * sysdeps/ieee754/__infnan.c: Likewise.
7112 * sysdeps/vax/__infnan.c: Likewise.
7113 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
7114 * sysdeps/unix/__ioctl.S: Likewise.
7115 * sysdeps/mach/hurd/__ioctl.c: Likewise.
7116 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
7117 isatty.
7118 * sysdeps/stub/__isatty.c: Likewise.
7119 * sysdeps/unix/bsd/__isatty.c: Likewise.
7120 * sysdeps/mach/hurd/__isatty.c: Likewise.
7121 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
7122 isinf.
7123 * sysdeps/m68k/fpu/__isinf.c: Likewise.
7124 * sysdeps/stub/__isinf.c: Likewise.
7125 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
7126 isnan.
7127 * sysdeps/ieee754/__isnan.c: Likewise.
7128 * sysdeps/m68k/fpu/__isnan.c: Likewise.
7129 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
7130 * sysdeps/unix/__kill.S: Likewise.
7131 * sysdeps/mach/hurd/__kill.c: Likewise.
7132 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
7133 * sysdeps/unix/__link.S: Likewise.
7134 * sysdeps/mach/hurd/__link.c: Likewise.
7135 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
7136 * sysdeps/m68k/fpu/__logb.c: Likewise.
7137 * sysdeps/stub/__logb.c: Likewise.
7138 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
7139 * sysdeps/unix/__lseek.S: Likewise.
7140 * sysdeps/mach/hurd/__lseek.c: Likewise.
7141 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
7142 lstat.
7143 * sysdeps/stub/__lstat.c: Likewise.
7144 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
7145 * sysdeps/unix/common/__lstat.S: Likewise.
7146 * sysdeps/mach/hurd/__lstat.c: Likewise.
7147 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
7148 alias memccpy.
7149 * sysdeps/vax/__memccpy.c: Likewise.
7150 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
7151 * sysdeps/unix/sysv/__mkdir.c: Likewise.
7152 * sysdeps/unix/common/__mkdir.S: Likewise.
7153 * sysdeps/mach/hurd/__mkdir.c: Likewise.
7154 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
7155 * sysdeps/unix/__mknod.S: Likewise.
7156 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
7157 * sysdeps/mach/hurd/__mknod.c: Likewise.
7158 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
7159 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
7160 mach_msg_server.
7161 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
7162 * sysdeps/unix/__open.S: Likewise.
7163 * sysdeps/mach/hurd/__open.c: Likewise.
7164 * sysdeps/standalone/__open.c: Likewise.
7165 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
7166 alias pathconf.
7167 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
7168 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
7169 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
7170 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
7171 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
7172 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
7173 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
7174 * sysdeps/unix/i386/__pipe.S: Likewise.
7175 * sysdeps/unix/sparc/__pipe.S: Likewise.
7176 * sysdeps/unix/mips/__pipe.S: Likewise.
7177 * sysdeps/mach/hurd/__pipe.c: Likewise.
7178 * stdlib/__random.c: Renamed to random.c; added weak alias random.
7179 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
7180 * sysdeps/unix/__read.S: Likewise.
7181 * sysdeps/mach/hurd/__read.c: Likewise.
7182 * sysdeps/standalone/__read.c: Likewise.
7183 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
7184 alias readlink.
7185 * sysdeps/unix/common/__readlink.S: Likewise.
7186 * sysdeps/mach/hurd/__readlink.c: Likewise.
7187 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
7188 * sysdeps/m68k/fpu/__rint.c: Likewise.
7189 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
7190 * sysdeps/unix/sysv/__rmdir.c: Likewise.
7191 * sysdeps/unix/common/__rmdir.S: Likewise.
7192 * sysdeps/mach/hurd/__rmdir.c: Likewise.
7193 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
7194 * sysdeps/stub/__sbrk.c: Likewise.
7195 * sysdeps/mach/hurd/__sbrk.c: Likewise.
7196 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
7197 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
7198 select.
7199 * sysdeps/unix/common/__select.S: Likewise.
7200 * sysdeps/mach/hurd/__select.c: Likewise.
7201 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
7202 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
7203 setgid.
7204 * sysdeps/unix/__setgid.S: Likewise.
7205 * sysdeps/unix/bsd/__setgid.c: Likewise.
7206 * sysdeps/mach/hurd/__setgid.c: Likewise.
7207 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
86d2c878 7208 setitmr
28f540f4
RM
7209 * sysdeps/unix/common/__setitmr.S: Likewise.
7210 * sysdeps/mach/hurd/__setitmr.c: Likewise.
7211 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
86d2c878 7212 setpgrp
28f540f4
RM
7213 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
7214 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
7215 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
7216 * sysdeps/unix/common/__setpgrp.S: Likewise.
7217 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
7218 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
7219 alias setregid.
7220 * sysdeps/unix/common/__setregid.S: Likewise.
7221 * sysdeps/mach/hurd/__setregid.c: Likewise.
7222 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
7223 alias setreuid.
7224 * sysdeps/unix/common/__setreuid.S: Likewise.
7225 * sysdeps/mach/hurd/__setreuid.c: Likewise.
7226 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
7227 setsid.
7228 * sysdeps/unix/bsd/__setsid.c: Likewise.
7229 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
7230 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
7231 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
7232 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
7233 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
7234 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
7235 * sysdeps/mach/hurd/__setsid.c: Likewise.
7236 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
7237 settimeofday.
7238 * sysdeps/unix/bsd/__settod.S: Likewise.
7239 * sysdeps/unix/sysv/__settod.c: Likewise.
7240 * sysdeps/mach/hurd/__settod.c: Likewise.
7241 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
7242 setuid.
7243 * sysdeps/unix/__setuid.S: Likewise.
7244 * sysdeps/unix/bsd/__setuid.c: Likewise.
7245 * sysdeps/mach/hurd/__setuid.c: Likewise.
7246 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
7247 alias sigblock.
7248 * sysdeps/stub/__sigblock.c: Likewise.
7249 * sysdeps/unix/bsd/__sigblock.S: Likewise.
7250 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
7251 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
7252 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
7253 alias sigpause.
7254 * sysdeps/stub/__sigpause.c: Likewise.
7255 * sysdeps/unix/bsd/__sigpause.S: Likewise.
7256 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
7257 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
7258 alias sigprocmask.
7259 * sysdeps/unix/bsd/__sigproc.c: Likewise.
7260 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
7261 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
7262 * sysdeps/mach/hurd/__sigproc.c: Likewise.
7263 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
7264 alias sigreturn.
7265 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
7266 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
7267 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
7268 * sysdeps/unix/i386/__sigret.S: Likewise.
7269 * sysdeps/unix/mips/__sigret.S: Likewise.
7270 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
7271 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
7272 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
7273 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
7274 sigvec.
7275 * sysdeps/stub/__sigvec.c: Likewise.
7276 * sysdeps/unix/bsd/__sigvec.S: Likewise.
7277 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
7278 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
7279 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
7280 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
7281 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
7282 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
7283 * sysdeps/unix/__stat.S: Likewise.
7284 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
7285 * sysdeps/mach/hurd/__stat.c: Likewise.
7286 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
7287 alias stpncpy.
7288 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
7289 symlink.
7290 * sysdeps/unix/common/__symlink.S: Likewise.
7291 * sysdeps/mach/hurd/__symlink.c: Likewise.
7292 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
7293 alias sysconf.
7294 * sysdeps/stub/__sysconf.c: Likewise.
7295 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
7296 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
7297 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
7298 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
7299 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
7300 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
7301 * sysdeps/unix/bsd/__times.c: Likewise.
7302 * sysdeps/unix/sysv/__times.S: Likewise.
7303 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
7304 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
7305 * sysdeps/unix/__umask.S: Likewise.
7306 * sysdeps/mach/hurd/__umask.c: Likewise.
7307 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
7308 unlink.
7309 * sysdeps/unix/__unlink.S: Likewise.
7310 * sysdeps/mach/hurd/__unlink.c: Likewise.
7311 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
7312 utimes.
7313 * sysdeps/unix/bsd/__utimes.S: Likewise.
7314 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
7315 * sysdeps/mach/hurd/__utimes.c: Likewise.
7316 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
7317 vfork.
7318 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
7319 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
7320 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
7321 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
7322 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
7323 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
7324 * sysdeps/unix/sparc/__vfork.S: Likewise.
7325 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
7326 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
7327 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
7328 * sysdeps/stub/__wait.c: Likewise.
7329 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
7330 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
7331 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
7332 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
7333 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
7334 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
7335 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
7336 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
7337 * sysdeps/unix/i386/__wait.S: Likewise.
7338 * sysdeps/unix/mips/__wait.S: Likewise.
7339 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
7340 * sysdeps/stub/__wait3.c: Likewise.
7341 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
7342 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
7343 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
7344 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
7345 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
7346 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
7347 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
7348 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
7349 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
7350 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
7351 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
7352 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
7353 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
7354 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
7355 * sysdeps/mach/hurd/__wait4.c: Likewise.
7356 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
7357 waitpid.
7358 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
7359 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
7360 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
7361 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
7362 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
7363 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
7364 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
7365 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
7366 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
7367 * sysdeps/unix/__write.S: Likewise.
7368 * sysdeps/mach/hurd/__write.c: Likewise.
7369 * sysdeps/standalone/__write.c: Likewise.
7370 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
7371 alias tcgetattr.
7372 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
7373 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
7374 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
7375 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
7376 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
7377 alias sigaction.
7378 * sysdeps/unix/bsd/__sigact.c: Likewise.
7379 * sysdeps/unix/sysv/__sigact.c: Likewise.
7380 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
7381 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
7382 * sysdeps/mach/hurd/__sigact.c: Likewise.
7383 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
7384 alias sigsetmask.
7385 * sysdeps/stub/__sigstmsk.c: Likewise.
7386 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
7387 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
7388 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
7389 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
7390 alias getrusage.
7391 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
7392 * sysdeps/unix/common/__getrusag.S: Likewise.
7393 * hurd/task2pid.c: File removed.
7394 * hurd/setauth.c: File removed.
7395 * hurd/pid2task.c: File removed.
7396 * hurd/hurdsyms.c: File removed.
7397 * hurd/getdport.c: File removed.
7398 * hurd/fopenport.c: File removed.
7399 * mach/thread-sym.c: File removed.
7400 * mach/spin-syms.c: File removed.
7401 * mach/msgserver_t.c: File removed.
7402 * mach/msgserver.c: File removed.
7403 * mach/msg.c: File removed.
7404 * mach/mig_syms.c: File removed.
7405 * malloc/mcheck-init.c: File removed.
7406 * malloc/cfree.c: File removed.
7407 * io/flock.c: File removed.
7408 * io/write.c: File removed.
7409 * io/unlink.c: File removed.
7410 * io/umask.c: File removed.
7411 * io/symlink.c: File removed.
7412 * io/rmdir.c: File removed.
7413 * io/readlink.c: File removed.
7414 * io/read.c: File removed.
7415 * io/pipe.c: File removed.
7416 * io/open.c: File removed.
7417 * io/mkdir.c: File removed.
7418 * io/lstat.c: File removed.
7419 * io/lseek.c: File removed.
7420 * io/link.c: File removed.
7421 * io/isatty.c: File removed.
7422 * io/stat.c: File removed.
7423 * io/fstat.c: File removed.
7424 * io/fchown.c: File removed.
7425 * io/fchmod.c: File removed.
7426 * io/dup2.c: File removed.
7427 * io/dup.c: File removed.
7428 * io/close.c: File removed.
7429 * io/fcntl.c: File removed.
7430 * io/chmod.c: File removed.
7431 * io/chdir.c: File removed.
7432 * io/access.c: File removed.
7433 * io/chown.c: File removed.
7434 * time/tzset.c: File removed.
7435 * time/timelocal.c: File removed.
7436 * time/syms-time.c: File removed.
7437 * time/settod.c: File removed.
7438 * time/setitmr.c: File removed.
7439 * time/gettod.c: File removed.
7440 * time/getitmr.c: File removed.
7441 * time/adjtime.c: File removed.
7442 * termios/tcgetattr.c: File removed.
7443 * string/stpncpy.c: File removed.
7444 * string/rindex.c: File removed.
7445 * string/memccpy.c: File removed.
7446 * string/index.c: File removed.
7447 * string/bcmp.c: File removed.
7448 * stdlib/srand.c: File removed.
7449 * stdlib/random.c: File removed.
7450 * stdio/vsscanf.c: File removed.
7451 * stdio/vfscanf.c: File removed.
7452 * stdio/syms-stdio.c: File removed.
7453 * stdio/remove.c: File removed.
7454 * stdio/getline.c: File removed.
7455 * stdio/getdelim.c: File removed.
7456 * signal/ssignal.c: File removed.
7457 * signal/sigvec.c: File removed.
7458 * signal/sigsetmask.c: File removed.
7459 * signal/sigret.c: File removed.
7460 * signal/sigproc.c: File removed.
7461 * signal/sigpause.c: File removed.
7462 * signal/sigblock.c: File removed.
7463 * signal/sigaction.c: File removed.
7464 * signal/kill.c: File removed.
7465 * signal/gsignal.c: File removed.
7466 * setjmp/siglongjmp.c: File removed.
7467 * setjmp/_longjmp.c: File removed.
7468 * resource/getrusage.c: File removed.
7469 * posix/waitpid.c: File removed.
7470 * posix/wait4.c: File removed.
7471 * posix/wait3.c: File removed.
7472 * posix/wait.c: File removed.
7473 * posix/times.c: File removed.
7474 * posix/sysconf.c: File removed.
7475 * posix/setuid.c: File removed.
7476 * posix/setsid.c: File removed.
7477 * posix/setpgrp.c: File removed.
7478 * posix/setpgid.c: File removed.
7479 * posix/setgid.c: File removed.
7480 * posix/pathconf.c: File removed.
7481 * posix/getuid.c: File removed.
7482 * posix/getppid.c: File removed.
7483 * posix/getpid.c: File removed.
7484 * posix/getgrps.c: File removed.
7485 * posix/getgid.c: File removed.
7486 * posix/geteuid.c: File removed.
7487 * posix/getegid.c: File removed.
7488 * posix/fpathcon.c: File removed.
7489 * posix/fork.c: File removed.
7490 * posix/execve.c: File removed.
7491 * posix/environ.c: File removed.
7492 * misc/utimes.c: File removed.
7493 * misc/setreuid.c: File removed.
7494 * misc/setregid.c: File removed.
7495 * misc/select.c: File removed.
7496 * misc/sbrk.c: File removed.
7497 * misc/mknod.c: File removed.
7498 * misc/ioctl.c: File removed.
7499 * misc/getpgsz.c: File removed.
7500 * misc/gethstnm.c: File removed.
7501 * misc/getdtsz.c: File removed.
7502 * misc/data_start.c: File removed.
7503 * misc/brk.c: File removed.
7504 * math/scalb.c: File removed.
7505 * math/rint.c: File removed.
7506 * math/logb.c: File removed.
7507 * math/isnan.c: File removed.
7508 * math/isinf.c: File removed.
7509 * math/infnan.c: File removed.
7510 * math/finite.c: File removed.
7511 * math/expm1.c: File removed.
7512 * math/drem.c: File removed.
7513 * math/copysign.c: File removed.
7514 * math/__scalb.c: File removed.
7515 * dirent/getdents.c: File removed.
7516
7517Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7518
7519 * sysdeps/generic/morecore.c (__default_morecore): Use
7520 __malloc_ptrdiff_t; don't cast arg to int.
7521
7522 * resolv/getnetnamadr.c: Include "conf/portability.h".
7523
7524Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7525
7526 * stdlib/strtol.c: Include errno.h.
7527 [QUAD] (ULONG_MAX): Define to a static variable initialized to
7528 ULONG_LONG_MAX. This is to work around a GCC bug in using the
7529 constant in arithmetic.
7530
7531 * posix/unistd.h (daemon): Declare it.
7532
7533 * malloc/mcheck-init.c: Remove GNU ld hacks.
7534 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
7535 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
7536 (initialize): Call the hook if set.
7537 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
7538 (__malloc_initialize_hook): Declare new hook variable.
7539
7540Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7541
7542 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
7543 * hurd/hurdpid.c: Likewise.
7544 * hurd/hurdauth.c: Likewise.
7545
7546Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7547
7548 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
7549 if any are successful.
7550
7551 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
86d2c878 7552 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
28f540f4
RM
7553 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
7554 functions.
7555 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
7556
7557 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
7558 * hurd/hurd-raise.c: Likewise.
7559 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
7560
7561 * sysdeps/mach/hurd/ptrace.c: New file.
7562
7563 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
7564 interface, which has normal EINTR semantics. Instead of waiting
7565 for io_select_done notification messages, send io_select messages
7566 with short reply timeout and then wait for io_select_reply
7567 messages.
7568
7569 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
7570 EXEC_INHERITED) to file_exec.
7571
7572 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
7573 use sig_post_untraced_reply. All callers changed.
86d2c878 7574 (abort_thread, abort_rpcs): Take same new arg and pass it through.
28f540f4
RM
7575 All callers changed.
7576 (_hurd_internal_post_signal): Take new arg UNTRACED.
7577 If zero and process is traced, stop with SIGNO as stop signal. If
7578 nonzero, resume process before delivering signal (unless
7579 ACT==stop). Expand local fn sigwakeup into block at end taken iff
7580 SIGNO!=0.
7581 (signal_allowed): New function, broken out of _S_sig_post.
7582 (_S_sig_post): Call it. Pass UNTRACED arg of false to
7583 _hurd_internal_post_signal.
7584 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
7585 pass true for UNTRACED.
7586 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
7587 UNTRACED.
7588 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
7589 to _hurd_internal_post_signal (value zero).
7590
7591Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7592
7593 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
7594 (_hurd_init): Initialize it from FLAGS arg.
7595 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
7596 raise a SIGTRAP signal (with a sigcode of zero).
7597 * hurd/hurd.h (_hurd_exec_flags): Declare it.
7598
7599 * Version 1.09.5.
7600
7601Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7602
7603 * malloc/malloc.c (malloc): Fix 1-off in previous change.
7604
7605Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7606
7607 * posix/glob/Makefile.in: Remove config.h and config.log.
7608
7609Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7610
7611 * posix/glob/configure.in: Add AC_CONST check.
7612
7613 * conf/portability.h: #undef sun.
7614 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
7615 * resolv/getnetnamadr.c: Likewise.
7616
7617 * socket/Makefile (headers): Add sockaddrcom.h.
7618 * inet/netinet/in.h: Include <sockaddrcom.h>.
7619 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
7620 * socket/sys/un.h (struct sockaddr_in): Likewise.
7621 * socket/sys/socket.h (struct sockaddr): Likewise.
7622 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
7623 * sysdeps/generic/sockaddrcom.h: New file.
7624
7625 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
7626 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
7627 F_FREESP): New macros.
7628 * sysdeps/posix/truncate.c: New file.
7629
7630 * malloc/malloc.c (malloc): Fix typos in RMS's change.
7631
7632 * malloc/Makefile (dist-routines): Add malloc-find.
7633 * malloc/malloc.h (malloc_find_object_address): Declare it.
7634 * malloc/malloc-find.c: New file.
7635
7636 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
7637 __malloc_size_t.
7638 (malloc_info): Use that type for member `busy.info.size'.
7639
7640 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
7641 `LONG' macro.
7642 [! QUAD] (LONG): Define as long.
7643 [QUAD] (LONG): Define as long long.
7644 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
7645 versions.
7646 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
7647 * stdlib/Makefile (routines): Add strtoq and strtouq.
7648 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
7649 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
7650 Declare them.
7651
7652 * stdio/vfprintf.c: If there was a precision specified, ignore the
7653 0 flag and always pad with spaces.
7654
7655 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
7656 Use a loop and also stop on first !isascii char.
7657
7658Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
7659
7660 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
7661
7662 * malloc/malloc.c (malloc): For a multi-block object, store a
7663 negative number into the busy.info.size of all but the first block.
7664
7665Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
7666
7667 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
7668 instead of t0, t1, and t2.
7669
7670Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7671
7672 * malloc/memalign.c (__memalign_hook): New variable.
7673 (memalign): Call it if set.
7674 * malloc/malloc.h (__memalign_hook): Declare new variable.
7675
7676Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7677
7678 * conf/portability.h: Include string.h and stdlib.h.
7679 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
7680 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
7681 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
7682 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
7683 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
7684
7685 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
7686 all uses of `extern __inline' with `__m81_inline'.
7687
7688 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
7689 * sysdeps/unix/__fork.S: Swap args in subl.
7690
7691 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
7692 compatibility.
7693
7694Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
7695
7696 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
7697 of swtch.
7698 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
7699 * mach/spin-solid.c (__spin_lock_solid): Likewise.
7700
7701Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7702
7703 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
7704 for PBUF.
7705 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
7706
7707 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
7708
7709Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7710
7711 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
7712 in `bis' insn; immediate must be second.
7713
7714 * sysdeps/unix/__fork.S: Use subl instead of decl.
7715 * sysdeps/unix/i386/__fork.S: New file.
7716
7717 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
7718 Remove A macro; just use `asm volatile' with proper quotes in each
7719 line.
7720 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
7721 jmp target register.
7722
7723 * time/africa, time/asia, time/australasia, time/emkdir.c,
7724 time/europe, time/ialloc.c, time/northamerica, time/private.h,
7725 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
7726 and data from ADO 94h distribution.
7727
7728 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
7729 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
7730 absolute pointer. Put second store in jmp delay slot.
7731
7732Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7733
7734 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
7735 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
7736 absolute pointer.
7737 * sysdeps/sparc/bsd-setjmp.S: Likewise.
7738
7739 * configure.in: Use ; before } in { ... } exprs.
7740
e215c478 7741\f
28f540f4 7742
e215c478 7743See ChangeLog.4 for earlier changes.
This page took 0.862805 seconds and 5 git commands to generate.