#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_write( |
gf, | |
| buffer, | ||
| size, | ||
np); |
GFS_File gf;const void * buffer;int size;int * np;gfs_pio_write() writes up to size bytes to the file gf
from the buffer starting at buffer. It returns the number of
bytes written to the address pointed by np.
GFARM_ERR_NO_ERRORThe function terminated successfully.
GFARM_ERR_OPERATION_NOT_PERMITTEDgf does not specify a regular file.
GFARM_ERR_BAD_FILE_DESCRIPTORThe file descripter specified by gfp is
not a valid or is not open for writing.
GFARM_ERR_NO_SPACEThe file system node has no room to store data
GFARM_ERR_NO_FILE_SYSTEM_NODEThere is no available file system node.
GFARM_ERR_NO_MEMORYInsufficient memory was available.
An error except the above occurred. The reason is shown by gfarm_error_string(3).