Make more use of roken on HP/UX by letting it provide definitions
for random and srandom, and using its implementation of
getdtablesize
Change-Id: I1212c77ea9cc6ef436cfc5c16e893aefbc33d31b
Reviewed-on: http://gerrit.openafs.org/4341
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
sys/statfs.h \
sys/statvfs.h \
sys/socket.h \
+ sys/sysctl.h \
sys/time.h \
sys/types.h \
sys/un.h \
sigaction \
strcasestr \
strerror \
+ sysconf \
+ sysctl \
timegm \
])
AC_CHECK_FUNCS([ \
chown \
fchown \
- getdtablesize \
gethostname \
gettimeofday \
localtime_r \
erealloc \
err \
errx \
+ getdtablesize \
getopt \
getprogname \
mkstemp \
}
#endif
-int
-random(void)
-{
- return rand();
-}
-
-void
-srandom(int seed)
-{
- srand(seed);
-}
-
-int
-getdtablesize(void)
-{
- return (20);
-}
-
void
setlinebuf(FILE * file)
{