# -*-sh-*-
#ident	"@(#)smail/conf/os:RELEASE-3_2_0_115:sun_os3,v 1.12 2002/09/14 22:00:44 woods Exp"
#
# sun3.0 - define the characteristics of SunOS release 3.x

. $ROOT/conf/os/bsd4.2		# this is mostly a 4.2BSD-based system

# OSNAMES - Names defining this operating system
OSNAMES=$OSNAMES:UNIX_SUN_OS_3:UNIX_SUN_OS

# LOCKING_PROTOCOL - macros for efficient file locking
#
# NOTE: the lockf calls work better than the flock calls over NFS
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))
"

# DECLARE_STRINGS - declare string routines, using macros as needed
# SunOS has proper sysv style support
DECLARE_STRINGS=""

# HAVE - what features should be used with this operating system
HAVE=$HAVE:NDBM:YP:SYS5_STRLIB
HAVE=$HAVE:GETOPT:VFPRINTF
NO_HAVE=STRINGS_H
