home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / pax / 1 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-07  |  4.4 KB  |  153 lines

  1. /* $Source: /u/mark/src/pax/RCS/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 (mark@jhereg.mn.org)
  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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  32.  */
  33.  
  34. #ifndef _PAX_CONFIG_H
  35. #define _PAX_CONFIG_H
  36.  
  37. /* Defines */
  38.  
  39. /*
  40.  * USG - USG (Unix System V) specific modifications
  41.  *
  42.  * Define USG if you are running Unix System V or some similar variant
  43.  */
  44. #define USG     /* Running on a USG System */
  45.  
  46. /*
  47.  * BSD - BSD (Berkely) specific modifications
  48.  *
  49.  * Define BSD if you are running some version of BSD Unix
  50.  */
  51. #define BSD     /* Running on a BSD System */
  52.  
  53. /*
  54.  * DEF_AR_FILE - tar only (required)
  55.  *
  56.  * DEF_AR_FILE should contain the full pathname of your favorite archive
  57.  * device.  Normally this would be a tape drive, but it may be a disk drive
  58.  * on those systems that don't have tape drives.
  59.  */
  60. #define DEF_AR_FILE    "-"    /* The default archive on your system */
  61.  
  62. /*
  63.  * TTY - device which interactive queries should be directed to (required)
  64.  *
  65.  * This is the device to which interactive queries will be sent to and
  66.  * received from.  On most unix systems, this should be /dev/tty, however, on
  67.  * some systems, such as MS-DOS, it my need to be different (e.g. "con:").
  68.  */
  69. #define    TTY    "/dev/tty"    /* for most versions of UNIX */
  70. /* #define    TTY    "con:"        /* For MS-DOS */
  71.  
  72. /*
  73.  * PAXDIR - if you do not have directory access routines
  74.  *
  75.  * Define PAXDIR if you do not have Doug Gwyn's dirent package installed
  76.  * as a system library or you wish to use the version supplied with PAX.  
  77.  *
  78.  * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  79.  */
  80. /* #define PAXDIR        /* use paxdir.h paxdir.c */
  81.  
  82. /*
  83.  * DIRENT - directory access routines (required)
  84.  *
  85.  * If you have Doug Gwyn's dirent package installed, either as a system
  86.  * library, or are using the paxdir.c and paxdir.h routines which come with 
  87.  * PAX, then define dirent. 
  88.  *
  89.  * NOTE: DO NOT DEFINE THIS IF YOU HAVE BERKELEY DIRECTORY ACCESS ROUTINES.
  90.  */
  91. /* #define DIRENT        /* use POSIX compatible directory routines */
  92.  
  93. /*
  94.  * OFFSET - compiler dependent offset type
  95.  * 
  96.  * OFFSET is the type which is returned by lseek().  It is different on
  97.  * some systems.  Most define it to be off_t, but some define it to be long.
  98.  */
  99. #define OFFSET    off_t    /* for most BSD, USG and other systems */
  100. /* #define OFFSET    long    /* for most of the rest of them... */
  101.  
  102. /*
  103.  * VOID - compiler support for VOID types
  104.  *
  105.  * If your system does not support void, then this should be defined to
  106.  * int, otherwise, it should be left undefined.
  107.  *
  108.  * For ANSI Systems this should always be blank.
  109.  */
  110. #ifndef __STDC__
  111. /* #define void    int    /* for system which do support void */
  112. #endif
  113.  
  114. /*
  115.  * SIG_T - return type for the signal routine
  116.  *
  117.  * Some systems have signal defines to return an int *, other return a
  118.  * void *.  Please choose the correct value for your system.
  119.  */
  120. /* #define SIG_T    void    /* signal defined as "void (*signal)()" */
  121. #define SIG_T    int    /* signal defined as "int (*signal)()" */
  122.  
  123. /*
  124.  * STRCSPN - use the strcspn function included with pax
  125.  *
  126.  * Some systems do not have the strcspn() function in their C libraries.
  127.  * For those system define STRCSPN and the one provided in regexp.c will 
  128.  * be used.
  129.  */
  130. /* #define STRCSPN    /* implementation does not have strcspn() */
  131.  
  132. /*
  133.  * END OF CONFIGURATION SECTION
  134.  *
  135.  * Nothing beyond this point should need to be changed
  136.  */
  137.  
  138. #ifdef BSD
  139. #ifdef USG
  140. #include "You must first edit config.h and Makefile to configure pax."
  141. #endif
  142. #endif
  143. /*
  144.  * Do a little sanity checking
  145.  */
  146. #ifdef PAXDIR
  147. #  ifndef DIRENT
  148. #    define DIRENT
  149. #  endif
  150. #endif
  151.  
  152. #endif /* _PAX_CONFIG_H */
  153.