home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / utssys.h < prev    next >
Encoding:
Text File  |  1990-12-08  |  1021 b   |  48 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/sys/utssys.h.sl 1.1 4.0 12/08/90 22380 AT&T-USL"
  11.  
  12. /*
  13.  * Definitions related to the utssys() system call. 
  14.  */
  15.  
  16. /*
  17.  * "commands" of utssys
  18.  */
  19. #define UTS_UNAME    0x0
  20. #define UTS_USTAT    0x2    /* 1 was umask */
  21. #define UTS_FUSERS    0x3
  22.  
  23. /*
  24.  * Flags to UTS_FUSERS
  25.  */
  26. #define F_FILE_ONLY    0x1
  27. #define F_CONTAINED    0x2
  28.  
  29. /*
  30.  * structure yielded by UTS_FUSERS
  31.  */
  32. typedef struct f_user {
  33.     pid_t    fu_pid;
  34.     int    fu_flags;    /* see below */
  35.     uid_t    fu_uid;    
  36. } f_user_t;
  37.  
  38. /*
  39.  * fu_flags values
  40.  */
  41. #define F_CDIR        0x1
  42. #define F_RDIR        0x2
  43. #define F_TEXT        0x4
  44. #define F_MAP        0x8
  45. #define F_OPEN        0x10
  46. #define F_TRACE        0x20
  47. #define F_TTY        0x40
  48.