Commit Graph

878 Commits

Author SHA1 Message Date
mycroft
ec64328797 Check for todo<0, done<0, and done>todo. 1995-10-10 02:51:45 +00:00
mycroft
5a44558c93 Reran makesyscalls.sh. 1995-10-10 01:33:26 +00:00
mycroft
44a38d8470 Add aliases for all compat functions. 1995-10-10 01:32:53 +00:00
mycroft
2dd293d3c3 Add hooks for COMPAT_FREEBSD, from Noriyuki Soda. 1995-10-10 01:26:36 +00:00
thorpej
c819cd372d In lkmioctl(), disallow LMRESERV, LMLOADBUF, LMUNRESRV, LMREADY,
and LMUNLOAD if securelevel > 0.  From Matthew Green <mrg@eterna.com.au>
1995-10-10 00:23:20 +00:00
mycroft
55c46e9514 Reran makesyscalls.sh. 1995-10-07 06:41:34 +00:00
mycroft
245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
mycroft
2d9aa901e9 Write core dumps with mode 0600. 1995-10-06 16:12:05 +00:00
mycroft
62f5268325 Fix oversight in previous. 1995-10-05 08:50:02 +00:00
mycroft
9806359967 Make PARENB depend on RAW and ANYP, but not on LITOUT or PASS8. 1995-10-05 08:38:55 +00:00
mycroft
1c5d240ffa Make PASS8 = !ISTRIP and LITOUT = !OPOST, if CSIZE is CS8. 1995-10-05 02:45:06 +00:00
mycroft
f5f86fc38b Fix type errors. 1995-10-05 01:42:22 +00:00
mycroft
210951a875 Switch to using SET(), CLR(), and ISSET() macros, like tty.c. 1995-10-05 01:35:07 +00:00
thorpej
42c10934c1 Fix typo in declaration of exit(), pointed out by Chris Demetriou. 1995-09-27 20:26:51 +00:00
cgd
08cae70f24 fix annoying but non-critical rounding but in ttyinfo(). (If
microseconds goes over 10^6 when rounding, increment seconds.)
1995-09-22 00:11:35 +00:00
thorpej
60024eb978 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 21:40:36 +00:00
thorpej
1f5a887dbf makesyscalls.sh changed 1995-09-19 21:31:49 +00:00
thorpej
70bf3eea21 Emit prototypes for system call functions and append them to the
`syscallargs' header file.
1995-09-19 21:28:56 +00:00
thorpej
7f6d48201f s/memcmp/bcmp/ 1995-09-16 00:28:08 +00:00
ws
166530c153 Distribute cache entries more evenly 1995-09-08 14:15:07 +00:00
mycroft
873ed30f83 so_pcb should be a void *. 1995-08-17 02:57:20 +00:00
mycroft
a87c08a36e Access rights are now stored in MT_CONTROL mbufs. Document this. 1995-08-16 01:03:19 +00:00
mycroft
0ecd5256ad Allocate PCBs with malloc(), more mgetclr(). Be more careful to free the
PCB after it's done with.
1995-08-16 00:29:50 +00:00
mycroft
d23236204d When resetting a signal, change ps_sigact, just to be sure. 1995-08-14 06:07:55 +00:00
mycroft
5c03d498db Fix typos. 1995-08-14 01:47:03 +00:00
mycroft
2e95cf3d31 Implement SA_RESETHAND and SA_NODEFER.
Only return SA_NOCLDSTOP in the sigaction struct for SIGCHLD.
Rename ss_flags bits.
1995-08-13 22:53:59 +00:00
mycroft
36a94a031a Lock the process in core before operating on it. 1995-08-13 09:05:51 +00:00
mycroft
5482957905 splnet --> splsoftnet 1995-08-12 23:59:09 +00:00
mycroft
80d7b0695a minphys() functions really should return void. 1995-08-12 20:30:45 +00:00
thorpej
0f77910137 Add and document a `kern.rawpartition' sysctl. 1995-08-04 18:36:08 +00:00
cgd
32b4385a97 fix bug pointed out by, and do the cleanup suggested by
Alasdair Baird <alasdair@wildcat.demon.co.uk>.  From pr 1301.
1995-08-02 22:01:46 +00:00
mycroft
605a125097 After an I/O operation completes, immediately set B_BUSY again. Also,
lower spl sooner, and remove an unneeded splbio()/splx() pair.
1995-07-27 02:37:12 +00:00
cgd
e9d17d38b5 avoid unnecessary aging of buffers. This used to make sense, when buffer
caches were much smaller, but makes little sense now, and will become more
useless as RAM (and buffer cache) sizes grow.  Suggested by Bob Baron.
1995-07-24 21:19:27 +00:00
cgd
b45221af72 prototype strategy and minphys, use & check minphys return value 1995-07-24 07:45:24 +00:00
mycroft
73d0d3717e Don't toss out tty stop signals if we're being traced. 1995-07-24 03:18:42 +00:00
christos
7de0fcfd12 Add KTR_EMUL to indicate a switch between syscall emulations.
Currently this record is emitted only on exec. Maybe it should
be emitted on ktrace() attach too.
1995-07-19 15:19:08 +00:00
cgd
f5bbdfba41 bdwrite() should upgrade writes to tape devices by sending them to
bawrite().  it's logically more correct (doesn't return an error code,
because it's async; bdwrite is also async), it still writes things
in-order, it makes sure the proper accountins is done (see the
wasdelayed cases in bwrite()), and it allows writes to vnodes on volumes
mountd with the MNT_ASYNC to be converted into delayed writes the way
God, err, Kirk intended.  Convert synchronous bwrite()s on MNT_ASYNC
file systems to delayed writes.
1995-07-12 07:56:31 +00:00
cgd
9c3fe30d92 fix long-standing XXX in getblk(): NFS does funky things (somewhat
explained in comments), which can cause a race condition.  amazingly,
the _only_ time i've ever seen or heard of this problem was in some
comments and sources by Rick Macklem, and when running against the
a DEC OSF/1 NFS server running on an Alpha.
1995-07-12 07:39:00 +00:00
mycroft
7263209ce6 Make each disk and tape driver define its own read and write functions.
Deprecate rawread() and rawwrite() completely.  Remove d_strategy from cdevsw to
force the abstraction barrier.
1995-07-04 07:15:28 +00:00
mycroft
083ba962e2 Oops; need fcntl.h. 1995-07-03 16:58:38 +00:00
mycroft
9a4505cb89 Close routines take file flags, not I/O flags. Fix two incorrect usages. 1995-07-02 18:13:02 +00:00
christos
1654fca494 Remove unused define 1995-06-30 02:57:20 +00:00
cgd
3748c1aef7 try to insure that the 'default' address for shm segments is the same
from process to process.  It apparently is on SysV systems, and some
programs depend on this.  Suggested by  John Birrell <jb@werple.mira.net.au>.
1995-06-29 11:43:17 +00:00
christos
1a5a3c9199 Extracted all of the compat_xxx routines, and created a library [libcompat]
for them. There are a few #ifdef COMPAT_XX remaining, but they are not easy
or worth eliminating (yet).
1995-06-24 20:33:55 +00:00
fvdl
8ef93cbcf5 Generic mi ELF loader; delete Linux and Svr4 compat conf entries and
add generic ELF entry to exec_conf.c
1995-06-22 21:29:47 +00:00
cgd
3176641085 fix pr 1128; change vfs_bufstats defn from DIAGNOSTIC - > DEBUG 1995-06-20 10:42:33 +00:00
cgd
8f62c773e8 don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN 1995-06-18 14:45:14 +00:00
cgd
d0601a093f copy some format specifiers from kprintf to sprintf. b & r still missing 1995-06-16 10:52:17 +00:00
fvdl
0cdb827026 Add Linux ELF module to the list of things to try. 1995-06-11 20:22:12 +00:00
mycroft
d7e904a697 Fix various signal handling bugs:
* If we got a stopping signal while already stopped with the same signal,
the second signal would sometimes (but not always) be ignored.
* Signals delivered by the debugger always pretended to be stopping
signals.
* PT_ATTACH still didn't quite work right.
1995-06-08 23:51:01 +00:00