xref: /phasta/phSolver/common/phio_posix.h (revision 1e99f302ca5103688ae35115c2fefb7cfa6714f1)
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 void posix_closefile(
8     phio_fp fileDescriptor);
9 void posix_readheader(
10     int* fileDescriptor,
11     const  char keyphrase[],
12     void* valueArray,
13     int*  nItems,
14     const char  datatype[],
15     const char  iotype[] );
16 void posix_writeheader(
17     const int* fileDescriptor,
18     const char keyphrase[],
19     const void* valueArray,
20     const int* nItems,
21     const int* ndataItems,
22     const char datatype[],
23     const char iotype[] );
24 void posix_readdatablock(
25     int* fileDescriptor,
26     const  char keyphrase[],
27     void* valueArray,
28     int*  nItems,
29     const char  datatype[],
30     const char  iotype[] );
31 void posix_writedatablock(
32     const int* fileDescriptor,
33     const char keyphrase[],
34     const void* valueArray,
35     const int* nItems,
36     const char datatype[],
37     const char iotype[]);
38 void posix_constructname(
39     const char* in,
40     char* out);
41 #endif
42