Commit Graph

832 Commits

Author SHA1 Message Date
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
cgd 9740a53c8b add SYSCALL_DEBUG stuff for glass 1994-02-15 06:38:33 +00:00
ws fbf99acae8 (Hopefully) do the right thing with VTIME > 0 and select 1994-02-14 18:22:39 +00:00
mycroft f2fe1704b1 Fix typo. 1994-02-13 11:32:46 +00:00
mycroft 3406139426 Format police, the end. 1994-02-13 11:31:16 +00:00
mycroft 22a8203482 Format police, second pass. 1994-02-13 10:20:02 +00:00
mycroft e3c4154717 Format police, first pass. 1994-02-13 09:57:12 +00:00
mycroft aa8b8cf7c4 Format police. 1994-02-13 09:36:09 +00:00
mycroft 78bca19b28 KNFify uname code. 1994-02-13 04:18:06 +00:00
cgd a0bdba3231 always good to think about patches before they're included:
NEVER pass a "NULL" proc to an ioctl; you never know when a 'real'
proc will be needed.  pass curproc, if you don't have one.
1994-02-13 00:10:47 +00:00
glass 2afef02671 undefined variable fix from Mark_Weaver@brown.edu 1994-02-12 15:52:49 +00:00
mycroft 974e9ba226 Fix typo in last change. 1994-02-12 07:19:11 +00:00
cgd 3a46cb73c6 ditto on the last; weird failure modes are the cause of the day. 1994-02-12 07:02:34 +00:00
cgd 64517d6f7f don't forget to deallocate vmcmds if exec fails bounds checks.
thanks to charles for pointing it out.
1994-02-12 04:13:43 +00:00
cgd 32c2dba8da Mike Karels' solution to Andrew Herbert <andrew@werple.apana.org.au>'s
kern_exit race condition problem.  this is a hack:
	don't vrele() or vgoneall() if we don't have the vnode
	any more.  no vgoneall() is necessary, because if the refcnt
	is zero, there's nobody to take it away from!
