cgd
c0cdc0cf04
when printing data modified on the free list:
...
(1) do not cast it to (void *), and
(2) print it as 0x%x, rather than %p.
This is not perfect (because the data being printed is "int32_t"-sized), but
is more correct than printing it as a pointer because the data is _not_ a
pointer, it is data to be printed in hex, and on some systems, pointers are
wider than the data items being printed, which leads to excess and misleading
output. The only 'right' solution to this is to have a printf specifier
that prints the fixed-sized types the right way, and that's not really
practical.
1996-02-20 23:56:16 +00:00
fvdl
56a654e17f
Changes for NVSv3 code: pull in more NFS include files into kern_time.c
...
to get types right (overkill for just one function call, but oh well).
Clear B_NEEDCOMMIT in bdwrite().
1996-02-18 11:57:06 +00:00
christos
20df3b41ab
uipc_proto.c: No need for the forward decls anymore; everything is prototyped.
...
kern_time.c: add header to get the NFS prototypes if needed.
1996-02-13 21:10:43 +00:00
christos
09afd77655
More proto fixes
1996-02-09 18:59:18 +00:00
mycroft
06a1236be9
Rearrange the locking in sys_unlink(), more like nfsrv_remove().
1996-02-09 15:39:12 +00:00
mycroft
53fccab940
Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
...
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
cleanup.
* Require the file system to decide whether or not linking and unlinking of
directories is allowed, and disable it for all current file systems.
1996-02-09 14:45:36 +00:00
fvdl
d6b5a89f90
Use a default, 'safe' address to map the loader to in case the an emulation-
...
specific probe function did not specify it. It picks the same address
as mmap() does for a non-fixed map at address 0. See also the comment
around a similar line of code in vm/vm_mmap.c.
1996-02-09 13:25:54 +00:00
mycroft
bf6bf23e7b
If parent is in ppwait, wake it up early to prevent deadlock.
1996-02-09 01:19:21 +00:00
mycroft
7366dec9ec
No need for LOCKPARENT in sys_lstat(), and eliminate dead variables.
1996-02-08 02:54:20 +00:00
jtc
d9d402d0fb
Revert to sane symlink semantics. This something we should have done
...
long ago. Fixes many PRs.
1996-02-07 16:55:56 +00:00
pk
00acf2040e
unp_detach() return type botch.
1996-02-04 20:32:15 +00:00
christos
4aea4494ff
new files...
1996-02-04 02:19:27 +00:00
christos
e630447d8c
First pass at prototyping
1996-02-04 02:17:43 +00:00
christos
cc3c2e69cd
First pass at prototyping
1996-02-04 02:17:39 +00:00
christos
8a5b1b92e2
First pass at prototyping
1996-02-04 02:15:01 +00:00
christos
df9a562f20
Removed tty_compat.c; it is part of the kernel compat library...
1996-02-02 18:49:42 +00:00
mycroft
bb7cccd06d
Do the previous change a little differently.
1996-02-02 07:49:52 +00:00
jtc
e19bfae4f9
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:18:04 +00:00
mycroft
99686e0059
Add a vnode** argument to getvnode(), prototype it, and make it return
...
EBADF if the file descriptor has been revoked.
1996-01-30 20:05:33 +00:00
mycroft
436d930db5
Use insmntque() rather than manually frobbing the mount list.
1996-01-30 18:21:08 +00:00
cgd
6ffadcadf6
fix off-by-one error in tickfix code. (should increment when count >=
...
interval, because count goes from 0->(interval-1) to count interval
ticks.)
1996-01-17 04:37:31 +00:00
fvdl
961c294fd5
* Don't rely on the protection bits of segments anymore to decide whether
...
it's text or data; use the entry point instead (this solves some trouble
with ELF executables with strange permissions)
* Incorporate some fixes from r_friedl@informatik.uni-kl.de sent to
netbsd-bugs a while ago
1996-01-16 23:07:18 +00:00
pk
ba8a7101f0
Correct test for ECHONL (from der Mouse; PR#1922).
1996-01-10 20:52:27 +00:00
thorpej
5b39541e48
New generic disk framework. Highlights:
...
- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that
the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and
handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
jtc
2fce159ff8
Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
...
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
17eb6e2bc1
Move the old-style disk instrumentation "structures" to a central location
...
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
mycroft
f597a53319
Remove the process from zombproc and its parent's child list before freeing
...
its resources.
1995-12-24 11:23:33 +00:00
mycroft
f183fc14f7
If __FORK_BRAINDAMAGE, continue stuffing retval[1] for the benefit of main().
1995-12-10 08:26:02 +00:00
cgd
6652367efa
(1) undef various EXEC_ cpp symbols before defining them, in case
...
they're already defined for some reason (this can happen
on the alpha, for example, which needs to define EXEC_ECOFF
in the std.alpha config file).
(2) minor spacing consistency.
1995-12-09 05:34:47 +00:00
mycroft
af942a9add
Only expect vm_fork() to return if __FORK_BRAINDAMAGE is defined.
...
Use splstatclock() rather than splhigh() in one place.
Eliminate unused third arg to vm_fork().
1995-12-09 04:23:07 +00:00
mycroft
bcd91943f8
Remove unused third arg to shmfork().
1995-12-09 04:12:56 +00:00
mycroft
feb42498e3
If we abort, make sure to free ep_emul_arg.
1995-12-09 04:11:00 +00:00
mycroft
00be80b604
Add a limfree(), and use it.
1995-12-09 04:09:32 +00:00
mycroft
27b9d9f436
Eliminate an extra variable.
1995-12-09 04:07:41 +00:00
mycroft
65806fd730
When converting from termios to sgtty, if RAW is set, use the previous\
...
settings of LITOUT and PASS8, since these cannot be determined from the\
termios modes.
1995-12-07 00:53:29 +00:00
thorpej
a5d3f68110
Add hooks for COMPAT_HPUX.
1995-11-28 08:07:25 +00:00
cgd
b69dc1f62c
move ../sys/syscallargs.h out of the way when making new version,
...
just like we do for init_sysent.c, syscalls.c, and ../sys/syscall.h.
1995-11-22 23:11:32 +00:00
cgd
a321588516
update for new syscalls.master
1995-11-22 23:09:26 +00:00
cgd
a2ce90f34c
change definition of profil() to make it 64-bit friendly. This has
...
no practical consequence on 32-bit systems. old prototype was
int profil(char *, int, int, int), and new one is int profile(char *,
size_t, u_long, u_int). the size_t is the size of the buffer,
and the u_long is the 'starting offset'. (I changed the last int
to u_int, because it's treated as a u_int everywhere, and isn't
logically a signed value.)
1995-11-22 23:07:19 +00:00
mycroft
7edc899fdd
ffs -> ufs
1995-11-11 22:00:15 +00:00
gwr
dd962ebbf6
Make sys_mount accept "ufs" as an alias for "ffs"
1995-11-07 22:41:02 +00:00
christos
16c4374c1f
Make the ktrace code emit a record that indicates the current emulation
...
every time there is an attach or detach event.
1995-10-22 00:35:06 +00:00
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
mycroft
4a975bbe6f
If necessary, wake up the child during attach so we always get a SIGCHLD.
1995-06-05 20:57:54 +00:00
pk
1e52ad70a9
We need some compat_10 routines if COMPAT_SUNOS is on (PR #1008 ).
1995-06-05 12:56:54 +00:00
mycroft
3e6f699a75
Only do software flow control if IXOFF is set. Also fix hardware flow control
...
case in ttyblock().
1995-06-04 14:01:37 +00:00
mycroft
3cd36c72ef
Use ISSET() and CLR() in two cases.
1995-06-04 12:57:52 +00:00
mycroft
3eeacbcb2d
#include <sys/vnode.h>, for prototypes.
1995-06-03 05:53:28 +00:00
mycroft
8dc3fb5a63
Use vaccess().
1995-06-02 19:04:22 +00:00
jtc
95ded74f58
Moved egid credential from cr_groups[0] to new field cr_gid. POSIX.1
...
requires that sgid executables and the setuid() syscall *not* change
the supplemental group list.
1995-06-01 22:43:30 +00:00
cgd
4a04bbaa09
add a facility by which to register 'hooks' to be run at shutdown time.
1995-05-31 20:41:44 +00:00
mycroft
53eb79fc69
Preserve the ISWHITEOUT flag between cache_enter() and cache_lookup().
1995-05-30 09:02:02 +00:00
mycroft
ce5fcc40af
Remove gratuitous extra indirections.
1995-05-23 06:11:29 +00:00
cgd
7e68171a95
properly determine if send/rcv timeout values are out of range.
1995-05-23 00:19:30 +00:00
mycroft
bfd22ffde8
Generate the new ps_strings format.
1995-05-16 14:19:03 +00:00
christos
fb371ccef0
tty_tb.c: need to include ioctl_compat.h in order to compile.
...
sysv_shm.c: make shm_find_segment_by_shmid global so it can be used by
COMPAT_HPUX. There should be a better way...
rest: Add #ifdef COMPAT_HPUX where needed
1995-05-10 16:52:53 +00:00
mycroft
78356f06b3
Add two vprint()s, to give more informative panic messages.
1995-05-04 03:11:06 +00:00
cgd
3d9ffd41f3
make this work sanely on a 64-bit machine. Sacrifices a small bit of
...
error checking in the DIAGNOSTIC case. These changes might be backed out,
if it's decided that MINBUCKET should be 5 (rather than 4) on the alpha.
However, doing that has its own set of nasty consequences.
1995-05-01 22:39:11 +00:00
cgd
2581c66077
remember first error code (if any) that's different than ENOEXEC.
...
Not perfect, but there's no perfect solution to the "multiple interesting
error codes" problem.
1995-05-01 22:36:45 +00:00
christos
2ca157b084
Make this compile again; from Ted Lemon
1995-04-25 21:10:01 +00:00
christos
1c1cf96baf
makesyscalls.sh was changed
1995-04-22 19:43:50 +00:00
christos
3d1b06ab09
- new copyargs routine.
...
- use emul_xxx
- deprecate nsysent; use constant SYS_MAXSYSCALL instead.
- deprecate ep_setup
- call sendsig and setregs indirectly.
1995-04-22 19:42:47 +00:00
cgd
5fe7be7a26
be a little smarter when printing syscall names & args
1995-04-22 14:17:18 +00:00
mycroft
954487037b
Rearrange vfs_shutdown() slightly.
1995-04-21 22:09:53 +00:00
mycroft
84f803aef6
Add a return type for vaccess().
1995-04-21 22:03:24 +00:00
mycroft
f51cb8c974
Print a message for each file system that does not unmount cleanly. Add a
...
vfs_shutdown() routine that does the unmount and sync.
1995-04-21 21:55:11 +00:00
mycroft
b92e5976ff
Rename pttty() to ptytty() to mimic ptyioctl().
1995-04-19 22:33:56 +00:00
mycroft
cdd1a8eb54
Fix typo.
1995-04-19 18:58:14 +00:00
mycroft
7aaa443e99
Implement pttty(), and rename pt_ioctl to pt_softc.
1995-04-19 18:50:21 +00:00
mycroft
20b6b4f24d
Change ttselect() to use a callback to get the tty structure.
1995-04-19 18:46:10 +00:00
mycroft
72adfee7f7
EMUL_IBCS2_ELF -> EMUL_SVR4; EMUL_IBCS2_{COFF,XOUT} -> EMUL_IBCS2
1995-04-13 20:48:14 +00:00
mycroft
6cabaea642
Define vfs_unmountall(), to unmount file systems at shutdown time.
1995-04-10 19:46:56 +00:00
mycroft
c75f9f2e07
Change fdclose' to
fdrelease', to avoid confusion with device interfaces.
1995-04-10 18:27:59 +00:00
mycroft
04a0a9a518
Use the new d_type field.
1995-04-10 00:46:51 +00:00
fvdl
366ba9b889
Use sigcode fields in package structure. This seems to be the cleanest
...
way to deal with seperate trampoline code for emulation of other OSs,
it avoids having to clutter up kern_exec.c any further.
1995-04-07 22:33:23 +00:00
mycroft
bb85930bbe
Add missing argument to closef().
1995-04-05 21:26:40 +00:00
christos
9255f898e8
Added TIOCGSID for COMPAT_SVR4 [get session id]
1995-03-31 03:07:41 +00:00
mycroft
46b2bb599f
Make definition of b_cylinder global.
1995-03-29 20:57:35 +00:00
cgd
a046d2374e
don't default return types to ints; specify them.
...
ktrsyscall takes (vp, code, argsize, args), and stores argsize rather
than nargs.
1995-03-26 07:48:47 +00:00
cgd
0310dd8f78
add an 'INSECURE' option which makes securelevel default to -1
1995-03-26 00:01:08 +00:00
cgd
fd10fb94e5
make it reasonable for processes to not double-map it's user area and kstack
1995-03-25 22:05:15 +00:00
mycroft
f75ba16b09
Update to use timer{add,sub}().
1995-03-21 13:33:34 +00:00
mycroft
7439778432
Use %p.
1995-03-19 23:44:44 +00:00
mycroft
20a403a292
Nuke startinit_verbose.
1995-03-19 23:27:03 +00:00
mycroft
fe62f9afca
Actually, do the previous differently.
1995-03-19 23:23:11 +00:00
mycroft
feb5b4b126
Add a `%p' format.
1995-03-19 23:17:16 +00:00
mycroft
a1615c4d35
Clean up comments related to last change, and remove an unneeded
...
splclock/splx pair.
1995-03-18 14:35:14 +00:00
chopps
b3f539b09c
add prototypes before each inline
1995-03-10 04:13:52 +00:00
mycroft
fab1d8444c
Update to match syscalls.master.
1995-03-09 17:33:07 +00:00
mycroft
57e6889435
Make memory map syscalls consistently use size_t.
1995-03-09 17:28:28 +00:00
mycroft
2f805fa51b
copy*str() should use size_t.
1995-03-09 12:05:21 +00:00
mycroft
1f5c42f54c
Update types.
1995-03-09 08:55:47 +00:00
mycroft
7f1e89164d
Update types, and fill in missing debug switch entries.
1995-03-09 08:54:37 +00:00
cgd
6782442a8c
use long for argc, envc, and u_long for len.
1995-03-08 01:23:00 +00:00
cgd
9c3af345b5
use NULL rather than casted zero
1995-03-08 01:21:30 +00:00
cgd
4f2d1996e7
needs systm.h
1995-03-08 01:20:50 +00:00
cgd
c771cb43cf
need COMPAT_OSF1 for some things
1995-03-08 01:20:19 +00:00
fvdl
cb05b6a54b
Two more "|| defined(COMPAT_LINUX)" that I somehow missed first time around.
1995-03-05 20:48:15 +00:00
fvdl
7b5bd63e35
Extended a couple of defines with "|| defined(COMPAT_LINUX)" to make
...
things compile without requiring COMPAT_43 and/or COMPAT_09.
1995-03-05 08:52:17 +00:00
cgd
41356f64e3
add support for clocks with hz > 1000, and for cases where 1000000 / hz != int
1995-03-03 01:24:03 +00:00
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