sem_open.3 (a455039e3a2e6a9209a0dd1313e4a7e9c25fdb2c) sem_open.3 (7bf27b2dde45e09ea60028de94ccabdc8bd1d1d3)
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

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

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$
29.\"
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

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

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$
29.\"
30.Dd January 15, 2003
30.Dd January 9, 2010
31.Dt SEM_OPEN 3
32.Os
33.Sh NAME
34.Nm sem_open ,
35.Nm sem_close ,
36.Nm sem_unlink
37.Nd named semaphore operations
38.Sh LIBRARY

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

56.Xr sem_trywait 3 ,
57.Xr sem_post 3 ,
58and
59.Fn sem_close .
60.Pp
61This implementation places strict requirements on the value of
62.Fa name :
63it must begin with a slash
31.Dt SEM_OPEN 3
32.Os
33.Sh NAME
34.Nm sem_open ,
35.Nm sem_close ,
36.Nm sem_unlink
37.Nd named semaphore operations
38.Sh LIBRARY

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

56.Xr sem_trywait 3 ,
57.Xr sem_post 3 ,
58and
59.Fn sem_close .
60.Pp
61This implementation places strict requirements on the value of
62.Fa name :
63it must begin with a slash
64.Pq Ql / ,
65contain no other slash characters.
64.Pq Ql /
65and contain no other slash characters.
66.Pp
67The following bits may be set in the
68.Fa oflag
69argument:
70.Bl -tag -width ".Dv O_CREAT"
71.It Dv O_CREAT
72Create the semaphore if it does not already exist.
73.Pp

--- 152 unchanged lines hidden ---
66.Pp
67The following bits may be set in the
68.Fa oflag
69argument:
70.Bl -tag -width ".Dv O_CREAT"
71.It Dv O_CREAT
72Create the semaphore if it does not already exist.
73.Pp

--- 152 unchanged lines hidden ---