1 Sun Jun 5 14:34:12 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5 * sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
7 * sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
8 take input. Compute expected reply size for ioctls that take
9 output and check it properly.
11 Sat Jun 4 00:35:42 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
13 * sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
14 (enum __ioctl_datum): Name this enum.
15 (_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
16 (_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
17 * sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
19 * sysdeps/mach/hurd/__fork.c: Major rewrite. Copy all ports
20 present in the task, not just library-maintained ones. Handle
21 sigstate and signal thread setup explicitly here.
22 * hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
25 * hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
27 * sysdeps/mach/hurd/__isatty.c: New file.
29 * hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
30 not NAME (most of which is uninitialized).
32 * hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
33 being non-null; always initialize it.
35 Fri Jun 3 21:57:14 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
37 * hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
38 (_hurd_rlimit_lock): Set initializer to random value; run-time
39 initialization is always required.
41 * inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
44 Wed Jun 1 10:52:41 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
46 * hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
47 initializers so that the file is included in the link properly.
48 (init_rlimit): Omit call to __mutex_init.
50 Tue May 31 18:15:33 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
52 * hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
53 (malloc_init): New function; put it on _hurd_preinit_hook.
55 * sysdeps/mach/hurd/defs.c (init_stdio): If stream already
56 allocated, don't allocate a new one. Don't crash if _hurd_alloc_fd
57 returns null if __newstream does.
59 * sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
60 leave it as it is. Set PAGEND from _hurd_brk instead of &_end.
62 Mon May 30 18:37:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
64 * hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
65 instead of _hurd_subinit.
67 * sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
68 * hurd/dtable.c (fork_parent_dtable): Function removed.
70 * sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
71 RLIMIT_NLIMITS, add alias for old name.
73 * sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
74 (before-compile): Use that instead of $(common-objpfx).
76 * sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
78 Fri May 27 01:34:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
80 * hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
82 * hurd/dtable.c: Use data_set_element instead of text_set_element
84 * hurd/hurdsig.c: Likewise.
86 * hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
88 * hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
89 (init_dtable): Don't set it.
91 * hurd/Makefile (headers): Add hurd/resource.h.
92 (routines): Add hurdrlimit.
93 * hurd/hurd/resource.h: New file.
94 * hurd/hurdrlimit.c: New file.
95 * sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
97 * sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
98 * sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
99 (_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
100 (_hurd_set_data_limit): Function removed.
101 * hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
102 (_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
104 * sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
107 * sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
108 on which to set the per-thread reply port variable.
110 * sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
111 DATA_SIZE bytes past the beginning of data space, rather than to
112 DATA_SIZE absolutely. If vm_map fails, set it to PAGEND.
114 * sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
117 * stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
118 preserve the old cookie value when possible.
119 * sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
120 * sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
121 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
123 * stdio/freopen.c (freopen): Close the stream if MODE is invalid.
125 * hurd/hurdsig.c (_hurd_core_limit): Define variable.
127 * socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
129 Thu May 26 12:09:51 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
131 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
132 FIRST_FD is greater than _hurd_dtablesize and less than
133 _hurd_dtable_rlimit. If we want to grow _hurd_dtable, but
134 _hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
135 EMFILE. When growing _hurd_dtable, actually do something if
136 _hurd_dtablesize is zero.
138 * hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
139 malloc_fork_child): Declare as static so they don't conflict with
140 the user's version of this file.
142 Wed May 25 20:55:16 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
144 * sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
147 * hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
148 * hurd/Makefile (routines): Append hurdmalloc.
149 (distribute): Append hurdmalloc.h.
150 * hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
151 * hurd/dtable.c: Likewise.
152 * hurd/hurdinit.c: Likewise.
153 * hurd/hurdsig.c: Likewise.
154 * hurd/hurdsock.c: Likewise.
155 * hurd/new-fd.c: Likewise.
156 * sysdeps/mach/hurd/start.c: Likewise.
158 * sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
160 * hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
163 * sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
164 compiler warning. Add init_brk to _hurd_preinit_hook instead of
167 * sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
168 (start1): Run _hurd_preinit_hook before threadvar setup.
170 Tue May 24 17:42:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
172 * hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
173 _hurd_init_dtablesize. Initialize _hurd_dtable_rlimit as
174 _hurd_dtablesize used to be set, but don't let it be zero.
175 (_hurd_dtable_rlimit): New variable.
177 Tue May 24 12:57:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
179 * sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
180 in milliseconds, not microseconds; compute it accordingly.
182 * sysdeps/mach/hurd/__select.c (__select): Deleted variables
183 DTABLE and DTABLE_ULINK. Use new vars _hurd_dtablesize and
184 _hurd_dtable instead of old _hurd_dtable structure. Use new
185 locking protocol on _hurd_dtable.
187 Tue May 24 01:55:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
189 * sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
191 * sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
193 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
194 sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
196 Mon May 23 19:05:44 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
198 * sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
200 * mach/devstream.c (mach_open_devstream): Set STREAM's seek and
201 fileno io functions to null.
203 * hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
204 PLEASE_DEALLOC array.
206 * sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
207 after fetching them. If a standard descriptor is not allocated,
208 allocate the structure and store its pointer in the stream anyway.
210 * stdio/gets.c: Only return null on P==S if feof (STREAM).
212 * stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
214 * sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
216 Mon May 23 14:24:50 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
218 * sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
220 * sysdeps/mach/hurd/__dup2.c (__dup2): Likewise. Use
221 _hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
224 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
225 HURD_FD_PORT_USE, not HURD_FD_USE.
226 * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
229 * hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
231 * hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
232 we are not the process group leader, ignore the signal.
233 (_S_sig_post [case SIGURG]): Declaration of D was out of place.
235 * sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for
236 io_get_openmodes prototype.
238 Sat May 21 16:03:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
240 * assert/assert.c (__assert_fail): Put program name first in msg.
242 * hurd/Makefile (dtable): Removed setdtsz.
244 * hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
245 old _hurd_dtable structure.
246 * hurd/hurdsig.c: Likewise.
247 * hurd/alloc-fd.c: Likewise.
248 * hurd/hurdioctl.c (rectty_dtable): Likewise.
250 * Version 1.08 released.
252 * mach/mach_error_string.c: Renamed to errstring.c.
253 * mach/Makefile (routines): Renamed mach_error_string to errstring.
254 * mach/err_mach_ipc.sub: Renamed to err_mach.sub.
255 * mach/err_bootstrap.sub: Renamed to err_boot.sub.
257 * sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
258 for CONST qualifier on SET arg to generated function.
259 Changed uses to pass it; sigismember passes __const, others empty.
261 * sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
263 * sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
264 * sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
265 Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
267 * sysdeps/mach/hurd/stdio_init.c: New file.
268 * hurd/dtable.c (_hurd_fd_subinit): New hook variable.
269 (init_dtable): Run the _hurd_fd_subinit hook.
271 * hurd/hurd/fd.h (struct hurd_dtable): Type removed.
272 (_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
273 (_hurd_dtable): Make this a struct hurd_fd **.
274 (_hurd_dtablesize): New variable.
275 (struct hurd_fd_user): Type removed.
276 (_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
278 (_hurd_fd_get): Rewritten. Take just one arg, and look it up in
279 _hurd_dtable; return a struct hurd_fd *.
280 (HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
281 * hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
283 (_hurd_dtable): Make this a struct hurd_fd **.
284 (_hurd_dtablesize): New variable.
285 (init_dtable, fork_parent_dtable, fork_child_dtable,
286 ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
287 * sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
288 * sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
290 * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
292 * hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
294 (_hurd_fd_error): Call it.
296 * hurd/Makefile (dtable): Add fd-close.
297 * hurd/fd-close.c: New file.
298 * hurd/hurd/fd.h: Declare _hurd_fd_close.
300 * sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
302 * signal/Makefile (routines): Add sigsetops.
303 * signal/sigsetops.c: New file.
305 * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
306 Use it for all the inline functions.
308 * signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
310 * sysdeps/generic/sigset.h: Protect types with #ifndef
311 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
312 && defined (_SIGNAL_H).
313 (__SIGSETFN): Add extern declaration of NAME inside function.
315 * sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
316 * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
318 Fri May 20 20:42:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
320 * sysdeps/unix/Makefile (sys/termios.h): Variable removed.
321 (ioctl-includes): New variable.
322 (make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
323 ($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
326 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
327 * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
329 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
331 * sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
332 Rewritten as extern inline functions; check for bogus signal number.
334 * configure.in (names): Put $implied before $* in new $sysnames
335 list remaining to be processed; this ensures unix/common precedes
336 unix/sysv4 for sysv4.
338 Thu May 19 18:35:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
340 * sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
341 line buffered and stderr unbuffered.
343 Thu May 19 16:14:36 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
345 * sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
347 * sysdeps/generic/configure.in: Use changequote around if expr
350 Thu May 19 13:53:59 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
352 * hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
353 rather than EPROTONOSUPPORT because it's the entire protocol
354 family that isn't present, not just one protocol.
356 * sysdeps/mach/hurd/__access.c (__access): Don't deallocate
357 CRDIR or CWDIR; that's taken care of by the _hurd_port_get
358 and _hurd_port_free system.
360 Thu May 19 04:14:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
362 * sysdeps/posix/libc_fatal.c: Include <errno.h>.
364 * sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
366 * sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
367 __auth_makeauth call.
369 * sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
370 operations, so the result is always technically a constant (the
371 old method of using a union constructor expression was not good
372 enough for initializers).
374 * hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
375 ENOENT, we return EPROTONOSUPPORT.
377 * hurd/Makefile (dtable): Add hurdioctl.
378 * hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
380 * hurd/hurdioctl.c: New file.
381 (fioctl, fioclex): New functions.
382 * sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
383 define it, just declare it.
385 * sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
386 MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
388 * sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
390 * sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
391 Instead, add explicit extern declaration of TABLE in main.
393 Wed May 18 17:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
395 * sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
399 * sunrpc/Makefile (+gccwarn): Set to -w.
401 * sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
402 instead of dir to remove directory name from .../sys/param.h but
405 * inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
407 * posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
408 define to _UTSNAME_LENGTH.
409 (struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
410 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
413 * resource/sys/resource.h (enum __rlimit_resource): Removed.
414 Just include <resourcebits.h> instead.
415 * resource/Makefile (headers): Add resourcebits.h.
416 * sysdeps/generic/resourcebits.h: New file.
417 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
419 * stdio/test-popen.c (main): Use popen to read the file back, too.
421 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
423 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
425 Tue May 17 12:46:31 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
427 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
428 __mach_task_self, __mach_host_self): New declarations of __
429 versions of syscall traps.
430 (swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
431 __thread_switch, evc_wait, __evc_wait): New prototypes.
432 * mach/Makefile (headers): Added mach/mach_traps.h so that the
433 GNU version is installed instead of the Mach version.
435 Mon May 16 15:34:12 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
437 * sysdeps/stub/sys/param.h: New file.
439 * mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
440 (__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
442 * mach/mutex-solid.c: New file.
443 * mach/Makefile (lock): Add mutex-solid.
444 (lock-headers): Remove mutex.h.
445 * mach/mutex.h: File removed.
446 * hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
447 * hurd/hurd/signal.h: Likewise.
448 * hurd/hurdsig.c: Likewise.
449 * hurd/hurdsock.c: Likewise.
450 * hurd/dtable.c: Likewise.
451 * hurd/__setauth.c: Likewise.
452 * sysdeps/mach/hurd/Makefile (includes): Also append
453 -I$(hurd-srcdir)/libthreads.
455 * sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
457 * sysdeps/unix/sysv/sco3.2.4/system.c
458 (WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
460 * sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
463 * sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
464 SV_ONSTACK is set in VEC->sv_flags.
465 [SA_RESTART]: Protect SV_INTERRUPT check with this.
467 * sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
468 * sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
469 [FATAL_PREPARE]: Invoke the macro.
470 * assert/assert.c: Likewise.
472 * sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
473 into it. Loop until BEGIN passes the location in HAYSTACK with
474 NEEDLE_LEN bytes remaining to the end.
475 Compare first byte manually before calling memcmp.
477 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
479 * posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
480 u_int32_t, u_int16_t, u_int8_t): New typedefs.
482 * assert/assert.c (__assert_program_name): New variable.
483 (__assert_fail): Print that in the msg too.
484 [HAVE_GNU_LD] (set_progname): New function to set it up at startup.
486 Thu May 12 01:10:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
488 * hurd/__setauth.c: Do critical section locking.
489 * hurd/hurdexec.c: Likewise.
490 * hurd/hurdauth.c (_S_del_auth): Likewise.
491 * hurd/getuids.c: Likewise.
492 * hurd/dtable.c: Likewise.
493 * hurd/alloc-fd.c: Likewise.
494 * hurd/hurd/port.h: Likewise.
495 * hurd/hurd/fd.h: Likewise.
496 * hurd/setuids.c: Likewise.
497 * hurd/intern-fd.c: Likewise.
498 * hurd/hurdsock.c (_hurd_socket_server): Likewise.
499 * sysdeps/mach/hurd/setrlimit.c: Likewise.
500 * sysdeps/mach/hurd/setgroups.c: Likewise.
501 * sysdeps/mach/hurd/seteuid.c: Likewise.
502 * sysdeps/mach/hurd/setegid.c: Likewise.
503 * sysdeps/mach/hurd/getrlimit.c: Likewise.
504 * sysdeps/mach/hurd/__setuid.c: Likewise.
505 * sysdeps/mach/hurd/__setreuid.c: Likewise.
506 * sysdeps/mach/hurd/__setregid.c: Likewise.
507 * sysdeps/mach/hurd/__setitmr.c: Likewise.
508 * sysdeps/mach/hurd/__setgid.c: Likewise.
509 * sysdeps/mach/hurd/__select.c: Likewise.
510 * sysdeps/mach/hurd/__sbrk.c: Likewise.
511 * sysdeps/mach/hurd/__getuid.c: Likewise.
512 * sysdeps/mach/hurd/__getpgrp.c: Likewise.
513 * sysdeps/mach/hurd/__getitmr.c: Likewise.
514 * sysdeps/mach/hurd/__getgrps.c: Likewise.
515 * sysdeps/mach/hurd/__getgid.c: Likewise.
516 * sysdeps/mach/hurd/__geteuid.c: Likewise.
517 * sysdeps/mach/hurd/__getegid.c: Likewise.
518 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
519 * sysdeps/mach/hurd/__fork.c: Likewise.
520 * sysdeps/mach/hurd/__fcntl.c: Likewise.
521 * sysdeps/mach/hurd/__dup2.c: Likewise.
522 * sysdeps/mach/hurd/__close.c: Likewise.
523 * sysdeps/mach/hurd/__brk.c: Likewise.
524 * sysdeps/mach/hurd/__access.c: Likewise.
526 * sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
529 * sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
531 * sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
532 return code is zero. Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
534 * mach/devstream.c (output): Use device_write instead of
537 Wed May 11 18:49:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
539 * hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
540 _hurd_ports elts before doing _hurd_proc_init or
541 __task_set_special_port.
543 * hurd/hurd/signal.h (struct hurd_sigstate): Add new
544 `critical_section' member. Remove #if 0'd out vfork crap.
545 (_hurd_critical_section_lock, _hurd_critical_section_unlock): New
547 (HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
549 * io/Makefile (headers): Add poll.h and sys/poll.h.
550 (routines): Add poll.
551 * sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
552 * sysdeps/unix/sysv/poll.S: New file.
553 * sysdeps/unix/bsd/poll.c: New file.
554 * sysdeps/stub/poll.c: New file.
555 * io/poll.h, io/sys/poll.h: New files.
557 * misc/bsd-compat.c (setjmp): New function.
559 * sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
560 * misc/Makefile (headers): Add it here instead.
562 * io/test-utime.c (main): New file.
563 * io/Makefile (tests): New variable.
565 Wed May 11 13:44:33 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
567 * hurd/hurd/threadvar.h (__hurd_errno_location): Remove
568 __volatile keyword. `volatile int errno' is not the same
569 as `int errno'; user programs often mention the latter.
570 * errno.h: Remove __volatile keyword; same reason.
572 Tue May 10 17:21:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
574 * time/zdump.c: New code from ADO.
576 * time/difftime.c (difftime): Use hairy rounding algorithm from
577 eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
579 * Makerules (native-CFLAGS): Remove -I$(sysincludedir). RMS says
580 people with bogons in /usr/local/include deserve to lose.
582 * stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
583 FPNUM before testing it for %g format choice.
585 * sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
586 * sysdeps/unix/sysv/irix4/Dist: New file.
587 * sysdeps/unix/sysv/irix4/readv.c: New file.
588 * sysdeps/unix/sysv/irix4/writev.c: New file.
589 * sysdeps/unix/sysv/irix4/__dup2.c: New file.
591 * sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
594 * sysdeps/mips/setjmp.S: Remove spurious $.
596 * sysdeps/generic/ftime.c: Include <errno.h>.
598 * sysdeps/unix/mips/sysdep.S: Add .set noreorder.
600 Tue May 10 16:27:13 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
602 * sysdeps/generic/termbits.h (NCCS): Doc fix.
604 Mon May 9 18:07:44 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
606 * sysdeps/mach/hurd/uname.c (uname): System uname information
607 has moved from init to proc.
609 * sysdeps/mach/usleep.c (usleep): Return correct value. Destroy
610 RECV when we're done with it.
612 Thu May 5 17:03:56 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
614 * sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
616 Thu May 5 04:20:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
618 * mach/spin-lock.h (spin_lock_init): Define.
620 * sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
621 it to *SET if SET is not null, before taking SS->lock; don't
622 dereference SET while holding the lock. Restore SS->blocked to
623 OLDMASK before unlocking and returning.
625 * hurd/hurdsig.c (hurdsig_fork_child): Return zero.
627 * sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
628 _hurd_fork_prepare_hook)): Define variables (symbol sets).
629 (__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
631 * sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
632 wait until SS->suspended is cleared.
633 * hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
634 before signalling on SS->arrived.
636 * mach/Makefile (headers): Added mach/default_pager_helper.defs.
638 * sysdeps/sparc/Dist: Added alloca.S.
640 Wed May 4 14:02:29 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
642 * hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
645 * sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
646 to be a spin_lock; changed mutex_lock and mutex_unlock
647 accordingly throughout.
648 * sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
649 mutex calls to spin lock calls here too.
651 * sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax
652 of declaration of PREEMPT.
653 (setitimer_locked): Declare variables ERR and ELAPSED.
654 (setitimer_locked): Fix some references to REMAINING that
655 were using it as an itimerval instead of a timeval.
656 (setitimer_locked): Deleted unused label STILLBORN.
658 Wed May 4 00:17:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
660 * sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
662 * sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
665 * hurd/Makefile (user-interfaces): Add hurd/msg_request.
667 * sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
669 * Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
670 * time/Makefile (install-others): Omit defn ifdef cross-compiling.
672 Tue May 3 23:12:48 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
674 * mach/Makefile (lock-headers): Add spin-lock.h.
676 * misc/Makefile (routines): Add madvise.
678 * malloc/Makefile (non-lib.a): Define.
679 * misc/Makefile (non-lib.a): Define.
680 * Makerules (install-lib.a): Filter out $(non-lib.a).
681 (install-lib-non.a): Append $(non-lib.a).
683 * mach/Makefile (mach-headers): Rename sys/version.h to
686 * hurd/Makefile (headers): Added hurd/threadvar.h.
690 * hurd/port2fd.c (_hurd_port2fd): Use logic copied from
691 _hurd_port_locked_set to install PORT in D->port, but leave it locked.
693 * sunrpc/Makefile (generated): Don't add $(objpfx).
695 * sysdeps/stub/machine-lock.h: New file.
696 * sysdeps/stub/machine-sp.h: New file.
698 Tue May 3 22:31:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
700 * sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
701 mach_msg actually waits.
703 Tue May 3 19:24:48 1994 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
705 * malloc/malloc.h (enum mcheck_status): Delete trailing
706 comma in enum list; some compilers don't like it.
708 Tue May 3 15:18:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
710 * sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
711 __file_set_translator.
713 Mon May 2 17:56:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
715 * hurd/Makefile (generated): Add $(inlines) .c files.
717 * sysdeps/mach/hurd/__mknod.c: Pass port type arg to
718 __file_set_translator.
720 Sun May 1 16:03:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
722 * mach/mig_syms.c: Add de-__ing aliases for mig_init,
723 mig_get_reply_port, and mig_dealloc_reply_port.
725 * sysdeps/mach/hurd/errnos.awk: Handle copying errors from
726 mach/mig_errors.h and device/device_types.h. Omit E*_SUCCESS.
727 Omit MACH_MSG_MASK and other special bit macros.
729 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
730 sc_reply_port member.
731 * hurd/hurdsig.c (fetch_reply_port): New function.
732 (_hurd_internal_post_signal): When setting up to run handler, set
733 SCP->sc_reply_port to the receiving thread's value for
734 _HURD_THREADVAR_MIG_REPLY.
735 * sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
736 used by the signal handler, and restore from SCP->sc_reply_port.
737 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
738 function; guts from __hurd_threadvar_location.
739 (__hurd_threadvar_location): Call that.
741 * hurd/hurdsig.c (check_pending): New function, broken out of:
742 (_hurd_internal_post_signal): Call that for pending signal check.
743 If SIGNO is zero, call check_pending on each thread's sigstate.
745 * sysdeps/mach/hurd/start.c (start1): Use calloc to get
746 zero-filled space for __hurd_threadvar_stack_offset when
747 __hurd_threadvar_stack_mask is zero.
749 Thu Apr 28 21:29:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
751 * Merged gmp-1.99.3+ mpn code from tege for printf_fp.
752 * stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
754 * Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
756 Wed Apr 27 00:20:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
758 * Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
759 Always use $(+depfiles), since sources is no longer exported.
761 Tue Apr 26 20:05:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
763 * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to
764 avoid <sys/ioctl.h> conflicts.
765 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
766 TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
767 before including <sys/ioctl.h>.
768 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
770 Tue Apr 26 14:42:43 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
772 * sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
773 mach_msg won't do anything but return immediately.
774 (sleep): Compute return value correctly.
776 Tue Apr 26 04:49:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
778 * sysdeps/i386/setjmp.c: Put global register decls first thing.
779 * sysdeps/i386/__longjmp.c: Likewise.
781 Fri Apr 22 18:10:36 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
783 * sysdeps/unix/sysv/irix4/__wait3.S: New file.
784 * sysdeps/unix/sysv/irix4/time.S: New file.
785 * sysdeps/unix/sysv/irix4/__waitpid.c: New file.
787 Thu Apr 21 16:54:11 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
789 * malloc/malloc.c (initialize, morecore): When allocating the
790 _heapinfo block itself, account for it in the statistics.
792 Tue Apr 19 20:17:06 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
794 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
796 * malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
797 not the part we will copy _heapinfo into.
799 * sysdeps/unix/bsd/signum.h (SIGLOST): Define.
800 (_NSIG): Increase to 33.
802 Mon Apr 18 16:56:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
804 * configure.in (config.status): Use $configure_args instead of
806 (after AC_PREPARE): Call AC_LANG_C.
808 * time/Makefile (routines): Add sys/timeb.h.
809 (routines): Add ftime.
810 * time/sys/timeb.h: New file.
811 * sysdeps/unix/bsd/ftime.c: New file.
812 * sysdeps/generic/ftime.c: New file.
814 * sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
816 * malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
819 * malloc/Makefile (gmalloc-routines): Put valloc first.
821 Wed Apr 13 14:03:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
823 * sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
824 link to FROM, not TO.
826 * sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
827 target into the user's buffer, not the entire translator spec.
829 Tue Apr 12 00:13:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
831 * hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
832 than depending on what happens to be on the stack.
834 * sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
835 end-of-file and return NULL.
837 Mon Apr 11 17:36:59 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
839 * sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
841 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of
842 HURD_EINTR_RPC until signals work.
844 Mon Apr 11 14:16:40 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
846 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
847 rather than __mig_reply_port (which doesn't exist).
849 * sysdeps/mach/hurd/__mknod.c: Added temporary declarations
852 * (This change occurred on April 4, 1994) mach/setup-thread.c
853 (__mach_setup_thread): The March 31 change had an error; the stack
854 needs to be allocated with ANYWHERE cleared.
856 * (This change occurred on April 8, 1994) hurd/hurdexec.c
857 (_hurd_exec): The arguments to exec_exec had the length and
858 type parameters transposed. In addition, fetch the correct
859 procserver port for the new task.
861 * (This change occurred on April 8, 1994)
862 sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
865 * (This change occurred on April 8, 1994)
866 sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
867 __proc_exit into a correct call to __proc_mark_exit.
869 Fri Apr 8 14:58:24 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
871 * string/strsignal.c (strsignal): Store of NUL into unknown_signal
874 Tue Apr 5 21:26:25 1994 Brendan Kehoe (brendan@zen.org)
876 * sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
877 `oact' in lower case, to match its use in the rest of the function.
879 Tue Apr 5 03:07:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
881 * Makerules (install-lib.a rule): Run ranlib on the target.
883 * Makerules (library member rule): Tighten up pattern rule to
884 match only libc.a, not other libraries.
886 Mon Apr 4 21:49:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
888 * set-hooks.h: New file.
889 * Makefile (distribute): Add it.
890 * set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
892 * Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
893 (sysd-rules): Don't include it unless sysd-Makefile-done is defined.
895 Mon Apr 4 18:33:54 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
897 * mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
898 call should have ANYWHERE cleared so that the change of the 31st
899 has any effect at all.
901 Thu Mar 31 13:46:13 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
903 * mach/setup-thread.c (__mach_setup_thread): Create a red zone
904 beneath the stack; also, work around a bug in cthreads by
905 forcing the stack into high memory. FIXME--this routine
906 depends on the direction of stack growth; that should be fixed.
908 Mon Mar 28 12:55:51 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
910 * Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
912 * configure.in (arg parsing): Don't take --os-release or --os-version.
913 (switches): Variable removed; don't write it into config.status.
914 (config.status): Write release and version values directly.
916 * sysdeps/unix/common/configure.in: Use changequote around if expr
919 Sat Mar 26 18:36:27 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
921 * malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
923 Fri Mar 25 02:17:55 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
925 * malloc/mcheck.c (mprobe): New function.
926 (abortfunc): Take enum mcheck_status arg.
927 (checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
928 (mabort): New function.
929 (mcheck): Use mabort as default abortfunc.
930 * malloc/malloc.h (enum mcheck_status): New type.
931 (mprobe): Declare new function.
932 (mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
934 * posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
936 * stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
937 Define instead of __io_functions (and make that a typedef for
938 this); omit __ from member names.
940 Thu Mar 24 14:59:23 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
942 * sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
944 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
945 __sigreturn in %ecx before doing syscall trap.
947 * sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
949 Wed Mar 23 17:33:09 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
951 * Makefile (headers): Remove $(stdarg.h).
952 * Makeconfig (stdarg.h): Variable removed.
953 * configure.in: Remove check for __gnuc_va_list in stdarg.h.
954 It is not safe to replace the compiler's stdarg.h with our own.
956 Tue Mar 22 12:46:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
958 * Rules (dist): Rule removed.
959 * Makefile (dist): Likewise.
960 * Makerules (dist, distinfo): New rules.
961 (TAGS): Depend on distfile, pass -f distfile to submake.
963 * math/Makefile: Remove if-ed out old bsdmath copying rules.
965 * Makerules (sources, headers, sysdep_routines): Don't export these.
966 * Rules (others, tests): Likewise.
968 * io/lockf.c: Include fcntl.h and errno.h.
970 Mon Mar 21 20:27:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
972 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
973 * sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
974 sys_wait4.S,Makefile,Dist}: New files.
976 * sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
978 * sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
979 to `store'; a user reports gas 1.38 bombs on numbered labels.
981 * sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
983 * Rules (distribute, dont_distribute, generated): Don't export them.
984 (dist): Pass those vars down to sub-make on cmd line.
985 * Makefile (distribute, generated): Don't export them.
986 (dist): Pass distribute and generated values to sub-make on cmd line.
988 * Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
990 Fri Mar 18 01:02:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
992 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
993 place of fp. A user reports gas 1.38 doesn't grok fp.
995 Tue Mar 8 18:35:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
997 * Makerules (common-clean): Prepend $(objpfx) to $(generated).
998 * Makefile (parent-clean): Prepend $(common-objpfx) to
1000 * Makefile (generated): Don't prepend $(objpfx).
1001 * Rules (generated): Likewise.
1002 * sysdeps/unix/common/Makefile (generated): Likewise.
1003 * sysdeps/unix/sysv/Makefile (generated): Likewise.
1004 * sysdeps/unix/Makefile (common-generated): Don't prepend
1006 * sysdeps/posix/Makefile (common-generated): Likewise.
1007 * sysdeps/generic/Makefile (common-generated): Likewise.
1008 (generated): Don't prepend $(objpfx).
1010 * sysdeps/generic/Makefile (common-generated): Set this instead of
1011 generated for bytesex.h and det_endian.
1013 * sysdeps/stub/fexecve.c: New file.
1014 * posix/Makefile (routines): Add fexecve.
1015 * posix/unistd.h [__USE_GNU]: Declare fexecve.
1017 * sysdeps/unix/common/configure.in: Protect siglist and ctype
1018 checks with if [ ! "$inhibit_glue" ].
1019 * sysdeps/generic/configure.in: Likewise for psignal check.
1020 * sysdeps/unix/common/Makefile: Protect body with ifndef inhibit-glue.
1022 Mon Mar 7 17:46:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1024 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
1026 Fri Mar 4 01:56:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1028 * Makerules (native-compile, common-objdir-compile): Use
1029 $(HOST_CC) in place of $(CC).
1031 * malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
1033 * misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
1034 use two int elts instead of four shorts.
1036 Thu Mar 3 17:35:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1038 * malloc/realloc.c (realloc): When shrinking a block by splitting
1039 and then freeing one, bump the _chunks_used counter.
1041 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
1043 Tue Mar 1 11:42:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1045 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
1046 stack at 8(%esp), not 4(%esp).
1048 * sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
1050 Thu Feb 24 14:40:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1052 * io/lockf.c: New file.
1053 * io/Makefile (routines): Add lockf.
1054 * io/fcntl.h [__USE_MISC] (F_ULOCK, F_LOCK, F_TLOCK, F_TEST): New
1056 [__USE_MISC] (lockf): Declare it.
1057 * posix/unistd.h: Copy those new macros and declaration.
1059 * time/backward, time/etcetera, time/zic.c: New code and data from ADO.
1060 * Makeconfig (posixrules): Default to America/New_York.
1062 * sysdeps/unix/mips/sysdep.S: Store -1 in v0 in the delay slot after
1063 the return, rather than before (leaving the delay slot unfilled and
1066 * sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
1069 * sysdeps/unix/sysv/sysv4/direct.h: Moved to unix/common; it is right
1070 for irix4 as well as sysv4.
1071 * sysdeps/unix/bsd/ultrix4/__wait.S: Moved to unix/mips.
1072 (noerror): Store register v1 in location pointed to by first arg (if
1074 * sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
1076 * sysdeps/unix/bsd/bsd4.4/{mmap,munmap,mprotect,msync,madvise}.S:
1077 Moved to sysdeps/unix/mman (new directory).
1078 * sysdeps/unix/bsd/bsd4.4/Implies: New file; imply unix/mman.
1079 * sysdeps/unix/bsd/sunos4/Implies: Likewise.
1080 * sysdeps/unix/bsd/ultrix4/Implies: Likewise.
1081 * sysdeps/unix/bsd/osf1/Implies: Likewise.
1082 * sysdeps/unix/bsd/sun/sunos4/munmap.S,
1083 sysdeps/unix/bsd/sun/sunos4/mprotect.S,
1084 sysdeps/unix/bsd/sun/sunos4/madvise.S,
1085 sysdeps/unix/bsd/ultrix4/mmap.S,
1086 sysdeps/unix/bsd/ultrix4/munmap.S,
1087 sysdeps/unix/bsd/ultrix4/mprotect.S,
1088 sysdeps/unix/bsd/osf1/mmap.S,
1089 sysdeps/unix/bsd/osf1/munmap.S,
1090 sysdeps/unix/bsd/osf1/mprotect.S: Files removed.
1092 * sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
1094 * stdio/printf_fp.c: Add many assertions to make sure no mpn size
1095 variable is ever zero.
1097 * Makerules (native-CFLAGS): Add -I$(sysincludedir).
1099 * Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
1100 instead of shell hackery.
1102 Wed Feb 23 00:09:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1104 * sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
1106 Tue Feb 22 18:47:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1108 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
1111 * time/setitmr.c: Swap args OLD and NEW.
1112 * time/sys/time.h (setitimer): Likewise.
1113 * sysdeps/stub/__setitmr.c: Likewise.
1115 Mon Feb 21 20:47:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1117 * sysdeps/sparc/Makefile [gnulib] (routines): Add alloca.
1118 * sysdeps/sparc/alloca.S: New file; support for SunOS libc's
1119 `__builtin_alloca' function (never needed with GCC).
1121 * sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
1124 Sun Feb 20 00:46:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1126 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
1128 * sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
1129 before <sys/mman.h>.
1131 * sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
1132 __fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
1134 * sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
1135 instead of literal 103; #define to 103 if not already defined.
1137 Sat Feb 19 17:39:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1139 * sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
1141 Fri Feb 18 18:07:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1143 * sysdeps/generic/configure.in: New file; check for psignal.
1145 * sysdeps/unix/common/glue-ctype.c: Check for table named _ctype,
1146 before checking for _ctype_.
1147 * sysdeps/unix/common/configure.in: Check for _ctype.
1149 * sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
1150 * sysdeps/unix/configure (unix_syscall_h): Likewise.
1152 * configure.in (os = irix4*): Set base_os=unix/sysv.
1154 * sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
1155 * sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
1157 Thu Feb 17 18:42:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1161 * sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
1163 * Makerules (sysdep_dir): Remove defn.
1164 * Makeconfig (sysdep_dir): Define it here instead.
1166 Wed Feb 16 16:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1168 * sysdeps/unix/sysv/sysv4/__sigact.c: New file.
1169 * sysdeps/unix/sysv/sysv4/i386/Makefile: New file.
1170 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: New file.
1172 * time/sys/time.h (timerisset, timercmp, timerclear): New macros.
1174 * misc/Makefile (headers): Add sys/mman.h.
1175 (routines): Add mmap, munmap, mprotect, msync.
1176 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: New file.
1177 * sysdeps/unix/bsd/sun/sunos4/mmap.c: New file.
1178 * sysdeps/unix/bsd/sun/sunos4/Makefile [$(subdir) == misc]
1179 (sysdep_routines): Add sys_mmap.
1180 * sysdeps/unix/bsd/bsd4.4/mprotect.S: New file.
1181 * sysdeps/unix/bsd/bsd4.4/munmap.S: New file.
1182 * sysdeps/unix/bsd/bsd4.4/msync.S: New file.
1183 * sysdeps/unix/bsd/bsd4.4/mmap.S: New file.
1184 * sysdeps/unix/bsd/bsd4.4/madvise.S: New file.
1185 * sysdeps/unix/bsd/sun/sunos4/mprotect.S: New file.
1186 * sysdeps/unix/bsd/sun/sunos4/munmap.S: New file.
1187 * sysdeps/unix/bsd/sun/sunos4/msync.S: New file.
1188 * sysdeps/unix/bsd/sun/sunos4/madvise.S: New file.
1189 * sysdeps/unix/bsd/ultrix4/sys/mman.h: New file.
1190 * sysdeps/unix/bsd/ultrix4/mmap.S: New file.
1191 * sysdeps/unix/bsd/ultrix4/munmap.S: New file.
1192 * sysdeps/unix/bsd/ultrix4/mprotect.S: New file.
1193 * sysdeps/stub/mprotect.c: New file.
1194 * sysdeps/stub/munmap.c: New file.
1195 * sysdeps/stub/msync.c: New file.
1196 * sysdeps/stub/mmap.c: New file.
1197 * sysdeps/stub/madvise.c: New file.
1198 * sysdeps/generic/sys/mman.h: New file.
1199 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: New file.
1200 * sysdeps/unix/bsd/osf1/msync.S: New file.
1201 * sysdeps/unix/bsd/osf1/mmap.S: New file.
1202 * sysdeps/unix/bsd/osf1/munmap.S: New file.
1203 * sysdeps/unix/bsd/osf1/mprotect.S: New file.
1204 * sysdeps/unix/bsd/osf1/sys/mman.h: New file.
1206 Tue Feb 15 16:47:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1208 * posix/unistd.h: Declare truncate, ftruncate.
1210 * misc/Makefile (headers): Add syslog.h.
1211 * misc/syslog.h: New file; just includes <sys/syslog.h>.
1213 * posix/unistd.h: Change duplicate seteuid decl to setegid.
1215 * io/Makefile (headers): Add sys/fcntl.h.
1216 * io/sys/fcntl.h: New file; just includes <fcntl.h>.
1218 Mon Feb 14 10:36:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1220 * Makerules (library pattern rule): Depend on
1221 $(objpfx)stamp-$(subdir) and have empty commands.
1222 ($(objpfx)stamp-$(subdir)): Move dep on $(objects) and ar cmds here.
1223 (common-mostlyclean): Remove $(objpfx)stamp-$(subdir).
1225 * Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
1227 * sunrpc/Makefile (omit-deps): Define new variable.
1229 * Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
1231 * Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
1233 * Makerules (+depfiles): Include deps for $(extra-objs).
1235 * sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
1237 * sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
1239 * time/zic.c: Set CP to NAME before dereferencing.
1241 * sunrpc/Makefile ($(objpfx)x%.c): Target fixed from $(objpfx)x%.c.
1242 ($(objpfx)rpcsvc/%.h): Target renamed from $(includedir)rpcsvc/%.h.
1243 Make each x%.o file depend on the corresponding rpcsvc/%.h file.
1244 (headers): Add rpcsvc/%.h.
1245 (install-others): Remove generated rpcsvc headers.
1246 (generated): Define to include generated rpcsvc headers and sources.
1248 * sysdeps/m68k/fpu/acos.c: Add __CONSTVALUE to defn.
1249 * sysdeps/m68k/fpu/ldexp.c: Likewise.
1250 * sysdeps/m68k/fpu/pow.c: Likewise.
1251 * sysdeps/m68k/fpu/fmod.c: Likewise.
1252 * sysdeps/m68k/fpu/atan2.c: Likewise.
1253 * sysdeps/m68k/fpu/__drem.c: Likewise.
1254 * sysdeps/m68k/fpu/__isinf.c: Likewise.
1255 * sysdeps/generic/hypot.c: Likewise.
1256 * sysdeps/m68k/fpu/__logb.c: Likewise.
1258 * sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
1260 Sun Feb 13 19:49:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1262 * sysdeps/m68k/Makefile (compile-command.S): Remove definition
1263 that did kludgey # hackery.
1264 * sysdeps/unix/bsd/hp/m68k/sysdep.h (PSEUDO): Add missing close paren.
1265 (POUND): Define (no arg) to just `#' (a single pound sign).
1266 (PSEUDO, DO_CALL): Use `POUND foo' in place of `POUND(foo)'.
1267 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
1268 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
1269 * sysdeps/unix/bsd/sun/m68k/__brk.S: Use #0, not POUND(0).
1270 * sysdeps/unix/bsd/hp/m68k/__brk.S: Use #__end instead of POUND(__end).
1272 Fri Feb 11 00:29:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1274 * configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
1276 * time/mktime.c: Define __P if undefined.
1278 * assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
1279 defined(__cplusplus).
1281 Thu Feb 10 00:52:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1283 * sysdeps/unix/sysv/__sigact.c: Use __sigismember and
1284 __sigemptyset on sa_mask instead of assuming it's an int.
1286 * sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
1287 SET to be a pointer to const.
1289 * sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
1291 * sysdeps/posix/__sigblock.c: When sigset_t==mask, take address of
1292 SET or OSET, cast to int *, and dereference.
1293 * sysdeps/posix/__sigstmsk.c: Likewise.
1294 * sysdeps/posix/__sigvec.c: Likewise.
1296 Add the -lrpcsvc library of XDR routines for standard SunRPC protocols.
1297 * sunrpc/Makefile (install-lib): Define to include librpcsvc.a.
1298 (rpcsvc-objs): New variable.
1299 (extra-objs): Add $(rpcsvc-objs).
1300 ($(objpfxlibrpcsvc.a): New target.
1301 ($(objpfx)x%.o): New rule to rpcgen XDR routines.
1303 Wed Feb 9 11:59:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1305 * time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
1307 * sunrpc/Makefile (distribute): Add etc.rpc.
1308 ($(includedir)/bootparam_prot.h): Change target to
1309 $(includedir)/rpcsvc/bootparam_prot.h and dep to
1310 $(includedir)/rpcsvc/bootparam.h.
1311 (install-others): Change reference.
1313 * sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
1315 * Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
1316 of $(+libobjs); this way makes the parent do subdir_lib.
1318 * sysdeps/unix/sysv/sysv4/sigset.h: Protect types with #ifndef
1319 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
1320 && defined (_SIGNAL_H).
1322 Tue Feb 8 19:00:42 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1326 * sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
1328 Mon Feb 7 14:31:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1330 * Makerules ($(libc.a)): Depend on $(libc.a)(__.SYMDEF); no commands.
1331 ($(+libobjs)): Remove static pattern rule.
1332 (ar-it): Target removed.
1333 Replace with pattern rule to catch %(*.o) for all $(objects).
1334 ($(libc.a)(__.SYMDEF)): New target.
1335 (lib-noranlib, $(libdir)/lib$(libprefix)c.a): Don't depend on ar-it.
1337 * sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
1338 next insn is most likely a retl, which causes interesting behavior.
1340 * stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
1341 Subtract one from result of _itoa when setting W.
1343 * time/{africa,asia,australasia,backward,europe,leapseconds,
1344 northamerica,southamerica,zic.c}: New code and data from ADO.
1346 Sun Feb 6 13:55:27 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1348 * sunrpc: New directory; code from Sun's RPCSRC-4.0.
1349 * sysdeps/unix/inet/Subdirs: Add sunrpc.
1350 * inet/netdb.h: #include <rpc/netdb.h> at end.
1352 * Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
1353 and pipe output to doschk.
1355 * Makeconfig (etcdir): New variable.
1356 (localtime-file): Use that in default value.
1358 * Makerules (depend-$(subdir)): Include dep files for all .o files
1359 listed in $(extra-objs).
1361 * posix/sys/types.h (NFDBITS): #define to __NFDBITS.
1363 * inet/netinet/in.h (INADDR_LOOPBACK): Don't define if already
1364 defined; avoids changing source which defines it before including this.
1365 (struct sockaddr_in): Rename `__pad' member to `sin_zero'; some
1366 code wants to bzero the area just for paranoia.
1368 Make cleaning targets only remove common (not specific to one
1369 subdir) generated files if run from the parent directory.
1370 * Makefile (parent-clean): Remove $(common-generated) also.
1371 * sysdeps/unix/Makefile (local_lim.h, sys/param.h, errnos.h,
1372 ioctls.h, syscall.h): Append to $(common-generated), not $(generated).
1373 * sysdeps/posix/Makefile (stdio_lim.h): Likewise.
1375 * signal/signal.h: Declare psignal here.
1376 * stdio/stdio.h: Not here.
1378 * stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
1379 vsscanf): Define as extern inline functions instead of macros.
1381 * configure.in (names): Check existence of implied dirs and warn
1384 Sat Feb 5 13:38:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1388 * resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
1389 to self for things that test #ifdef.
1391 * sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
1393 * sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
1395 * Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
1397 * sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
1398 to avoid the test and branch.
1400 * sysdeps/unix/bsd/getprio.S, sysdeps/unix/bsd/setprio.S,
1401 sysdeps/unix/bsd/__setreuid.S, sysdeps/unix/bsd/__setregid.S: Moved to
1402 sysdeps/unix/common.
1404 * sysdeps/unix/reboot.S: New file.
1406 * sysdeps/unix/sysv/sysv4/solaris2/signum.h: New file.
1407 * sysdeps/unix/sysv/sysv4/signum.h: New file.
1408 * sysdeps/unix/sysv/sysv4/sigset.h: New file.
1409 * sysdeps/unix/sysv/sysv4/sigaction.h (struct sigaction): Swap
1410 positions of sa_flags and sa_mask members (sa_flags is first now).
1411 (SA_NOCLDWAIT): Renamed from SA_NOSCLDWAIT.
1413 * sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
1415 * Makerules (open-check-inhibit-asm): Use : for empty commands in case.
1417 * time/leapseconds: New version from ADO, adds 1994 leap second.
1419 Thu Feb 3 02:15:30 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1421 * sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
1423 Wed Feb 2 16:56:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1425 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
1426 Replaced with #include of that file.
1428 * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to
1429 sysdeps/unix/sysv/sysv4/sigaltstk.S.
1431 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
1432 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
1434 Tue Feb 1 18:22:21 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1436 * stdio/_itoa.c, stdio/_itoa.h: New files.
1437 * stdio/Makefile (routines): Add _itoa.
1438 (distribute): Add _itoa.h.
1439 * stdio/vfprintf.c: Use _itoa instead of doing it by hand.
1441 * sysdeps/unix/sparc/vfork.S: Add nop after jmp. Bad delay slot,
1443 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
1445 Mon Jan 31 19:33:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1447 * assert/assert.c (__assert_fail): Take 4th arg FUNCTION; if it is
1448 not null, print it in the message. Also declare __NORETURN.
1449 * assert/assert.h (__assert_fail): Update decl; also add __NORETURN.
1450 (__ASSERT_FUNCTION): #define to be __PRETTY_FUNCTION__ for GCC>=2.4.
1451 (assert): Pass __ASSERT_FUNCTION to __assert_fail.
1453 * sysdeps/unix/bsd/sun/sparc/vfork.S: Moved to sysdeps/unix/sparc.
1454 Use C_SYMBOL_NAME on __vfork instead of prepending an underscore.
1456 * sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
1457 to sysdeps/unix/sysv/sysv4/solaris2/sparc.
1459 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
1460 bsd/ultrix4/mips,bsd/vax}/sysdep.S: Don't do EWOULDBLOCK_sys->EAGAIN
1461 mapping #if EWOULDBLOCK_sys == EAGAIN.
1463 * sysdeps/unix/sparc/sysdep.h [NO_UNDERSCORES]: #define syscall_error
1464 to C_SYMBOL_NAME(__syscall_error).
1465 (PSEUDO): On error, jump to syscall_error instead of setting errno.
1466 * sysdeps/unix/sparc/sysdep.S: New file.
1468 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
1469 unix/bsd/i386 version.
1471 * sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
1473 Thu Jan 27 16:46:03 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1475 * configure.in (asm-CPPFLAGS): Add new check to see if assembling
1476 a .S file loses without -P. If so, set asm-CPPFLAGS=-P in config.make.
1478 * configure.in (stddef.h): Print msg under --verbose.
1480 * manual/Makefile (subdir): Define outside of `export' directive,
1483 * time/mktime.c (search): Take new arg PRODUCER, fn to call
1484 instead of `localtime'.
1485 (_mktime_internal): New function; all code from old `mktime', but
1486 take 2nd arg PRODUCER and pass along to `search'.
1487 (mktime): Rewrite to call _mktime_internal with localtime.
1488 * time/Makefile (routines): Add dysize, timegm, timelocal.
1489 * time/time.h (_mktime_internal): Declare it.
1490 [__USE_MISC]: Declare timegm, timelocal, dysize.
1491 * time/dysize.c: New file.
1492 * time/timegm.c: New file.
1493 * time/timelocal.c: New file.
1495 Wed Jan 26 20:06:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1497 Remove the hackery on getgroups for most systems. It is no longer
1498 necessary because gid_t is now the same size as int.
1499 * sysdeps/unix/common/Makefile (sysdep_routines): Don't add bsd_getgrp.
1500 * sysdeps/unix/common/bsd_getgrp.S: File removed.
1501 * sysdeps/unix/common/__getgrps.S: New file.
1502 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: New file.
1504 Clean up the rules for cleaning up.
1505 * Makerules (common-mostlyclean): New target; remove object files.
1506 (common-clean): New target; depend on common-mostlyclean, and
1507 remove dep files and generated files.
1508 (clean): Depend on common-clean.
1509 (mostlyclean): Depend on common-mostlyclean.
1510 * Rules (mostlyclean): Target removed.
1511 (clean): Target removed.
1512 (distclean): New target; depend on clean.
1513 (realclean): New target; depend on distclean.
1514 (subdir_distclean): New target; depend on distclean.
1515 (subdir_realclean): New target; depend on realclean.
1516 (subdir_mostlyclean): New target; depend on mostlyclean.
1517 * Makefile (+subdir_targets): Add subdir_distclean,
1518 subdir_realclean; change mostlyclean to subdir_mostlyclean.
1519 (parent-mostlyclean): New target; depend on common-mostlyclean and
1520 remove libc.a and $(install-lib).
1521 (parent-clean): New target; depend on parent-mostlyclean and
1522 common-clean, and remove sysdirs sysd-dirs sysd-Makefile.
1523 (clean): Depend on parent-clean and just do submake for subdirs.
1524 (mostlyclean): Depend on parent-clean and just do submake for subdirs.
1525 (distclean, realclean): Depend on parent-clean and do submake
1526 distclean-1 passing it variable assignment distclean-1=$@.
1527 (distclean-1): Depend on subdir_$(distclean-1) and remove
1528 $(config-generated), config.status, config.make, Makefile (if not
1530 * manual/Makefile (subdir_clean): Target removed.
1531 (subdir_%): New rule to handle all such targets.
1532 (distclean): Depend on clean, not mostlyclean.
1533 (realclean): Depend on distclean, not clean.
1535 * sysdeps/unix/configure (unix_generated_dirpfx): New variable.
1536 Use it to put created .S files in sysdeps/unix if configured in
1537 srcdir, else in current directory.
1538 (unix_generated): Prepend $unix_generated_dirpfx.
1539 Have generated config.make fragment prepend $(objpfx).
1540 * sysdeps/unix/Makefile (generated): Don't set it.
1541 (config-generated): Set this instead; don't prepend any directory
1542 prefix to $(unix-generated).
1544 Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
1545 * sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
1547 (EXITED, KILLED, CORED, TRAPPED, STOPPED, CONTINUED): New macros.
1548 * sysdeps/unix/sysv/sysv4/__waitpid.c: Switch on INFOP.__code and
1549 construct *STAT_LOC from INFOP.__status accordingly.
1551 * stdlib/testsort.c (main): Use puts to add newlines to printed lines.
1553 Tue Jan 25 14:32:01 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1557 * manual/Makefile (%.z): Change target pattern to %.gz.
1558 (dist): Comment out dep. Don't really need the separate doc dist.
1560 * stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
1561 getline, __getline): Use extern inlines instead of macros.
1563 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
1565 * sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
1567 * sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
1568 __timezone, __tzname): #define to non-__ names.
1570 * math/math.h [__USE_BSD] (M_E, M_LOG2E, M_LOG10E, M_LN2, M-LN10,
1571 M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2,
1572 M_SQRT1_2): New macros.
1574 Tue Jan 25 14:01:28 1994 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
1576 * sysdeps/mach/hurd/start.c (start1): Decide separately whether to
1577 split argv and whether to split envp.
1579 * sysdeps/mach/hurd/i386/sysdep.h: File deleted.
1580 sysdeps/mach/i386/sysdep.h: Delete SET_SP macro.
1581 sysdeps/mach/hurd/start.c (_start): Don't call GET_SP; set globals
1582 instead of locals from exec_startup message.
1584 * misc/progname.c: Don't try to set
1585 program_invocation_name or program_invocation_short_name if argv
1586 or argv[0] is invalid.
1588 Mon Jan 24 16:51:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1590 * sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
1591 the PID we were called with.
1593 * sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
1594 returning, not after (lot of good that did).
1596 * sysdeps/unix/bsd/ultrix4/system.c, sysdeps/unix/bsd/bsd4.4/system.c,
1597 sysdeps/unix/bsd/osf1/system.c, sysdeps/unix/sysv/sco3.2.4/system.c,
1598 sysdeps/unix/bsd/sun/sunos4/system.c, sysdeps/unix/sysv/sysv4/system.c:
1599 New files. Avoid sysdeps/unix/system.c, which defines NO_WAITPID.
1601 * set-init.c (__libc_init): Use `n' count field instead of
1602 checking for null terminator. The latter loses when there are no
1603 set elts at all, and only one word is allocated for __libc_subinit.
1605 * sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
1606 * posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
1608 * stdio/fileno.c (fileno): Call __stdio_check_funcs.
1610 * stdio/tst-fileno.c: New file.
1612 Fri Jan 21 16:56:50 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1614 * Rules (dep-dummy-lib, make-dummy-lib): New variables.
1615 ($(objpfx)dummy.o): New file rule.
1616 * posix/Makefile ($(objpfx)libposix.a): Depend on
1617 $(dep-dummy-lib), and use $(make-dummy-lib) for commands.
1618 * math/Makefile ($(objpfx)libm.a): Likewise.
1620 * sysdeps/unix/sysv/sysv4/i386/__stat.S: New file.
1621 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
1622 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
1624 * sysdeps/sparc/bytesex.h: New file.
1626 Thu Jan 20 12:45:35 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1628 * sysdeps/stub/syscall.c (syscall): Declare arg type as int.
1630 Wed Jan 19 18:18:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1632 * Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
1634 * manual/Makefile: Change all `mv' uses to `mv -f'.
1635 (subdir_install): Depend on stubs.
1637 * Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
1639 Tue Jan 18 19:12:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1641 * stdlib/testsort.c (main): Swap dimensions of BUFS array.
1644 See ChangeLog.2 for earlier changes.