home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / maillock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.2 KB  |  35 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/maillock.h.sl 1.1 4.0 12/08/90 2799 AT&T-USL"
  11.  
  12. #ifdef SVR3
  13. #     define    MAILDIR        "/usr/mail/"
  14. #     define    SAVEDIR        "/usr/mail/:saved/"
  15. #else
  16. #     define    MAILDIR        "/var/mail/"
  17. #     define    SAVEDIR        "/var/mail/:saved/"
  18. #endif
  19.  
  20. #define    L_SUCCESS    0
  21. #define    L_NAMELEN    1    /* recipient name > 13 chars */
  22. #define    L_TMPLOCK    2    /* problem creating temp lockfile */
  23. #define L_TMPWRITE    3    /* problem writing pid into temp lockfile */
  24. #define    L_MAXTRYS    4    /* cannot link to lockfile after N tries */
  25. #define    L_ERROR        5    /* Something other than EEXIST happened */
  26. #define    L_MANLOCK    6    /* cannot set mandatory lock on temp lockfile */
  27.  
  28. #if defined(__STDC__) || defined(__cplusplus)
  29. extern int maillock(char *user, int retrycnt);
  30. extern int mailunlock(void);
  31. #else
  32. extern int maillock();
  33. extern int mailunlock();
  34. #endif
  35.