16 #define _XOPEN_SOURCE 700
54 int sion_open(
char *fname,
const char *file_mode,
int *ntasks,
int *nfiles, sion_int64 **chunksizes, sion_int32 *fsblksize,
int **globalranks, FILE **fileptr)
59 DPRINTFP((1,
"sion_open", 0,
"enter open of file %s in %s mode\n", fname, file_mode));
61 sid=_sion_open(fname,file_mode,ntasks,nfiles,chunksizes,fsblksize,globalranks,fileptr);
83 int sion_open_rank(
char *fname,
const char *file_mode, sion_int64 *chunksize, sion_int32 *fsblksize,
int *rank, FILE **fileptr)
87 DPRINTFTS(*rank,
"before open rank");
88 DPRINTFP((1,
"sion_open_rank", *rank,
"enter open of file %s in %s mode\n", fname, file_mode));
89 sid=_sion_open_rank(fname, file_mode, chunksize, fsblksize, rank, fileptr);
90 DPRINTFP((1,
"sion_open_rank", 0,
"leave open of file %s in %s mode sid=%d\n", fname, file_mode,sid));
91 DPRINTFTS(*rank,
"after open rank");
110 DPRINTFP((1,
"sion_close", -1,
"enter close sid=%d\n", sid));
111 rc=_sion_close_sid(sid);
112 DPRINTFP((1,
"sion_close", -1,
"leave close sid=%d\n", sid));
int sion_open_rank(char *fname, const char *file_mode, sion_int64 *chunksize, sion_int32 *fsblksize, int *rank, FILE **fileptr)
Open a sion file for a specific rank.
int sion_open(char *fname, const char *file_mode, int *ntasks, int *nfiles, sion_int64 **chunksizes, sion_int32 *fsblksize, int **globalranks, FILE **fileptr)
Open a sion file in serial mode.
int sion_close(int sid)
Close a sion file.