summaryrefslogtreecommitdiffstats
path: root/sys/kern/syscalls.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add the lchflags(2) syscall.mux2002-05-051-1/+2
| | | | Reviewed by: rwatson
* Rework the kernel environment subsystem. We now convert the staticmux2002-04-171-0/+1
| | | | | | | | | | | | | | | | | 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
* Regenalc2002-04-141-1/+1
|
* Regenalc2002-04-111-1/+1
|
* Part II: update various mechanically generated files to allow for newrwatson2002-03-051-1/+7
| | | | | | | system call number allocations. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Add stub syscalls and definitions for KSE calls.julian2002-02-191-1/+6
| | | | "Book'em Danno"
* Regenerate these files after change to syscalls.master.deischen2002-02-171-1/+1
|
* Part II: Update system calls for extended attributes. Rebuild ofrwatson2002-02-101-1/+1
| | | | generated files.
* Regenerate to make osigreturn standard.bde2002-02-011-2/+2
|
* Regenerate _after_ the commit to syscalls.master.bde2002-01-301-1/+1
|
* Add nmount() stub function and regenerate the syscall-glue which shouldphk2001-11-021-1/+2
| | | | not need to check in generated files.
* o Update init_sysent.c and friends for allocation of afs_syscall.rwatson2001-10-131-1/+2
|
* o Part two of eaccess(2) commit, rebuilt system call code.rwatson2001-09-211-1/+2
| | | | Obtained from: TrustedBSD Project
* Regeneratepeter2001-09-181-1/+2
|
* Regenerate syscallsdillon2001-09-011-1/+1
|
* regenerate syscallsdillon2001-09-011-1/+1
|
* Regenerate from syscalls.master using the new makesyscalls.sh revision.tmm2001-08-221-1/+1
|
* Regen syscalls that were made mpsafe via vm_mtxalfred2001-05-191-1/+1
| | | | | | obreak, getpagesize, sbrk, sstk, mmap, ovadvise, munmap, mprotect, madvise, mincore, mmap, mlock, munlock, minherit, msync, mlockall, munlockall
* o Regenerated following introduction of __setugid() system call forrwatson2001-04-111-1/+2
| | | | | | "options REGRESSION". Obtained from: TrustedBSD Project
* o Part two of introduction of extattr_{delete,get,set}_fd() system calls,rwatson2001-03-311-1/+4
| | | | | | regenerate necessary automatically-generated code. Obtained from: TrustedBSD Project
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++rwatson2001-03-191-1/+1
| | | | | | | | reserved word. Part 2 of syscalls.master commit to catch rebuilt files. Submitted by: jkh Obtained from: TrustedBSD Project
* Regenerate after rwatson's commit to syscalls.master (rev 1.85)peter2001-03-151-1/+1
|
* Regen.jake2000-12-021-3/+3
|
* sysvipc loadable.alfred2000-12-011-0/+1
| | | | | | new syscall entry lkmressys - "reserved loadable syscall" Make syscall_register allow overwriting of such entries (lkmressys).
* Regen: fix prototypes for {o|}{g|s}etrlimit.marcel2000-08-281-1/+1
|
* Regen. (Fix SYS_exit)peter2000-07-291-2/+2
|
* Regenerate with makesyscalls.shpeter2000-07-291-2/+2
|
* o Commit two of two, introducing __cap_{get,set}_{fd,file} syscalls torwatson2000-07-131-1/+5
| | | | | | modify capability sets on files. Obtained from: TrustedBSD Project
* Second of two commits adding capability manipulation syscalls forrwatson2000-06-151-1/+3
| | | | | | processes. Obtained from: TrustedBSD Project
* Regenerated (fixed the type of mmap()'s padding arg).bde2000-05-091-1/+1
|
* Regenerate (removed semconfig)peter2000-05-011-2/+2
|
* Introduce kqueue() and kevent(), a kernel event notification facility.jlemon2000-04-161-1/+3
|
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls torwatson2000-01-191-9/+9
| | | | | | | | prettier (?) names, adding some const's around here, et al. Commit 2 out of 3. Reviewed by: bde
* Implement setres[ug]id() and getres[ug]id(). This has been sitting inpeter2000-01-161-3/+5
| | | | | | | my tree for ages (~2 years) waiting for an excuse to commit it. Now Linux has implemented it and it seems that Staroffice (when using the linux_base6.1 port's libc) calls this in the linux emulator and dies in setup. The Linux emulator can call these now.
* Add aio_waitcomplete(). Make aio work correctly for socket descriptors.jasone2000-01-141-1/+2
| | | | | | | | Make gratuitous style(9) fixes (me, not the submitter) to make the aio code more readable. PR: kern/12053 Submitted by: Chris Sedore <cmsedore@maxwell.syr.edu>
* Second pass commit to introduce new ACL and Extended Attribute systemrwatson1999-12-191-1/+13
| | | | | | | calls, vnops, vfsops, both in /kern, and to individual file systems that require a vfsop_ array entry. Reviewed by: eivind
* Cop on a bit and regenerate things correctly.brian1999-11-181-1/+1
| | | | Pointed out by: bde
* Now that userland, including modules don't use the osig* syscallsmarcel1999-10-121-6/+6
| | | | | and the kernel itself doesn't use any SYS_osig* constants, change the syscalls to be of type COMPAT.
* sigset_t change (part 2 of 5)marcel1999-09-291-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- The core of the signalling code has been rewritten to operate on the new sigset_t. No methodological changes have been made. Most references to a sigset_t object are through macros (see signalvar.h) to create a level of abstraction and to provide a basis for further improvements. The NSIG constant has not been changed to reflect the maximum number of signals possible. The reason is that it breaks programs (especially shells) which assume that all signals have a non-null name in sys_signame. See src/bin/sh/trap.c for an example. Instead _SIG_MAXSIG has been introduced to hold the maximum signal possible with the new sigset_t. struct sigprop has been moved from signalvar.h to kern_sig.c because a) it is only used there, and b) access must be done though function sigprop(). The latter because the table doesn't holds properties for all signals, but only for the first NSIG signals. signal.h has been reorganized to make reading easier and to add the new and/or modified structures. The "old" structures are moved to signalvar.h to prevent namespace polution. Especially the coda filesystem suffers from the change, because it contained lines like (p->p_sigmask == SIGIO), which is easy to do for integral types, but not for compound types. NOTE: kdump (and port linux_kdump) must be recompiled. Thanks to Garrett Wollman and Daniel Eischen for pressing the importance of changing sigreturn as well.
* regenerate to include proper "gererated from" taglines.alfred1999-09-111-1/+1
|
* Seperate the export check in VFS_FHTOVP, exports are now checked viaalfred1999-09-111-3/+4
| | | | | | | | | VFS_CHECKEXP. Add fh(open|stat|stafs) syscalls to allow userland to query filesystems based on (network) filehandle. Obtained from: NetBSD
* Regen after Id->FreeBSDpeter1999-08-281-1/+1
|
* Re-commit these files after updating syscalls.master (in the proper orderjkh1999-08-051-1/+1
| | | | | | this time). Pointed out by: bde
* Reserve a syscall for the arla folks. I'm assuming that since syscalls.cjkh1999-08-041-0/+1
| | | | | and init_sysent.c are checked into CVS, I should also commit the regenerated copies even though they're built by syscalls.master. Correct? Bruce? :)
* Regenerated.bde1999-05-131-1/+1
|
* This Implements the mumbled about "Jail" feature.phk1999-04-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do. For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers". Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname. Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors. It generally does what one would expect, but setting up a jail still takes a little knowledge. A few notes: I have no scripts for setting up a jail, don't ask me for them. The IP number should be an alias on one of the interfaces. mount a /proc in each jail, it will make ps more useable. /proc/<pid>/status tells the hostname of the prison for jailed processes. Quotas are only sensible if you have a mountpoint per prison. There are no privisions for stopping resource-hogging. Some "#ifdef INET" and similar may be missing (send patches!) If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome! Tools, comments, patches & documentation most welcome. Have fun... Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/
* Regenerate (padding for pread and pwrite).dt1999-04-041-1/+1
|
* Added pread and pwrite. These functions are defined by the X/Openalc1999-03-271-2/+2
| | | | | | Threads Extension. (Note: We use the same syscall numbers as NetBSD.) Submitted by: John Plevyak <jplevyak@inktomi.com>
* regenerate (+kldsym)peter1998-11-111-1/+2
|
* Implemented zero-copy TCP/IP extensions via sendfile(2) - send adg1998-11-051-0/+1
| | | | | | | | | | | file to a stream socket. sendfile(2) is similar to implementations in HP-UX, Linux, and other systems, but the API is more extensive and addresses many of the complaints that the Apache Group and others have had with those other implementations. Thanks to Marc Slemko of the Apache Group for helping me work out the best API for this. Anyway, this has the "net" result of speeding up sends of files over TCP/IP sockets by about 10X (that is to say, uses 1/10th of the CPU cycles) when compared to a traditional read/write loop.
OpenPOWER on IntegriCloud