IOR
Macros | Functions | Variables
aiori-POSIX.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <assert.h>
#include "ior.h"
#include "aiori.h"
#include "iordef.h"
#include "utilities.h"
Include dependency graph for aiori-POSIX.c:

Go to the source code of this file.

Macros

#define open64   open /* unlikely, but may pose */
 
#define lseek64   lseek /* unlikely, but may pose */
 
#define O_BINARY   0
 

Functions

static IOR_offset_t POSIX_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
 
static void POSIX_Fsync (void *, IOR_param_t *)
 
void * POSIX_Create (char *testFileName, IOR_param_t *param)
 
void * POSIX_Open (char *testFileName, IOR_param_t *param)
 
void POSIX_Close (void *fd, IOR_param_t *param)
 
void POSIX_Delete (char *testFileName, IOR_param_t *param)
 
IOR_offset_t POSIX_GetFileSize (IOR_param_t *test, MPI_Comm testComm, char *testFileName)
 

Variables

ior_aiori_t posix_aiori
 

Macro Definition Documentation

◆ lseek64

#define lseek64   lseek /* unlikely, but may pose */

Definition at line 63 of file aiori-POSIX.c.

Referenced by POSIX_Xfer().

◆ O_BINARY

#define O_BINARY   0

Definition at line 67 of file aiori-POSIX.c.

Referenced by POSIX_Create(), and POSIX_Open().

◆ open64

#define open64   open /* unlikely, but may pose */

Definition at line 59 of file aiori-POSIX.c.

Referenced by POSIX_Create(), and POSIX_Open().

Function Documentation

◆ POSIX_Close()

void POSIX_Close ( void *  fd,
IOR_param_t param 
)

Definition at line 506 of file aiori-POSIX.c.

References ERR.

Referenced by MMAP_Close().

Here is the caller graph for this function:

◆ POSIX_Create()

void* POSIX_Create ( char *  testFileName,
IOR_param_t param 
)

◆ POSIX_Delete()

void POSIX_Delete ( char *  testFileName,
IOR_param_t param 
)

Definition at line 516 of file aiori-POSIX.c.

References EWARN, and rank.

◆ POSIX_Fsync()

static void POSIX_Fsync ( void *  fd,
IOR_param_t param 
)
static

Definition at line 497 of file aiori-POSIX.c.

References EWARN.

Referenced by POSIX_Xfer().

Here is the caller graph for this function:

◆ POSIX_GetFileSize()

IOR_offset_t POSIX_GetFileSize ( IOR_param_t test,
MPI_Comm  testComm,
char *  testFileName 
)

Definition at line 528 of file aiori-POSIX.c.

References ERR, IOR_param_t::filePerProc, MPI_CHECK, rank, TRUE, and WARN.

◆ POSIX_Open()

void* POSIX_Open ( char *  testFileName,
IOR_param_t param 
)

Definition at line 378 of file aiori-POSIX.c.

References ERR, IOR_param_t::gpfs_release_token, IOR_param_t::lustre_ignore_locks, NULL, O_BINARY, open64, set_o_direct_flag(), TRUE, IOR_param_t::useO_DIRECT, verbose, and VERBOSE_1.

Referenced by MMAP_Open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ POSIX_Xfer()

static IOR_offset_t POSIX_Xfer ( int  access,
void *  file,
IOR_size_t buffer,
IOR_offset_t  length,
IOR_param_t param 
)
static

Variable Documentation

◆ posix_aiori

ior_aiori_t posix_aiori
Initial value:
= {
.name = "POSIX",
.create = POSIX_Create,
.open = POSIX_Open,
.xfer = POSIX_Xfer,
.close = POSIX_Close,
.delete = POSIX_Delete,
.get_version = aiori_get_version,
.fsync = POSIX_Fsync,
.get_file_size = POSIX_GetFileSize,
.statfs = aiori_posix_statfs,
.access = aiori_posix_access,
}
static void POSIX_Fsync(void *, IOR_param_t *)
Definition: aiori-POSIX.c:497
void * POSIX_Open(char *testFileName, IOR_param_t *param)
Definition: aiori-POSIX.c:378
int aiori_posix_rmdir(const char *path, IOR_param_t *param)
Definition: aiori.c:134
int aiori_posix_mkdir(const char *path, mode_t mode, IOR_param_t *param)
Definition: aiori.c:129
int aiori_posix_statfs(const char *path, ior_aiori_statfs_t *stat_buf, IOR_param_t *param)
Definition: aiori.c:104
void * POSIX_Create(char *testFileName, IOR_param_t *param)
Definition: aiori-POSIX.c:267
char * aiori_get_version()
Definition: aiori.c:149
void POSIX_Delete(char *testFileName, IOR_param_t *param)
Definition: aiori-POSIX.c:516
IOR_offset_t POSIX_GetFileSize(IOR_param_t *test, MPI_Comm testComm, char *testFileName)
Definition: aiori-POSIX.c:528
void POSIX_Close(void *fd, IOR_param_t *param)
Definition: aiori-POSIX.c:506
int aiori_posix_stat(const char *path, struct stat *buf, IOR_param_t *param)
Definition: aiori.c:144
int aiori_posix_access(const char *path, int mode, IOR_param_t *param)
Definition: aiori.c:139
static IOR_offset_t POSIX_Xfer(int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
Definition: aiori-POSIX.c:418

Definition at line 77 of file aiori-POSIX.c.