1Sun Jun  5 14:34:12 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2
3	* Version 1.08.1.
4
5	* sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
6
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.
10
11Sat Jun  4 00:35:42 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
12
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.
18
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
23	removed.
24
25	* hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
26
27	* sysdeps/mach/hurd/__isatty.c: New file.
28
29	* hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
30	not NAME (most of which is uninitialized).
31
32	* hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
33	being non-null; always initialize it.
34
35Fri Jun  3 21:57:14 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
36
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.
40
41	* inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
42	hardcoding 32.
43
44Wed Jun  1 10:52:41 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
45
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.
49
50Tue May 31 18:15:33 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
51
52	* hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
53	(malloc_init): New function; put it on _hurd_preinit_hook.
54
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.
58
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.
61
62Mon May 30 18:37:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
63
64	* hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
65	instead of _hurd_subinit.
66
67	* sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
68	* hurd/dtable.c (fork_parent_dtable): Function removed.
69
70	* sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
71	RLIMIT_NLIMITS, add alias for old name.
72
73	* sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
74	(before-compile): Use that instead of $(common-objpfx).
75
76	* sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
77
78Fri May 27 01:34:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
79
80	* hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
81
82	* hurd/dtable.c: Use data_set_element instead of text_set_element
83	for _hurd_fork_locks.
84	* hurd/hurdsig.c: Likewise.
85
86	* hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
87
88	* hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
89	(init_dtable): Don't set it.
90
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
96	_hurd_rlimits.
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.
103
104	* sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
105	for RLIMIT_OFILE.
106
107	* sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
108	on which to set the per-thread reply port variable.
109
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.
113
114	* sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
115	after __mach_init.
116
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.
122
123	* stdio/freopen.c (freopen): Close the stream if MODE is invalid.
124
125	* hurd/hurdsig.c (_hurd_core_limit): Define variable.
126
127	* socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
128
129Thu May 26 12:09:51 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
130
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.
137
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.
141
142Wed May 25 20:55:16 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
143
144	* sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
145	<mutex.h>.
146
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.
157
158	* sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
159	instead of calloc.
160	* hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
161	instead of calloc.
162
163	* sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
164	compiler warning.  Add init_brk to _hurd_preinit_hook instead of
165	__libc_subinit.
166
167	* sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
168	(start1): Run _hurd_preinit_hook before threadvar setup.
169
170Tue May 24 17:42:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
171
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.
176
177Tue May 24 12:57:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
178
179	* sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
180	in milliseconds, not microseconds; compute it accordingly.
181
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.
186
187Tue May 24 01:55:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
188
189	* sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
190
191	* sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
192
193	* sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
194	sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
195
196Mon May 23 19:05:44 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
197
198	* sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
199
200	* mach/devstream.c (mach_open_devstream): Set STREAM's seek and
201	fileno io functions to null.
202
203	* hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
204	PLEASE_DEALLOC array.
205
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.
209
210	* stdio/gets.c: Only return null on P==S if feof (STREAM).
211
212	* stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
213
214	* sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
215
216Mon May 23 14:24:50 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
217
218	* sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
219	protocol.
220	* sysdeps/mach/hurd/__dup2.c (__dup2): Likewise.  Use
221	_hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
222	structure.
223
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
227	is D, not FD.
228
229	* hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
230	const.
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.
234
235	* sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for
236	io_get_openmodes prototype.
237
238Sat May 21 16:03:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
239
240	* assert/assert.c (__assert_fail): Put program name first in msg.
241
242	* hurd/Makefile (dtable): Removed setdtsz.
243
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.
249
250	* Version 1.08 released.
251
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.
256
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.
260
261	* sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
262	for cookies.
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
266	hook.
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.
270
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
277	removed.
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):
282	Variables removed.
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.
289
290	* hurd/dtable.c (get_dtable_port): Return the ctty port if set.
291
292	* hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
293	of _hurd_fd_error.
294	(_hurd_fd_error): Call it.
295
296	* hurd/Makefile (dtable): Add fd-close.
297	* hurd/fd-close.c: New file.
298	* hurd/hurd/fd.h: Declare _hurd_fd_close.
299
300	* sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
301
302	* signal/Makefile (routines): Add sigsetops.
303	* signal/sigsetops.c: New file.
304
305	* sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
306	Use it for all the inline functions.
307
308	* signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
309
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.
314
315	* sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
316	* sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
317
318Fri May 20 20:42:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
319
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
324	$(sys/termios.h).
325
326	* sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
327	* sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
328	sco_getgrp.
329	* sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
330
331	* sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
332	Rewritten as extern inline functions; check for bogus signal number.
333
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.
337
338Thu May 19 18:35:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
339
340	* sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
341	line buffered and stderr unbuffered.
342
343Thu May 19 16:14:36 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
344
345	* sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
346
347	* sysdeps/generic/configure.in: Use changequote around if expr
348	to avoid [] elision.
349
350Thu May 19 13:53:59 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
351
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.
355
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.
359
360Thu May 19 04:14:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
361
362	* sysdeps/posix/libc_fatal.c: Include <errno.h>.
363
364	* sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
365
366	* sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
367	__auth_makeauth call.
368
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).
373
374	* hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
375	ENOENT, we return EPROTONOSUPPORT.
376
377	* hurd/Makefile (dtable): Add hurdioctl.
378	* hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
379	moved:
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.
384
385	* sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
386	MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
387
388	* sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
389
390	* sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
391	Instead, add explicit extern declaration of TABLE in main.
392
393Wed May 18 17:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
394
395	* sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
396
397	* Version 1.07.6.
398
399	* sunrpc/Makefile (+gccwarn): Set to -w.
400
401	* sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
402	instead of dir to remove directory name from .../sys/param.h but
403	preserve "sys/".
404
405	* inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
406
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):
411	Define it.
412
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.
418
419	* stdio/test-popen.c (main): Use popen to read the file back, too.
420
421	* sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
422
423	* sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
424
425Tue May 17 12:46:31 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
426
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.
434
435Mon May 16 15:34:12 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
436
437	* sysdeps/stub/sys/param.h: New file.
438
439	* mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
440	(__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
441	them.
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.
454
455	* sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
456	block SIGCHLD.
457	* sysdeps/unix/sysv/sco3.2.4/system.c
458	(WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
459
460	* sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
461	fail with ENOSYS.
462
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.
466
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.
471
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.
476
477	* sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
478
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.
481
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.
485
486Thu May 12 01:10:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
487
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.
525
526	* sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
527	prove authority.
528
529	* sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
530
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.
533
534	* mach/devstream.c (output): Use device_write instead of
535	device_write_inband.
536
537Wed May 11 18:49:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
538
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.
542
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
546	functions.
547	(HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
548
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.
556
557	* misc/bsd-compat.c (setjmp): New function.
558
559	* sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
560	* misc/Makefile (headers): Add it here instead.
561
562	* io/test-utime.c (main): New file.
563	* io/Makefile (tests): New variable.
564
565Wed May 11 13:44:33 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
566
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.
571
572Tue May 10 17:21:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
573
574	* time/zdump.c: New code from ADO.
575
576	* time/difftime.c (difftime): Use hairy rounding algorithm from
577	eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
578
579	* Makerules (native-CFLAGS): Remove -I$(sysincludedir).  RMS says
580	people with bogons in /usr/local/include deserve to lose.
581
582	* stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
583	FPNUM before testing it for %g format choice.
584
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.
590
591	* sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
592	vax].
593
594	* sysdeps/mips/setjmp.S: Remove spurious $.
595
596	* sysdeps/generic/ftime.c: Include <errno.h>.
597
598	* sysdeps/unix/mips/sysdep.S: Add .set noreorder.
599
600Tue May 10 16:27:13 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
601
602	* sysdeps/generic/termbits.h (NCCS): Doc fix.
603
604Mon May  9 18:07:44 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
605
606	* sysdeps/mach/hurd/uname.c (uname): System uname information
607	has moved from init to proc.
608
609	* sysdeps/mach/usleep.c (usleep): Return correct value.  Destroy
610	RECV when we're done with it.
611
612Thu May  5 17:03:56 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
613
614	* sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
615
616Thu May  5 04:20:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
617
618	* mach/spin-lock.h (spin_lock_init): Define.
619
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.
624
625	* hurd/hurdsig.c (hurdsig_fork_child): Return zero.
626
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.
630
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.
635
636	* mach/Makefile (headers): Added mach/default_pager_helper.defs.
637
638	* sysdeps/sparc/Dist: Added alloca.S.
639
640Wed May  4 14:02:29 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
641
642	* hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
643	all through.
644
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.
650
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.
657
658Wed May  4 00:17:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
659
660	* sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
661
662	* sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
663	than a test.
664
665	* hurd/Makefile (user-interfaces): Add hurd/msg_request.
666
667	* sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
668
669	* Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
670	* time/Makefile (install-others): Omit defn ifdef cross-compiling.
671
672Tue May  3 23:12:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
673
674	* mach/Makefile (lock-headers): Add spin-lock.h.
675
676	* misc/Makefile (routines): Add madvise.
677
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).
682
683	* mach/Makefile (mach-headers): Rename sys/version.h to
684	mach/version.h.
685
686	* hurd/Makefile (headers): Added hurd/threadvar.h.
687
688	* Version 1.07.5.
689
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.
692
693	* sunrpc/Makefile (generated): Don't add $(objpfx).
694
695	* sysdeps/stub/machine-lock.h: New file.
696	* sysdeps/stub/machine-sp.h: New file.
697
698Tue May  3 22:31:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
699
700	* sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
701	mach_msg actually waits.
702
703Tue May  3 19:24:48 1994  Karl Heuer  (kwzh@hal.gnu.ai.mit.edu)
704
705	* malloc/malloc.h (enum mcheck_status): Delete trailing
706	comma in enum list; some compilers don't like it.
707
708Tue May  3 15:18:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
709
710	* sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
711	__file_set_translator.
712
713Mon May  2 17:56:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
714
715	* hurd/Makefile (generated): Add $(inlines) .c files.
716
717	* sysdeps/mach/hurd/__mknod.c: Pass port type arg to
718	__file_set_translator.
719
720Sun May  1 16:03:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
721
722	* mach/mig_syms.c: Add de-__ing aliases for mig_init,
723	mig_get_reply_port, and mig_dealloc_reply_port.
724
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.
728
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.
740
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.
744
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.
748
749Thu Apr 28 21:29:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
750
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.
753
754	* Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
755
756Wed Apr 27 00:20:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
757
758	* Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
759	Always use $(+depfiles), since sources is no longer exported.
760
761Tue Apr 26 20:05:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
762
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.
769
770Tue Apr 26 14:42:43 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
771
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.
775
776Tue Apr 26 04:49:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
777
778	* sysdeps/i386/setjmp.c: Put global register decls first thing.
779	* sysdeps/i386/__longjmp.c: Likewise.
780
781Fri Apr 22 18:10:36 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
782
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.
786
787Thu Apr 21 16:54:11 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
788
789	* malloc/malloc.c (initialize, morecore): When allocating the
790	_heapinfo block itself, account for it in the statistics.
791
792Tue Apr 19 20:17:06 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
793
794	* sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
795
796	* malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
797	not the part we will copy _heapinfo into.
798
799	* sysdeps/unix/bsd/signum.h (SIGLOST): Define.
800	(_NSIG): Increase to 33.
801
802Mon Apr 18 16:56:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
803
804	* configure.in (config.status): Use $configure_args instead of
805	$ac_configure_args.
806	(after AC_PREPARE): Call AC_LANG_C.
807
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.
813
814	* sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
815
816	* malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
817	unistd.h.
818
819	* malloc/Makefile (gmalloc-routines): Put valloc first.
820
821Wed Apr 13 14:03:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
822
823	* sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
824	link to FROM, not TO.
825
826	* sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
827	target into the user's buffer, not the entire translator spec.
828
829Tue Apr 12 00:13:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
830
831	* hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
832	than depending on what happens to be on the stack.
833
834	* sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
835	end-of-file and return NULL.
836
837Mon Apr 11 17:36:59 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
838
839	* sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
840
841	* sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of
842	HURD_EINTR_RPC until signals work.
843
844Mon Apr 11 14:16:40 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
845
846	* sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
847	rather than __mig_reply_port (which doesn't exist).
848
849	* sysdeps/mach/hurd/__mknod.c: Added temporary declarations
850	of major and minor.
851
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.
855
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.
860
861	* (This change occurred on April 8, 1994)
862	sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
863	USAGE argument.
864
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.
868
869Fri Apr  8 14:58:24 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
870
871	* string/strsignal.c (strsignal): Store of NUL into unknown_signal
872	was off by one.
873
874Tue Apr  5 21:26:25 1994  Brendan Kehoe  (brendan@zen.org)
875
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.
878
879Tue Apr  5 03:07:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
880
881	* Makerules (install-lib.a rule): Run ranlib on the target.
882
883	* Makerules (library member rule): Tighten up pattern rule to
884	match only libc.a, not other libraries.
885
886Mon Apr  4 21:49:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
887
888	* set-hooks.h: New file.
889	* Makefile (distribute): Add it.
890	* set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
891
892	* Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
893	(sysd-rules): Don't include it unless sysd-Makefile-done is defined.
894
895Mon Apr  4 18:33:54 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
896
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.
900
901Thu Mar 31 13:46:13 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
902
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.
907
908Mon Mar 28 12:55:51 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
909
910	* Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
911
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.
915
916	* sysdeps/unix/common/configure.in: Use changequote around if expr
917	to avoid [] elision.
918
919Sat Mar 26 18:36:27 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
920
921	* malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
922
923Fri Mar 25 02:17:55 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
924
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.
933
934	* posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
935
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.
939
940Thu Mar 24 14:59:23 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
941
942	* sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
943
944	* sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
945	__sigreturn in %ecx before doing syscall trap.
946
947	* sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
948
949Wed Mar 23 17:33:09 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
950
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.
955
956Tue Mar 22 12:46:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
957
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.
962
963	* math/Makefile: Remove if-ed out old bsdmath copying rules.
964
965	* Makerules (sources, headers, sysdep_routines): Don't export these.
966	* Rules (others, tests): Likewise.
967
968	* io/lockf.c: Include fcntl.h and errno.h.
969
970Mon Mar 21 20:27:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
971
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.
975
976	* sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
977
978	* sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
979	to `store'; a user reports gas 1.38 bombs on numbered labels.
980
981	* sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
982
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.
987
988	* Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
989
990Fri Mar 18 01:02:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
991
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.
994
995Tue Mar  8 18:35:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
996
997	* Makerules (common-clean): Prepend $(objpfx) to $(generated).
998	* Makefile (parent-clean): Prepend $(common-objpfx) to
999	$(common-generated).
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
1005	$(common-objpfx).
1006	* sysdeps/posix/Makefile (common-generated): Likewise.
1007	* sysdeps/generic/Makefile (common-generated): Likewise.
1008	(generated): Don't prepend $(objpfx).
1009
1010	* sysdeps/generic/Makefile (common-generated): Set this instead of
1011	generated for bytesex.h and det_endian.
1012
1013	* sysdeps/stub/fexecve.c: New file.
1014	* posix/Makefile (routines): Add fexecve.
1015	* posix/unistd.h [__USE_GNU]: Declare fexecve.
1016
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.
1021
1022Mon Mar  7 17:46:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1023
1024	* sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
1025
1026Fri Mar  4 01:56:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1027
1028	* Makerules (native-compile, common-objdir-compile): Use
1029	$(HOST_CC) in place of $(CC).
1030
1031	* malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
1032
1033	* misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
1034	use two int elts instead of four shorts.
1035
1036Thu Mar  3 17:35:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1037
1038	* malloc/realloc.c (realloc): When shrinking a block by splitting
1039	and then freeing one, bump the _chunks_used counter.
1040
1041	* sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
1042
1043Tue Mar  1 11:42:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1044
1045	* sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
1046	stack at 8(%esp), not 4(%esp).
1047
1048	* sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
1049
1050Thu Feb 24 14:40:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1051
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
1055	macros.
1056	[__USE_MISC] (lockf): Declare it.
1057	* posix/unistd.h: Copy those new macros and declaration.
1058
1059	* time/backward, time/etcetera, time/zic.c: New code and data from ADO.
1060	* Makeconfig (posixrules): Default to America/New_York.
1061
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
1064	without a nop!).
1065
1066	* sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
1067	courtesy Tom Quinn.
1068
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
1073	not NULL).
1074	* sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
1075
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.
1091
1092	* sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
1093
1094	* stdio/printf_fp.c: Add many assertions to make sure no mpn size
1095	variable is ever zero.
1096
1097	* Makerules (native-CFLAGS): Add -I$(sysincludedir).
1098
1099	* Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
1100	instead of shell hackery.
1101
1102Wed Feb 23 00:09:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1103
1104	* sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
1105
1106Tue Feb 22 18:47:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1107
1108	* sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
1109	prototype.
1110
1111	* time/setitmr.c: Swap args OLD and NEW.
1112	* time/sys/time.h (setitimer): Likewise.
1113	* sysdeps/stub/__setitmr.c: Likewise.
1114
1115Mon Feb 21 20:47:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1116
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).
1120
1121	* sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
1122	three-arg type.
1123
1124Sun Feb 20 00:46:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1125
1126	* sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
1127
1128	* sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
1129	before <sys/mman.h>.
1130
1131	* sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
1132	__fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
1133
1134	* sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
1135	instead of literal 103; #define to 103 if not already defined.
1136
1137Sat Feb 19 17:39:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1138
1139	* sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
1140
1141Fri Feb 18 18:07:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1142
1143	* sysdeps/generic/configure.in: New file; check for psignal.
1144
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.
1148
1149	* sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
1150	* sysdeps/unix/configure (unix_syscall_h): Likewise.
1151
1152	* configure.in (os = irix4*): Set base_os=unix/sysv.
1153
1154	* sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
1155	* sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
1156
1157Thu Feb 17 18:42:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1158
1159	* Version 1.07.4.
1160
1161	* sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
1162
1163	* Makerules (sysdep_dir): Remove defn.
1164	* Makeconfig (sysdep_dir): Define it here instead.
1165
1166Wed Feb 16 16:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1167
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.
1171
1172	* time/sys/time.h (timerisset, timercmp, timerclear): New macros.
1173
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.
1205
1206Tue Feb 15 16:47:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1207
1208	* posix/unistd.h: Declare truncate, ftruncate.
1209
1210	* misc/Makefile (headers): Add syslog.h.
1211	* misc/syslog.h: New file; just includes <sys/syslog.h>.
1212
1213	* posix/unistd.h: Change duplicate seteuid decl to setegid.
1214
1215	* io/Makefile (headers): Add sys/fcntl.h.
1216	* io/sys/fcntl.h: New file; just includes <fcntl.h>.
1217
1218Mon Feb 14 10:36:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1219
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).
1224
1225	* Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
1226
1227	* sunrpc/Makefile (omit-deps): Define new variable.
1228
1229	* Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
1230	lib-noranlib.
1231	* Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
1232
1233	* Makerules (+depfiles): Include deps for $(extra-objs).
1234
1235	* sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
1236
1237	* sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
1238
1239	* time/zic.c: Set CP to NAME before dereferencing.
1240
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.
1247
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.
1257
1258	* sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
1259
1260Sun Feb 13 19:49:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1261
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).
1271
1272Fri Feb 11 00:29:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1273
1274	* configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
1275
1276	* time/mktime.c: Define __P if undefined.
1277
1278	* assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
1279	defined(__cplusplus).
1280
1281Thu Feb 10 00:52:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1282
1283	* sysdeps/unix/sysv/__sigact.c: Use __sigismember and
1284	__sigemptyset on sa_mask instead of assuming it's an int.
1285
1286	* sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
1287	SET to be a pointer to const.
1288
1289	* sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
1290
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.
1295
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.
1302
1303Wed Feb  9 11:59:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1304
1305	* time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
1306
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.
1312
1313	* sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
1314
1315	* Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
1316	of $(+libobjs); this way makes the parent do subdir_lib.
1317
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).
1321
1322Tue Feb  8 19:00:42 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1323
1324	* Version 1.07.3.
1325
1326	* sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
1327
1328Mon Feb  7 14:31:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1329
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.
1336
1337	* sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
1338	next insn is most likely a retl, which causes interesting behavior.
1339
1340	* stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
1341	Subtract one from result of _itoa when setting W.
1342
1343	* time/{africa,asia,australasia,backward,europe,leapseconds,
1344	northamerica,southamerica,zic.c}: New code and data from ADO.
1345
1346Sun Feb  6 13:55:27 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1347
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.
1351
1352	* Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
1353	and pipe output to doschk.
1354
1355	* Makeconfig (etcdir): New variable.
1356	(localtime-file): Use that in default value.
1357
1358	* Makerules (depend-$(subdir)): Include dep files for all .o files
1359	listed in $(extra-objs).
1360
1361	* posix/sys/types.h (NFDBITS): #define to __NFDBITS.
1362
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.
1367
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.
1374
1375	* signal/signal.h: Declare psignal here.
1376	* stdio/stdio.h: Not here.
1377
1378	* stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
1379	vsscanf): Define as extern inline functions instead of macros.
1380
1381	* configure.in (names): Check existence of implied dirs and warn
1382	for absentees.
1383
1384Sat Feb  5 13:38:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1385
1386	* Version 1.07.2.
1387
1388	* resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
1389	to self for things that test #ifdef.
1390
1391	* sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
1392
1393	* sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
1394
1395	* Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
1396
1397	* sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
1398	to avoid the test and branch.
1399
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.
1403
1404	* sysdeps/unix/reboot.S: New file.
1405
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.
1412
1413	* sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
1414
1415	* Makerules (open-check-inhibit-asm): Use : for empty commands in case.
1416
1417	* time/leapseconds: New version from ADO, adds 1994 leap second.
1418
1419Thu Feb  3 02:15:30 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1420
1421	* sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
1422
1423Wed Feb  2 16:56:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1424
1425	* sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
1426	Replaced with #include of that file.
1427
1428	* sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to
1429	sysdeps/unix/sysv/sysv4/sigaltstk.S.
1430
1431	* sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
1432	* sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
1433
1434Tue Feb  1 18:22:21 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1435
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.
1440
1441	* sysdeps/unix/sparc/vfork.S: Add nop after jmp.  Bad delay slot,
1442	no pipeline.
1443	* sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
1444
1445Mon Jan 31 19:33:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1446
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.
1452
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.
1455
1456	* sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
1457	to sysdeps/unix/sysv/sysv4/solaris2/sparc.
1458
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.
1462
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.
1467
1468	* sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
1469	unix/bsd/i386 version.
1470
1471	* sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
1472
1473Thu Jan 27 16:46:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1474
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.
1477
1478	* configure.in (stddef.h): Print msg under --verbose.
1479
1480	* manual/Makefile (subdir): Define outside of `export' directive,
1481	for old make.
1482
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.
1494
1495Wed Jan 26 20:06:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1496
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.
1503
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
1529	in srcdir).
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.
1534
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).
1543
1544	Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
1545	* sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
1546	and `__pid' fields.
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.
1550
1551	* stdlib/testsort.c (main): Use puts to add newlines to printed lines.
1552
1553Tue Jan 25 14:32:01 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1554
1555	* Version 1.07.1.
1556
1557	* manual/Makefile (%.z): Change target pattern to %.gz.
1558	(dist): Comment out dep.  Don't really need the separate doc dist.
1559
1560	* stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
1561	getline, __getline): Use extern inlines instead of macros.
1562
1563	* sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
1564
1565	* sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
1566	to sys_siglist.
1567	* sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
1568	__timezone, __tzname): #define to non-__ names.
1569
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.
1573
1574Tue Jan 25 14:01:28 1994  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
1575
1576	* sysdeps/mach/hurd/start.c (start1): Decide separately whether to
1577	split argv and whether to split envp.
1578
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.
1583
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.
1587
1588Mon Jan 24 16:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1589
1590	* sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
1591	the PID we were called with.
1592
1593	* sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
1594	returning, not after (lot of good that did).
1595
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.
1600
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.
1604
1605	* sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
1606	* posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
1607
1608	* stdio/fileno.c (fileno): Call __stdio_check_funcs.
1609
1610	* stdio/tst-fileno.c: New file.
1611
1612Fri Jan 21 16:56:50 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1613
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.
1619
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.
1623
1624	* sysdeps/sparc/bytesex.h: New file.
1625
1626Thu Jan 20 12:45:35 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1627
1628	* sysdeps/stub/syscall.c (syscall): Declare arg type as int.
1629
1630Wed Jan 19 18:18:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1631
1632	* Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
1633
1634	* manual/Makefile: Change all `mv' uses to `mv -f'.
1635	(subdir_install): Depend on stubs.
1636
1637	* Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
1638
1639Tue Jan 18 19:12:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1640
1641	* stdlib/testsort.c (main): Swap dimensions of BUFS array.
1642
1643
1644See ChangeLog.2 for earlier changes.
1645