a possible "real" long term solution would be to change the extra ref
into a bit in the vnode's flags, and DTRT in the places where the last
ref is killed.  That has some problems, too.
1994-02-11 03:09:17 +00:00
mycroft f834e39cf5 Don't need back pointers for disksort(). 1994-02-10 15:43:20 +00:00
mycroft bbb3e7618c All ioctl routines take a struct proc * now. 1994-02-09 21:06:46 +00:00
mycroft a8aa70d4a5 Remove l_rend and l_meta. 1994-02-09 20:18:17 +00:00
cgd 9ea6d6571f kill support for 'dcfclk' ; shouldn't pollute tree for things not in NetBSD. 1994-02-07 07:33:49 +00:00
mycroft 57892d4faf Remove another use of b_actl. 1994-02-06 17:39:48 +00:00
mycroft adeebc448e Use b_actf, not av_forw. 1994-02-06 10:00:30 +00:00
cgd 114cf35108 dtrt with exec header size 1994-02-05 02:23:30 +00:00
pk a2e2253e6c Remove out-dated comments 1994-02-03 16:17:25 +00:00
deraadt 425f5d3170 more untimouts needed, from someone at freebsd 1994-02-01 15:09:52 +00:00
deraadt c1d3660b28 pass around a `clockframe *' instead of a `clockframe' 1994-02-01 01:50:38 +00:00
mycroft 1b37a40b3d Fix that last bug correctly. 1994-02-01 01:04:07 +00:00
pk 92f1bd1c60 Replace a bogus pointer-dereference with something that at least *looks*
more sensible.
1994-02-01 00:29:14 +00:00
deraadt fa2aa77517 make panic a varargs function 1994-01-30 13:22:05 +00:00
jtc 5235180083 Fix spelling error in Copyright notice 1994-01-28 23:43:26 +00:00
cgd 55d2821ec0 make sure PT_STEP's are in #ifdefs 1994-01-28 19:06:17 +00:00
deraadt 6aac4eb9f1 undo totally misguided changes from Andrew Chernov in rev. 1.7:
RTS has nothing to do with ttyblock()
also, close a race.
1994-01-28 11:32:43 +00:00
cgd 1b2497a000 if you define PT_[GS]ETFPREGS, then you'd better define struct fpreg, etc. 1994-01-28 06:51:13 +00:00
cgd 4dc27cd628 add new type 1994-01-28 04:55:41 +00:00
cgd 1758eaf2cb kill hack for vfs_bio jolitz-ish hack 1994-01-27 07:45:21 +00:00
cgd 07c0d9025d get rid of jolitz hack, and add panic() where appropriate 1994-01-27 07:39:32 +00:00
cgd ad869e40c0 kill two patchkit bogons 1994-01-27 03:26:48 +00:00
mw 1a3cc08a27 All hp300 ifdefs apply for amiga too. 1994-01-26 21:58:43 +00:00
mw 9c81b541aa amiga wants RTC started early, too (like i386 and mac) 1994-01-26 21:55:44 +00:00
glass ff3c7667ae remove warning 1994-01-23 19:11:25 +00:00
deraadt abf6a6bfdd more COMPAT_SUNOS changes. 1994-01-23 06:06:21 +00:00
deraadt 316b930486 pull in COMPAT_SUNOS stuff from magnum 1994-01-23 05:56:27 +00:00
cgd aca2b87e68 don't forget to free old pathname buffer 1994-01-22 06:15:54 +00:00
ws 2cee3e073f Make procfs really work for debugging.
Implement not & notepg files in procfs.
1994-01-20 21:22:47 +00:00
cgd 8c996398fc clean up, break script handling out of check_exec(), and comment a bit. 1994-01-16 03:09:59 +00:00
cgd e11a5f7688 casting for exec_package field changes 1994-01-16 03:08:18 +00:00
cgd 92cb33abed add function for FD handling 1994-01-16 03:07:33 +00:00
deraadt 135ef10a6d prevent an explicit splimp->splnet lowering. (which blows up on
machines with a levelled-spl system that check for lowering)
de-ansify two function definitions.
1994-01-14 22:20:25 +00:00
deraadt af01174969 `extern int cpu' isn't used at all. 1994-01-14 03:41:49 +00:00
cgd bc53d82fa7 fix utimes() to deal with NULL timeval ptr 1994-01-13 23:51:43 +00:00
cgd 8ca18c3fa8 use exec_map 1994-01-13 06:23:57 +00:00
cgd 7422e2a40c trim debugging code, for now, and kill dead code (unused options) 1994-01-13 02:33:57 +00:00
cgd f023b7235d trim extra debugging code, for now 1994-01-13 02:33:28 +00:00
cgd 6c7058a8ea EXEC_DEBUG -> DEBUG, and trim extra debugging code, for now 1994-01-13 02:29:32 +00:00
mycroft 497cad8b12 Remove the evil #ifndef; we no longer need it. 1994-01-11 23:19:00 +00:00
mycroft 4448a68e2c Get rid of disklabel indirection functions. 1994-01-11 16:35:44 +00:00
mycroft a537084311 Cleanup. 1994-01-10 06:10:30 +00:00
mycroft 27a2653bc6 *Really* fix the wakeup code this time. 1994-01-10 05:58:37 +00:00
mycroft b58ba6927f Wake up the blasted process when we detach! 1994-01-10 04:20:29 +00:00
cgd 3fbd67b7d3 implement PT_ATTACH and PT_DETACH. 1994-01-09 23:57:15 +00:00
ws 30a6426c82 Fix typo in last 1994-01-09 18:46:17 +00:00
cgd 4c8ff3970f try until error != ENOEXEC, so that formats can report errros reasonably 1994-01-09 17:11:42 +00:00
cgd b0bc24471f PT_STEP is actually machine dependent. not all machines have it! 1994-01-09 16:52:11 +00:00
ws 528eaca557 Really observe lmc_loadbuf.cnt and
correct argument order on execsw restoration.
1994-01-09 16:47:40 +00:00
briggs fd601bd3d6 Ugh. Missed the other. mac=>mac68k... 1994-01-09 15:56:22 +00:00
briggs e53963b58b mac => mac68k 1994-01-09 15:54:20 +00:00
cgd 34ea9285e9 de-macroify kill_vmcmds() 1994-01-08 18:05:29 +00:00
mycroft ec0fa1f388 Use NULLVP, just for Correctness (tm). 1994-01-08 16:06:04 +00:00
mycroft c6afda5ec5 Trivial stylistic change for consistency. 1994-01-08 15:24:02 +00:00
cgd 2079970043 SHM_LOCK and SHM_UNLOCK aren't just HPUXCOMPAT 1994-01-08 15:09:01 +00:00
cgd 47529628bb core reorg 1994-01-08 11:18:56 +00:00
cgd 957ce06f24 far reaching but relatively minor cleanup and slight reorg of exec code 1994-01-08 07:14:24 +00:00
mycroft d3106cb44a Fix some casting. 1994-01-08 05:51:17 +00:00
mycroft 155811b49c #include vm_kern.h. 1994-01-08 05:29:15 +00:00
mycroft e879c04f57 #include vm_user.h. 1994-01-08 04:22:36 +00:00
mycroft 8955aeedd5 #include vm_user.h. 1994-01-08 04:15:41 +00:00
cgd b418b2c18f oops; fix that last 1994-01-07 19:26:44 +00:00
cgd 163a1d473e do the *right* thing with resident set size 1994-01-07 19:13:17 +00:00
deraadt f70a340fd9 cleanup a printf 1994-01-07 18:03:56 +00:00
deraadt d4e74a7cda really fix the tab code 1994-01-07 17:51:24 +00:00
cgd 582eb13c4a from Mike Karels <karels@bsdi.com>: clear the PENDIN flag if ICANON
is cleared, and retain the PENDIN flag if set when ICANON is set
1994-01-05 16:25:37 +00:00
cgd a83f6577b0 minor cleanup; extra spaces, patchkit info, etc. 1994-01-05 13:49:52 +00:00
cgd 2c5c3a2774 add support for union and loopback mounts, from jsp 1994-01-04 14:10:48 +00:00
cgd ba67215d35 generalize dupfdopen() to allow dups and moves. from jsp 1994-01-04 12:26:21 +00:00
cgd 914aac9116 field name change 1994-01-04 11:29:55 +00:00
cgd 1424954c16 print out what we think is the resident set size. very nasty; the field
in the proc's vmspace struct should be updated, but isn't...
Also, if the process is a zombie or infantile, don't print, because
that could cause a null pointer deref.
1993-12-30 12:05:16 +00:00
deraadt 6e81a663bd OXTABS expansion was putting fewer than the required spaces if the clists
became full. we now retry the tab expansion later.
1993-12-24 01:07:40 +00:00
cgd 42d0ba8c0a move getnewfsid() to where jsp says it belongs. update for header
files; clear new field and delete old vtype name.
1993-12-22 13:51:14 +00:00
cgd 87dfd3227e cast to match header (changed back...) 1993-12-22 13:46:28 +00:00
cgd 146889c8fd add portal and lofs entries 1993-12-22 13:43:18 +00:00
cgd c3ee44a1b9 various bug fixes from BSDI, via jsp. Kill some iffy fixes
by wfj (and replace them with better ones from BSDI).  add support
for p_vnode, and add proc_reparent() function, from jsp.
1993-12-22 13:42:27 +00:00
cgd a67d24d94b add support for p_vnode, from jsp 1993-12-22 13:39:27 +00:00
cgd afce447ada p_spare is in the 'zero range' now 1993-12-21 10:39:17 +00:00
cgd adbe4b0962 kill two wrong 'case's 1993-12-21 07:19:14 +00:00
cgd 621f7b658f more of the same; gah! 1993-12-21 06:39:12 +00:00
cgd d797e926cf kill a billism 1993-12-21 06:30:28 +00:00
cgd a6eecc8e2a load average changes from magnum 1993-12-20 12:42:34 +00:00
cgd bdabe240d0 replace VREF as appropriate to avoid logical recusion 1993-12-20 10:42:39 +00:00
cgd 842286f9c4 make searching a bit easier 1993-12-20 05:42:37 +00:00
mycroft 7f50bd1829 Canonicalize all #includes. 1993-12-18 04:21:37 +00:00
mycroft 21edb9924e Canonicalize all #includes. 1993-12-18 03:59:02 +00:00
mycroft b4d3382694 Canonicalize all #includes. 1993-12-17 07:56:32 +00:00
deraadt 493603cecd fix from Daniel Harris <daniel@werple.apana.org.au>
VTIME code must untimeout
1993-12-16 18:09:08 +00:00
pk e7356e6993 Use proc pointer passed in uio rather then curproc for credentials (should
perhaps be done for b_proc also).
1993-12-16 16:28:43 +00:00
deraadt 252dd4bb0e VMIN/VTIME support from Marc Teitelbaum <marc@vangogh.cs.berkeley.edu> 1993-12-13 14:40:31 +00:00
deraadt e5fc8b4460 update to new syscalls.master 1993-12-12 19:42:13 +00:00
deraadt c38503af4d sparc must flush register windows before vm_deallocate or else fireworks
must deallocate shm's
set/reset emulation environment at the right times
keep arg buffer around for later use
canonicalize all #includes.
support STACKGAP for COMPAT_SUNOS code
support OMAGIC/NMAGIC-style memory loading
don't assume VM_MIN_ADDRESS is 0.
(changes come from magnum branch)
1993-12-12 19:38:37 +00:00
deraadt 9dd14b7930 make syscall#0 "syscall", like in 4.4 (causes SYS_syscall to be defined) 1993-12-12 19:28:21 +00:00
deraadt 9e62501f7b support OMAGIC/NMAGIC a.out's
cannonicalize #includes
change VTEXT check
(this stuff comes from the magnum branch)
1993-12-12 19:26:18 +00:00
cgd 94dd8a0dfb dtrt with 'error' in setpriority() 1993-12-10 07:19:16 +00:00
deraadt 3cf1d8505e echo ^V^? correctly as ^?. From Edward Wang <edward@homer.CS.Berkeley.EDU> 1993-12-09 22:58:17 +00:00
pk 9610135cb8 Do the right thing when arguments are NULL.
Don't leave filesystems marked busy after copyout() errors.
1993-12-09 18:00:18 +00:00
pk 644f409712 Properly initialize the credentials fields in the buffer used in physio().
Actually use the credentials of `curproc' when doing IO (among other things,
this allows us to read /dev/drum when swapping on an NFS mounted file).
1993-12-07 23:46:13 +00:00
mycroft 620a222f9f If EXEC_DEBUG, display name of file we're trying to exec. 1993-12-06 14:18:58 +00:00
cgd 86b5a367cf use progname.core for core dump names 1993-12-04 07:11:11 +00:00
cgd 5419d0bd49 initialize uninitialized variable, from Andy Heffernan <ahh@netcom.com>. 1993-12-01 22:05:04 +00:00
pk 392cf19708 return from rmfree() if we loose space with no options left. 1993-11-29 13:21:00 +00:00
deraadt 2a9aacbf1c don't permit TIOCSCTTY on /dev/tty, or kernel recursion happens
from Lars Fredriksen <ludvig!lars@wixer.bga.com>
1993-11-24 03:40:10 +00:00
deraadt bd783b4d80 initialize pseudo devices with pdevinit[], not with a bunch of
#include/#ifdef pairs..
1993-11-23 07:49:04 +00:00
cgd facd69a0ee do something better with lookup return values; suggested by BSDI's msdosfs mod 1993-11-20 09:40:32 +00:00
cgd 5838270f1e patch from Ukai Fumitoshi <ukai@kmc.kyoto-u.ac.jp>
to do the right thing with NFS fsid's and getnewfsid()
1993-11-19 02:31:23 +00:00
cgd dde22728d4 drag changes down from magnum 1993-11-15 10:21:08 +00:00
deraadt 33d816fdbc add a ptyattach() function, as in magnum. 1993-11-15 09:17:05 +00:00
cgd 1259031077 kill bogus test 1993-11-15 07:54:45 +00:00
cgd 4878a43c3d Add the System V message queue and semaphore facilities. Implemented
by Daniel Boulet <danny@BouletFermat.ab.ca>
1993-11-14 13:21:59 +00:00
cgd 02d6aea5bf Add the System V message queue and semaphore facilities. Implemented
by Daniel Boulet <danny@BouletFermat.ab.ca>
1993-11-14 13:08:09 +00:00
cgd a7c7f39bad fix to keep acctwatch() from being called before the vnode is unlocked.
from Mark Tinguely <tinguely@plains.nodak.edu>.
1993-11-14 06:55:24 +00:00
cgd c6ff42e027 from Mike Karels, via bsdi-users: nuking session pointer prevents cleanup. 1993-11-12 15:15:57 +00:00
cgd 76dbc1192b new specfs.h and fifo.h locations 1993-11-12 05:54:12 +00:00
mycroft f86975f0f0 Clean up deleted files. 1993-11-12 03:44:43 +00:00
glass af72539915 T_LINEP member of struct tty becomes t_sc. This replaces the
#define t_sc T_LINEP
that appear in tty_tb.c, if_sl.c, and if_ppp.h
1993-11-09 06:22:08 +00:00
cgd 8068dd9add fix from david greenman, davidg@freefall.cdrom.com:
sosend was attempting to reserve space in an mbuf cluster for a datagram
header and because of bugs in the sosend's mbuf allocation algorithm,
sosend was calling uiomove twice as many times as was necessary. It turns
out that PREPEND does the right thing when a cluster is associated with
an mbuf header, so the datagram header allocation can be defered. This
also ends up additionally consuming one less mbuf for the TCP protocol
because TCP always allocates another header mbuf regardless if space is
available to prepend the protocol header. The net result of this fix is
that unix domain and pipe throughput is increased by a measured 10%.
1993-11-05 23:00:27 +00:00
cgd 8900ab37e3 clean up, move some XXX's around, and note that one or two things should be
replaced with timeval{add,sub}, and generally be made more sane.
1993-11-03 09:08:42 +00:00
glass 3e21ea2e33 tablet line discipline compiles and probably works now. 1993-11-02 06:19:24 +00:00
glass bee2279a89 removed unnecessary #ifdef. config does the right thing. 1993-10-31 19:36:33 +00:00
glass 7a7e6dbd95 removed slip and ppp specific prototypes from tty.h where they didn't belong.
moved them to tty_conf.c within #if Nwhatever > 0 where they do belong.
made sure that if_sl.c, and if_ppp.c still compile quietly.
1993-10-31 19:27:45 +00:00
glass 5e6a2e33c0 fix chris typo. 1993-10-30 16:11:07 +00:00
cgd b73e5e6647 kill the process 'space' accounting collection for the following reasons:
(1) text calculation incorrect (would 'overbill')
	(2) data calculation incorrect (would 'overbill')
	(3) the maxrss calculation uses stuff which isn't present
		on the sparc.
