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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
|
/* include/tweak.h. Generated automatically by configure. */
#ifndef _FSP_TWEAK_H_
#define _FSP_TWEAK_H_
/* define this if your system allows file names > 14 characters */
#define HAVE_LONG_FILE_NAMES 1
/* Define if you have dirent.h. */
#define DIRENT 1
/* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT
/* Define if you have unistd.h. */
#define HAVE_UNISTD_H 1
/* Define this if you have tzfile.h */
#undef HAVE_TZFILE_H
/* Define if you have the vprintf function. */
#undef HAVE_VPRINTF
/* Define this if your compiler understands ANSI prototyping */
#define HAVE_ANSI_PROTO 1
/* Define if you have the ANSI C header files. (ansi strings, ctype, etc.) */
#define STDC_HEADERS 1
/* Define this if you are running on an AIX system. */
#undef _ALL_SOURCE
/* Define this if you have posix compliance
#undef _POSIX_SOURCE
/* Define if you don't have dirent.h, but have sys/dir.h. */
#undef SYSDIR
/* Define if you don't have dirent.h, but have sys/ndir.h. */
#undef SYSNDIR
/* Define if the closedir function returns void instead of int. */
#undef VOID_CLOSEDIR
/* Define to `int' if <sys/types.h> doesn't define. */
#undef uid_t
#undef gid_t
#undef pid_t
#undef mode_t
#undef size_t
#undef nlink_t
/* Define HAVE_D_INO if you have d_ino in dirent (or direct) struct */
/* see /usr/include/dir.h or ndir.h or dirent.h */
#define HAVE_D_INO 1
/* Define HAVE_D_FILENO if you have d_fileno in dirent (or direct) struct */
/* see /usr/include/dir.h or ndir.h or dirent.h */
#define HAVE_D_FILENO 1
/* Define to empty if the keyword does not work. */
#undef const
/* Define the following if your site has a funky bsearch */
#undef bsearch
/* define the following if your site doesn't define 'strdup()' */
#undef NEED_STRDUP
/* define the following if your site doesn't define 'random()' */
#undef NEED_RANDOM
/* define the following if your site doesn't define 'bcopy()' */
#undef NEED_BCOPY
/* Define the following if your site has lockf() */
#define HAVE_LOCKF 1
/* Define the following if you site has shared memory */
#define HAVE_SHMEM 1
/* Define the following if your system has flock() */
#define HAVE_FLOCK 1
/* define this if WEXITSTATUS is defined on your system */
#define HAVE_WEXITSTATUS 1
/* define this if S_ISREG is defined on your system */
#define HAVE_S_ISREG 1
/* define this if S_ISDIR is defined on your system */
#define HAVE_S_ISDIR 1
/* define this if you have 'union wait' in <sys/wait.h> */
#ifndef __hpux
#define HAVE_UNION_WAIT 1
#endif
/* define this if you have SECSPERDAY */
#undef HAVE_SECSPERDAY
/* define this if you have DAYSPERNYEAR */
#undef HAVE_DAYSPERNYEAR
/* define this if your have strings.h */
#define HAVE_STRINGS_H 1
/* define this if your have string.h */
#define HAVE_STRING_H 1
/* define this if you have memory.h */
#define HAVE_MEMORY_H 1
/* define this if your string.h has bogus type declarations for a few things */
#undef STRING_H_BOGUS
/* These two will be automatically set by the configure script if needed */
#define USE_SECSPERDAY (long)60*60*24
#define USE_DAYSPERNYEAR 365
/* defined if these data types have the indicated sizes in bytes */
#define SIZE_SRT_2 1
#define SIZE_LNG_4 1
#undef SIZE_INT_2
#define SIZE_INT_4 1
#ifndef HAVE_WEXITSTATUS
#define WEXITSTATUS(x) ((x).w_T.w_Retcode)
#endif
#ifndef HAVE_S_ISREG
#define S_ISREG(mode) ((mode) & S_IFREG)
#endif
#ifndef HAVE_S_ISREG
#define S_ISDIR(mode) ((mode) & S_IFDIR)
#endif
#if defined(DIRENT)
#define HAVE_STRUCT_DIRENT
#else
#undef HAVE_STRUCT_DIRENT
#endif
#ifndef HAVE_SECSPERDAY
#define SECSPERDAY USE_SECSPERDAY
#endif
#ifndef HAVE_DAYSPERNYEAR
#define DAYSPERNYEAR USE_DAYSPERNYEAR
#endif
#if defined(HAVE_D_INO) && !defined(HAVE_D_FILENO)
#define d_fileno d_ino
#else
#if !defined(HAVE_D_INO) && defined(HAVE_D_FILENO)
#define d_ino d_fileno
#endif
#endif
/****************************************************************************
* Macros to read and write multi-byte fields from the message header.
****************************************************************************/
#if defined(SIZE_SRT_2)
#define WORD_TYPE_2 unsigned short
#else
#if defined(SIZE_INT_2)
#define WORD_TYPE_2 unsigned
#endif
#endif
#if defined(SIZE_LNG_4)
#define WORD_TYPE_4 unsigned long
#else
#if defined(SIZE_INT_4)
#define WORD_TYPE_4 unsigned
#endif
#endif
#ifdef WORD_TYPE_4
/* there is an integer type of size 4 */
#define BB_READ4(V) ntohl(*(WORD_TYPE_4 *)(V))
#define BB_WRITE4(V,A) *(WORD_TYPE_4 *)(V) = htonl(A)
#else
/* there is no integer type of size 4 */
#define BB_READ4(V) ((((V)[0] << 24) & 0xff000000) + \
(((V)[1] << 16) & 0x00ff0000) + \
(((V)[2] << 8) & 0x0000ff00) + \
(((V)[3] ) & 0x000000ff))
#define BB_WRITE4(V,A) ((V)[0] = ((A) >> 24) & 0xff, \
(V)[1] = ((A) >> 16) & 0xff, \
(V)[2] = ((A) >> 8) & 0xff, \
(V)[3] = ((A) ) & 0xff)
#endif
#ifdef WORD_TYPE_2
/* there is an integer type of size 2 */
#define BB_READ2(V) ntohs(*(WORD_TYPE_2 *)(V))
#define BB_WRITE2(V,A) *(WORD_TYPE_2 *)(V) = htons(A)
#else
/* there is no integer type of size 2 */
#define BB_READ2(V) ((((V)[0] << 8) & 0xff00) + \
(((V)[1] ) & 0x00ff))
#define BB_WRITE2(V,A) ((V)[0] = ((A) >> 8) & 0xff, \
(V)[1] = ((A) ) & 0xff)
#endif
#include "proto.h"
#endif /* _FSP_TWEAK_H_ */
|