HP/UX: Make more use of roken

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>
This commit is contained in:
Simon Wilkinson 2011-03-25 17:14:26 +00:00 committed by Derrick Brashear
parent c019e03e70
commit 96916c8fcf
2 changed files with 4 additions and 19 deletions

View File

@ -1250,6 +1250,7 @@ AC_CHECK_HEADERS([ \
sys/statfs.h \
sys/statvfs.h \
sys/socket.h \
sys/sysctl.h \
sys/time.h \
sys/types.h \
sys/un.h \
@ -1341,6 +1342,8 @@ AC_CHECK_FUNCS([ \
sigaction \
strcasestr \
strerror \
sysconf \
sysctl \
timegm \
])
@ -1352,7 +1355,6 @@ dnl haven't found a need for yet, and so haven't imported
AC_CHECK_FUNCS([ \
chown \
fchown \
getdtablesize \
gethostname \
gettimeofday \
localtime_r \
@ -1385,6 +1387,7 @@ AC_REPLACE_FUNCS([ \
erealloc \
err \
errx \
getdtablesize \
getopt \
getprogname \
mkstemp \

View File

@ -29,24 +29,6 @@ utimes(char *file, struct timeval tvp[2])
}
#endif
int
random(void)
{
return rand();
}
void
srandom(int seed)
{
srand(seed);
}
int
getdtablesize(void)
{
return (20);
}
void
setlinebuf(FILE * file)
{