1 #ifndef PHSOLVER_PHIO_POSIX_H 2 #define PHSOLVER_PHIO_POSIX_H 3 typedef struct phio_file* phio_fp; 4 void posix_readheader( 5 int* fileDescriptor, 6 const char keyphrase[], 7 void* valueArray, 8 int* nItems, 9 const char datatype[], 10 const char iotype[] ); 11 void posix_writeheader( 12 const int* fileDescriptor, 13 const char keyphrase[], 14 const void* valueArray, 15 const int* nItems, 16 const int* ndataItems, 17 const char datatype[], 18 const char iotype[] ); 19 void posix_readdatablock( 20 int* fileDescriptor, 21 const char keyphrase[], 22 void* valueArray, 23 int* nItems, 24 const char datatype[], 25 const char iotype[] ); 26 void posix_writedatablock( 27 const int* fileDescriptor, 28 const char keyphrase[], 29 const void* valueArray, 30 const int* nItems, 31 const char datatype[], 32 const char iotype[]); 33 void posix_openfile_read( 34 const char filename[], 35 int* numFiles, 36 phio_fp* fileDescriptor); 37 void posix_openfile_write( 38 const char filename[], 39 int* numFiles, 40 int* numFields, 41 int* numPPF, 42 int* fileDescriptor); 43 void posix_restartname(int* step, char* filename); 44 void posix_closefile_read(phio_fp fileDescriptor); 45 void posix_closefile_write(int* fileDescriptor); 46 #endif 47