OpenMPI  0.1.1
vt_iowrap_helper.h
1 /**
2  * VampirTrace
3  * http://www.tu-dresden.de/zih/vampirtrace
4  *
5  * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6  *
7  * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8  * Centre, Federal Republic of Germany
9  *
10  * See the file COPYING in the package base directory for details
11  **/
12 
13 #ifndef VT_IOWRAP_HELPER_H_
14 #define VT_IOWRAP_HELPER_H_
15 
16 #ifdef __cplusplus
17 # define EXTERN extern "C"
18 #else
19 # define EXTERN extern
20 #endif
21 
22 #include "config.h"
23 
24 #include "vt_inttypes.h"
25 
26 typedef struct {
27  uint32_t vampir_file_id;
28  uint32_t vampir_file_group_id;
29  uint64_t matchingid;
30  uint64_t handle;
32 
33 EXTERN int max_open_files;
34 EXTERN uint32_t file_group_id_stdio;
35 EXTERN uint32_t file_group_id_rest;
36 EXTERN vampir_file_t *fd_to_vampirid;
37 EXTERN vampir_file_t unknown_fd_vampir_file;
38 
39 EXTERN vampir_file_t *get_vampir_file(int fd);
40 EXTERN int get_max_open_files(void);
41 EXTERN void vt_iofile_open(const char* fname, int fd);
42 EXTERN void vt_iofile_close(int fd);
43 EXTERN uint32_t vt_iofile_id(const char* fname);
44 EXTERN void vt_iofile_dupfd(int oldfd, int newfd);
45 
46 #endif /*VT_IOWRAP_HELPER_H_*/
Definition: vt_iowrap_helper.h:26