Article Listing 1 Listing 2 Listing 3 Listing 4
Listing 5 Listing 6 Listing 7 Listing 8 Listing 9
Listing 10 Listing 11 Listing 12 Listing 13 Sidebar aug2004.tar

OPTIONS

SYNOPSIS

semaphore [other options] [user options] [directives] name

semaphore [other options]

OPTIONS

-I number -- Initialize the semaphore and set the number of resources to number.

-P -- Retrieve a resource and decrement the value of the semaphore. Wait until a resource becomes available if necessary.

-V -- Increment the value of the semaphore if and only if the calling process has an available resource.

-d -- Execute semaphore in debug mode. Additional error messages may be displayed. Function tracing is turned on.

-l -- List information about the semaphore(s).

-m -- mode -- Set the permissions mode on the directory used to implement the user space.

-o -- owner[:group] -- Set the ownership on the directory used to implement the user space.

-p - pid -- Use with -V to explicitly specify the pid associated with a resource to be freed. Although not recommended, -p may also be used with -P to explicitly specify the OPERANDS

name -- Identifies a semaphore by name.