Module Name: src
Committed By: christos
Date: Fri May 4 20:28:51 UTC 2018
Modified Files:
src/lib/librt: sem_open.3
Log Message:
It is not a bug that we are only allowing /name. Update for newly allowed
length.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/librt/sem_open.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librt/sem_open.3
diff -u src/lib/librt/sem_open.3:1.6 src/lib/librt/sem_open.3:1.7
--- src/lib/librt/sem_open.3:1.6 Thu Mar 8 17:12:52 2012
+++ src/lib/librt/sem_open.3 Fri May 4 16:28:51 2018
@@ -1,4 +1,4 @@
-.\" $NetBSD: sem_open.3,v 1.6 2012/03/08 22:12:52 wiz Exp $
+.\" $NetBSD: sem_open.3,v 1.7 2018/05/04 20:28:51 christos Exp $
.\"
.\" Copyright (C) 2000 Jason Evans <[email protected]>.
.\" All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" From: FreeBSD: src/lib/libc/gen/sem_open.3,v 1.12 2004/07/02 16:45:56 ru
.\"
-.Dd February 29, 2012
+.Dd May 4, 2018
.Dt SEM_OPEN 3
.Os
.Sh NAME
@@ -150,11 +150,15 @@ are set but the semaphore already exists
.It Bq Er EINTR
The call was interrupted by a signal.
.It Bq Er EINVAL
+The
+.Fa name
+argument does not begin with a
+.Sq /
+or contains more slashes.
+This is implementation-specific behavior and allowed by
+.St -p1003.1-96 .
+.It Bq Er EINVAL
The
-.Fn sem_open
-operation is not supported for the given
-.Fa name ;
-or the
.Fa value
argument is greater than
.Dv SEM_VALUE_MAX .
@@ -162,9 +166,11 @@ argument is greater than
.\".It Bq Er EMFILE
.\"Too many semaphores are in use by this process.
.It Bq Er ENAMETOOLONG
-The
+The specified
.Fa name
-argument is too long.
+is longer than
+.Dv NAME_MAX ,
+or longer than the implementing filesystem will allow.
.It Bq Er ENFILE
The system limit on semaphores has been reached.
.It Bq Er ENOENT
@@ -193,7 +199,9 @@ Permission is denied to unlink the semap
.It Bq Er ENAMETOOLONG
The specified
.Fa name
-is too long.
+is longer than
+.Dv NAME_MAX ,
+or longer than the implementing filesystem will allow.
.It Bq Er ENOENT
The named semaphore does not exist.
.El
@@ -218,11 +226,3 @@ functions conform to
.Sh HISTORY
Support for named semaphores first appeared in
.Nx 2.0 .
-.Sh BUGS
-This implementation places strict requirements on the value of
-.Fa name :
-it must begin with a slash
-.Pq Ql / ,
-contain no other slash characters,
-and be less than 14 characters in length
-not including the terminating null character.