Table of Contents

NAME

gfs_wait - wait for a non-blocking call to complete

SYNOPSIS

#include <gfs.h>

int gfs_wait(gfs_handle handle);

DESCRIPTION

gfs_wait blocks until the non-blocking call associated with handle completes.

RETURN VALUE

If the non-blocking call associated with handle completes successfully, gfs_wait returns the number of bytes transferred by the call. If the non-blocking call fails, gfs_wait returns -1, and sets gfs_errno appropriately. See the man pages for the non-blocking calls for further information on potential errors.

gfs_wait must be called before handle may be used in another non-blocking call.

ERRORS

GFS_EINVAL
handle is not a valid handle.


Table of Contents