home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2619 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-29  |  2.1 KB  |  63 lines

  1. /*
  2.  *    @(#) config.h    1.1 91/01/26 
  3.  *
  4.  *    Copyright (C) 1991 by Christian Schlichtherle
  5.  *                  (chris@attron.ruhr.sub.org)
  6.  *    
  7.  *    Permission is hereby granted to use, copy, modify or distribute
  8.  *    this file at will unless this copyright notice is removed.
  9.  *    The author disclaims any kind of warranty.
  10.  *
  11.  *    config.h - C include file for binst(C).
  12.  */
  13.  
  14. #define INT_SIG            /* You have int (*signal())() */
  15. #undef VOID_SIG            /* You have void (*signal())() */
  16.  
  17. /*
  18.  * This is the name of the public binary directory.
  19.  */
  20. #define PUBBIN    "/u/bin"
  21.  
  22. /*
  23.  * Define wether you should be able to install programs you do not
  24.  * own but you can read or if you are only allowed to install your
  25.  * own programs.
  26.  */
  27. /* #define INSTALL_OTHER    /* Install all programs with read permission */
  28.  
  29. /*
  30.  * Define wether the destination file's owner and group should
  31.  * be set to the source's owner and group or if it should be
  32.  * set to the real user id and the real group id of the process.
  33.  * To get in effect the INSTALL_OTHER flag must be set.
  34.  */
  35. #define SRC_OWNER        /* Set owner and group to the source's one   */
  36.  
  37. /*
  38.  * Define wether you want to be able to overwrite other user's installed
  39.  * programs or not.
  40.  */
  41. /* #define OVERWRITE        /* Overwrite other user's installed programs */
  42.  
  43. /*
  44.  * The following flag appears to updates only.
  45.  * Define wether an update to an installed program is restricted to
  46.  * the owner of that program or not.
  47.  * To get in effect the INSTALL_OTHER and the SRC_OWNER flag must be set
  48.  * and the OVERWRITE flag must be cleared.
  49.  */
  50. #define OWNER_UPDATE        /* Only owner is allowed to make an update   */
  51.  
  52. /*
  53.  * Define wether the destination file should have the set user id and
  54.  * set group id bit on if the source file has it or not.
  55.  * This flag also effects the sticky bit. If it is not set the sticky
  56.  * bit will always be cleared.
  57.  * To get in effect this flag requires the binst(C) program to
  58.  * have the set user id bit set for root.
  59.  * Note that all installed programs are given 0755 permission at least
  60.  * unless they have the SETUID, SETGIG or sticky bit set.
  61.  */
  62. #define SETUID            /* Set user and group id bit if source has   */
  63.