if 3/4 tests are questionable and/or broken, well...
1993-10-29 19:49:25 +00:00
cgd 06c4106aec limit block sizes requested 1993-10-29 19:25:18 +00:00
cgd 436e431478 BSDI official patch #15:
SUMMARY:
    "panic: vrele: null vp", the problem seems to be that two renames are
    moving the same source, and the second one can't do it.
ALSO:
    in sync, check that rootfs is non-null before using it.
1993-10-27 02:33:40 +00:00
cgd 299ff91b14 BSDI official patch #14:
SUMMARY:
    Here is a patch for a kernel hang that can be provoked with a write
    or send of a negative amount.  The talk program is capable of exercising
    this bug.  This patch also includes a fix for a bug that caused data
    to be delivered to TCP in smaller chunks than desired, and which caused
    TCP to send a short packet when starting up.  Finally, there is a bug
    fix for MSG_PEEK with an oobmark pending.
1993-10-26 22:36:25 +00:00
cgd 889b512ea4 if you try to allocate a buffer larger than MAXBSIZE, panic. 1993-10-26 19:38:55 +00:00
mycroft 118cdf4851 Clean up deleted files. 1993-10-26 13:15:17 +00:00
cgd 13ca4d98c7 it's correct to return EACCES if FS is mounted MNT_NOEXEC. 1993-10-26 01:42:56 +00:00
cgd c7582cbd4f use copyinstr rather than strcpy to copy in the saved shell-script
name from userland.  From Markus Wild, mw@lamp
1993-10-26 00:32:29 +00:00
cgd ce7108c729 slightly clean up ws's original patch to this file for the sense
of wait vs. nowait.  this patch from torek.
1993-10-22 02:48:35 +00:00
cgd f784b878c2 ACCOUNTING define doesn't exist any more... 1993-10-20 23:04:33 +00:00
cgd 9ceb615f82 add some timeout_t typedefs 1993-10-20 00:53:34 +00:00
cgd fc8ee7437c knf'ify, clean up some, move sysacct() args out of function declaration. 1993-10-20 00:45:34 +00:00
cgd 287eb9a50e delete my '/dev/acct'-style accounting in favor of the version written by
Mark Tinguely (tinguely@plains.NoDak.edu).  It's the 'standard' way
of doing accounting, rather than a wacky one.
1993-10-20 00:16:40 +00:00
cgd 2ff9ed5060 fix my last change; for some reason i thought that 'p' was defined
in these functions.  use curproc instead.
1993-10-19 23:41:44 +00:00
cgd ddd610e422 from Mark Tinguely, with mods by davidg and then fially fixed by cgd.
do the space-used integration, over time, for processes.
1993-10-19 23:37:50 +00:00
cgd dfaa02a09b pay for block i/o. slightly different than how done by Mark Tinguely. 1993-10-19 02:47:56 +00:00
cgd dd818c7cd0 get rid of __main() -- it's going into libkern 1993-10-15 06:16:22 +00:00
deraadt c52686ddb3 from magnum branch: nbqd() was broken 1993-10-13 03:15:57 +00:00
cgd a84055b552 use the ALIGN macro to align the stack, rather than rounding up
by a (char *).  the former is safe, even on strange machines
(read: sparc).
1993-10-06 07:27:58 +00:00
cgd 714fa4716b changed the Debugger() call, which not all kernels have, to panic(),
but only when DIAGNOSTIC is defined.
1993-10-06 07:24:21 +00:00
cgd 772436479d new, improved, and rationally-implemented vfs_bio. no more serious
structural changes should happen, as it now does the right thing
w.r.t. buffer resizing and having lots of buffers vs. relatively
little buffer space.  Ports can now "do the standard thing", re:
nbuf and bufpages, which is make nbuf = bufpages by default.
1993-10-04 04:56:28 +00:00
mycroft 9a1fcf008b Update after fixing syscalls.master. 1993-10-02 09:55:09 +00:00
mycroft c05111e593 Put back the $'s in the RCS id that the last commit removed. 1993-10-02 09:51:40 +00:00
cgd e27f6e3ea0 patch from Christoph Badura <bad@flatlin.ka.sub.org> to fix credential
use by read-ahead blocks.  This fixes those weak NFS authentication
messages, and allows us to use BSDI NFS servers again...
1993-10-01 21:47:11 +00:00
cgd 1d0f22a29a convert to use the buffers which are (now) statically allocated at
startup in machdep.c...  buffers are now *never* allocated after boot.
currently, the limitation that says bufpages must cover nbuf*MAXBSIZE
still exists, but this is one step closer to removing that limitation.
1993-09-29 04:49:15 +00:00
cgd 4a21fe3648 ifdef out the ttyfree()'s, so that fill_eproc doesn't panic when
a process's session still holds a ref to a tty which has been deallocated
and reused.
1993-09-29 02:36:21 +00:00
cgd 94ac210002 rewrite biodone to the spec in the daemon book, and to account for
the fact that buffers with B_CALL set shouldn't be brelse()'d.
1993-09-21 00:40:02 +00:00
brezak 1905040ad2 Add sysarch() syscall. 1993-09-19 18:55:38 +00:00
cgd 9c32bc786a make allproc be volatile, and cast things accordingly.
suggested by torek, because CSRG had problems with reordering
of assignments to allproc leading to strange panics from kernels
compiled with gcc2...
1993-09-15 22:30:32 +00:00
mycroft 40222e846f Fix from Noriyuki Soda <soda@sra.co.jp>:
recvmsg(2) always returns -1 with errno==EMSGSIZE, when trying
        to pass file descriptors through UNIX domain socket.
