Commit Graph

1121 Commits

Author SHA1 Message Date
cgd
c7fde1470b various XXX changes that linux bins need to get their args correctly. 1995-02-28 23:09:01 +00:00
cgd
b90bc60c78 switch entry for Linux a.out 1995-02-28 23:06:21 +00:00
mycroft
cfe40d86f6 Move a couple of assignments from the parent to the child. 1995-02-23 23:41:43 +00:00
mycroft
e8f67573e2 Align the stack even if envp is NULL. 1995-02-22 01:39:56 +00:00
mycroft
477c99007d NULL out file descriptors as they're closed, for the benefit of fstat(8). 1995-02-15 02:12:02 +00:00
mycroft
53f792b77d Omit the call to process_sstep() if PT_STEP is not defined. 1995-02-09 05:19:18 +00:00
cgd
a03b011499 undo a part of the last change that mistakenly required PT_STEP.
(i simply undid that part of the change.)  also, fix a tyop.
1995-02-08 23:38:29 +00:00
mycroft
c43614be17 Remove UIO_USERISPACE. 1995-02-08 15:06:48 +00:00
mycroft
a8dd9a66e2 Optimize differently. 1995-02-04 14:44:48 +00:00
mycroft
5561e58072 Small optimization. 1995-02-04 14:22:13 +00:00
mycroft
1815d82b85 Make attach/detach more safe. 1995-02-03 11:35:57 +00:00
mycroft
42d23cb6e4 Remove PT_{READ,WRITE}_U. 1995-01-26 17:56:21 +00:00
cgd
aff3f5b497 implement sysctl variable kern.maxpartitions 1995-01-25 06:08:06 +00:00
cgd
ef5b4feb51 ooops. forgot to emable fpathconf's use of VOP_PATHCONF! 1995-01-23 04:45:22 +00:00
mycroft
9843f45605 Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS
differently.
1995-01-18 06:19:49 +00:00
mycroft
af0c359450 Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS
differently.
1995-01-18 06:14:43 +00:00
cgd
7fb59862ff undo charles's accidental changes. 1995-01-15 09:23:05 +00:00
cgd
6354211739 cast pointer to long, not int 1995-01-12 05:40:10 +00:00
cgd
6bec8ab087 cast pointers to longs. 1995-01-12 05:22:18 +00:00
mycroft
d903b2aa28 Remove unused extern. 1995-01-09 19:54:28 +00:00
cgd
c6720544a8 update for new syscalls.master 1995-01-06 00:08:50 +00:00
cgd
dfa90d1c7f obsolete resuba, per ragge. 1995-01-06 00:08:17 +00:00
mycroft
ebe3db17a7 Handle null pointers like libc. 1994-12-28 06:30:35 +00:00
ws
2f0fb8ee09 Implement and use a common access checking routine 1994-12-24 16:44:12 +00:00
cgd
d218233b36 various cleanups for -Wall. some inspired by James Jegers. 1994-12-24 15:07:22 +00:00
cgd
8a8d0c16d8 make from latest syscalls.master. 1994-12-24 14:30:56 +00:00
cgd
596b9735bd make return type explicit, from James Jegers 1994-12-24 14:07:52 +00:00
cgd
9c6713415c as noted by James Jegers, crfree should return void. 1994-12-24 14:04:43 +00:00
cgd
da93322976 define lkm_nofunc, to be used instead of nosys (blech!) for unused load,
unload, and stat functions.  arguably could (should?) use NULL instead,
but this is a bit more descriptive.  also, unconditionally call the
load/unload/stat functions, as now they're known to work (because, at
worst, they're lkm_nofunc).
1994-12-24 13:25:48 +00:00
cgd
c39db8e1f2 make it reflect the current makesyscalls.sh, pointed out by
Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
1994-12-23 10:08:25 +00:00
cgd
e475f6d4f2 kill the #if 0 around SHM_*LOCK. makes no difference, though... 1994-12-22 13:30:40 +00:00
cgd
a2e9d6806f use ALIGNBYTES for calculating alignment. no reason not to, and good style
to do so.
1994-12-19 14:36:46 +00:00
mycroft
b4aa6d3a28 Call foo_statfs() from a common place when mounting. 1994-12-15 19:46:08 +00:00
mycroft
790aa66ac5 Remove extra arg to ptcopen(). 1994-12-14 19:45:30 +00:00
mycroft
70f25af085 Sync with CSRG. 1994-12-14 19:41:23 +00:00
mycroft
b903333935 Remove old declaration. 1994-12-14 19:38:48 +00:00
mycroft
12371eafc4 Revert open() completely. 1994-12-14 19:36:15 +00:00
mycroft
1b00f4cc4e Revert dup handling. Remove extra arg to vn_open(). 1994-12-14 19:08:07 +00:00
mycroft
080e194e58 Remove extra arg to vn_open(). 1994-12-14 19:03:13 +00:00
mycroft
9715f46125 Remove a_fp. 1994-12-14 18:58:43 +00:00
mycroft
ef575bdbc1 Revert dup handling. 1994-12-14 18:40:27 +00:00
mycroft
82ab4c687f Sync with CSRG. 1994-12-14 16:30:40 +00:00
mycroft
fcef736c87 Add undelete syscall, per CSRG. 1994-12-14 16:29:54 +00:00
mycroft
d67f9f7960 Add vop_whiteout, per CSRG. 1994-12-14 13:03:11 +00:00
mycroft
f76536baea LEASE_UPDATETIME -> lease_updatetime 1994-12-13 22:19:45 +00:00
mycroft
a18ec3cb1b LEASE_CHECK -> VOP_LEASE 1994-12-13 21:52:35 +00:00
mycroft
527b796ff5 Turn lease_check() into a vnode op, per CSRG. 1994-12-13 20:14:30 +00:00
mycroft
51d415bcfe Fix compiler warnings/bugs. 1994-12-13 20:03:13 +00:00
mycroft
d8d7490080 Fix compiler warning. 1994-12-13 19:59:25 +00:00
mycroft
23bd29ca27 Minor changes. 1994-12-13 09:49:13 +00:00
mycroft
8c24ba89ef Sync with CSRG. 1994-12-13 09:14:34 +00:00
mycroft
24c6860ee6 Fix bogus casting of return value from incore(). 1994-12-13 09:13:39 +00:00
mycroft
f9e259e3ca Use __timer{add,sub}(), not timeval{add,sub}(). Remove the latter completely. 1994-12-11 18:06:07 +00:00
mycroft
025723db2b Fix another bug pointed out by Daniel Boulet. 1994-12-10 17:14:42 +00:00
cgd
3035c3a3f3 make nosys() return ENOSYS, based on user requests and discussions with
mkm.  it still always signals.
1994-12-07 21:31:11 +00:00
mycroft
eb635d6e4f Make semlock_holder non-static. 1994-12-05 08:30:30 +00:00
mycroft
168a4388a5 Check for another error condition. 1994-12-05 08:28:53 +00:00
mycroft
69f600c8a2 Fix thinko in previous commit. 1994-12-05 07:54:48 +00:00
mycroft
861c8760a3 Add a comment to make this a little clearer... 1994-12-05 07:32:24 +00:00
mycroft
af33b8e0c6 Merge changes from Daniel Boulet to avoid waiting for the semaphore lock in
semexit() if there are no undo records to process.
1994-12-05 07:22:12 +00:00
mycroft
181155cde0 Minor style cleanup. 1994-12-05 06:53:13 +00:00
mycroft
225e113c5a Move the wait loop into a separate function. 1994-12-05 06:46:29 +00:00
mycroft
fc508faac1 Fix the locking mechanism that got broken with the new syscall interface. 1994-12-05 06:41:42 +00:00
mycroft
54b91ee78e Make this code a little more consistent with itself. 1994-12-04 14:06:36 +00:00
mycroft
90ef05a32c Use common fdclose() rather than a private version. 1994-12-04 03:10:40 +00:00
mycroft
b58324b77a Abstract out the code to maintain fd_lastfile. Remove the old dup() compatibility
kluge.  Rearrange fdopen() handling.  Make a common function to handle closing
a particular file descriptor in a process.  Some other cleanup.
1994-12-04 03:09:50 +00:00
cgd
3f94249a93 from 4.4-Lite. probably don't work yet. 1994-12-03 07:42:51 +00:00
mycroft
851fbeb2f3 Turn off doreallocblks until it is fixed. 1994-11-26 04:18:46 +00:00
dean
31d6b4be35 added defined(COMPAT_ULTRIX) for compat_09_getdomainname
(From Jonathan Stone)
1994-11-23 22:36:59 +00:00
mycroft
642eb11a86 Various code rearrangement. 1994-11-22 01:31:02 +00:00
christos
70e6f7edb8 Don't VOP_UNLOCK the vnode on a cloning operation. vput() will do it for
us.
1994-11-18 02:48:58 +00:00
christos
3e935d8a0d Added ifdef COMPAT_SVR4 to the kernel compat code needed. 1994-11-17 20:27:10 +00:00
christos
1a320dc9be added extra argument in vn_open and VOP_OPEN to allow cloning devices 1994-11-14 06:01:16 +00:00
mycroft
2f38797073 Trivial changes to make the code more consistent. 1994-11-06 20:39:50 +00:00
mycroft
1948fcb3fa Add a new function config_scan(), which just calls a particular function
with each plausibly cfdata, ignoring the priority mechanism completely.
1994-11-04 06:40:11 +00:00
mycroft
9fdc2ecb99 Export struct matchinfo and mapply(). 1994-11-04 03:12:20 +00:00
mycroft
52a27c59d6 Calculate indirectness earlier, and stor it in the struct matchinfo. 1994-11-04 03:07:17 +00:00
mycroft
893b0e1f83 config_make_softc() needs pointer to parent; and fix a couple of other bogons. 1994-11-04 00:14:04 +00:00
mycroft
4afbef1f16 If cd_indirect is set in the parent, create a softc early and pass it to the
probe routine.
1994-11-03 22:01:09 +00:00
deraadt
84ff6c006a you cannot ALIGN() backwards 1994-11-03 05:58:44 +00:00
mycroft
6e84d8d039 Add a couple of casts to calm GCC. 1994-10-31 21:26:13 +00:00
mycroft
7c29d675ec Change argument list of ttioctl() to match other ioctl functions. 1994-10-30 22:11:05 +00:00
cgd
6ac2bbfc35 be more careful with types, also pull in headers where necessary. 1994-10-30 21:43:03 +00:00
cgd
4eaa98b365 cleanliness, type sizes, casts. 1994-10-30 19:15:46 +00:00
cgd
64d07daf4f kill space. 1994-10-28 23:17:22 +00:00
cgd
cf92049b53 minor cleanup; get output format right. 1994-10-28 23:14:46 +00:00
cgd
aa9eacdd59 new RCS ID format. 1994-10-26 06:39:02 +00:00
mycroft
4bad1511b7 Fix a bug I introduced in the last commit, regarding a VTIME timeout causing
EWOULDBLOCK to be returned rather than looping again to see if any characters
are pending.  Also, fix another bug in the original code; if someone changed
VMIN behind our back, last_cc might be uninitialized when we reference it.
1994-10-24 09:09:06 +00:00
deraadt
dc7de949e9 change exec_setup_fcn() to be more useful (from christos) 1994-10-24 05:32:19 +00:00
cgd
2623b287e6 fix for numerous cut & paste errors in the last changes, from Christos. 1994-10-23 23:11:27 +00:00
mycroft
abc582b6d2 Return ppid and euid for COMPAT_IBCS2, too. 1994-10-21 01:12:13 +00:00
mycroft
f19afe34cb Reran makesyscalls.sh. 1994-10-21 00:15:36 +00:00
mycroft
452508f874 Fix typos. 1994-10-21 00:14:36 +00:00
mycroft
be01ae1904 Fix typo in description of syscallarg.h. 1994-10-20 23:22:38 +00:00
mycroft
97c2b52714 Minor change; use proc_reparent(). 1994-10-20 22:54:35 +00:00
cgd
f59b086d9c one minor mod... 1994-10-20 04:37:09 +00:00
cgd
0da612d076 update rcsid 1994-10-20 04:32:39 +00:00
cgd
6b86130410 update for new syscall args description mechanism 1994-10-20 04:22:35 +00:00
cgd
90f2c4f70a DEBUG and/or DIAGNOSTIC shouldn't cause thing to be printed for "normal"
cases, unless the user explicitly requests it.  add variable
startinit_verbose to control init-starting messages.
1994-10-18 06:28:06 +00:00
mycroft
8f5b447fb2 Remove the need for some untimeouts. 1994-10-12 13:38:16 +00:00
mycroft
98e70587d5 Avoid GCC generating a call to memset(). 1994-10-11 09:26:01 +00:00
mycroft
9085601009 Clean up #includes. 1994-10-09 08:29:55 +00:00
mycroft
878839c40d Simplify the code to expand the dev array slightly, and make sure the size is
a power of 2.
1994-10-07 09:07:56 +00:00
cgd
7545c52d98 fix ndqb bug handling flags other than TTY_QUOTE. 1994-10-02 04:11:53 +00:00
deraadt
9d7bdbb0c4 don't play with CLBYTES in cpp 1994-09-28 00:44:30 +00:00
mycroft
3cc6cbc0e6 Correct test for already being traced. 1994-09-24 07:17:18 +00:00
mycroft
22bdb84b17 Allow unloading of vfs's if the refcount is 0. 1994-09-22 02:22:42 +00:00
mycroft
480c10c23a Maintain vfs reference counts. 1994-09-22 02:17:00 +00:00
mycroft
0874e14c94 m_adj() returns void. 1994-09-19 08:07:17 +00:00
mycroft
87ed5fd67b Require at least one group. 1994-09-19 07:52:57 +00:00
mycroft
3b83040b88 Add tickadj to clockinfo. 1994-09-18 21:55:43 +00:00
mycroft
61101c8fa5 Remove extern of tickadj. 1994-09-18 21:49:07 +00:00
deraadt
1ec7a8fcbe fix PR#484 relating to backspacing over a tab. 1994-09-18 18:32:51 +00:00
mycroft
868c94ff7c Fix space change in last commit. 1994-09-18 04:40:47 +00:00
deraadt
42ea7aa818 sparc is not special anymore 1994-09-16 23:57:22 +00:00
cgd
b690c315ff ugly (#ifdef) hack to fix m68k alignment differences, etc. Eventually,
should be done with a 'natual alignment' macro, or some such.
1994-09-14 16:40:29 +00:00
cgd
575d44884b from Kirk McKusick: release old ctty if acquiring a new one.
also: prettiness police!
1994-09-14 00:35:29 +00:00
mycroft
1435172b90 Nuke the silly `--' hack when there are no flags. 1994-09-10 04:44:23 +00:00
mycroft
faa18f6ce6 New iBCS2 code from Scott. 1994-09-05 01:08:43 +00:00
mycroft
b1f0fa317e Decrease shm_nused when a segment is deleted. 1994-08-31 21:47:36 +00:00
mycroft
c996edc7e1 Display emulation type. 1994-08-30 06:22:10 +00:00
mycroft
227e4cb85c Make sure p_emul is copied on fork. 1994-08-30 06:16:25 +00:00
mycroft
016425e503 Clean up some debugging code. 1994-08-30 05:37:14 +00:00
mycroft
2f710a54ee Convert process, file, and namei lists and hash tables to use queue.h. 1994-08-30 03:04:28 +00:00
mycroft
f5232de492 Patch to fix `reassignbuf: NULL' messages, from cgd. 1994-08-29 01:47:02 +00:00
deraadt
2558d359af emulate setreuid/setregid better. 1994-08-25 07:13:55 +00:00
cgd
ec29b60850 gwr's slightly cleaner way to do that last... 1994-08-25 03:04:28 +00:00
deraadt
280592c6a7 replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE"
(cvs dumped core during previous commit...)
1994-08-23 22:13:59 +00:00
deraadt
72b3d408b9 replace "ctob(UPAGES)" and "UPAGES * NBPG" with "USPACE" 1994-08-23 22:07:42 +00:00
deraadt
3938d6ba02 initialize shmmax to `# of pages' at compile time; multiply by NBPG at
boot time (in shminit). This supports architecture families with varying
values for NBPG, and does not break ipcs.
1994-08-22 23:37:03 +00:00
cgd
94109335b3 kill errant spaces 1994-08-21 21:24:33 +00:00
cgd
c141eabf16 handle another "too much memory in buffer" boundary case 1994-08-21 06:38:42 +00:00
cgd
92da9d2f33 can't do ptr math on void * 1994-08-18 22:09:35 +00:00
mycroft
77dee53b00 Move the SVR4 dispatch here. 1994-08-15 22:36:40 +00:00
mycroft
ace234dade Add iBCS2 COFF loader. (Eventually there should be a sys/exec_coff.h.) 1994-08-15 22:17:16 +00:00
mycroft
9c4c84c97e Need ofstat() for iBCS2 syscall conversion. 1994-08-15 22:08:55 +00:00
mycroft
4566d7f5ba Need ostat() and olstat() for iBCS2 syscall conversion. 1994-08-15 22:06:47 +00:00
mycroft
77fe78350b Minor update to a comment. 1994-08-15 16:45:14 +00:00
cgd
97bdeab31e replace with a completely rewritten version, based around the 4.4BSD
procfs.  Now the author of the old version will stop complaining that
we're using his code.
1994-08-15 16:32:41 +00:00
cgd
b48d84b629 replce with virgin copy from 4.4-Lite 1994-08-15 16:29:22 +00:00
mycroft
4a8bf3976b Fix a problem in sync() where we might keep a stale pointer to the next mount
entry.
1994-08-13 07:05:53 +00:00
cgd
5009183daf make output a bit cleaner, to satisfy mckusick. 1994-08-11 21:57:38 +00:00
mycroft
d4a420650a Make sure CS8 is set if RAW is on. 1994-08-03 03:41:34 +00:00
mycroft
078c594c69 Fix this numerous bugs, including loss of OPOST mode. 1994-08-02 08:47:54 +00:00
mycroft
743c8ea38e Clear t_flags on first open. 1994-08-02 08:45:46 +00:00
pk
6c9ba984e5 See to it that vm_tsize' and vm_dsize' get set up properly for
OMAGIC binaries, so obreak(2) doesn't get confused.
1994-08-01 18:49:49 +00:00
glass
a3cc8f5e8d fix for obreak problem from Arne H Juul <arnej@dsl.unit.no> 1994-08-01 14:04:47 +00:00
mycroft
5ee1370fe1 Clean this up a bit, and separate parts of vfs_opv_init() into separate
functions.
1994-07-24 07:15:19 +00:00
cgd
54165a4169 only use variables which are defined. 1994-07-24 02:38:20 +00:00
deraadt
d8a9dcab90 ndqb() was broken for full ring buffers! fix from paulus. 1994-07-18 03:38:31 +00:00
cgd
be81092ac3 fix RCS ID. *sigh* 1994-07-17 23:52:09 +00:00
cgd
d7fc64af84 don't use inline, use __inline, like cdefs intends (so it can kill it if nongcc 1994-07-15 22:29:22 +00:00
ws
2db64ab48d Try to pick myself up from the floor where I fell laughing. 1994-07-12 22:20:46 +00:00
cgd
f3dc337d8a fix done in rev. 1.23 over again. it was clobbered, and problem masked 1994-07-10 05:53:25 +00:00
cgd
c5bedb0aa6 fix for kern/322, pointed out by osymh@gemini.oscs.montana.edu. Neither
suggested fix was correct: the suggested change to cache_lookup would cause
the counters to be incremented when doingcache was zero, and the suggested
change to cache_enter was prone to a race condition (e.g. if doingcache
became 1 between the cache_lookup and cache_enter).
1994-07-05 19:09:32 +00:00
glass
a957351354 multiple include of exec.h 1994-07-05 03:26:34 +00:00
glass
fdbee87708 returning a gift 1994-07-04 23:25:12 +00:00
mycroft
7f9b78dbbe Revert most of the previous change. 1994-07-04 20:43:06 +00:00
cgd
34a7f2bbed minor style nits, change VBAD handling 1994-07-04 20:27:06 +00:00
mycroft
3673f99efd No more HP copyright. 1994-07-03 11:45:41 +00:00
cgd
ea01579f35 light clean up, use some macros 1994-07-03 07:57:32 +00:00
cgd
ea1b26b17b kill a relic 1994-07-03 00:19:54 +00:00
chopps
344d199647 we like cache. 1994-07-02 20:26:19 +00:00
deraadt
318b9c6b63 limit st_dev to 15 bits set for nfs filesystems 1994-07-02 04:51:18 +00:00
deraadt
cc7bf234c6 exec_aout.h not needed 1994-07-01 02:57:52 +00:00
cgd
d8d1a3037b fix warning 1994-06-30 19:00:49 +00:00
cgd
a2e313bd42 gen syscall fiels from new syscalls.master 1994-06-30 17:01:45 +00:00
cgd
bc9970144d fix up for new ID format, and consistency 1994-06-30 16:42:47 +00:00
cgd
e692ddd378 fix some lossage 1994-06-30 15:57:05 +00:00
cgd
cf92afd66e New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' 1994-06-29 06:29:24 +00:00
mycroft
6c5092484b Eliminate use of b_bufsize, and instead pass an extra arg to v(un)mapbuf(),
to be consistent with vs)un)lock().
1994-06-28 22:21:16 +00:00
mycroft
ff2e6e12a2 Set b_bufsize after the minphys routine is called. 1994-06-26 06:08:11 +00:00
mycroft
58595682af shm map is pageable. 1994-06-25 04:10:18 +00:00
mycroft
1e92bdf540 Make ogetdirentries() if COMPAT_HPUX. 1994-06-22 03:01:16 +00:00
mycroft
ea88fee18e Make ogetdtablesize if COMPAT_HPUX. 1994-06-22 03:00:21 +00:00
paulus
6ea2395cde fix compilation warning 1994-06-20 00:32:31 +00:00
cgd
975727e127 replace part of apparently-deleted line 1994-06-19 22:58:29 +00:00
mycroft
917feef86b Compatibility with old code that uses NTTYDISC, if COMPAT_43. 1994-06-16 17:54:52 +00:00
mycroft
e916c8d15f Update to union mount code from JSP. 1994-06-16 14:14:57 +00:00
glass
6b9c16ace1 compat_ultrix 1994-06-16 05:07:32 +00:00
mycroft
507802da61 Set b_bufsize, for use by v{,un}mapbuf(). 1994-06-16 00:54:18 +00:00
mycroft
0d8affb278 Turn P_NOSWAP and P_PHYSIO into a hold count, as suggested by a comment. 1994-06-15 19:59:21 +00:00
gwr
2ce572b18e Get rid if 'set -f' (at Adam's request). It is unnecessary,
and not supported by sh on some systems (i.e. Ultrix).
1994-06-15 18:13:31 +00:00
gwr
e52b4481b3 No longer requires GNU awk (plain "nawk" is OK).
New AWK parser is simpler and makes better use of arrays.
1994-06-15 15:49:03 +00:00
mycroft
11884bb842 Minor cleanup. 1994-06-14 19:36:14 +00:00
chopps
25d43e1bab getdtabledsize used by sunos compat code. 1994-06-14 10:52:20 +00:00
cgd
eea64debf1 make getdtablesize COMPAT_43; should be COMPAT_44 or _09, but that has probs 1994-06-14 05:18:03 +00:00
mycroft
33d82e8a8b Move definition of prtactive. 1994-06-13 15:37:55 +00:00
mycroft
699bbb84b6 Update to 4.4-Lite fs code. 1994-06-08 11:28:29 +00:00
cgd
ffde2d4a28 minor type pointed out by Onno van der Linden 1994-06-05 13:00:49 +00:00
mycroft
2267a8c5fc Use the same algorithm as mmap() with MAP_ANON for placing the segment. 1994-06-03 21:17:09 +00:00
mycroft
919b9c0f72 Get rid of unneeded bzero(). 1994-06-03 21:06:53 +00:00
cgd
ebf0357409 sane initialization. fix bug kern/274 1994-06-03 20:53:38 +00:00
cgd
5337d9fb95 kill old init-starting code 1994-06-03 04:26:06 +00:00
phil
0ca1daa954 pc532 now does new init process 1994-05-31 21:56:06 +00:00
mycroft
766c830cb5 Clear more flags in brelse(). 1994-05-29 22:50:50 +00:00
gwr
7b95dc1e1b Now the sun3 stars init the new way. 1994-05-29 05:20:11 +00:00
glass
af77c1caf2 more likely to work now, probably less knf...thats the next project 1994-05-28 20:21:30 +00:00
deraadt
2936fcf647 ufs/ufs/quote.h? no.. not yet.. 1994-05-27 23:01:02 +00:00
hpeyerl
33030898d2 Copyright foo 1994-05-27 19:15:36 +00:00
mycroft
9140aa53a3 hp300 port is blessed. 1994-05-27 12:49:52 +00:00
mycroft
63b45d5a21 The i386 port is now blessed. 1994-05-27 11:25:00 +00:00
mycroft
facfcdd2ef Cluster routines want 0-sized bufs. 1994-05-27 11:05:54 +00:00
chopps
1e9889f1c5 amiga now included in list of new init bootstrap users 1994-05-27 10:33:23 +00:00
glass
7890c5a8cd preliminary ecoff support, initially to support COMPAT_ULTRIX 1994-05-27 09:19:40 +00:00
mycroft
fecf7cf468 Fix thinko in last change. 1994-05-27 08:51:21 +00:00
mycroft
d337b80b79 Get the arguments to vm_allocate() right in new init code. 1994-05-27 08:46:50 +00:00
mycroft
d1f36d3007 fname --> path 1994-05-27 08:44:12 +00:00
deraadt
d0f39cffd9 return 0 on success 1994-05-27 07:58:37 +00:00
glass
12765858aa pmax and sparc take the 4.4-lite path 1994-05-27 07:54:34 +00:00
cgd
7181a3603b minor updage from ws 1994-05-25 21:35:49 +00:00
pk
7672b8b95b New style core dumps. 1994-05-25 10:56:56 +00:00
mycroft
820102bd99 Update copyright. 1994-05-25 10:15:23 +00:00
deraadt
7f3946f0ec use u_char's instead of char's; else the TTY_QUOTE bit can get accidentally
be set. Also fix copyright.
1994-05-25 10:00:26 +00:00
deraadt
2070652356 use u_char's instead of char's; else the TTY_QUOTE bit can get accidentally
be set.
1994-05-25 09:58:53 +00:00
mycroft
176f74d111 If we try to create a key that's already being created, wait. 1994-05-25 09:55:32 +00:00
mycroft
319c49b218 And finally, some optimization. 1994-05-25 09:07:43 +00:00
mycroft
b77e8e88ee Fix this up some more. (I just read SVID again.) 1994-05-25 08:59:48 +00:00
mycroft
4de9515d54 Fix typo. 1994-05-25 08:17:01 +00:00
mycroft
30cbcb7e80 Generalize ipcperm() a little. 1994-05-25 08:15:45 +00:00
mycroft
ab0a415c77 Clean this up a bit, and fix several bugs. 1994-05-25 07:36:53 +00:00
hpeyerl
2d7c7416dd sysv_shm.c from Adam.
sysv_ipc.c from me.
and various sundry changes to make sysv_ipc.c fit in.
(somewhat untested and not very pleasant reading material)
1994-05-25 02:14:24 +00:00
cgd
f472d92282 very obscure bug fix for acctwatch 1994-05-24 06:49:14 +00:00
cgd
549467984e fresh copy from Wolfgang Solfrank 1994-05-24 02:49:29 +00:00
cgd
ebcaebd335 MIN -> min, MAX -> max 1994-05-24 02:35:53 +00:00
cgd
4ee1fbae2f cast, also, use vm_map_protect rather than vm_protect 1994-05-23 03:04:57 +00:00
mycroft
21a95abaca Don't go berzerk if acctwatch() happens to be called during an
acct_process().
1994-05-21 09:00:22 +00:00
cgd
82fabd73d5 struct execve_args now defined in exec.h 1994-05-21 07:48:10 +00:00
cgd
df4db4cfda add latent stupport for new way of starting init 1994-05-21 07:47:54 +00:00
cgd
86cabd29d6 return types, for protos 1994-05-21 04:03:15 +00:00
cgd
8faa0eadd2 oops; if in the wrong place. thanks charles. 1994-05-21 01:10:26 +00:00
cgd
b3fda1e8ec update with merged versions 1994-05-20 10:05:02 +00:00
cgd
47d5757075 4.4-Lite versions 1994-05-20 10:04:05 +00:00
cgd
0d92ca456f update to Lite 1994-05-20 07:24:51 +00:00
cgd
b1c756dc7b kill a notdef 1994-05-20 07:18:37 +00:00
cgd
7424fd59cf reorg derivations, slightly. 1994-05-20 04:31:22 +00:00
glass
7e3eb8ad92 update to 4.4-lite + local changes 1994-05-20 04:15:04 +00:00
cgd
63bb5c1ff2 update to 4.4-Lite, with some local changes 1994-05-19 08:13:09 +00:00
cgd
ad7a66ca21 update to 4.4-lite 1994-05-19 06:39:46 +00:00
mycroft
96f9b4b74d Update to 4.4-Lite, plus some local changes. 1994-05-19 06:13:50 +00:00
mycroft
66f3291923 Clean up deleted files. 1994-05-19 06:09:13 +00:00
cgd
540aa31a08 update to lite 1994-05-19 05:57:44 +00:00
cgd
31f076d805 kill a notdef 1994-05-19 05:57:17 +00:00
cgd
4da98bee08 stupidity for prototypes... 1994-05-19 05:04:07 +00:00
mycroft
0d7b00ee14 Update to 4.4-Lite. 1994-05-19 03:43:13 +00:00
cgd
7f683b3792 some paranoia, also, clean up spaces vs. tabs 1994-05-19 03:04:01 +00:00
mycroft
ee7565c0b3 Some nits. 1994-05-18 12:46:29 +00:00
cgd
fcb7a3c514 Implement ptrace() functionality, based on the previous version
by Sean Eric Fagan.
1994-05-18 11:37:00 +00:00
cgd
e5456f6c3e replace sys_process.c with the 4.4-Lite version 1994-05-18 11:32:27 +00:00
cgd
c18ec4dca5 my two favorite reference books 1994-05-18 10:51:13 +00:00
cgd
fbd5b44ec7 forgot the damned rcsid 1994-05-18 10:28:14 +00:00
cgd
ddca406d72 significant rework, to match 4.4-Lite interfaces, and to comment more
closely from Bach.
1994-05-18 10:24:54 +00:00
cgd
3ece2ea12e update from lite. delete obsolete (wfj) function, add hashinit() 1994-05-18 10:21:18 +00:00
cgd
21a03cca53 mostly-machine-indepedent switch, and changes to match. also, hack init_main 1994-05-18 05:12:10 +00:00
mycroft
c7468280da Update from 4.4-Lite. No important differences. 1994-05-18 04:15:51 +00:00
cgd
6dad8d7a8a put sync printing in one place 1994-05-18 00:35:07 +00:00
cgd
577c5b3d55 fixes from Christos Zoulas and myself, to get it to work again 1994-05-18 00:10:10 +00:00
cgd
179c5769e3 notdef out vn_bwrite out, for now, so that kernels compile, until new fs stuff 1994-05-17 10:50:56 +00:00
cgd
81ae1682d5 osigstack is COMPAT_HPUX, too 1994-05-17 08:46:35 +00:00
cgd
28fb78e6ba domainname foo is for HPUX, too 1994-05-17 08:22:13 +00:00
cgd
bcd9af7530 forgot a cast, and killed phil! 1994-05-17 08:03:05 +00:00
cgd
91cf0fbaf3 copyright foo 1994-05-17 04:21:49 +00:00
mycroft
6c7bd3b00f Implement new functions for 4.4-Lite file systems, and some general cleanup. 1994-05-17 03:43:46 +00:00
cgd
326e5bd552 get & setdomainname are COMPAT_09, not COMPAT_43 1994-05-17 00:04:39 +00:00
cgd
9b0d8f0555 make getdomainname, setdomainname, and uname COMPAT_09 in syscall table 1994-05-17 00:02:28 +00:00
cgd
e37f8e4023 add support for 'NCOMPAT' to deal with NetBSD compat defines 1994-05-17 00:00:46 +00:00
cgd
1ca4432511 make ouname() actually compatible with its old invocation (based on
old utsname.h) for binary compatibility.  also, it is *NOT* SunOS compatible;
the SunOS structure has different-sized fields.  COMPAT_SUNOS needs its own.
1994-05-16 09:57:42 +00:00
cgd
f85266508f kill uname-related crap 1994-05-16 09:50:40 +00:00
glass
5f0be76f42 missing rcsid 1994-05-14 19:43:02 +00:00
cgd
e1cf64a4ee SHUT UP! 1994-05-13 09:29:06 +00:00
cgd
344fb896fd new kernel malloc. much better (but slower) diagnostic checking 1994-05-13 08:32:17 +00:00
cgd
f072e5b0eb update; minor clean, cruft removal. 1994-05-13 06:02:45 +00:00
mycroft
d361acde18 Update to 4.4-Lite networking code, with a few local changes. 1994-05-13 06:01:27 +00:00
cgd
c6abdc2054 setrq -> setrunqueue, sched -> scheduler 1994-05-13 00:50:41 +00:00
glass
bb8fd0a2ac slightly more optimal fix from torek himself 1994-05-12 14:15:03 +00:00
mycroft
89b3d99770 Make logpri() non-static. 1994-05-12 10:26:19 +00:00
glass
82809ca415 fix chopps, et al discovered bug in allocating cd_devs array 1994-05-12 05:21:45 +00:00
cgd
ff49fed069 upgrade to 4.4-Lite's tty code. our bug fixes included, some might need GC. 1994-05-12 03:48:33 +00:00
cgd
a98f3f0e86 final munge for 4.4-Lite-ness 1994-05-12 03:43:00 +00:00
cgd
0f522eb0a3 update to 4.4-Lite; fixes a really obvious bug 1994-05-12 03:42:23 +00:00
cgd
d86bd85808 minor changes to match 4.4-Lite 1994-05-12 03:25:27 +00:00
cgd
f35a193361 update, but keep explicit returns in place. kill voidop() (it's unused now). 1994-05-12 03:16:33 +00:00
cgd
2e99c0c523 doesn't need to include shm.h 1994-05-12 00:54:58 +00:00
chopps
cdad699946 add support for adosfs. 1994-05-11 18:50:36 +00:00
mycroft
bb675b0e4c Minor changes. 1994-05-11 10:27:22 +00:00
mycroft
ee2d6ef1e3 Minor changes. 1994-05-11 10:26:49 +00:00
cgd
4138ebf515 compat_09 stuff for pid_t's 1994-05-09 07:40:00 +00:00
cgd
72db136279 kill bogus include 1994-05-07 04:17:10 +00:00
cgd
7409c5a619 do the syscall shuffle 1994-05-07 01:05:04 +00:00
cgd
a16dcc73f6 signal stack changes; overall upgrade 1994-05-07 01:01:29 +00:00
cgd
0e794e2d48 stub pathconf, kill some spaces 1994-05-07 00:59:59 +00:00
cgd
d159660914 stub fpathconf 1994-05-07 00:58:57 +00:00
cgd
3c56e9ea46 function name changes 1994-05-07 00:57:23 +00:00
cgd
31596c7cad setrun changes name 1994-05-07 00:56:46 +00:00
cgd
c13c91e483 sysctl kernel prof info 1994-05-07 00:55:46 +00:00
cgd
e15a2ee17e sysctl update 1994-05-07 00:53:37 +00:00
cgd
ed848af6f7 function name changes 1994-05-07 00:51:06 +00:00
cgd
fb0ef4a4b7 deprecate all of the info getting/setting functions 1994-05-07 00:49:08 +00:00
mycroft
d714600da2 Clean up deleted files. 1994-05-07 00:47:19 +00:00
cgd
ebf440b13b stub for sysctl 1994-05-07 00:46:28 +00:00
cgd
5a6e2953a0 clock info gathering 1994-05-07 00:42:11 +00:00
cgd
2046e01e40 do the syscall shuffle. this is most of the rest 1994-05-07 00:39:06 +00:00
cgd
d604909779 latent support for general sysctl-ish stuff 1994-05-06 22:42:07 +00:00
mycroft
8f6071b2ce Put some more code in splstatclock(), just to be safe. 1994-05-06 22:02:25 +00:00
cgd
673fd7c059 a conditional p_regs! 1994-05-05 22:28:44 +00:00
mycroft
426793003e Remove now-bogus casts. 1994-05-05 09:27:37 +00:00
mycroft
4b2f221eac Remove now-bogus casts. 1994-05-05 09:15:48 +00:00
mycroft
26ebb5fdde Now setpri() is really toast. 1994-05-05 09:06:10 +00:00
mycroft
be856288a8 setpri() is toast. 1994-05-05 09:02:30 +00:00
mycroft
a2bf298443 Remove now-bogus casts. 1994-05-05 08:58:07 +00:00
mycroft
5362749c72 Correct spelling error. 1994-05-05 08:50:25 +00:00
mycroft
56c97e52bf Remove now-bogus cast. 1994-05-05 08:46:53 +00:00
mycroft
62bf6a1578 Remove now-bogus casts. 1994-05-05 08:37:38 +00:00
cgd
a0a7429482 lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.
1994-05-05 05:35:42 +00:00
mycroft
f8a6ac17b2 More return types... 1994-05-04 11:24:06 +00:00
mycroft
b4719466f8 More return types... 1994-05-04 11:04:58 +00:00
mycroft
7b1bf9c7d2 Add return types where missing. Simplify some of the compat conditionals.
Include compat code if COMPAT_SUNOS with or without COMPAT_43.
1994-05-04 10:27:20 +00:00
mycroft
511a02415f Fix panic when closing a file descriptor on which access rights have been sent
but not received.
1994-05-04 09:50:11 +00:00
mycroft
495d3519fa HPUXCOMPAT -> COMPAT_HPUX 1994-05-04 04:02:54 +00:00
cgd
4bbabd8e7a Rename a lot of process flags. 1994-05-04 03:41:12 +00:00
cgd
f8dd4f370d expand the rlimit struct, kill last vestiges of off_t bogosity. 1994-05-04 01:38:25 +00:00
cgd
4d3fb006eb kill damned off_t weirdness, also upgrade get- and setrlimit. 1994-05-01 05:02:24 +00:00
cgd
e0db92993a change timeout/untimeout/wakeup/sleep/tsleep args to void * 1994-04-29 23:15:51 +00:00
cgd
531f171602 kill an FDSCRIPTS bug which nobody had found yet. 1994-04-29 08:35:29 +00:00
cgd
f50f031448 kill syscall name aliases. no user-visible changes 1994-04-29 04:41:02 +00:00
cgd
6029e550f1 kill 'aliases' 1994-04-29 04:29:14 +00:00
cgd
009e6dd4e9 rearrange some splfoo 1994-04-28 01:17:00 +00:00
pk
6ce04ec890 Routine to display callout table from DDB. 1994-04-27 10:47:51 +00:00
cgd
ed7e1b86da clean up a little bit, and minor optimization... 1994-04-26 05:40:35 +00:00
cgd
7f3f130206 minor cleanup 1994-04-25 09:51:56 +00:00
mycroft
f43af3a756 Remove another bit of that. 1994-04-25 08:47:50 +00:00
mycroft
ccb0412b7c Remove a piece of the previous patch. 1994-04-25 08:41:03 +00:00
mycroft
e4af8f69a5 Minor cleanup. 1994-04-25 08:22:07 +00:00
mycroft
efe5996f50 Set the file type correctly for stat(). 1994-04-25 08:09:59 +00:00
mycroft
cd6e6bc193 Remove sbselqueue(). 1994-04-25 08:08:56 +00:00
cgd
22aa92e0a9 kill some code that became obsolete when berknet died... 1994-04-25 05:48:41 +00:00
cgd
d071d1cf05 some prototype cleanup, eliminate/replace bogus types (e.g. quad and
u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes),
some cleanup.
1994-04-25 03:49:27 +00:00
cgd
b1f4730729 some more queue code (that's #ifdef DEBUG) 1994-04-23 08:41:05 +00:00
cgd
4917d8beec make fs types consistent over new kernels. also, some proto foo. 1994-04-23 07:54:38 +00:00
pk
dd617665cc Clear trampoline bits in execsigs(). 1994-04-22 22:33:59 +00:00
cgd
3dda0064a5 Convert mount, vnode, and buf structs to use <sys/queue.h>. Also,
some knf and structure frobbing to do along with it.
1994-04-21 07:47:31 +00:00
pk
21c5c73db5 I suppose a SIGKILL or SIGTERM should make a process go about its
business fast. But the previous situation would allow
"sigblock(sigmask(SIGTERM)); kill(SIGTERM)" to thwart priority policies.
1994-04-19 20:50:30 +00:00
cgd
3fe93ccc24 don't let cons dev vnode get subsumed by a 'real' vnode. the current
scheme of vnode aliasing just *has* to go.
1994-04-18 21:03:14 +00:00
cgd
551e92c16a start to phase out temp. off_t syscalls 1994-04-16 23:19:06 +00:00
cgd
3b4faf4521 slightly loosen lseek restriction 1994-04-16 06:51:58 +00:00
deraadt
0f8b2efbad the packet header is at the start of the mbuf chain, not the end. 1994-04-14 21:34:17 +00:00
cgd
4be7b669e2 fs types are names now; accompanying changes. 1994-04-14 04:05:28 +00:00
deraadt
c71822f4b8 FIONREAD returns int, not off_t 1994-04-12 19:41:48 +00:00
chopps
b6ad9ec8d5 FIONREAD returns int not off_t. (ssize_t prefered, but standards may
dictate otherwise)
1994-04-12 19:18:33 +00:00
mycroft
2566987063 Fix numerous bugs; flags in the wrong places, modes getting clobbered, etc. 1994-04-12 17:18:59 +00:00
cgd
11dad0a608 kill MOUNT_AFS; it's not going into the source tree in the near (long?) term. 1994-04-12 05:03:03 +00:00
mycroft
6076d8a10d Fix typo. 1994-04-12 02:23:14 +00:00
mycroft
0600b23926 Remove a bogus optimization I did. 1994-04-11 23:43:04 +00:00
cgd
913fdbc06d slight optimization, kill unnecessary label. 1994-04-11 22:03:17 +00:00
mycroft
3b2b4bc307 Add some comments. 1994-04-11 21:54:29 +00:00
mycroft
bfefadcc74 vcount(): Don't try to vgone() our argument. 1994-04-11 21:37:10 +00:00
cgd
47894a50ac light clean 1994-04-10 00:16:58 +00:00
deraadt
55dacae6ea FIONREAD plays with an int, not an off_t. 1994-04-09 22:35:00 +00:00
cgd
b9bf37a91f if MNT_USER is set, let fs authenticate unmount 1994-04-07 07:20:31 +00:00
cgd
675a199909 SUGID semantics, similar to 4.4BSD 1994-04-07 00:40:14 +00:00
cgd
2396958784 kill two LIBCOMPATs 1994-04-07 00:15:29 +00:00
cgd
ed740c7de8 frob arguments a little bit 1994-04-02 08:39:20 +00:00
cgd
8abbe136e3 some temporary syscall shuffling 1994-04-02 08:03:17 +00:00
cgd
236c2fe9f8 gah. shoot me. 1994-04-02 05:17:04 +00:00
cgd
47610af098 some type-changing, simplification, and re-instate casts for phil. 1994-04-01 09:52:30 +00:00
ws
e9dc62de63 Support BSS in LKMs
Don't panic when modunloading an empty slot
1994-03-31 20:31:19 +00:00
cgd
304e374292 expand uid_t/gid_t/off_t 1994-03-27 09:08:02 +00:00
cgd
4a28c23c2f do the syscall shuffle 1994-03-27 08:34:59 +00:00
glass
ebf601d2d0 bad comment. fix from vdlinden@fwi.uva.nl (Frank van der Linden) 1994-03-19 18:38:33 +00:00
ws
044478d0f7 Ooops. Forgot to move something. 1994-03-18 20:15:39 +00:00
mycroft
8f86452554 Standardize #includes. 1994-03-18 19:08:28 +00:00
mycroft
1dbf6bf32e Clean up uname(2) code some more. 1994-03-18 18:57:13 +00:00
pk
905558ae87 Sparc support. 1994-03-18 08:35:56 +00:00
cgd
02dd2aa8ab fix somebody's typo 1994-03-18 04:01:15 +00:00
cgd
fa2051edb1 add hw input flow control support 1994-03-18 03:48:30 +00:00
cgd
7dcd783f0c as pointed out by Phil: all instances of bcopy used in this file should
be 'ovbcopy', because they can (and sometimes do) overlap.  arguably should
be rewritten to work differently.
1994-03-14 21:15:07 +00:00
pk
b2d32f38eb A zero scale factor turns profiling off. 1994-03-11 09:12:22 +00:00
ws
ce516ff13d Make FFS optional 1994-03-09 21:21:37 +00:00
cgd
535c793257 syscalls.master updated 1994-03-08 23:57:47 +00:00
cgd
ba8c3b1ce4 move LKM syscalls to 210 -> 219, and fix comment 1994-03-08 23:57:00 +00:00
mycroft
676007bcd2 Don't do TIOCHPCL if !COMPAT_43. In the new world, you use termios. 1994-03-05 22:42:54 +00:00
glass
1827fc3820 small improvement in output formatting of scdebug routines 1994-03-01 07:58:28 +00:00
cgd
dc58832610 kill XXX's i marked long ago 1994-02-27 11:53:31 +00:00
deraadt
a247ecab97 whoops, typo 1994-02-24 01:37:18 +00:00
cgd
2ec6ab0aca hp300||amiga||da30 -> m68k 1994-02-24 01:10:11 +00:00
paulus
570c081077 Add da30 to the conditionals for m68k code.
(Maybe this should become #if defined(m68k).)
1994-02-24 01:04:50 +00:00
paulus
8599bd99bc Parity setting wasn't preserved across TIOCGETP / TIOCSETP if you
had CS7, PARENB and IGNPAR set: TIOCGETP gave you ANYP, which
TIOCSETP interpreted as no parity.
1994-02-24 01:03:15 +00:00
chopps
0622d87221 fix incorect check of nprocs vs. maxproc. 1994-02-21 23:10:46 +00:00
mycroft
f663fac02d Return a legitimate value from ttylclose(). 1994-02-20 17:24:19 +00:00
mycroft
6adb7d5015 Don't send SIGINFO if ISIG off. 1994-02-20 16:56:56 +00:00
mycroft
678e80720a Some formatting changes. 1994-02-20 16:55:10 +00:00
mycroft
75029eb7b4 #include proc.h. 1994-02-17 14:50:38 +00:00
pk
96fc0a6188 Check `uio_resid' separately (and panic if invalid). 1994-02-16 17:34:01 +00:00
pk
c90756358c read(): return EINVAL if `count' argument is negative. 1994-02-16 17:23:03 +00:00
cgd
a790e23e87 simplify error returns, and fix bugs 1994-02-16 01:21:00 +00:00
mycroft
d78c3ff463 Some cleanup. 1994-02-15 14:17:07 +00:00
mycroft
e69b4e2e08 We don't use Aztec C. 1994-02-15 14:02:59 +00:00
mycroft
83be6ac4f5 Some more cleanup. 1994-02-15 13:35:53 +00:00
cgd
022a8ce9c5 add a proc ptr to the syscall debug info 1994-02-15 06:58:07 +00:00
cgd
95e17fef9f add scdebug variable, to enable printing, defaulting to on, and change args 1994-02-15 06:52:25 +00:00