|
|
1.1 ! root 1: /* $Source: /src386/usr/bin/pax/config.h,v $ ! 2: * ! 3: * $Revision: 1.1 $ ! 4: * ! 5: * config.h - configuration options for PAX ! 6: * ! 7: * DESCRIPTION ! 8: * ! 9: * This file contains a number of configurable parameters for the ! 10: * PAX software. This files should be edited prior to makeing the ! 11: * package. ! 12: * ! 13: * AUTHOR ! 14: * ! 15: * Mark H. Colburn, NAPS International ([email protected]) ! 16: * ! 17: * Sponsored by The USENIX Association for public distribution. ! 18: * ! 19: * Copyright (c) 1989 Mark H. Colburn. ! 20: * All rights reserved. ! 21: * ! 22: * Redistribution and use in source and binary forms are permitted ! 23: * provided that the above copyright notice and this paragraph are ! 24: * duplicated in all such forms and that any documentation, ! 25: * advertising materials, and other materials related to such ! 26: * distribution and use acknowledge that the software was developed ! 27: * by Mark H. Colburn and sponsored by The USENIX Association. ! 28: * ! 29: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 30: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 31: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 32: */ ! 33: ! 34: #ifndef _PAX_CONFIG_H ! 35: #define _PAX_CONFIG_H ! 36: ! 37: /* Defines */ ! 38: ! 39: /* XENIX_286 (SCO ugh, Xenix system V(?) 286, USG with changes... ! 40: * You will get a warning about DIRSIZ being redefined, ignore it, ! 41: * complain to SCO about include files that are messed up or send ! 42: * mail to [email protected], who can provide some patches to fix ! 43: * your include files. ! 44: * ! 45: * Defining XENIX_286 will automatically define USG. ! 46: * ! 47: */ ! 48: #define XENIX_286 /* Running on a XENIX 286 system */ ! 49: ! 50: /* ! 51: * USG - USG (Unix System V) specific modifications ! 52: * ! 53: * Define USG if you are running Unix System V or some similar variant ! 54: */ ! 55: #define USG /* Running on a USG System */ ! 56: ! 57: /* ! 58: * BSD - BSD (Berkely) specific modifications ! 59: * ! 60: * Define BSD if you are running some version of BSD Unix ! 61: */ ! 62: /*#define BSD*/ /* Running on a BSD System */ ! 63: ! 64: /* ! 65: * DEF_AR_FILE - tar only (required) ! 66: * ! 67: * DEF_AR_FILE should contain the full pathname of your favorite archive ! 68: * device. Normally this would be a tape drive, but it may be a disk drive ! 69: * on those systems that don't have tape drives. ! 70: */ ! 71: #define DEF_AR_FILE "/dev/floppy" /* The default archive on your system */ ! 72: ! 73: /* ! 74: * TTY - device which interactive queries should be directed to (required) ! 75: * ! 76: * This is the device to which interactive queries will be sent to and ! 77: * received from. On most unix systems, this should be /dev/tty, however, on ! 78: * some systems, such as MS-DOS, it my need to be different (e.g. "con:"). ! 79: */ ! 80: #define TTY "/dev/tty" /* for most versions of UNIX */ ! 81: /* #define TTY "con:"*/ /* For MS-DOS */ ! 82: ! 83: /* ! 84: * PAXDIR - if you do not have directory access routines ! 85: * ! 86: * Define PAXDIR if you do not have Doug Gwyn's dirent package installed ! 87: * as a system library or you wish to use the version supplied with PAX. ! 88: * ! 89: * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES. ! 90: */ ! 91: /* #define PAXDIR*/ /* use paxdir.h paxdir.c */ ! 92: ! 93: /* ! 94: * DIRENT - directory access routines (required) ! 95: * ! 96: * If you have Doug Gwyn's dirent package installed, either as a system ! 97: * library, or are using the paxdir.c and paxdir.h routines which come with ! 98: * PAX, then define dirent. ! 99: * ! 100: * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES. ! 101: */ ! 102: #define DIRENT /* use POSIX compatible directory routines */ ! 103: ! 104: /* ! 105: * OFFSET - compiler dependent offset type ! 106: * ! 107: * OFFSET is the type which is returned by lseek(). It is different on ! 108: * some systems. Most define it to be off_t, but some define it to be long. ! 109: */ ! 110: #define OFFSET off_t /* for most BSD, USG and other systems */ ! 111: /* #define OFFSET long*/ /* for most of the rest of them... */ ! 112: ! 113: /* ! 114: * VOID - compiler support for VOID types ! 115: * ! 116: * If your system does not support void, then this should be defined to ! 117: * int, otherwise, it should be left undefined. ! 118: * ! 119: * For ANSI Systems this should always be blank. ! 120: */ ! 121: #ifndef __STDC__ ! 122: /* #define void int*/ /* for system which do support void */ ! 123: #endif ! 124: ! 125: /* ! 126: * SIG_T - return type for the signal routine ! 127: * ! 128: * Some systems have signal defines to return an int *, other return a ! 129: * void *. Please choose the correct value for your system. ! 130: */ ! 131: #define SIG_T void /* signal defined as "void (*signal)()" */ ! 132: /*#define SIG_T int*/ /* signal defined as "int (*signal)()" */ ! 133: ! 134: /* ! 135: * STRCSPN - use the strcspn function included with pax ! 136: * ! 137: * Some systems do not have the strcspn() function in their C libraries. ! 138: * For those system define STRCSPN and the one provided in regexp.c will ! 139: * be used. ! 140: */ ! 141: /*#define STRCSPN*/ /* implementation does not have strcspn() */ ! 142: ! 143: /* ! 144: * END OF CONFIGURATION SECTION ! 145: * ! 146: * Nothing beyond this point should need to be changed ! 147: */ ! 148: ! 149: #ifdef BSD ! 150: #ifdef USG ! 151: #include "You must first edit config.h and Makefile to configure pax." ! 152: #endif ! 153: #endif ! 154: /* ! 155: * Do a little sanity checking ! 156: */ ! 157: #ifdef PAXDIR ! 158: # ifndef DIRENT ! 159: # define DIRENT ! 160: # endif ! 161: #endif ! 162: ! 163: #ifdef XENIX_286 ! 164: # define USG ! 165: #endif /* XENIX_286 */ ! 166: ! 167: #endif /* _PAX_CONFIG_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.