1993-09-14 03:35:08 +00:00
glass 0c9ec05f20 check return codes on copyout()s, panic if they fail. 1993-09-12 07:56:22 +00:00
jtc 070f4a7f50 Removed functions moved to libkern: strcpy, strcmp, strlen, ffs, etc. 1993-09-11 00:08:03 +00:00
phil de69711383 These changes are due to a mismatch with user functions prototyped as
func(short) and the fact the the kernel uses full ints.  This caused
problems on the pc532 port.  These fixes take the good 16 bits passed
by the user program and converts them into the correct form for the
kernel.
1993-09-09 22:03:59 +00:00
mycroft 64540d3533 Patch from David Greenman to reduce CPU usage during network transmit. 1993-09-08 21:12:49 +00:00
ws 053f138dae Changes to VFS readdir semantics
NFS changes for better cookie support
ISOFS changes for better Rockridge support and support for generation numbers
1993-09-07 15:40:14 +00:00
mycroft 526dbecdb2 A little more cleanup; 0 --> FALSE and 1 --> TRUE. 1993-09-06 02:06:34 +00:00
mycroft cc054a83e7 De-ANSIfy and re-KNFify. 1993-09-06 02:03:03 +00:00
mycroft 29aea147e8 Add \n to end of error message. 1993-09-05 22:07:31 +00:00
sef b477be52eb Yet more of the ptrace() reorg; now ptrace_setregs() and ptrace_getregs()
are present, along with PT_GETREGS and PT_SETREGS ptrace commands.
1993-09-05 03:53:52 +00:00
cgd 15359c9f59 enable loadable execution handlers. need to do something better re:
how much of the file to pass in the exec package, but i think the
solution to that will be to pass e.g. a disk block's worth, or whatever;
if exec handlers really need more, they've got the damned vnode.
1993-09-05 01:36:28 +00:00
cgd 83aeee1bc0 there now exists an "exec switch". break the a.out code into another
module, and tidy up the interface so that other object formats are
more easily supportable.
1993-09-05 01:33:35 +00:00
cgd a05bd46763 patch from Szabolcs Sziget <pink@bagira.fsz.bme.hu> to load lkm device
drivers properly.
1993-09-05 00:55:57 +00:00
sef fddf2c7605 ptrace_single_step() and ptrace_set_pc() should return errors if
necessary.  (Mainly because the SPARC can't easily single step, so
it should return EINVAL, and then ptrace() should return that to the
user.)
1993-09-04 08:46:36 +00:00
cgd 3aa99f85dc better ptrace() support from Sean Eric Fagan <sef@kithrup.com> 1993-09-04 05:32:18 +00:00
cgd 6a474f29e2 get rid of maxdmap, and seperate MAXDSIZ and MAXSSIZ in rlimit checking. 1993-09-04 00:37:54 +00:00
jtc 9c00bc072d Include systm.h to get prototypes (and possibly inlines) of *max functions.
Change mbinit() to match prototype.
1993-09-04 00:01:43 +00:00
cgd 491d6b4b9d fix problem where exec would lose on shell scripts with symlinks in
their names.  fix from "James W. Dolter" <jdolter@sawtooth.eecs.umich.edu>.
test script:

