-
Notifications
You must be signed in to change notification settings - Fork 8
/
ChangeLog.3
1644 lines (1164 loc) · 60.8 KB
/
ChangeLog.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Sun Jun 5 14:34:12 1994 Roland McGrath ([email protected])
* Version 1.08.1.
* sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
* sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
take input. Compute expected reply size for ioctls that take
output and check it properly.
Sat Jun 4 00:35:42 1994 Roland McGrath ([email protected])
* sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
(enum __ioctl_datum): Name this enum.
(_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
(_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
* sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
* sysdeps/mach/hurd/__fork.c: Major rewrite. Copy all ports
present in the task, not just library-maintained ones. Handle
sigstate and signal thread setup explicitly here.
* hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
removed.
* hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
* sysdeps/mach/hurd/__isatty.c: New file.
* hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
not NAME (most of which is uninitialized).
* hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
being non-null; always initialize it.
Fri Jun 3 21:57:14 1994 Roland McGrath ([email protected])
* hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
(_hurd_rlimit_lock): Set initializer to random value; run-time
initialization is always required.
* inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
hardcoding 32.
Wed Jun 1 10:52:41 1994 Michael I Bushnell ([email protected])
* hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
initializers so that the file is included in the link properly.
(init_rlimit): Omit call to __mutex_init.
Tue May 31 18:15:33 1994 Roland McGrath ([email protected])
* hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
(malloc_init): New function; put it on _hurd_preinit_hook.
* sysdeps/mach/hurd/defs.c (init_stdio): If stream already
allocated, don't allocate a new one. Don't crash if _hurd_alloc_fd
returns null if __newstream does.
* sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
leave it as it is. Set PAGEND from _hurd_brk instead of &_end.
Mon May 30 18:37:47 1994 Roland McGrath ([email protected])
* hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
instead of _hurd_subinit.
* sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
* hurd/dtable.c (fork_parent_dtable): Function removed.
* sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
RLIMIT_NLIMITS, add alias for old name.
* sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
(before-compile): Use that instead of $(common-objpfx).
* sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
Fri May 27 01:34:56 1994 Roland McGrath ([email protected])
* hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
* hurd/dtable.c: Use data_set_element instead of text_set_element
for _hurd_fork_locks.
* hurd/hurdsig.c: Likewise.
* hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
* hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
(init_dtable): Don't set it.
* hurd/Makefile (headers): Add hurd/resource.h.
(routines): Add hurdrlimit.
* hurd/hurd/resource.h: New file.
* hurd/hurdrlimit.c: New file.
* sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
_hurd_rlimits.
* sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
* sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
(_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
(_hurd_set_data_limit): Function removed.
* hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
(_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
* sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
for RLIMIT_OFILE.
* sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
on which to set the per-thread reply port variable.
* sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
DATA_SIZE bytes past the beginning of data space, rather than to
DATA_SIZE absolutely. If vm_map fails, set it to PAGEND.
* sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
after __mach_init.
* stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
preserve the old cookie value when possible.
* sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
* sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
* sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
* stdio/freopen.c (freopen): Close the stream if MODE is invalid.
* hurd/hurdsig.c (_hurd_core_limit): Define variable.
* socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
Thu May 26 12:09:51 1994 Michael I Bushnell ([email protected])
* hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
FIRST_FD is greater than _hurd_dtablesize and less than
_hurd_dtable_rlimit. If we want to grow _hurd_dtable, but
_hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
EMFILE. When growing _hurd_dtable, actually do something if
_hurd_dtablesize is zero.
* hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
malloc_fork_child): Declare as static so they don't conflict with
the user's version of this file.
Wed May 25 20:55:16 1994 Roland McGrath ([email protected])
* sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
<mutex.h>.
* hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
* hurd/Makefile (routines): Append hurdmalloc.
(distribute): Append hurdmalloc.h.
* hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
* hurd/dtable.c: Likewise.
* hurd/hurdinit.c: Likewise.
* hurd/hurdsig.c: Likewise.
* hurd/hurdsock.c: Likewise.
* hurd/new-fd.c: Likewise.
* sysdeps/mach/hurd/start.c: Likewise.
* sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
instead of calloc.
* hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
instead of calloc.
* sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
compiler warning. Add init_brk to _hurd_preinit_hook instead of
__libc_subinit.
* sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
(start1): Run _hurd_preinit_hook before threadvar setup.
Tue May 24 17:42:34 1994 Roland McGrath ([email protected])
* hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
_hurd_init_dtablesize. Initialize _hurd_dtable_rlimit as
_hurd_dtablesize used to be set, but don't let it be zero.
(_hurd_dtable_rlimit): New variable.
Tue May 24 12:57:19 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
in milliseconds, not microseconds; compute it accordingly.
* sysdeps/mach/hurd/__select.c (__select): Deleted variables
DTABLE and DTABLE_ULINK. Use new vars _hurd_dtablesize and
_hurd_dtable instead of old _hurd_dtable structure. Use new
locking protocol on _hurd_dtable.
Tue May 24 01:55:24 1994 Roland McGrath ([email protected])
* sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
* sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
* sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
Mon May 23 19:05:44 1994 Roland McGrath ([email protected])
* sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
* mach/devstream.c (mach_open_devstream): Set STREAM's seek and
fileno io functions to null.
* hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
PLEASE_DEALLOC array.
* sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
after fetching them. If a standard descriptor is not allocated,
allocate the structure and store its pointer in the stream anyway.
* stdio/gets.c: Only return null on P==S if feof (STREAM).
* stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
* sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
Mon May 23 14:24:50 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
protocol.
* sysdeps/mach/hurd/__dup2.c (__dup2): Likewise. Use
_hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
structure.
* sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
HURD_FD_PORT_USE, not HURD_FD_USE.
* sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
is D, not FD.
* hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
const.
* hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
we are not the process group leader, ignore the signal.
(_S_sig_post [case SIGURG]): Declaration of D was out of place.
* sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for
io_get_openmodes prototype.
Sat May 21 16:03:23 1994 Roland McGrath ([email protected])
* assert/assert.c (__assert_fail): Put program name first in msg.
* hurd/Makefile (dtable): Removed setdtsz.
* hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
old _hurd_dtable structure.
* hurd/hurdsig.c: Likewise.
* hurd/alloc-fd.c: Likewise.
* hurd/hurdioctl.c (rectty_dtable): Likewise.
* Version 1.08 released.
* mach/mach_error_string.c: Renamed to errstring.c.
* mach/Makefile (routines): Renamed mach_error_string to errstring.
* mach/err_mach_ipc.sub: Renamed to err_mach.sub.
* mach/err_bootstrap.sub: Renamed to err_boot.sub.
* sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
for CONST qualifier on SET arg to generated function.
Changed uses to pass it; sigismember passes __const, others empty.
* sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
for cookies.
* sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
* sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
hook.
* sysdeps/mach/hurd/stdio_init.c: New file.
* hurd/dtable.c (_hurd_fd_subinit): New hook variable.
(init_dtable): Run the _hurd_fd_subinit hook.
* hurd/hurd/fd.h (struct hurd_dtable): Type removed.
(_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
(_hurd_dtable): Make this a struct hurd_fd **.
(_hurd_dtablesize): New variable.
(struct hurd_fd_user): Type removed.
(_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
removed.
(_hurd_fd_get): Rewritten. Take just one arg, and look it up in
_hurd_dtable; return a struct hurd_fd *.
(HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
* hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
Variables removed.
(_hurd_dtable): Make this a struct hurd_fd **.
(_hurd_dtablesize): New variable.
(init_dtable, fork_parent_dtable, fork_child_dtable,
ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
* sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
* sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
* hurd/dtable.c (get_dtable_port): Return the ctty port if set.
* hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
of _hurd_fd_error.
(_hurd_fd_error): Call it.
* hurd/Makefile (dtable): Add fd-close.
* hurd/fd-close.c: New file.
* hurd/hurd/fd.h: Declare _hurd_fd_close.
* sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
* signal/Makefile (routines): Add sigsetops.
* signal/sigsetops.c: New file.
* sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
Use it for all the inline functions.
* signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
* sysdeps/generic/sigset.h: Protect types with #ifndef
_SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
&& defined (_SIGNAL_H).
(__SIGSETFN): Add extern declaration of NAME inside function.
* sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
* sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
Fri May 20 20:42:33 1994 Roland McGrath ([email protected])
* sysdeps/unix/Makefile (sys/termios.h): Variable removed.
(ioctl-includes): New variable.
(make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
$(sys/termios.h).
* sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
* sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
sco_getgrp.
* sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
* sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
Rewritten as extern inline functions; check for bogus signal number.
* configure.in (names): Put $implied before $* in new $sysnames
list remaining to be processed; this ensures unix/common precedes
unix/sysv4 for sysv4.
Thu May 19 18:35:02 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
line buffered and stderr unbuffered.
Thu May 19 16:14:36 1994 Roland McGrath ([email protected])
* sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
* sysdeps/generic/configure.in: Use changequote around if expr
to avoid [] elision.
Thu May 19 13:53:59 1994 Michael I Bushnell ([email protected])
* hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
rather than EPROTONOSUPPORT because it's the entire protocol
family that isn't present, not just one protocol.
* sysdeps/mach/hurd/__access.c (__access): Don't deallocate
CRDIR or CWDIR; that's taken care of by the _hurd_port_get
and _hurd_port_free system.
Thu May 19 04:14:57 1994 Roland McGrath ([email protected])
* sysdeps/posix/libc_fatal.c: Include <errno.h>.
* sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
* sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
__auth_makeauth call.
* sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
operations, so the result is always technically a constant (the
old method of using a union constructor expression was not good
enough for initializers).
* hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
ENOENT, we return EPROTONOSUPPORT.
* hurd/Makefile (dtable): Add hurdioctl.
* hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
moved:
* hurd/hurdioctl.c: New file.
(fioctl, fioclex): New functions.
* sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
define it, just declare it.
* sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
* sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
* sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
Instead, add explicit extern declaration of TABLE in main.
Wed May 18 17:54:00 1994 Roland McGrath ([email protected])
* sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
* Version 1.07.6.
* sunrpc/Makefile (+gccwarn): Set to -w.
* sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
instead of dir to remove directory name from .../sys/param.h but
preserve "sys/".
* inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
* posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
define to _UTSNAME_LENGTH.
(struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
* sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
Define it.
* resource/sys/resource.h (enum __rlimit_resource): Removed.
Just include <resourcebits.h> instead.
* resource/Makefile (headers): Add resourcebits.h.
* sysdeps/generic/resourcebits.h: New file.
* sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
* stdio/test-popen.c (main): Use popen to read the file back, too.
* sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
* sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
Tue May 17 12:46:31 1994 Michael I Bushnell ([email protected])
* mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
__mach_task_self, __mach_host_self): New declarations of __
versions of syscall traps.
(swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
__thread_switch, evc_wait, __evc_wait): New prototypes.
* mach/Makefile (headers): Added mach/mach_traps.h so that the
GNU version is installed instead of the Mach version.
Mon May 16 15:34:12 1994 Roland McGrath ([email protected])
* sysdeps/stub/sys/param.h: New file.
* mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
(__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
them.
* mach/mutex-solid.c: New file.
* mach/Makefile (lock): Add mutex-solid.
(lock-headers): Remove mutex.h.
* mach/mutex.h: File removed.
* hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
* hurd/hurd/signal.h: Likewise.
* hurd/hurdsig.c: Likewise.
* hurd/hurdsock.c: Likewise.
* hurd/dtable.c: Likewise.
* hurd/__setauth.c: Likewise.
* sysdeps/mach/hurd/Makefile (includes): Also append
-I$(hurd-srcdir)/libthreads.
* sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
block SIGCHLD.
* sysdeps/unix/sysv/sco3.2.4/system.c
(WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
* sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
fail with ENOSYS.
* sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
SV_ONSTACK is set in VEC->sv_flags.
[SA_RESTART]: Protect SV_INTERRUPT check with this.
* sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
* sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
[FATAL_PREPARE]: Invoke the macro.
* assert/assert.c: Likewise.
* sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
into it. Loop until BEGIN passes the location in HAYSTACK with
NEEDLE_LEN bytes remaining to the end.
Compare first byte manually before calling memcmp.
* sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
* posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
u_int32_t, u_int16_t, u_int8_t): New typedefs.
* assert/assert.c (__assert_program_name): New variable.
(__assert_fail): Print that in the msg too.
[HAVE_GNU_LD] (set_progname): New function to set it up at startup.
Thu May 12 01:10:52 1994 Roland McGrath ([email protected])
* hurd/__setauth.c: Do critical section locking.
* hurd/hurdexec.c: Likewise.
* hurd/hurdauth.c (_S_del_auth): Likewise.
* hurd/getuids.c: Likewise.
* hurd/dtable.c: Likewise.
* hurd/alloc-fd.c: Likewise.
* hurd/hurd/port.h: Likewise.
* hurd/hurd/fd.h: Likewise.
* hurd/setuids.c: Likewise.
* hurd/intern-fd.c: Likewise.
* hurd/hurdsock.c (_hurd_socket_server): Likewise.
* sysdeps/mach/hurd/setrlimit.c: Likewise.
* sysdeps/mach/hurd/setgroups.c: Likewise.
* sysdeps/mach/hurd/seteuid.c: Likewise.
* sysdeps/mach/hurd/setegid.c: Likewise.
* sysdeps/mach/hurd/getrlimit.c: Likewise.
* sysdeps/mach/hurd/__setuid.c: Likewise.
* sysdeps/mach/hurd/__setreuid.c: Likewise.
* sysdeps/mach/hurd/__setregid.c: Likewise.
* sysdeps/mach/hurd/__setitmr.c: Likewise.
* sysdeps/mach/hurd/__setgid.c: Likewise.
* sysdeps/mach/hurd/__select.c: Likewise.
* sysdeps/mach/hurd/__sbrk.c: Likewise.
* sysdeps/mach/hurd/__getuid.c: Likewise.
* sysdeps/mach/hurd/__getpgrp.c: Likewise.
* sysdeps/mach/hurd/__getitmr.c: Likewise.
* sysdeps/mach/hurd/__getgrps.c: Likewise.
* sysdeps/mach/hurd/__getgid.c: Likewise.
* sysdeps/mach/hurd/__geteuid.c: Likewise.
* sysdeps/mach/hurd/__getegid.c: Likewise.
* sysdeps/mach/hurd/__getdtsz.c: Likewise.
* sysdeps/mach/hurd/__fork.c: Likewise.
* sysdeps/mach/hurd/__fcntl.c: Likewise.
* sysdeps/mach/hurd/__dup2.c: Likewise.
* sysdeps/mach/hurd/__close.c: Likewise.
* sysdeps/mach/hurd/__brk.c: Likewise.
* sysdeps/mach/hurd/__access.c: Likewise.
* sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
prove authority.
* sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
* sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
return code is zero. Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
* mach/devstream.c (output): Use device_write instead of
device_write_inband.
Wed May 11 18:49:31 1994 Roland McGrath ([email protected])
* hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
_hurd_ports elts before doing _hurd_proc_init or
__task_set_special_port.
* hurd/hurd/signal.h (struct hurd_sigstate): Add new
`critical_section' member. Remove #if 0'd out vfork crap.
(_hurd_critical_section_lock, _hurd_critical_section_unlock): New
functions.
(HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
* io/Makefile (headers): Add poll.h and sys/poll.h.
(routines): Add poll.
* sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
* sysdeps/unix/sysv/poll.S: New file.
* sysdeps/unix/bsd/poll.c: New file.
* sysdeps/stub/poll.c: New file.
* io/poll.h, io/sys/poll.h: New files.
* misc/bsd-compat.c (setjmp): New function.
* sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
* misc/Makefile (headers): Add it here instead.
* io/test-utime.c (main): New file.
* io/Makefile (tests): New variable.
Wed May 11 13:44:33 1994 Michael I Bushnell ([email protected])
* hurd/hurd/threadvar.h (__hurd_errno_location): Remove
__volatile keyword. `volatile int errno' is not the same
as `int errno'; user programs often mention the latter.
* errno.h: Remove __volatile keyword; same reason.
Tue May 10 17:21:41 1994 Roland McGrath ([email protected])
* time/zdump.c: New code from ADO.
* time/difftime.c (difftime): Use hairy rounding algorithm from
[email protected] when sizeof (time_t) >= sizeof (double).
* Makerules (native-CFLAGS): Remove -I$(sysincludedir). RMS says
people with bogons in /usr/local/include deserve to lose.
* stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
FPNUM before testing it for %g format choice.
* sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
* sysdeps/unix/sysv/irix4/Dist: New file.
* sysdeps/unix/sysv/irix4/readv.c: New file.
* sysdeps/unix/sysv/irix4/writev.c: New file.
* sysdeps/unix/sysv/irix4/__dup2.c: New file.
* sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
vax].
* sysdeps/mips/setjmp.S: Remove spurious $.
* sysdeps/generic/ftime.c: Include <errno.h>.
* sysdeps/unix/mips/sysdep.S: Add .set noreorder.
Tue May 10 16:27:13 1994 Michael I Bushnell ([email protected])
* sysdeps/generic/termbits.h (NCCS): Doc fix.
Mon May 9 18:07:44 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/uname.c (uname): System uname information
has moved from init to proc.
* sysdeps/mach/usleep.c (usleep): Return correct value. Destroy
RECV when we're done with it.
Thu May 5 17:03:56 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
Thu May 5 04:20:54 1994 Roland McGrath ([email protected])
* mach/spin-lock.h (spin_lock_init): Define.
* sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
it to *SET if SET is not null, before taking SS->lock; don't
dereference SET while holding the lock. Restore SS->blocked to
OLDMASK before unlocking and returning.
* hurd/hurdsig.c (hurdsig_fork_child): Return zero.
* sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
_hurd_fork_prepare_hook)): Define variables (symbol sets).
(__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
* sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
wait until SS->suspended is cleared.
* hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
before signalling on SS->arrived.
* mach/Makefile (headers): Added mach/default_pager_helper.defs.
* sysdeps/sparc/Dist: Added alloca.S.
Wed May 4 14:02:29 1994 Michael I Bushnell ([email protected])
* hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
all through.
* sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
to be a spin_lock; changed mutex_lock and mutex_unlock
accordingly throughout.
* sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
mutex calls to spin lock calls here too.
* sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax
of declaration of PREEMPT.
(setitimer_locked): Declare variables ERR and ELAPSED.
(setitimer_locked): Fix some references to REMAINING that
were using it as an itimerval instead of a timeval.
(setitimer_locked): Deleted unused label STILLBORN.
Wed May 4 00:17:32 1994 Roland McGrath ([email protected])
* sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
* sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
than a test.
* hurd/Makefile (user-interfaces): Add hurd/msg_request.
* sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
* Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
* time/Makefile (install-others): Omit defn ifdef cross-compiling.
Tue May 3 23:12:48 1994 Roland McGrath ([email protected])
* mach/Makefile (lock-headers): Add spin-lock.h.
* misc/Makefile (routines): Add madvise.
* malloc/Makefile (non-lib.a): Define.
* misc/Makefile (non-lib.a): Define.
* Makerules (install-lib.a): Filter out $(non-lib.a).
(install-lib-non.a): Append $(non-lib.a).
* mach/Makefile (mach-headers): Rename sys/version.h to
mach/version.h.
* hurd/Makefile (headers): Added hurd/threadvar.h.
* Version 1.07.5.
* hurd/port2fd.c (_hurd_port2fd): Use logic copied from
_hurd_port_locked_set to install PORT in D->port, but leave it locked.
* sunrpc/Makefile (generated): Don't add $(objpfx).
* sysdeps/stub/machine-lock.h: New file.
* sysdeps/stub/machine-sp.h: New file.
Tue May 3 22:31:15 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
mach_msg actually waits.
Tue May 3 19:24:48 1994 Karl Heuer ([email protected])
* malloc/malloc.h (enum mcheck_status): Delete trailing
comma in enum list; some compilers don't like it.
Tue May 3 15:18:15 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
__file_set_translator.
Mon May 2 17:56:47 1994 Roland McGrath ([email protected])
* hurd/Makefile (generated): Add $(inlines) .c files.
* sysdeps/mach/hurd/__mknod.c: Pass port type arg to
__file_set_translator.
Sun May 1 16:03:13 1994 Roland McGrath ([email protected])
* mach/mig_syms.c: Add de-__ing aliases for mig_init,
mig_get_reply_port, and mig_dealloc_reply_port.
* sysdeps/mach/hurd/errnos.awk: Handle copying errors from
mach/mig_errors.h and device/device_types.h. Omit E*_SUCCESS.
Omit MACH_MSG_MASK and other special bit macros.
* sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
sc_reply_port member.
* hurd/hurdsig.c (fetch_reply_port): New function.
(_hurd_internal_post_signal): When setting up to run handler, set
SCP->sc_reply_port to the receiving thread's value for
_HURD_THREADVAR_MIG_REPLY.
* sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
used by the signal handler, and restore from SCP->sc_reply_port.
* hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
function; guts from __hurd_threadvar_location.
(__hurd_threadvar_location): Call that.
* hurd/hurdsig.c (check_pending): New function, broken out of:
(_hurd_internal_post_signal): Call that for pending signal check.
If SIGNO is zero, call check_pending on each thread's sigstate.
* sysdeps/mach/hurd/start.c (start1): Use calloc to get
zero-filled space for __hurd_threadvar_stack_offset when
__hurd_threadvar_stack_mask is zero.
Thu Apr 28 21:29:47 1994 Roland McGrath ([email protected])
* Merged gmp-1.99.3+ mpn code from tege for printf_fp.
* stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
* Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
Wed Apr 27 00:20:41 1994 Roland McGrath ([email protected])
* Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
Always use $(+depfiles), since sources is no longer exported.
Tue Apr 26 20:05:55 1994 Roland McGrath ([email protected])
* sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to
avoid <sys/ioctl.h> conflicts.
* sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
before including <sys/ioctl.h>.
* sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
Tue Apr 26 14:42:43 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
mach_msg won't do anything but return immediately.
(sleep): Compute return value correctly.
Tue Apr 26 04:49:56 1994 Roland McGrath ([email protected])
* sysdeps/i386/setjmp.c: Put global register decls first thing.
* sysdeps/i386/__longjmp.c: Likewise.
Fri Apr 22 18:10:36 1994 Roland McGrath ([email protected])
* sysdeps/unix/sysv/irix4/__wait3.S: New file.
* sysdeps/unix/sysv/irix4/time.S: New file.
* sysdeps/unix/sysv/irix4/__waitpid.c: New file.
Thu Apr 21 16:54:11 1994 Roland McGrath ([email protected])
* malloc/malloc.c (initialize, morecore): When allocating the
_heapinfo block itself, account for it in the statistics.
Tue Apr 19 20:17:06 1994 Roland McGrath ([email protected])
* sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
* malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
not the part we will copy _heapinfo into.
* sysdeps/unix/bsd/signum.h (SIGLOST): Define.
(_NSIG): Increase to 33.
Mon Apr 18 16:56:11 1994 Roland McGrath ([email protected])
* configure.in (config.status): Use $configure_args instead of
$ac_configure_args.
(after AC_PREPARE): Call AC_LANG_C.
* time/Makefile (routines): Add sys/timeb.h.
(routines): Add ftime.
* time/sys/timeb.h: New file.
* sysdeps/unix/bsd/ftime.c: New file.
* sysdeps/generic/ftime.c: New file.
* sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
* malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
unistd.h.
* malloc/Makefile (gmalloc-routines): Put valloc first.
Wed Apr 13 14:03:02 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
link to FROM, not TO.
* sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
target into the user's buffer, not the entire translator spec.
Tue Apr 12 00:13:19 1994 Michael I Bushnell ([email protected])
* hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
than depending on what happens to be on the stack.
* sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
end-of-file and return NULL.
Mon Apr 11 17:36:59 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
* sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of
HURD_EINTR_RPC until signals work.
Mon Apr 11 14:16:40 1994 Michael I Bushnell ([email protected])
* sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
rather than __mig_reply_port (which doesn't exist).
* sysdeps/mach/hurd/__mknod.c: Added temporary declarations
of major and minor.
* (This change occurred on April 4, 1994) mach/setup-thread.c
(__mach_setup_thread): The March 31 change had an error; the stack
needs to be allocated with ANYWHERE cleared.
* (This change occurred on April 8, 1994) hurd/hurdexec.c
(_hurd_exec): The arguments to exec_exec had the length and
type parameters transposed. In addition, fetch the correct
procserver port for the new task.
* (This change occurred on April 8, 1994)
sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
USAGE argument.
* (This change occurred on April 8, 1994)
sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
__proc_exit into a correct call to __proc_mark_exit.
Fri Apr 8 14:58:24 1994 Michael I Bushnell ([email protected])
* string/strsignal.c (strsignal): Store of NUL into unknown_signal
was off by one.
Tue Apr 5 21:26:25 1994 Brendan Kehoe ([email protected])
* sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
`oact' in lower case, to match its use in the rest of the function.
Tue Apr 5 03:07:04 1994 Roland McGrath ([email protected])
* Makerules (install-lib.a rule): Run ranlib on the target.
* Makerules (library member rule): Tighten up pattern rule to
match only libc.a, not other libraries.
Mon Apr 4 21:49:57 1994 Roland McGrath ([email protected])
* set-hooks.h: New file.
* Makefile (distribute): Add it.
* set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
* Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
(sysd-rules): Don't include it unless sysd-Makefile-done is defined.
Mon Apr 4 18:33:54 1994 Michael I Bushnell ([email protected])
* mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
call should have ANYWHERE cleared so that the change of the 31st
has any effect at all.
Thu Mar 31 13:46:13 1994 Michael I Bushnell ([email protected])
* mach/setup-thread.c (__mach_setup_thread): Create a red zone
beneath the stack; also, work around a bug in cthreads by
forcing the stack into high memory. FIXME--this routine
depends on the direction of stack growth; that should be fixed.
Mon Mar 28 12:55:51 1994 Roland McGrath ([email protected])
* Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
* configure.in (arg parsing): Don't take --os-release or --os-version.
(switches): Variable removed; don't write it into config.status.
(config.status): Write release and version values directly.
* sysdeps/unix/common/configure.in: Use changequote around if expr
to avoid [] elision.
Sat Mar 26 18:36:27 1994 Roland McGrath ([email protected])
* malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
Fri Mar 25 02:17:55 1994 Roland McGrath ([email protected])
* malloc/mcheck.c (mprobe): New function.
(abortfunc): Take enum mcheck_status arg.
(checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
(mabort): New function.
(mcheck): Use mabort as default abortfunc.
* malloc/malloc.h (enum mcheck_status): New type.
(mprobe): Declare new function.
(mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
* posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
* stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
Define instead of __io_functions (and make that a typedef for
this); omit __ from member names.
Thu Mar 24 14:59:23 1994 Roland McGrath ([email protected])
* sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
* sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
__sigreturn in %ecx before doing syscall trap.
* sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
Wed Mar 23 17:33:09 1994 Roland McGrath ([email protected])
* Makefile (headers): Remove $(stdarg.h).
* Makeconfig (stdarg.h): Variable removed.
* configure.in: Remove check for __gnuc_va_list in stdarg.h.
It is not safe to replace the compiler's stdarg.h with our own.
Tue Mar 22 12:46:08 1994 Roland McGrath ([email protected])
* Rules (dist): Rule removed.
* Makefile (dist): Likewise.
* Makerules (dist, distinfo): New rules.
(TAGS): Depend on distfile, pass -f distfile to submake.
* math/Makefile: Remove if-ed out old bsdmath copying rules.
* Makerules (sources, headers, sysdep_routines): Don't export these.
* Rules (others, tests): Likewise.
* io/lockf.c: Include fcntl.h and errno.h.
Mon Mar 21 20:27:32 1994 Roland McGrath ([email protected])
* sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
* sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
sys_wait4.S,Makefile,Dist}: New files.
* sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
* sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
to `store'; a user reports gas 1.38 bombs on numbered labels.
* sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
* Rules (distribute, dont_distribute, generated): Don't export them.
(dist): Pass those vars down to sub-make on cmd line.
* Makefile (distribute, generated): Don't export them.
(dist): Pass distribute and generated values to sub-make on cmd line.
* Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
Fri Mar 18 01:02:52 1994 Roland McGrath ([email protected])
* sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
place of fp. A user reports gas 1.38 doesn't grok fp.
Tue Mar 8 18:35:02 1994 Roland McGrath ([email protected])
* Makerules (common-clean): Prepend $(objpfx) to $(generated).
* Makefile (parent-clean): Prepend $(common-objpfx) to
$(common-generated).
* Makefile (generated): Don't prepend $(objpfx).