gfs_pio_create
create a file in the Gfarm file system
- Provided by: libgfarm-dev (Version: 2.4.1-1.1ubuntu1)
- Source: gfarm
- Report a bug
create a file in the Gfarm file system
#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_create (const char * gfarm_url, int flags, gfarm_mode_t mode, GFS_File * gfp);
gfs_pio_create() creates a new file in the Gfarm file system whose name is the string pointed to by gfarm_url with the access mode mode, and returns a GFS_File structure to the address pointed to by gfp. Mode specifies the file permissions to be created, and is modified by the process's umask.
The flags argument has the same meaning as the second argument of gfs_pio_open(), including the point such that exactly one of GFARM_FILE_RDONLY, GFARM_FILE_WRONLY, and GFARM_FILE_RDWR should be specified.
Note that GFARM_FILE_TRUNC must be explicitly specified by the flags argument if needed.
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)