home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / contrib / smail / smail-3.1 / smail-3 / smail-3.1.28 / conf / os / posix < prev    next >
Text File  |  1990-12-02  |  2KB  |  61 lines

  1. # @(#)conf/os/posix    1.1 12/2/90 06:31:33
  2. #
  3. # poxix - base os file for any P1003.1/X3J11-conformant system
  4. #
  5. # This is intended for inclusion by operating systems that support
  6. # posix and standard C.  Such systems may wish to enable addition
  7. # smail features that are not specifically listed in POSIX.
  8. #
  9. # Some parameters that are not specifically defined in POSIX default
  10. # to those used by SunOS-4.0 and System V Release 4.
  11.  
  12. # See the file "template" for an explanation of the settings in
  13. # this file.
  14.  
  15. # OSNAMES - Names defining this operating system
  16. OSNAMES=POSIX_OS
  17.  
  18. # LOCKING_PROTOCOL - macros for efficient file locking
  19. LOCKING_PROTOCOL="\
  20. #include <unistd.h>
  21. #define LOCK_REQUIRES_WRITE
  22. #define lock_fd(fd)        (lockf((fd), F_TLOCK, 0L) < 0? FAIL: SUCCEED)
  23. #define lock_fd_wait(fd)    (lockf((fd), F_LOCK, 0L) < 0? FAIL: SUCCEED)
  24. #define unlock_fd(fd)        ((void) lockf((fd), F_ULOCK, 0L))
  25. #define unlock_fd_wait(fd)    ((void) lockf((fd), F_ULOCK, 0L))
  26. #define USE_FCNTL_RD_LOCK
  27. #define lock_fd_rd_wait(fd)    (fcntl_rd_lock(fd))
  28. extern int fcntl_rd_lock();
  29. "
  30.  
  31. # MAILBOX_DIR - directory containing user mailbox files
  32. MAILBOX_DIR=/var/mail
  33.  
  34. # CONSOLE - name of the console device file
  35. CONSOLE=/dev/console
  36.  
  37. # DECLARE_STRINGS - declare string routines, using macros as needed
  38. DECLARE_STRINGS="\
  39. #include <string.h>
  40. #define bzero(b,n)    (memset((b),'\0',(n)))
  41. #define bcopy(b1,b2,n)    (memcpy((b2),(b1),(n)))
  42. #define bcmp(b1,b2,n)    (memcmp((b1),(b2),(n)))
  43. #define index    strchr
  44. #define rindex    strrchr
  45. "
  46.  
  47. # SECURE_PATH - guess at secure path (specific OS's should probably override)
  48. SECURE_PATH=/bin:/usr/bin
  49.  
  50. # DRIVER_CONFIGURATION - configuration file describing smail drivers
  51. DRIVER_CONFIGURATION=unix-generic
  52.  
  53. # RANLIB - how do we organize an existing object archive library
  54. RANLIB=:
  55.  
  56. # CHOWN - command to use for accessing the chown program
  57. CHOWN=chown
  58.  
  59. # OS_HAVE - name the capabilities of this operating system
  60. HAVE=RENAME:MKDIR:BSTRING:SYS5_STRLIB:GETOPT:UNAME:DUP2:READDIR:VFPRINTF
  61.