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