# -*-sh-*-
#ident	"@(#)smail/conf/os:RELEASE-3_2_0_115:posix,v 1.9 2003/03/27 16:45:53 woods Exp"
#
# posix - for any system providing APIs comforming to P1003.1-1990
#
# This is intended for inclusion by operating systems that support
# posix and standard C.  Such systems may wish to enable addition
# smail features that are not specifically listed in POSIX.
#
# Some parameters that are not specifically defined in POSIX default
# to those used by SunOS-4.0 and System V Release 4.

# See the file "template" for an explanation of the settings in
# this file.

# OSNAMES - Names defining this operating system
OSNAMES=POSIX_OS

# LOCKING_PROTOCOL - macros for efficient file locking
LOCKING_PROTOCOL="\
#define LOCK_REQUIRES_WRITE
#define lock_fd(fd)		(lockf((fd), F_TLOCK, 0L) < 0? FAIL: SUCCEED)
#define lock_fd_wait(fd)	(lockf((fd), F_LOCK, 0L) < 0? FAIL: SUCCEED)
#define unlock_fd(fd)		((void) lockf((fd), F_ULOCK, 0L))
#define unlock_fd_wait(fd)	((void) lockf((fd), F_ULOCK, 0L))
#define USE_FCNTL_RD_LOCK
#define lock_fd_rd(fd)		(fcntl_rd_lock(fd))
#define lock_fd_rd_wait(fd)	(fcntl_rd_lock_wait(fd))
"

# MAILBOX_DIR - directory containing user mailbox files
MAILBOX_DIR=/var/mail

# CONSOLE - name of the console device file
CONSOLE=/dev/console

# SECURE_PATH - guess at secure path (specific OS's should probably override)
SECURE_PATH=/bin:/usr/bin

# DRIVER_CONFIGURATION - configuration file describing smail drivers
DRIVER_CONFIGURATION=unix-generic

# RANLIB - how do we organize an existing object archive library
RANLIB=:

# CHOWN - command to use for accessing the chown program
CHOWN=chown

# OS_HAVE - name the capabilities of this operating system
HAVE=$HAVE:DUP2
HAVE=$HAVE:GETOPT
HAVE=$HAVE:MEMMOVE
HAVE=$HAVE:MKDIR
HAVE=$HAVE:READDIR
HAVE=$HAVE:RENAME
HAVE=$HAVE:STDLIB_H
HAVE=$HAVE:STRERROR
HAVE=$HAVE:SYS5_STRLIB
HAVE=$HAVE:UNAME
HAVE=$HAVE:UNISTD_H
HAVE=$HAVE:UTIME_H
HAVE=$HAVE:VFPRINTF

# MISC_DEFINES - miscellaneous defines
MISC_DEFINES=$MISC_DEFINES:NO_WAIT_USE_UNION
MISC_DEFINES=$MISC_DEFINES:STDC_HEADERS
MISC_DEFINES=$MISC_DEFINES:MALLOC_DECLARED
# NOTE: P1003.1-2001 will typedef rlim_t, but -1990 didn't, so no RLIM_T_DECLARED
