Commit Graph

131 Commits

Author SHA1 Message Date
alc
473627af8b msync(2) should be declared MP-safe. 2003-09-07 05:42:07 +00:00
davidxu
a5237fc9ab o Refine kse_thr_interrupt to allow it to handle different commands.
o Remove TDF_NOSIGPOST.
o Add a member td_waitset to proc structure, it will be used for sigwait.

Tested by: deischen
2003-07-17 22:45:33 +00:00
rwatson
d323a17d59 Regen from syscalls.master:1.149, addition of extended attribute
list system calls for fd, file, link.
2003-06-04 03:50:20 +00:00
mike
db0a53cb3f Regen. 2003-04-09 02:57:29 +00:00
jeff
f1c114be2c - Regen. 2003-04-01 02:34:21 +00:00
jeff
e259269483 - Regen for umtx. 2003-04-01 01:22:18 +00:00
jeff
d151028043 - Regen for thr related system calls. 2003-04-01 00:34:29 +00:00
jeff
a153dd8158 - Regen for the sig*wait* system calls. 2003-03-31 23:33:45 +00:00
davidxu
eecfab3c68 Add a timeout parameter to kse_release. 2003-02-20 08:18:15 +00:00
davidxu
17af3163e6 Some KSE syscalls are MPSAFE. 2003-01-08 04:57:53 +00:00
rwatson
ef3d521440 Regen from syscalls.master:1.139 2002-12-29 20:26:41 +00:00
dillon
a6106827c5 Regenerate system calls (swapoff added) 2002-12-15 19:19:15 +00:00
deischen
a029d95fc6 Regenerate after adding system calls. 2002-11-16 06:36:56 +00:00
rwatson
8e4243b00b Regen. 2002-11-05 17:48:04 +00:00
rwatson
4b7e2d5c36 Regen from yesterday's system call placeholder rename. 2002-11-02 23:54:36 +00:00
dwmalone
590b9d831c The syscall names are string constants, so make them consts. 2002-10-29 15:47:06 +00:00
peter
72996ef6e6 Split 4.x and 5.x signal handling so that we can keep 4.x signal
handling clean and functional as 5.x evolves.  This allows some of the
nasty bandaids in the 5.x codepaths to be unwound.

Encapsulate 4.x signal handling under COMPAT_FREEBSD4 (there is an
anti-foot-shooting measure in place, 5.x folks need this for a while) and
finish encapsulating the older stuff under COMPAT_43.  Since the ancient
stuff is required on alpha (longjmp(3) passes a 'struct osigcontext *'
to the current sigreturn(2), instead of the 'ucontext_t *' that sigreturn
is supposed to take), add a compile time check to prevent foot shooting
there too.  Add uniform COMPAT_43 stubs for ia64/sparc64/powerpc.

Tested on: i386, alpha, ia64.  Compiled on sparc64 (a few days ago).
Approved by: re
2002-10-25 19:10:58 +00:00
rwatson
85fe95ccbf Regen. 2002-10-22 14:23:52 +00:00
rwatson
b384e65733 Regen from addition of execve_mac placeholder. 2002-10-19 21:15:10 +00:00
rwatson
413397e49e Regen from syntax fix to syscalls.master.
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
2002-10-10 04:08:11 +00:00
rwatson
b4fb567fea Regen. 2002-10-09 21:47:29 +00:00
rwatson
58a76a8d79 Regen. 2002-10-01 02:37:35 +00:00
archie
cc5aeddbc3 Make the following name changes to KSE related functions, etc., to better
represent their purpose and minimize namespace conflicts:

	kse_fn_t		-> kse_func_t
	struct thread_mailbox	-> struct kse_thr_mailbox
	thread_interrupt()	-> kse_thr_interrupt()
	kse_yield()		-> kse_release()
	kse_new()		-> kse_create()

Add missing declaration of kse_thr_interrupt() to <sys/kse.h>.
Regenerate the various generated syscall files. Minor style fixes.

Reviewed by:	julian
2002-09-25 18:10:42 +00:00
alfred
075f3cffae Regen for added syscalls. 2002-09-19 00:48:57 +00:00
rwatson
e386e29050 Regen. 2002-08-19 20:02:29 +00:00
rwatson
49b2fe8f5f Regen. 2002-08-06 15:16:55 +00:00
rwatson
055f3c9e04 Regen. 2002-07-31 00:16:58 +00:00
rwatson
7b283587ff Regen. 2002-07-30 16:52:22 +00:00
rwatson
3c9baadc47 Rebuild of files generated from syscalls.master.
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-07-30 02:09:24 +00:00
alfred
622996a84e regen for freebsd4_sendfile(2) compat. 2002-07-12 06:52:44 +00:00
rwatson
8c1e42287d Regen. 2002-06-13 23:44:50 +00:00
marcel
4ff27fac8b Add uuidgen(2) and uuidgen(1).
The uuidgen command, by means of the uuidgen syscall, generates one
or more Universally Unique Identifiers compatible with OSF/DCE 1.1
version 1 UUIDs.

