# System features file for SunOS 5.x

# Linking order for all libraries in this file:
LIB_TSORT=	-lmail -lresolv -lsocket -lnsl

# Debugging memory allocator
#
MALLOC_LIB=	../libmalloc/libmalloc_d.a

# signal handler return type
SIGNAL_TYPE=	void

SYS_STREAM_H=	<sys/stream.h>
FCNTL_H=	<fcntl.h>
STRING_H=	<string.h>
UNISTD_H=       <unistd.h>
STDLIB_H=       <stdlib.h>
STDARG_H=       <stdarg.h>

# NFS support
# Include:	<mntent.h>
NFS_LIB=
NFS_INCL=
MNTENT_H=	<sys/mntent.h>

# IP IPC
# Library:	network and socket routines
# Include:	<netinet/*.h>, <net/*.h> etc
INET_LIB=	 -lsocket -lnsl
INET_INCL=	

# BIND nameserver
# Library:	BIND resolver routines
# Include:	<netdb.h>, <arpa/nameser.h>, <resolv.h>
# Config file:	/etc/resolv.conf or /usr/etc/resolv.conf or similar
RESOLV_LIB=	-lresolv
RESOLV_INCL=
RESOLV_CONF=	"/etc/resolv.conf"

# We want the DNS versions of gethostbyxxx,
# regardless of /etc/nsswitch.conf.  Sigh.
gethostbyaddr=  res_gethostbyaddr
gethostbyname=  res_gethostbyname

# NDBM
# Library:	dbm_open(), dbm_close(), dbm_fetch(), dbm_store(), dbm_delete(),
#		dbm_firstkey(), dbm_nextkey(), dbm_error(), dbm_clearerr()
# Include:	<ndbm.h>
NDBM_LIB=
NDBM_INCL=

# DBM
# Library:	dbm_init(), fetch(), store(), delete(), firstkey(), nextkey()
# Include:	<dbm.h>
#DBM_LIB=	-ldbm
#DBM_INCL=

# Hosts file routines
# Library:	sethostent(), gethostbyname()
# Include:	<netdb.h>
# Hosts file:	"/etc/hosts"
#HOSTS_LIB=
#HOSTS_INCL=	<netdb.h>
#HOSTS_FILE=	"/etc/hosts"

# Directory reading routines
# Library:	opendir(), readdir(), closedir(), rewinddir()
# Header file:	<sys/dir.h> on BSD, <dirent.h> on SVID, perhaps <ndir.h>
# Type:		either 'direct' or 'dirent' depending on flavour
NDIR_LIB=
NDIR_H=		<dirent.h>
NDIR_TYPE=	dirent

# Syslog routines
# Library:      openlog(), syslog()
# Include:      <syslog.h>
SYSLOG_LIB=
SYSLOG_INCL=

# Mail lock routines
# Library:	maillock(), mailunlock()
# Include:	<maillock.h>
MAILLOCK_LIB=	-lmail
MAILLOCK_INCL=
#MAILLOCK_H=

# Location of time structure definitions
TIME_H=               <sys/time.h>

#PROTOS=

# Set each *_TYPE to the type of the corresponding function (see sysprotos.h)
FREAD_TYPE=	int
FWRITE_TYPE=	int
GETEUID_TYPE=	uid_t
GETUID_TYPE=	uid_t
SPRINTF_TYPE=	int
STRLEN_TYPE=	size_t
UMASK_TYPE=	mode_t
TIMES_TYPE=	clock_t
SETPWENT_TYPE=	void

# Set each variable to indicate the corresponding feature exists in libc
LSTAT=
#SETREUID=
SETEUID=
FCHOWN=
FCHMOD=
STRCHR=
UNAME=
DUP2=
#BSDSETPGRP=
#RLIMIT=
#BINMKDIR=
#BINRMDIR=
RENAME=
STATBLKSIZ=
#BCOPY=
#BZERO=
MEMMOVE=
#NFSMBOX=
#LOCKF=
MAILLOCK=
#UNIONWAIT=
#YP=
GETPWNAM=	# define this if getpwent() iteration is inappropriate
SELECT=
TIMEVAL=
#NOFILE=
BSDNODELAY=
VFPRINTF=
#DBMCLOSE=
FTRUNCATE=
#BSDTIMEZONE=
SYSVTIMEZONE=
#SIGLIST=
SETVBUF=
SETSID=
#GETWD=
STRCSPN=
STRERROR=
STRSIGNAL=
# Use fsync() to flush new messages to disk (libc/mail.c)
FSYNC=

#file system stuff, how to get block size, on sgi want a #include <sys/fs/s5macros.h>
