xref: /phasta/phSolver/common/phio_posix.h (revision d3a305dc9f740c722d6e65c2595701f85a1888be)
1064bab1dSCameron Smith #ifndef PHSOLVER_PHIO_POSIX_H
2064bab1dSCameron Smith #define PHSOLVER_PHIO_POSIX_H
3064bab1dSCameron Smith typedef struct phio_file* phio_fp;
4ab645d52SCameron Smith void posix_openfile(
5ab645d52SCameron Smith     const char filename[],
6ab645d52SCameron Smith     phio_fp fileDescriptor);
7*d3a305dcSCameron Smith int posix_openfile_single(
8560e081fSCameron Smith     const char filename[],
9560e081fSCameron Smith     phio_fp fileDescriptor);
10ab645d52SCameron Smith void posix_closefile(
11ab645d52SCameron Smith     phio_fp fileDescriptor);
12064bab1dSCameron Smith void posix_readheader(
13064bab1dSCameron Smith     int* fileDescriptor,
14064bab1dSCameron Smith     const  char keyphrase[],
15064bab1dSCameron Smith     void* valueArray,
16064bab1dSCameron Smith     int*  nItems,
17064bab1dSCameron Smith     const char  datatype[],
18064bab1dSCameron Smith     const char  iotype[] );
19064bab1dSCameron Smith void posix_writeheader(
20064bab1dSCameron Smith     const int* fileDescriptor,
21064bab1dSCameron Smith     const char keyphrase[],
22064bab1dSCameron Smith     const void* valueArray,
23064bab1dSCameron Smith     const int* nItems,
24064bab1dSCameron Smith     const int* ndataItems,
25064bab1dSCameron Smith     const char datatype[],
26064bab1dSCameron Smith     const char iotype[] );
27064bab1dSCameron Smith void posix_readdatablock(
28064bab1dSCameron Smith     int* fileDescriptor,
29064bab1dSCameron Smith     const  char keyphrase[],
30064bab1dSCameron Smith     void* valueArray,
31064bab1dSCameron Smith     int*  nItems,
32064bab1dSCameron Smith     const char  datatype[],
33064bab1dSCameron Smith     const char  iotype[] );
34064bab1dSCameron Smith void posix_writedatablock(
35064bab1dSCameron Smith     const int* fileDescriptor,
36064bab1dSCameron Smith     const char keyphrase[],
37064bab1dSCameron Smith     const void* valueArray,
38064bab1dSCameron Smith     const int* nItems,
39064bab1dSCameron Smith     const char datatype[],
40064bab1dSCameron Smith     const char iotype[]);
41a93de25bSCameron Smith void posix_constructname(
42a93de25bSCameron Smith     const char* in,
43a93de25bSCameron Smith     char* out);
44064bab1dSCameron Smith #endif
45