Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/ntp/config.h
Context not available. | |||||
/* #undef NO_THREADS */ | /* #undef NO_THREADS */ | ||||
/* Default location of crypto key info */ | /* Default location of crypto key info */ | ||||
#define NTP_KEYSDIR "/usr/local/etc" | #define NTP_KEYSDIR "/etc/ntp" | ||||
/* Path to sign daemon rendezvous socket */ | /* Path to sign daemon rendezvous socket */ | ||||
#define NTP_SIGND_PATH "/var/run/ntp_signd" | #define NTP_SIGND_PATH "/var/run/ntp_signd" | ||||
Context not available. | |||||
/* #undef SCO5_CLOCK */ | /* #undef SCO5_CLOCK */ | ||||
/* The size of `char*', as computed by sizeof. */ | /* The size of `char*', as computed by sizeof. */ | ||||
#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) | #ifdef __LP64__ | ||||
imp: #ifdef __LP64__
covers this. | |||||
Done Inline Actions_LP64 or __LP64__ from cc -E -dM - < /dev/null jmg: _LP64 or
```
__LP64__
```
from cc -E -dM - < /dev/null | |||||
#define SIZEOF_CHARP 8 | #define SIZEOF_CHARP 8 | ||||
#else | #else | ||||
#define SIZEOF_CHARP 4 | #define SIZEOF_CHARP 4 | ||||
Context not available. | |||||
#define SIZEOF_INT 4 | #define SIZEOF_INT 4 | ||||
/* The size of `long', as computed by sizeof. */ | /* The size of `long', as computed by sizeof. */ | ||||
#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) | #ifdef __LP64__ | ||||
Done Inline ActionsSame as above. imp: Same as above. | |||||
#define SIZEOF_LONG 8 | #define SIZEOF_LONG 8 | ||||
#else | #else | ||||
#define SIZEOF_LONG 4 | #define SIZEOF_LONG 4 | ||||
Context not available. | |||||
#define SIZEOF_SIGNED_CHAR 1 | #define SIZEOF_SIGNED_CHAR 1 | ||||
/* The size of `time_t', as computed by sizeof. */ | /* The size of `time_t', as computed by sizeof. */ | ||||
#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) | #if defined(__i386__) || defined(__powerpc__) | ||||
Not Done Inline ActionsI think the more proper thing here is #if !defined(i386) && !defined(powerpc) imp: I think the more proper thing here is #if !defined(i386) && !defined(powerpc)
| |||||
Not Done Inline Actionsor swap the orders and make it (reads easier to me): jmg: or swap the orders and make it (reads easier to me):
#if defined(i386) || defined(powerpc)
4… | |||||
Not Done Inline ActionsWouldn't #ifdef LP64 work here too? cy: Wouldn't #ifdef __LP64__ work here too? | |||||
Done Inline ActionsMy code was correct, but this ifdef is wrong. So no, LP64 isn't appropriate here. imp: My code was correct, but this ifdef is wrong.
All mips, no matter the flavor is 8 byte.
i386… | |||||
#define SIZEOF_TIME_T 4 | |||||
#else | |||||
#define SIZEOF_TIME_T 8 | #define SIZEOF_TIME_T 8 | ||||
#else | |||||
#define SIZEOF_TIME_T 4 | |||||
#endif | #endif | ||||
/* Does SIOCGIFCONF return size in the buffer? */ | /* Does SIOCGIFCONF return size in the buffer? */ | ||||
Context not available. | |||||
#define STR_SYSTEM "sparc64-undermydesk-freebsd" | #define STR_SYSTEM "sparc64-undermydesk-freebsd" | ||||
#elif defined(__amd64__) | #elif defined(__amd64__) | ||||
#define STR_SYSTEM "amd64-undermydesk-freebsd" | #define STR_SYSTEM "amd64-undermydesk-freebsd" | ||||
#elif defined(__powerpc64__) | |||||
#define STR_SYSTEM "powerpc64-undermydesk-freebsd" | |||||
#elif defined(__powerpc__) | |||||
#define STR_SYSTEM "powerpc-undermydesk-freebsd" | |||||
#elif defined(__mips64) | |||||
#define STR_SYSTEM "mips64-undermydesk-freebsd" | |||||
#elif defined(__mips__) | |||||
#define STR_SYSTEM "mips-undermydesk-freebsd" | |||||
#elif defined(__aarch64__) | |||||
Done Inline ActionsI think you mean __aarch64__ andrew: I think you mean `__aarch64__` | |||||
#define STR_SYSTEM "arm64-undermydesk-freebsd" | |||||
#elif defined(__arm__) | |||||
#define STR_SYSTEM "arm-undermydesk-freebsd" | |||||
#elif defined(__sparc64__) | |||||
#define STR_SYSTEM "sparc64-undermydesk-freebsd" | |||||
#elif defined(__sparc__) | |||||
#define STR_SYSTEM "sparc-undermydesk-freebsd" | |||||
#elif defined(__ia64__) | |||||
#define STR_SYSTEM "ia64-undermydesk-freebsd" | |||||
#else | #else | ||||
#define STR_SYSTEM "i386-undermydesk-freebsd" | #define STR_SYSTEM "i386-undermydesk-freebsd" | ||||
#endif | #endif | ||||
Context not available. | |||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | ||||
significant byte first (like Motorola and SPARC, unlike Intel). */ | significant byte first (like Motorola and SPARC, unlike Intel). */ | ||||
#if defined AC_APPLE_UNIVERSAL_BUILD | #if defined(__ARMEB__) || defined(__MIPSEB__) || defined(__powerpc__) || \ | ||||
# if defined __BIG_ENDIAN__ | defined(__powerpc64__) || defined(__sparc64__) | ||||
# define WORDS_BIGENDIAN 1 | #define WORDS_BIGENDIAN 1 | ||||
# endif | |||||
#else | |||||
# ifndef WORDS_BIGENDIAN | |||||
/* # undef WORDS_BIGENDIAN */ | |||||
# endif | |||||
#endif | #endif | ||||
/* routine worker child proc uses to exit. */ | /* routine worker child proc uses to exit. */ | ||||
Context not available. |
#ifdef LP64
covers this.