#!/bin/csh
mkdir /tmp/foodir
cat > /tmp/foodir/testscript <<EOF
#!/bin/sh
echo "Executing script \$1"
EOF
chmod 755 /tmp/foodir/testscript
(cd /tmp ; ln -s foodir foosym)
echo "Trying full path (w/o symlink) to /tmp/foodir/testscript"
/tmp/foodir/testscript "with out symlink"
echo "Trying full path (w/ symlink) to /tmp/foosym/testscript"
/tmp/foosym/testscript "with symlink"
echo "End of Test"
1993-09-01 21:43:50 +00:00
deraadt 28c37a0949 fixed a little /lib/cpp boo-boo 1993-08-31 13:46:31 +00:00
cgd d365662684 ok, initialize that errno, to make theo and gcc2 happy... 1993-08-31 01:52:34 +00:00
cgd 518f7c78d6 a program being exec'd *must* cause *some* exec commands to be invoked;
if it doesn't there's a problem in the kernel, because a program
with no exec commands run will have no address space except the stack,
and i don't think it's valid to have a "run from stack only" exec type,
so panic.  if need for that case comes up later, it can be changed...
1993-08-31 01:46:36 +00:00
deraadt 6fce70ed63 blast it, i forgot two ('s 1993-08-30 06:25:10 +00:00
deraadt 9aed375ba3 tty XXstart() routines return void 1993-08-29 13:46:31 +00:00
deraadt bab3a9ce58 added two __P() macros 1993-08-29 13:16:04 +00:00
cgd b1eacffd69 print more DIAGNOSITC info, and startrtclock early on the mac (like i386) 1993-08-29 01:50:49 +00:00