From: Simon Wilkinson Date: Fri, 25 Mar 2011 17:14:26 +0000 (+0000) Subject: HP/UX: Make more use of roken X-Git-Tag: upstream/1.8.0_pre1^2~3981 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=96916c8fcfa6832bd485a9e0b9d61fa6b23a30d9;p=packages%2Fo%2Fopenafs.git 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 Reviewed-by: Derrick Brashear --- diff --git a/acinclude.m4 b/acinclude.m4 index ff01db48b..6ed38edb3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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 \ diff --git a/src/util/hputil.c b/src/util/hputil.c index 3e9ae038e..0613e4e27 100644 --- a/src/util/hputil.c +++ b/src/util/hputil.c @@ -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) {