Deleted Added
full compact
sem_open.3 (109297) sem_open.3 (111447)
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 11 unchanged lines hidden (view full) ---

20.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\"
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 11 unchanged lines hidden (view full) ---

20.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23.\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/lib/libc/gen/sem_open.3 109297 2003-01-15 09:48:15Z tjr $
28.\" $FreeBSD: head/lib/libc/gen/sem_open.3 111447 2003-02-24 22:53:26Z ru $
29.Dd January 15, 2003
30.Dt SEM_OPEN 3
31.Os
32.Sh NAME
33.Nm sem_open ,
34.Nm sem_close ,
35.Nm sem_unlink
36.Nd named semaphore operations

--- 86 unchanged lines hidden (view full) ---

123If the semaphore cannot be opened,
124.Fn sem_open
125returns
126.Dv SEM_FAILED
127and the global variable
128.Va errno
129is set to indicate the error.
130.Pp
29.Dd January 15, 2003
30.Dt SEM_OPEN 3
31.Os
32.Sh NAME
33.Nm sem_open ,
34.Nm sem_close ,
35.Nm sem_unlink
36.Nd named semaphore operations

--- 86 unchanged lines hidden (view full) ---

123If the semaphore cannot be opened,
124.Fn sem_open
125returns
126.Dv SEM_FAILED
127and the global variable
128.Va errno
129is set to indicate the error.
130.Pp
131.Rv -std sem_close
132.Pp
133.Rv -std sem_unlink
131.Rv -std sem_close sem_unlink
134.Sh ERRORS
135The
136.Fn sem_open
137function will fail if:
138.Bl -tag -width Er
139.It Bq Er EACCES
140The semaphore exists and the permissions specified by
141.Fa oflag

--- 57 unchanged lines hidden (view full) ---

199The named semaphore does not exist.
200.El
201.Sh SEE ALSO
202.Xr close 2 ,
203.Xr open 2 ,
204.Xr umask 2 ,
205.Xr unlink 2 ,
206.Xr sem_getvalue 3 ,
132.Sh ERRORS
133The
134.Fn sem_open
135function will fail if:
136.Bl -tag -width Er
137.It Bq Er EACCES
138The semaphore exists and the permissions specified by
139.Fa oflag

--- 57 unchanged lines hidden (view full) ---

197The named semaphore does not exist.
198.El
199.Sh SEE ALSO
200.Xr close 2 ,
201.Xr open 2 ,
202.Xr umask 2 ,
203.Xr unlink 2 ,
204.Xr sem_getvalue 3 ,
207.Xr sem_wait 3 ,
208.Xr sem_trywait 3 ,
209.Xr sem_post 3 ,
205.Xr sem_post 3 ,
206.Xr sem_trywait 3 ,
207.Xr sem_wait 3 ,
210.Xr sem 4
211.Sh STANDARDS
212The
213.Fn sem_open ,
214.Fn sem_close ,
215and
216.Fn sem_unlink
217functions conform to
218.St -p1003.1-96 .
219.Sh HISTORY
220Support for named semaphores first appeared in
221.Fx 5.0 .
222.Sh BUGS
223This implementation places strict requirements on the value of
224.Fa name :
225it must begin with a slash
226.Pq Ql / ,
227contain no other slash characters,
208.Xr sem 4
209.Sh STANDARDS
210The
211.Fn sem_open ,
212.Fn sem_close ,
213and
214.Fn sem_unlink
215functions conform to
216.St -p1003.1-96 .
217.Sh HISTORY
218Support for named semaphores first appeared in
219.Fx 5.0 .
220.Sh BUGS
221This implementation places strict requirements on the value of
222.Fa name :
223it must begin with a slash
224.Pq Ql / ,
225contain no other slash characters,
228and be less than 14 characters in length not including the terminating null.
226and be less than 14 characters in length
227not including the terminating null character.