summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
Commit message (Collapse)AuthorAgeFilesLines
* Document that you must include <sys/param.h> before <sys/cpuset.h>.antoine2008-04-202-0/+2
| | | | Approved by: rwatson (mentor)
* Sort MAN and MLINKS.ru2008-04-161-25/+26
|
* Connect newly added manpages to the build.ru2008-04-161-5/+15
| | | | Submitted by: kib
* Man pages for the openat(2), fexecve(2) and related syscalls.kib2008-04-1615-40/+1098
| | | | Reviewed by: ru
* Move the cpuset functions from FBSD_1.0 to FBSD_1.1. All symbols addeddeischen2008-04-071-5/+5
| | | | to 8.0 belong in the FBSD_1.1 symbol namespace.
* Add some compatibility code so that software which is built to use the newdfr2008-04-042-1/+89
| | | | | | | struct flock with l_sysid member can work properly on an an old kernel which doesn't support l_sysid. Sponsored by: Isilon Systems
* style(9) cleanupkevlo2008-04-032-2/+2
|
* Add the libc glue and headers definitions for the *at() syscalls.kib2008-03-311-0/+18
| | | | | | | Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho
* - Add a man page for cpuset_getaffinity() and cpuset_setaffinity() andjeff2008-03-292-2/+159
| | | | | | hook it up to the build. Reviewed by: brueffer (skeleton and formatting assistance)
* - Add a man page for cpuset(), cpuset_setid(), and cpuset_getid() and hookjeff2008-03-292-1/+227
| | | | | | it up to the build. Reviewed by: brueffer (skeleton and formatting assistance)
* Add support to mincore for detecting whether a page is part of aps2008-03-281-0/+2
| | | | | | "super" page or not. Reviewed by: alc, ups
* Add the new kernel-mode NFS Lock Manager. To use it instead of thedfr2008-03-262-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user-mode lock manager, build a kernel with the NFSLOCKD option and add '-k' to 'rpc_lockd_flags' in rc.conf. Highlights include: * Thread-safe kernel RPC client - many threads can use the same RPC client handle safely with replies being de-multiplexed at the socket upcall (typically driven directly by the NIC interrupt) and handed off to whichever thread matches the reply. For UDP sockets, many RPC clients can share the same socket. This allows the use of a single privileged UDP port number to talk to an arbitrary number of remote hosts. * Single-threaded kernel RPC server. Adding support for multi-threaded server would be relatively straightforward and would follow approximately the Solaris KPI. A single thread should be sufficient for the NLM since it should rarely block in normal operation. * Kernel mode NLM server supporting cancel requests and granted callbacks. I've tested the NLM server reasonably extensively - it passes both my own tests and the NFS Connectathon locking tests running on Solaris, Mac OS X and Ubuntu Linux. * Userland NLM client supported. While the NLM server doesn't have support for the local NFS client's locking needs, it does have to field async replies and granted callbacks from remote NLMs that the local client has contacted. We relay these replies to the userland rpc.lockd over a local domain RPC socket. * Robust deadlock detection for the local lock manager. In particular it will detect deadlocks caused by a lock request that covers more than one blocking request. As required by the NLM protocol, all deadlock detection happens synchronously - a user is guaranteed that if a lock request isn't rejected immediately, the lock will eventually be granted. The old system allowed for a 'deferred deadlock' condition where a blocked lock request could wake up and find that some other deadlock-causing lock owner had beaten them to the lock. * Since both local and remote locks are managed by the same kernel locking code, local and remote processes can safely use file locks for mutual exclusion. Local processes have no fairness advantage compared to remote processes when contending to lock a region that has just been unlocked - the local lock manager enforces a strict first-come first-served model for both local and remote lockers. Sponsored by: Isilon Systems PR: 95247 107555 115524 116679 MFC after: 2 weeks
* Fix bugs in previous revision (missing comma, misspelled syscall name).ru2008-03-131-3/+2
|
* - Remove kse syscall symbols and man pages.jeff2008-03-122-21/+1
|
* Add reference to kldunloadf system call, which was previously notrwatson2008-03-102-1/+15
| | | | | | | mentioned in the kldunload(2) man page. MFC after: 3 days Spotted by: rink
* Introduce a new F_DUP2FD command to fcntl(2), for compatibility withantoine2008-03-081-1/+37
| | | | | | | | | | | | Solaris and AIX. fcntl(fd, F_DUP2FD, arg) and dup2(fd, arg) are functionnaly equivalent. Document it. Add some regression tests (identical to the dup2(2) regression tests). PR: 120233 Submitted by: Jukka Ukkonen Approved by: rwaston (mentor) MFC after: 1 month
* Add cpuset, an api for thread to cpu binding and cpu resource groupingjeff2008-03-021-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | and assignment. - Add a reference to a struct cpuset in each thread that is inherited from the thread that created it. - Release the reference when the thread is destroyed. - Add prototypes for syscalls and macros for manipulating cpusets in sys/cpuset.h - Add syscalls to create, get, and set new numbered cpusets: cpuset(), cpuset_{get,set}id() - Add syscalls for getting and setting affinity masks for cpusets or individual threads: cpuid_{get,set}affinity() - Add types for the 'level' and 'which' parameters for the cpuset. This will permit expansion of the api to cover cpu masks for other objects identifiable with an id_t integer. For example, IRQs and Jails may be coming soon. - The root set 0 contains all valid cpus. All thread initially belong to cpuset 1. This permits migrating all threads off of certain cpus to reserve them for special applications. Sponsored by: Nokia Discussed with: arch, rwatson, brooks, davidxu, deischen Reviewed by: antoine
* Use the easily-greppable copyright notice template fromphilip2008-02-297-119/+119
| | | | | | src/share/examples/mdoc/POSIX-copyright. Requested by: ru
* Added the "restrict" type-qualifier to the readlink() prototype.ru2008-02-261-2/+2
|
* Add missing words.brueffer2008-02-251-2/+2
| | | | MFC after: 3 days
* Note, as required by our agreement with IEEE/The Open Group, that the messagephilip2008-02-217-0/+140
| | | | | | | | queue manual pages excerpt the POSIX standard. Spotted by: Mindaugas Rasiukevicius <rmind -at- NetBSD.org> Reviewed by: imp MFC after: 1 day
* Change readlink(2)'s return type and type of the last argumentru2008-02-121-4/+4
| | | | | | to match POSIX. Prodded by: Alexey Lyashkov
* After issueing a ntpdate [1] I noticed it's already 2008, reflect thatremko2008-02-111-1/+1
| | | | | | in the last modified date. Noticed by: brueffer [1]
* Fix typo (s/existance/existence/)remko2008-02-111-2/+2
| | | | Noticed by: ceri
* Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufsphk2008-02-031-1/+14
| | | | | | | | referencing the files VM pages are returned from the network stack, making changes to the file safe. This flag does not guarantee that the data has been transmitted to the other end.
* Update this manual page to describe the extattr_list_file() and thetrhodes2008-01-291-6/+13
| | | | | | | | extattr_list_fd() functions. PR: 108142 Submitted by: Richard Dawe <rich@phekda.gotadsl.co.uk> Reviewed by: kientzle
* Xref flopen.3 which references this manual page.trhodes2008-01-221-1/+2
| | | | PR: 112650
* Fix some style nits.remko2008-01-161-4/+4
| | | | | Prodded by: brueffer MFC After: 3 days
* Add a new file descriptor type for IPC shared memory objects and use it tojhb2008-01-082-68/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement shm_open(2) and shm_unlink(2) in the kernel: - Each shared memory file descriptor is associated with a swap-backed vm object which provides the backing store. Each descriptor starts off with a size of zero, but the size can be altered via ftruncate(2). The shared memory file descriptors also support fstat(2). read(2), write(2), ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared memory file descriptors. - shm_open(2) and shm_unlink(2) are now implemented as system calls that manage shared memory file descriptors. The virtual namespace that maps pathnames to shared memory file descriptors is implemented as a hash table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash of the pathname. - As an extension, the constant 'SHM_ANON' may be specified in place of the path argument to shm_open(2). In this case, an unnamed shared memory file descriptor will be created similar to the IPC_PRIVATE key for shmget(2). Note that the shared memory object can still be shared among processes by sharing the file descriptor via fork(2) or sendmsg(2), but it is unnamed. This effectively serves to implement the getmemfd() idea bandied about the lists several times over the years. - The backing store for shared memory file descriptors are garbage collected when they are not referenced by any open file descriptors or the shm_open(2) virtual namespace. Submitted by: dillon, peter (previous versions) Submitted by: rwatson (I based this on his version) Reviewed by: alc (suggested converting getmemfd() to shm_open())
* Add note about other systems.imp2007-12-191-0/+3
|
* Make the warning a bit less 'broad' then it used to be. The accessremko2007-12-081-1/+10
| | | | | | | | | is seems to be a problem for SUID applications, which we like to prevent as much as possible. PR: docs/39530 Submitted by: Soren Spies <sspies at apple dot com> MFC After: 3 days
* Remove extraneous empty lines, to fix mdoc warnings.keramida2007-10-303-7/+3
| | | | MFC after: 3 days
* Bump manpage date, missed during the last change.keramida2007-10-301-1/+1
| | | | MFC after: 3 days
* The .Fx request doesn't recognize 2.2.0, so use ".Fx 2.2"keramida2007-10-301-1/+1
| | | | MFC after: 3 days
* Add a BUGS section to note that mount/chroot changes sincejb2007-10-221-0/+4
| | | | | | | | | a module was loaded might make the pathname inaccurate. I wonder if an inode reference should be stored with the pathname to allow a validity check? Suggested by: rwatson@
* Add the full module path name to the kld_file_stat structurejb2007-10-221-0/+5
| | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
* Add FreeBSD history.obrien2007-09-211-1/+3
| | | | Approved by: re(ken)
* Use better manuals for these ntp system calls. These were replaced byimp2007-09-153-201/+258
| | | | | | | the netbsd versions, and tweaked by me with suggestions from phk. Reviewed by: phk Approved by: re@
* We've been able to support EVFILT_VNODE filtering on non-UFSru2007-09-071-6/+1
| | | | | | | | file systems since 2005. Submitted by: Igor Sysoev Approved by: re (bmah) MFC after: 3 days
* Add thr_kill2 syscall.davidxu2007-08-221-0/+3
| | | | | Submitted by: Tijl Coosemans tijl at ulyssis dot org Approved by: re (kensmith)
* Take a sentence into the present by removing a reference to FreeBSD 3.0.brueffer2007-07-141-4/+2
| | | | | Approved by: re (blanket) MFC after: 3 days
* Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate topeter2007-07-046-8/+33
| | | | | | | | | call the pad-less versions of the corresponding syscalls if the running kernel supports it. Check kern.osreldate once per program and cache the result to select the appropriate syscall. This maintains userland compatability with kernel.old's from quite a while back. Approved by: re (kensmith)
* Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudopeter2007-07-041-2/+4
| | | | | | | | | | syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT, the .c wrappers will go away and libc will make direct syscalls. After 7-stable starts, the direct syscall method will be default. Approved by: re (kensmith)
* Fix library names.davidxu2007-06-1810-10/+10
|
* Catch up with the code.brueffer2007-06-131-2/+2
| | | | Submitted by: peter
* Expose __stack_chk_fail_local() so -fstack-protector-all works.des2007-06-052-3/+1
|
* Correct spelling errors in comments.rwatson2007-05-281-2/+2
|
* Follow NetBSD, OpenBSD and DragonfyBSD project and add BSD-licensedkan2007-05-193-1/+124
| | | | | SSP functions into FreeBSD libc. Use the same file name and location for consistency with other projects.
* Document RFTHREADpav2007-05-141-1/+9
| | | | | | PR: docs/78915 Submitted by: Marc Olzheim <marcolz@stack.nl> MFC after: 1 week
* Add missing links and sort.pjd2007-04-291-3/+9
|
OpenPOWER on IntegriCloud