home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / deflt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.5 KB  |  50 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/deflt.h.sl 1.1 4.0 12/08/90 32676 AT&T-USL"
  11. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  12. /*      All Rights Reserved    */
  13.  
  14. /*    This Module contains Proprietary Information of Microsoft  */
  15. /*    Corporation and should be treated as Confidential.       */
  16.  
  17. /*
  18.  *    @(#) deflt.h 1.1 86/10/07 
  19.  */
  20. /***    deflt.h -- include file for deflt(3).
  21.  *
  22.  */
  23.  
  24. #define    DEFLT    "/etc/default"
  25.  
  26. /*
  27.  * Following for defcntl(3).
  28.  * If you add new args, make sure that the default is:
  29.  *    OFF    new-improved-feature-off, i.e. current state of affairs
  30.  *    ON    new-improved-feature-on
  31.  * or that you change the code for deflt(3) to have the old value as the
  32.  * default.  (for compatibility).
  33.  */
  34.  
  35. /* ... cmds */
  36. #define    DC_GETFLAGS    0    /* get current flags */
  37. #define    DC_SETFLAGS    1    /* set flags */
  38.  
  39. /* ... args */
  40. #define    DC_CASE        0001    /* ON: respect case; OFF: ignore case */
  41.  
  42. #define    DC_STD        ((0) | (DC_CASE))
  43.  
  44. extern char *defread();
  45.  
  46. #define    TURNON(flags, mask)    flags |= mask
  47. #define    TURNOFF(flags, mask)    flags &= ~(mask)
  48. #define    ISON(flags, mask)    (((flags) & (mask)) == (mask))
  49. #define    ISOFF(flags, mask)    (((flags) & (mask)) != (mask))
  50.