LFS_SEGWAIT(2) | System Calls Manual | LFS_SEGWAIT(2) |
lfs_segwait
—
#include <sys/types.h>
int
lfs_segwait
(fsid_t
*fsidp, struct timeval
*tv);
lfs_segwait
() blocks until a new segment is acquired for
writing by the file system specified by *fsidp or if
*fsidp is -1, until a segment is acquired for writing by
any LFS file system.
If timeout is non-zero,
lfs_segwait
() will return after
timeout milliseconds regardless of whether a new
segment has been designated for writing or not.
lfs_segwait
() returns 0 if a new segment was acquired; 1
if it timed out; or -1 on error.
lfs_segwait
() indicates:
lfs_segwait
() function call appeared in
4.4BSD.
May 23, 2000 | NetBSD 9.0 |