"Fossies" - the Fresh Open Source Software Archive 
Member "postal-0.76/postal.h" (26 Jan 2021, 1166 Bytes) of package /linux/privat/postal-0.76.tgz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "postal.h" see the
Fossies "Dox" file reference documentation.
1 #ifndef POSTAL_H
2 #define POSTAL_H
3
4 typedef enum
5 {
6 eWONT,
7 eMUST,
8 eNONE
9 } TRISTATE;
10
11 #define VER_STR "0.75"
12
13 #define USE_GNUTLS
14 #ifdef USE_GNUTLS
15 #define GNUTLS_VER "1.4.4"
16 #define USE_SSL
17 #endif
18 #ifdef USE_OPENSSL
19 #define USE_SSL
20 #endif
21
22 #define LINUX_PTHREAD
23
24
25 #if 0
26 #define false 0
27 #define true 1
28 #endif
29
30 #include <stdio.h>
31
32 #define MAX_PROCESSES 400
33 #define MAX_MSG_SIZE 40960
34 // The amount of time between updates to the shared memory region for random
35 // data.
36 #define RAND_TIME 5
37 // The allowable amount of time for results to lag behind the actions that
38 // generated them. Should be a small fraction of a minute. The smaller it
39 // is the more IPC there is.
40 #define RESULTS_LAG 5
41 #define MAX_BYTES_UNREPORTED 40960
42 #define SEM_KEY 4710
43
44 #define CHECK_PERCENT(XX) ((XX) == 100 || rand() % 100 < (XX))
45
46 typedef const char * PCCHAR;
47 typedef char * PCHAR;
48 typedef PCHAR const CPCHAR;
49 typedef PCCHAR const CPCCHAR;
50 typedef void * PVOID;
51 typedef PVOID const CPVOID;
52 typedef const CPVOID CPCVOID;
53
54 typedef enum
55 {
56 eParam = 1,
57 eSystem = 2,
58 eCtrl_C = 5,
59 eNoError = 0,
60 eSocket = -1,
61 eCorrupt = -2,
62 eTimeout = -3,
63 eServer = -4
64 } ERROR_TYPE;
65
66 #endif