table of contents
GFS_PIO_RECVFILE(3) | Gfarm | GFS_PIO_RECVFILE(3) |
NAME¶
gfs_pio_recvfile - receive a Gfarm file to local machine
SYNOPSIS¶
#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_recvfile(GFS_File r_gf, gfarm_off_t r_off, int w_fd, gfarm_off_t w_off, gfarm_off_t len, gfarm_off_t * recvp);
DESCRIPTION¶
Receives len bytes of data from the position specified by the offset r_off in a Gfarm file r_gf, to the position specified by the offset w_off of a local file which is pointed by a file descriptor w_fd. If len is -1, this function transfers until the end of the file. The transfered bytes will be stored to the memory pointed by recvp when recvp is not NULL. If len is a positive value, and the value pointed by recvp is less than len, that means the transfer reached EOF.
RETURN VALUES¶
GFARM_ERR_NO_ERROR
GFARM_ERR_OPERATION_NOT_PERMITTED
GFARM_ERR_BAD_FILE_DESCRIPTOR
GFARM_ERR_NO_FILE_SYSTEM_NODE
GFARM_ERR_NO_MEMORY
Others
SEE ALSO¶
gfs_pio_create(3), gfs_pio_open(3), gfs_pio_read(3), gfs_pio_sendfile(3)
12 Aug 2015 | Gfarm |