aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/posix4.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove single-use macros obfuscating malloc(9) and free(9) calls.Konstantin Belousov2015-08-301-3/+0
| | | | | | | | | | Style. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=287309
* In order to maximize the re-usability of kernel code in user space thisKip Macy2011-09-161-1/+1
| | | | | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz) Notes: svn path=/head/; revision=225617
* Add a facility to dynamically adjust or unconfigure p1003_1b mib.Konstantin Belousov2010-06-021-0/+1
| | | | | | | | | | | | Use it to allow to tune sem_nsem_max at runtime, only when sem.ko module is present in kernel. Requested and tested by: amdmi3 Reviewed by: jhb MFC after: 3 days Notes: svn path=/head/; revision=208731
* Update #includes list.Tom Rhodes2006-11-111-1/+1
| | | | Notes: svn path=/head/; revision=164183
* Extended the POSIX scheduler APIs to accept lwpid as well, we've alreadyDavid Xu2006-07-111-8/+8
| | | | | | | | | done this in ptrace syscall, when a pid is large than PID_MAX, the syscall will search a thread in current process. It permits 1:1 thread library to get and set a thread's scheduler attributes. Notes: svn path=/head/; revision=160257
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Rework the sysconf(3) interaction with aio:Alfred Perlstein2002-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | sysconf.c: Use 'break' rather than 'goto yesno' in sysconf.c so that we report a '0' return value from the kernel sysctl. vfs_aio.c: Make aio reset its configuration parameters to -1 after unloading instead of 0. posix4_mib.c: Initialize the aio configuration parameters to -1 to indicate that it is not loaded. Add a facility (p31b_iscfg()) to determine if a posix4 facility has been initialized to avoid having to re-order the SYSINITs. Use p31b_iscfg() to determine if aio has had a chance to run yet which is likely if it is compiled into the kernel and avoid spamming its values. Introduce a macro P31B_VALID() instead of doing the same comparison over and over. posix4.h: Prototype p31b_iscfg(). Notes: svn path=/head/; revision=106998
* headers should not really include "opt_foo.h" (in this case opt_posix.h).Alfred Perlstein2002-11-151-2/+0
| | | | | | | remove it from the header and add it to the files that require it. Notes: svn path=/head/; revision=106969
* Add the rest of the kernel support for the sem_ API in kern/uipc_sem.c.Alfred Perlstein2002-09-191-0/+1
| | | | | | | | | | | | | Option 'P1003_1B_SEMAPHORES' to compile them in, or load the "sem" module to activate them. Have kern/makesyscalls.sh emit an include for sys/_semaphore.h into sysproto.h to pull in the typedef for semid_t. Add the syscalls to the syscall table as module stubs. Notes: svn path=/head/; revision=103574
* Remove __P.Alfred Perlstein2002-03-191-2/+2
| | | | Notes: svn path=/head/; revision=92727
* KSE Milestone 2Julian Elischer2001-09-121-8/+8
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366
* Fixed some type mismatches. p_retval[0] in struct proc has typeBruce Evans1999-12-271-8/+10
| | | | | | | | | register_t, so pointers to it must be passed around as `register_t *', not as `int *'. The type mismatches were non-benign on alphas, but the broken code is normally only configured by LINT. Notes: svn path=/head/; revision=55140
* Well folks, this is it - The second stage of the removal for build supportPeter Wemm1999-04-171-1/+1
| | | | | | | for LKM's.. Notes: svn path=/head/; revision=45739
* The system call stubs for the sched_* system calls can't bePeter Dufault1998-03-281-4/+0
| | | | | | | | | | optional. The kernel will now link but the new system calls can't be LKM'd in without the P1003_1B option - I will remove this option later. Notes: svn path=/head/; revision=34933
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B andPeter Dufault1998-03-281-215/+41
| | | | | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing. Notes: svn path=/head/; revision=34925
* Reviewed by: bdePeter Dufault1998-03-081-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes to support building with _POSIX_SOURCE set to 199309L: 1. Add sys/_posix.h to handle those preprocessor defs that POSIX says have effects when defined before including any header files; 2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE 3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now defined in POSIX. These show up when: _POSIX_SOURCE and _POSIX_C_SOURCE are not set or _POSIX_C_SOURCE is set >= 199309L and vanish when: _POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L. 4. Explain these in man 9 posix4; 5. Include _posix.h and conditionalize on new feature test. Notes: svn path=/head/; revision=34319
* Reviewed by: msmith, bde long agoPeter Dufault1998-03-041-0/+300
POSIX.4 headers and sysctl variables. Nothing should change unless POSIX4 is defined or _POSIX_VERSION is set to 199309. Notes: svn path=/head/; revision=34030