# @(#)conf/os/linux	1.1 12/2/90 06:31:33
#
# linux - For linux OS.
#
# See the file "template" for an explanation of the settings in
# this file.

# OSNAMES - Names defining this operating system
OSNAMES=POSIX_OS:LINUX_OS

# LOCKING_PROTOCOL - macros for efficient file locking
LOCKING_PROTOCOL="\
#include <unistd.h>
#include <sys/file.h>
#define lock_fd(fd)		(flock((fd), LOCK_EX |LOCK_NB) < 0 ? FAIL : SUCCEED)
#define lock_fd_wait(fd)	(flock((fd), LOCK_EX) < 0? FAIL: SUCCEED)
#define unlock_fd(fd)		((void) flock((fd), LOCK_UN))
#define unlock_fd_wait(fd)	((void) flock((fd), LOCK_UN))
#define USE_FCNTL_RD_LOCK
#define lock_fd_rd_wait(fd)	(fcntl_rd_lock(fd))
extern int fcntl_rd_lock();
"

FLOCK_MAILBOX=yes

# MAILBOX_DIR - directory containing user mailbox files
MAILBOX_DIR=/usr/spool/mail

MISC_DEFINES=INET_NTOA_USE_STRUCT

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

# DECLARE_STRINGS - declare string routines, using macros as needed
#define bzero(b,n)	(memset((b),'\0',(n)))
#define bcopy(b1,b2,n)	(memcpy((b2),(b1),(n)))
#define bcmp(b1,b2,n)	(memcmp((b1),(b2),(n)))
#define index	strchr
#define rindex	strrchr

DECLARE_STRINGS="\
#include <string.h>
"

# 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=

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

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

# OS_HAVE - name the capabilities of this operating system
HAVE=RENAME:MKDIR:BSTRING:SYS5_STRLIB:GETOPT:UNAME:DUP2:READDIR:VFPRINTF
HAVE=$HAVE:BSD_NETWORKING:GETHOSTNAME:NDBM:HASH_BANG:FTRUNCATE:BIND
HAVE=$HAVE:SETGROUPS:SETEUID

CASE_NO_NEWLINES=true