SIONlib  1.6.1
Scalable I/O library for parallel access to task-local files
sion_const.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** SIONLIB http://www.fz-juelich.de/jsc/sionlib **
3 *****************************************************************************
4 ** Copyright (c) 2008-2015 **
5 ** Forschungszentrum Juelich, Juelich Supercomputing Centre **
6 ** **
7 ** See the file COPYRIGHT in the package base directory for details **
8 ****************************************************************************/
9 
16 #ifndef SION_SION_CONST_H
17 #define SION_SION_CONST_H
18 
19 
20 /* return codes for functions signaling success */
21 #define SION_SUCCESS 1
22 #define SION_NOT_SUCCESS 0
23 
24 /* return codes for functions signaling success (used in for callback functions) */
25 #define SION_STD_SUCCESS 0
26 #define SION_STD_NOT_SUCCESS 1
27 
28 /* return codes for functions returning identifier (sid) */
29 #define SION_SMALLEST_VALID_ID 0
30 #define SION_ID_UNDEF -1
31 #define SION_ID_NOT_VALID -1
32 #define SION_UNKNOWN -1
33 #define SION_AUTOMATIC -1
34 
35 /* return codes for functions returning size information */
36 #define SION_SIZE_NOT_VALID -1
37 
38 /* return codes for functions wrapping fwrite/fread */
39 #define SION_ANSI_SIZE_NOT_VALID 0
40 
41 
42 /* SION version information */
43 #define SION_MAIN_VERSION 1
44 #define SION_SUB_VERSION 6
45 #define SION_VERSION_PATCHLEVEL 1
46 
47 /* file format version history:
48  3 -> startpointer are calculated by chunksize
49  and fsblksize, --> alignment
50  4 -> chunksize will be expanded for aligning
51  up to sionlib version 1.4
52  5 -> able to store key value data */
53 #define SION_FILEFORMAT_VERSION 5
54 
55 #ifndef SVN_REV
56 /* include Makefile.svnrev in Makefile and add
57  CFLAGS += -DSVN_REV='"$(SVN_REV)"'
58  to enable SVN_REV */
59 #define SVN_REV "Unknown"
60 #endif
61 #define SION_SVN_VERSION SVN_REV
62 
63 #define SION_LVERSION_PREFIX ""
64 
65 /* SION constants */
66 #define SION_CURRENT_RANK -101
67 #define SION_CURRENT_BLK -102
68 #define SION_CURRENT_CHUNK -102
69 #define SION_CURRENT_BLOCK -102
70 #define SION_CURRENT_POS -103
71 #define SION_ABSOLUTE_POS -104
72 #define SION_END_POS -105
74 /* for sion_dup */
75 #define SION_DUP_ALL -201
76 #define SION_DUP_RANK -202
77 #define SION_DUP_RANK_KEY -203
79 /* for key value */
80 #define SION_KEYVAL_NONE 50
81 #define SION_KEYVAL_INLINE 51
82 #define SION_KEYVAL_META 52
83 #define SION_KEYVAL_HASH 53
84 #define SION_KEYVAL_UNKNOWN 54
85 #define SION_KEYVAL_NOTSET 55
87 /* for callback routines of generic interface */
88 #define _SION_INT32 10
89 #define _SION_INT64 11
90 #define _SION_CHAR 12
91 
92 #endif