diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-01-14 07:14:06 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-01-14 07:14:06 +0000 |
| commit | 74e03642ee69c2183a72a32af6f7cc098e5d9737 (patch) | |
| tree | e2ee615117d9e0135adf78bf7267c0cab62af006 /lib/libc | |
| parent | c6176a6f2c853903b41de198828f4ad2e8049c26 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/sem_init.3 | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/libc/gen/sem_init.3 b/lib/libc/gen/sem_init.3 index a6bba4a5becc..f9eec780282d 100644 --- a/lib/libc/gen/sem_init.3 +++ b/lib/libc/gen/sem_init.3 @@ -26,7 +26,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD$ -.Dd January 14, 2003 +.Dd February 15, 2000 .Dt SEM_INIT 3 .Os .Sh NAME @@ -47,9 +47,8 @@ to have the value .Fa value . A non-zero value for .Fa pshared -specifies a shared semaphore that can be used by any process -that can access -.Fa sem . +specifies a shared semaphore that can be used by multiple processes, which this +implementation is not capable of. .Pp Following a successful call to .Fn sem_init , @@ -74,10 +73,8 @@ will fail if: exceeds SEM_VALUE_MAX. .It Bq Er ENOSPC Memory allocation error. -.It Bq Er ENFILE -The system limit on semaphores -.Pq Dv SEM_NSEMS_MAX -has been reached. +.It Bq Er EPERM +Unable to initialize a shared semaphore. .El .Sh SEE ALSO .Xr sem_destroy 3 , @@ -89,3 +86,14 @@ has been reached. .Fn sem_init conforms to .St -p1003.1-96 . +.Pp +This implementation does not support shared semaphores, and reports this fact +by setting +.Va errno +to +.Er EPERM . +This is perhaps a stretch of the intention of POSIX, but is +compliant, with the caveat that +.Fn sem_init +always reports a permissions error when an attempt to create a shared semaphore +is made. |
