logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gfs_pio_seek - reposition a stream

Description

       The gfs_pio_seek() function sets the file position indicator for the file gf. The new position, measured
       in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to
       GFARM_SEEK_SET, GFARM_SEEK_CUR, or GFARM_SEEK_END, the offset is relative to the start of the file, the
       current position indicator, or end-of-file, respectively. When result is not NULL, the new position
       returns to the address pointed by result.

Name

       gfs_pio_seek - reposition a stream

Return Values

GFARM_ERR_NO_ERROR
           The function terminated successfully.

       GFARM_ERR_NO_MEMORY
           Insufficient memory was available.

       GFARM_ERR_INVALID_ARGUMENT
           Specified whence or offset is invalid.

       Other
           An error except the above occurred. The reason is shown by gfarm_error_string(3).

See Also

gfs_pio_create(3), gfs_pio_open(3)

Gfarm                                              20 Jun 2019                                   GFS_PIO_SEEK(3)

Synopsis

#include<gfarm/gfarm.h>gfarm_error_tgfs_pio_seek(GFS_Filegf,gfarm_off_toffset,intwhence,gfarm_off_t*result);

See Also