From the Perforce logs (change 11995):

Round of cleanups:
o  Give uuidgen() the correct prototype in syscalls.master
o  Define struct uuid according to DCE 1.1 in sys/uuid.h
o  Use struct uuid instead of uuid_t. The latter is defined
   in sys/uuid.h but should not be used in kernel land.
o  Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid()
   to kern_uuid.c for use in the kernel (currently geom_gpt.c).
o  Rename the non-standard struct uuid in kern/kern_uuid.c
   to struct uuid_private and give it a slightly better definition
   for better byte-order handling. See below.
o  In sys/gpt.h, fix the broken uuid definitions to match the now
   compliant struct uuid definition. See below.
o  In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change.

A note about byte-order:
        The standard failed to provide a non-conflicting and
unambiguous definition for the binary representation. My initial
implementation always wrote the timestamp as a 64-bit little-endian
(2s-complement) integral. The clock sequence was always written
as a 16-bit big-endian (2s-complement) integral. After a good
nights sleep and couple of Pan Galactic Gargle Blasters (not
necessarily in that order :-) I reread the spec and came to the
conclusion that the time fields are always written in the native
by order, provided the the low, mid and hi chopping still occurs.
The spec mentions that you "might need to swap bytes if you talk
to a machine that has a different byte-order". The clock sequence
is always written in big-endian order (as is the IEEE 802 address)
because its division is resulting in bytes, making the ordering
unambiguous.
2002-05-28 06:16:08 +00:00
mux
7042b84352 Add the lchflags(2) syscall.
Reviewed by:	rwatson
2002-05-05 23:47:41 +00:00
mux
01b4d5f876 Rework the kernel environment subsystem. We now convert the static
environment needed at boot time to a dynamic subsystem when VM is
up.  The dynamic kernel environment is protected by an sx lock.

This adds some new functions to manipulate the kernel environment :
freeenv(), setenv(), unsetenv() and testenv().  freeenv() has to be
called after every getenv() when you have finished using the string.
testenv() only tests if an environment variable is present, and
doesn't require a freeenv() call. setenv() and unsetenv() are self
explanatory.

The kenv(2) syscall exports these new functionalities to userland,
mainly for kenv(1).

Reviewed by:	peter
2002-04-17 13:06:36 +00:00
alc
f1a3533e6b Regen 2002-04-14 05:33:58 +00:00
alc
c42312e30f Regen 2002-04-11 17:35:53 +00:00
rwatson
e23774327a Part II: update various mechanically generated files to allow for new
system call number allocations.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-03-05 16:13:01 +00:00
julian
a0632ab4e5 Add stub syscalls and definitions for KSE calls.
"Book'em Danno"
2002-02-19 02:40:31 +00:00
deischen
b406aa8729 Regenerate these files after change to syscalls.master. 2002-02-17 17:42:47 +00:00
rwatson
3df7944cab Part II: Update system calls for extended attributes. Rebuild of
generated files.
2002-02-10 04:44:37 +00:00
bde
fb25437b1e Regenerate to make osigreturn standard. 2002-02-01 17:41:45 +00:00
bde
b883f672fe Regenerate _after_ the commit to syscalls.master. 2002-01-30 10:29:12 +00:00
phk
771b52d9da Add nmount() stub function and regenerate the syscall-glue which should
not need to check in generated files.
2001-11-02 17:59:23 +00:00
rwatson
1e4632ad76 o Update init_sysent.c and friends for allocation of afs_syscall. 2001-10-13 13:30:21 +00:00
rwatson
37ada8f1aa o Part two of eaccess(2) commit, rebuilt system call code.
Obtained from:	TrustedBSD Project
2001-09-21 21:34:06 +00:00
peter
166f929d40 Regenerate 2001-09-18 23:33:33 +00:00
dillon
5871f2c6ea Regenerate syscalls 2001-09-01 19:37:41 +00:00
dillon
021e66096a regenerate syscalls 2001-09-01 03:56:12 +00:00
tmm
f4aa837d44 Regenerate from syscalls.master using the new makesyscalls.sh revision. 2001-08-22 23:27:20 +00:00
alfred
b8cf85eff6 Regen syscalls that were made mpsafe via vm_mtx
obreak, getpagesize, sbrk, sstk, mmap, ovadvise, munmap, mprotect,
madvise, mincore, mmap, mlock, munlock, minherit, msync, mlockall,
munlockall
2001-05-19 01:37:12 +00:00