DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

latch_open(S)


latch_open -- open a latch

Syntax

cc . . . -lsuds
#include <latch.h>

latch_t *latch_open(const char *name, int oflag, mode_t mode, unsigned int value);

Description

The latch_open function establishes a connection between a named latch and a process. Following a call to latch_open with latch name, the process may reference the latch using the address returned from the call. This latch may be used in subsequent calls to latch_wait(S), latch_trywait(S) and latch_post(S). The latch remains usable by this process until the latch is closed by a successful call to latch_close(S), _exit(S), or exec(S).

The use of the oflag, mode and value parameters is as for sem_open(S).

Return values

Upon successful completion, the function returns the address of the latch.

Diagnostics

Errors returned are as for sem_open(S).

See also

latch_close(S), latch_getvalue(S), latch_post(S), latch_trywait(S), latch_unlink(S), latch_wait(S), sem_open(S)

Standards conformance

latch_open is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003