/* -*-c-*- * * $Id: config.h.in,v 1.1 1997/07/21 13:47:52 mdw Exp $ * * Default settings for `become' config.h * * (c) 1997 Mark Wooding */ /*----- Licencing notice --------------------------------------------------* * * This file is part of `become' * * `Become' is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * `Become' is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with `become'; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /*----- Revision history --------------------------------------------------* * * $Log: config.h.in,v $ * Revision 1.1 1997/07/21 13:47:52 mdw * Initial revision * */ #ifndef CONFIG_H #define CONFIG_H /*----- Configuration time ------------------------------------------------*/ /* --- My version number --- */ #define VERSION ??? /* --- Where to find things --- */ /* The `etcdir' contains configuration and state information */ #define ETCDIR "/usr/local/etc" /* Other filenames based on the above */ #define file_KEY (ETCDIR "/become.key") #define file_PID (ETCDIR "/become.pid") #define file_RANDSEED (ETCDIR "/become.random") #define file_RULES (ETCDIR "/become.conf") #define file_SERVER (ETCDIR "/become.server") /* --- Endianness (for transfer and cryptography) --- */ /* If defined, we're big-endian */ #undef WORDS_BIGENDIAN /* --- Swap endianness if necessary (don't alter this lot) --- */ #define END_SWAP(n) \ do { \ register unsigned long x; \ x = n; \ x = ((x<<24) & 0xFF000000ul) | \ ((x<< 8) & 0x00FF0000ul) | \ ((x>> 8) & 0x0000FF00ul) | \ ((x>>24) & 0x000000FFul); \ n = x; \ } while (0); #ifdef WORDS_BIGENDIAN # define TO_BIG_END(x) ((void)0) # define FROM_BIG_END(x) ((void)0) # define TO_LITTLE_END(x) END_SWAP(x) # define FROM_LITTLE_END(x) END_SWAP(x) #else # define TO_BIG_END(x) END_SWAP(x) # define FROM_BIG_END(x) END_SWAP(x) # define TO_LITTLE_END(x) ((void)0) # define FROM_LITTLE_END(x) ((void)0) #endif /* --- Find a suitable 32-bit type --- */ /* Define to be the size of an int */ #define SIZEOF_INT 4 #if SIZEOF_INT < 4 typedef unsigned long uint_32; #else typedef unsigned int uint_32; #endif /* --- Path separator character --- */ /* This is replaced by `/' by `configure' -- leave alone for DOSness */ #define PATHSEP '\\' /* --- Whether to do debugging --- */ #ifndef TEST_RIG #undef NDEBUG #endif #ifdef NDEBUG # define D(x) /* empty */ #else # define D(x) x #endif /* --- YP support --- */ #undef HAVE_YP /* --- Useful types --- */ /* Type representing a user id */ #undef uid_t /* Type representing a group id */ #undef gid_t /* Type representing a process id */ #undef pid_t /*----- That's all, folks -------------------------------------------------*/ #endif