File: config_nws.h

package info (click to toggle)
nws 2.11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,700 kB
  • ctags: 2,820
  • sloc: ansic: 28,849; sh: 3,289; java: 1,205; makefile: 697; perl: 12
file content (168 lines) | stat: -rw-r--r-- 3,625 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* Include/config_nws.h.  Generated automatically by configure.  */
/* $Id: config_nws.h.in,v 1.23 2004/08/19 23:44:37 graziano Exp $ */

#ifndef CONFIG_H
#define CONFIG_H

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef NULL
#  define NULL 0
#endif

/* NWS version number */
#define VERSION "2.11"

/* Preserve 2.0 interface with this definition */
/* #undef NWS_API_COMPAT */

/* Define if you have the sys/statfs.h header.  */
#define HAVE_SYS_TYPES_H 1
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

/* Define to `int' if <sys/types.h> doesn't define.  */
/* #undef pid_t */

/* Define if you have the alarm function.  */
#define HAVE_ALARM 1

/* Define if you have the getrusage function.  */
#define HAVE_GETRUSAGE 1

/* Define if you have the sighold function.  */
#define HAVE_SIGHOLD 1

/* Define if you have the sigrelse function.  */
#define HAVE_SIGRELSE 1

/* Define if you have the statvfs function.  */
#define HAVE_STATVFS 1

/* Define if you have the sys/vfs.h header.  */
#define HAVE_SYS_VFS_H 1

/* Define if you have the sys/statfs.h header.  */
#define HAVE_SYS_STATFS_H 1

/* Define if you have the sys/param.h header.  */
#define HAVE_SYS_PARAM_H 1

/* Define if you have the sys/mount.h header.  */
#define HAVE_SYS_MOUNT_H 1

/* Define if you have the dirent.h & Co. header.  */
#define HAVE_DIRENT_H 1
/* #undef HAVE_SYS_NDIR_H */
/* #undef HAVE_SYS_DIR_H */
/* #undef HAVE_NDIR_H */


/* Define if you have the utmp.h header.  */
#define HAVE_UTMP_H 1

/* Define if you have the utmpx.h header.  */
#define HAVE_UTMPX_H 1

/* define if time.h and sys/time.h can be both included */
#define TIME_WITH_SYS_TIME 1
#define HAVE_SYS_TIME_H 1

/* pthread header is present */
/* #undef HAVE_PTHREAD_H */

/* define if sys/resource.h is present */
#define HAVE_SYS_RESOURCE_H 1

/* define if sys/resource.h is present */
#define HAVE_LIMITS_H 1

/* look for the postgresql include and library */
/* #undef HAVE_LIPQ_FE_H */
/* #undef HAVE_POSTGRESQL_LIBPQ_FE_H */
/* #undef HAVE_LIBPQ */
#if defined(HAVE_LIBPQ) && (defined(HAVE_POSTGRESQL_LIBPQ_FE_H) || defined(HAVE_LIBPQ_FE_H))
#	define NWS_WITH_DB
#endif

/* Define if you have getutent function.  */
#define HAVE_GETUTENT 1

/* Define if you have getutxent function.  */
#define HAVE_GETUTXENT 1

/* Define if you have the sysconf function.  */
#define HAVE_SYSCONF 1

/* Define if you have strcasecmp */
#define HAVE_STRCASECMP 1
#ifdef HAVE_STRCASECMP
int
strcasecmp(const char*, const char *);
#endif

/* Define if you have strbcasecmp */
#define HAVE_STRNCASECMP 1
#ifdef HAVE_STRNCASECMP
#include <stdlib.h>
int
strncasecmp(const char*, const char *, size_t n);
#endif

/* Define if you have the getpgid function.  */
#define HAVE_GETPGID 1
#ifdef HAVE_GETPGID
#include <unistd.h>
pid_t
getpgid(pid_t);
#endif

/* Define if we have opendir */
/* #undef HAVE_OPENDIR */

/* Define if we have readdir */
/* #undef HAVE_READDIR */

/* Define to the (char *) version of the NWS sources. */
#define VERSION "2.11"

/* Define as the path to the `uptime' program. */
#define UPTIME_PATH "/usr/bin/uptime"

/* Define as the path to the `vmstat' program. */
#define VMSTAT_PATH "/usr/bin/vmstat"

/* use the experimental sensors */
/* #undef EXPERIMENTAL */

/* we are compiling with debug options */
#define WITH_DEBUG 1

/* where PS is */
#define PS "/bin/ps"

/* where netlogger is */
/* #undef WITH_NETLOGGER */

#ifndef MALLOC
#	define MALLOC(size) malloc ((size)==0?1:(size))
#endif

#ifndef FREE
#	define FREE(ptr) \
	if (ptr != NULL) { \
		free(ptr); \
		ptr = NULL; \
	}
#endif

#ifdef __cplusplus
}
#endif

#endif