xref: /phasta/phSolver/common/phio_posix.h (revision d3a305dc9f740c722d6e65c2595701f85a1888be)
1 #ifndef PHSOLVER_PHIO_POSIX_H
2 #define PHSOLVER_PHIO_POSIX_H
3 typedef struct phio_file* phio_fp;
4 void posix_openfile(
5     const char filename[],
6     phio_fp fileDescriptor);
7 int posix_openfile_single(
8     const char filename[],
9     phio_fp fileDescriptor);
10 void posix_closefile(
11     phio_fp fileDescriptor);
12 void posix_readheader(
13     int* fileDescriptor,
14     const  char keyphrase[],
15     void* valueArray,
16     int*  nItems,
17     const char  datatype[],
18     const char  iotype[] );
19 void posix_writeheader(
20     const int* fileDescriptor,
21     const char keyphrase[],
22     const void* valueArray,
23     const int* nItems,
24     const int* ndataItems,
25     const char datatype[],
26     const char iotype[] );
27 void posix_readdatablock(
28     int* fileDescriptor,
29     const  char keyphrase[],
30     void* valueArray,
31     int*  nItems,
32     const char  datatype[],
33     const char  iotype[] );
34 void posix_writedatablock(
35     const int* fileDescriptor,
36     const char keyphrase[],
37     const void* valueArray,
38     const int* nItems,
39     const char datatype[],
40     const char iotype[]);
41 void posix_constructname(
42     const char* in,
43     char* out);
44 #endif
45