int
lfs_segwait(
fsid_t *fsidp
, struct timeval *tv
)
)
blocks until a new segment is acquired for writing by the filesystem
specified by
*fsidp
or if
*fsidp
is -1, until a segment is acquired for writing by any LFS filesystem.
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.
)
returns 0 if a new segment was acquired; 1 if it timed out; or -1 on error.
)
indicates:
EFAULT
]
fsidp
points outside the process's allocated address space.
EINTR
]
EINVAL
]
)
function call appeared in
4.4BSD.