table of contents
GFS_PIO_OPEN(3) | Gfarm | GFS_PIO_OPEN(3) |
NAME¶
gfs_pio_open - open a file in the Gfarm file system
SYNOPSIS¶
#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_open(const char * gfarm_url, int flags, GFS_File * gfp);
DESCRIPTION¶
gfs_pio_open() opens a file in the Gfarm file system specified by gfarm_url, and returns a GFS_File structure to the address pointed by gfp. gfarm_url is a path name in the Gfarm file system, or a Gfarm URL in the form of gfarm://metaserver:port/path/name.
Values of flags are constructed by a bitwise-inclusive-OR of the following list. Exactly one of the first three values should be specified:
GFARM_FILE_RDONLY
GFARM_FILE_WRONLY
GFARM_FILE_RDWR
GFARM_FILE_TRUNC
GFARM_FILE_APPEND
GFARM_FILE_UNBUFFERED
RETURN VALUES¶
GFARM_ERR_NO_ERROR
GFARM_ERR_IS_A_DIRECTORY
GFARM_ERR_IS_A_SYMBOLIC_LINK
GFARM_ERR_OPERATION_NOT_PERMITTED
GFARM_ERR_NO_SUCH_OBJECT
GFARM_ERR_NOT_A_DIRECTORY
GFARM_ERR_PERMISSION_DENIED
GFARM_ERR_NO_MEMORY
GFARM_ERR_INVALID_ARGUMENT
GFARM_ERR_GFARM_URL_HOST_IS_MISSING
GFARM_ERR_GFARM_URL_PORT_IS_MISSING
GFARM_ERR_UNKNOWN_HOST
GFARM_ERR_TOO_MANY_OPEN_FILES
GFARM_ERR_TOO_MANY_OPEN_FILES_IN_SYSTEM
GFARM_ERR_NETWORK_IS_UNREACHABLE
GFARM_ERR_OPERATION_TIMED_OUT
GFARM_ERR_PROTOCOL
GFARM_ERR_BROKEN_PIPE
GFARM_ERR_PROTOCOL_NOT_SUPPORTED
GFARM_ERR_AUTHENTICATION
Others
SEE ALSO¶
gfs_pio_close(3), gfs_pio_create(3), gfs_pio_eof(3), gfs_pio_error(3), gfs_pio_flush(3), gfs_pio_getc(3), gfs_pio_getline(3), gfs_pio_open(3), gfs_pio_putc(3), gfs_pio_putline(3), gfs_pio_puts(3), gfs_pio_read(3), gfs_pio_seek(3), gfs_pio_ungetc(3), gfs_pio_write(3)
8 Aug 2020 | Gfarm |