summaryrefslogtreecommitdiff
path: root/lib/libc/gen/semctl.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't declare union semun in userspace unless _WANT_SEMUN is defined.Brooks Davis2018-03-021-0/+1
| | | | | | | | | | | | | | | | | | | POSIX explicitly states that the application must declare union semun. This makes no sense, but it is what it is. This brings us into line with Linux, MacOS/Darwin, and NetBSD. In a ports exp-run a moderate number of ports fail due to a lack of approprate autotools-like discovery mechanisms or local patches. A commit to address them will follow shortly. PR: 224300, 224443 (exp-run) Reviewed by: emaste, jhb, kib Exp-run by: antoine Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14492 Notes: svn path=/head/; revision=330299
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* Disable support for compat syscalls on arm64. These symbols were neverAndrew Turner2016-04-061-0/+6
| | | | | | | | | | shipped since arm64 exists only on 11+. Submitted by: brooks Reviewed by: emaste, imp Notes: svn path=/head/; revision=297619
* Add declarations to eliminate -Wmissing-prototypes warningsCraig Rodrigues2015-09-201-0/+1
| | | | Notes: svn path=/head/; revision=288008
* Change the ABI of some of the structures used by the SYSV IPC API:John Baldwin2009-06-241-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The uid/cuid members of struct ipc_perm are now uid_t instead of unsigned short. - The gid/cgid members of struct ipc_perm are now gid_t instead of unsigned short. - The mode member of struct ipc_perm is now mode_t instead of unsigned short (this is merely a style bug). - The rather dubious padding fields for ABI compat with SV/I386 have been removed from struct msqid_ds and struct semid_ds. - The shm_segsz member of struct shmid_ds is now a size_t instead of an int. This removes the need for the shm_bsegsz member in struct shmid_kernel and should allow for complete support of SYSV SHM regions >= 2GB. - The shm_nattch member of struct shmid_ds is now an int instead of a short. - The shm_internal member of struct shmid_ds is now gone. The internal VM object pointer for SHM regions has been moved into struct shmid_kernel. - The existing __semctl(), msgctl(), and shmctl() system call entries are now marked COMPAT7 and new versions of those system calls which support the new ABI are now present. - The new system calls are assigned to the FBSD-1.1 version in libc. The FBSD-1.0 symbols in libc now refer to the old COMPAT7 system calls. - A simplistic framework for tagging system calls with compatibility symbol versions has been added to libc. Version tags are added to system calls by adding an appropriate __sym_compat() entry to src/lib/libc/incldue/compat.h. [1] PR: kern/16195 kern/113218 bin/129855 Reviewed by: arch@, rwatson Discussed with: kan, kib [1] Notes: svn path=/head/; revision=194910
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-161-0/+2
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* Add a missing copyright for Doug. There are other files missing thisDavid Malone2002-08-111-0/+28
| | | | | | | | | | copyright in -stable. PR: 41397 Submitted by: dfr Notes: svn path=/head/; revision=101695
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-281-15/+1
| | | | | | | Submitted by: keramida Notes: svn path=/head/; revision=97407
* Generate the normal asm stubs for all sysv system calls. Use these insteadJake Burkholder2002-05-231-4/+0
| | | | | | | | | | of C wrappers for the *sys indirect system calls. The indirect system calls are horribly broken on sparc64. Submitted by: tmm Notes: svn path=/head/; revision=97191
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-0/+3
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Fix this so that it compiles in the !__STDC__ case.Steve Price1998-06-061-1/+5
| | | | | | | | | Also be consistent about usage of #if ... Pointed out by: bde Notes: svn path=/head/; revision=36706
* Several sources including Unix98 say that semctl's fourthSteve Price1998-05-311-5/+24
| | | | | | | | | | | | | parameter is optional except where: cmd == {IPC_SET || IPC_STAT || GETALL || SETVAL || SETALL} PR: 2448 Reviewed by: bde Submitted by: Tim Singletary <tsingle@sunland.gsfc.nasa.gov> Minor tweaks by: steve Notes: svn path=/head/; revision=36482
* NetBSD implements semctl using a __semctl syscall instead of theJohn Birrell1998-03-091-0/+4
| | | | | | | | semsys syscall that FreeBSD kernels use. Grumble. So make the call dependent on if __NETBSD_SYSCALLS is defined. Notes: svn path=/head/; revision=34360
* Added SYSV ipc system calls.Doug Rabson1994-09-131-0/+15
Notes: svn path=/head/; revision=2730