Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / config.h @ b9672a84

History | View | Annotate | Download (1.15 KB)

1
/*
2
 *        This file contains all parameters dependent on the
3
 *        operating system and build-time configuration.
4
 */
5

    
6
#ifndef _BIRD_CONFIG_H_
7
#define _BIRD_CONFIG_H_
8

    
9
/* BIRD version */
10
#define BIRD_VERSION "0.0.0"
11

    
12
/* Include parameters determined by configure script */
13
#include "sysdep/autoconf.h"
14

    
15
/* Include OS configuration file as chosen in autoconf.h */
16
#include SYSCONF_INCLUDE
17

    
18
#ifndef MACROS_ONLY
19

    
20
/* Types */
21
typedef signed INTEGER_8 s8;
22
typedef unsigned INTEGER_8 u8;
23
typedef INTEGER_16 s16;
24
typedef unsigned INTEGER_16 u16;
25
typedef INTEGER_32 s32;
26
typedef unsigned INTEGER_32 u32;
27
typedef u8 byte;
28
typedef u16 word;
29

    
30
#endif
31

    
32
/*
33
 * Required alignment for multi-byte accesses. We currently don't
34
 * test these values in configure script, because several CPU's
35
 * have unaligned accesses emulated by OS and they are slower
36
 * than a call to memcpy() which is, in fact, often compiled
37
 * as load/store by GCC on machines which don't require alignment.
38
 */
39

    
40
#define CPU_NEEDS_ALIGN_WORD 2
41
#define CPU_NEEDS_ALIGN_LONG 4
42

    
43
/* Path to configuration file */
44
#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
45
#define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
46

    
47
#endif