diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 01:57:12 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-19 01:57:12 +0000 |
commit | 38dda9e9dec3108d1ba801b4a69510bfed962f22 (patch) | |
tree | ed55a7e90a2d7d18810963e634236310b793d446 /doc/libs6lock/index.html | |
parent | df8c8876bc245c6124dd4691e5a95d8f397ca152 (diff) | |
download | s6-38dda9e9dec3108d1ba801b4a69510bfed962f22.tar.xz |
Doc fixes
Diffstat (limited to 'doc/libs6lock/index.html')
-rw-r--r-- | doc/libs6lock/index.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/libs6lock/index.html b/doc/libs6lock/index.html index 3696b41..7237823 100644 --- a/doc/libs6lock/index.html +++ b/doc/libs6lock/index.html @@ -70,10 +70,10 @@ practices. </li> <pre> s6lock_t a = S6LOCK_ZERO ; -struct taia deadline ; +tain_t deadline ; -taia_now_g() ; -taia_addsec_g(&deadline, 2) +tain_now_g() ; +tain_addsec_g(&deadline, 2) char const *path = S6LOCK_IPCPATH ; s6lock_start_g(&a, path, &deadline) ; @@ -128,8 +128,8 @@ s6lock_end(&a) ; <pre> uint16 id ; char const *file = "lockfile" ; -struct taia limit ; -struct taia deadline ; +tain_t limit ; +tain_t deadline ; int r = s6lock_acquire_sh_g (&a, &id, file, &limit, &deadline) ; /* int r = s6lock_acquire_ex_g (&a, &id, file, &limit, &deadline) ; */ @@ -236,7 +236,7 @@ number may have been transmitted from <h3> Synchronously waiting for locks </h3> <p> -<code> int s6lock_wait_or_g (s6lock_t *a, uint16 const *idlist, unsigned int n, struct taia const *deadline) </code> <br /> +<code> int s6lock_wait_or_g (s6lock_t *a, uint16 const *idlist, unsigned int n, tain_t const *deadline) </code> <br /> Synchronously waits for <em>one</em> of the locks represented by the array pointed to by <em>idlist</em> of length <em>n</em> to be acquired. Returns -1 if it fails, or a nonnegative number on success, which is the index in <em>idlist</em> of the @@ -245,7 +245,7 @@ function returns -1 ETIMEDOUT. </p> <p> -<code> int s6lock_wait_and_g (s6lock_t *a, uint16 const *idlist, unsigned int n, struct taia const *deadline) </code> <br /> +<code> int s6lock_wait_and_g (s6lock_t *a, uint16 const *idlist, unsigned int n, tain_t const *deadline) </code> <br /> Synchronously waits for <em>all</em> of the locks represented by the array pointed to by <em>idlist</em> of length <em>n</em> to be acquired. Returns -1 if it fails and 0 if it succeeds. If no result has been obtained by <em>deadline</em>, the |