sem_init.3 (a455039e3a2e6a9209a0dd1313e4a7e9c25fdb2c) sem_init.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 7, 2010
30.Dd January 9, 2010
31.Dt SEM_INIT 3
32.Os
33.Sh NAME
34.Nm sem_init
35.Nd initialize an unnamed semaphore
36.Sh LIBRARY
37.Lb libc
38.Sh SYNOPSIS

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

47to have the value
48.Fa value .
49.Pp
50A non-zero value for
51.Fa pshared
52specifies a shared semaphore that can be used by multiple processes,
53the semaphore should be located in shared memory region (see
54.Xr mmap 2 ,
31.Dt SEM_INIT 3
32.Os
33.Sh NAME
34.Nm sem_init
35.Nd initialize an unnamed semaphore
36.Sh LIBRARY
37.Lb libc
38.Sh SYNOPSIS

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

47to have the value
48.Fa value .
49.Pp
50A non-zero value for
51.Fa pshared
52specifies a shared semaphore that can be used by multiple processes,
53the semaphore should be located in shared memory region (see
54.Xr mmap 2 ,
55.Xr shm_open 2 ,
55.Xr shm_open 2 ,
56and
57.Xr shmget 2 ) ,
58any process having read and write access to address
59.Fa sem
60can perform semaphore operations on
61.Fa sem .
62.Pp
63Following a successful call to

--- 39 unchanged lines hidden ---
56and
57.Xr shmget 2 ) ,
58any process having read and write access to address
59.Fa sem
60can perform semaphore operations on
61.Fa sem .
62.Pp
63Following a successful call to

--- 39 unchanged lines hidden ---