convert-volparse-to-afsconfig-and-cleanup-20010605
[openafs.git] / src / util / hputil.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #include <afs/param.h>
11 #ifdef AFS_HPUX_ENV
12 #include <stdio.h>
13 #include <sys/types.h>
14 #include <sys/time.h>
15 #include <utime.h>
16
17 /* insque/remque moved to timer.c where they are used. */
18
19 #ifndef AFS_HPUX102_ENV
20 utimes(file,tvp)
21 char *file;
22 struct timeval tvp[2];
23 {
24         struct utimbuf times;
25         
26         times.actime = tvp[0].tv_sec;
27         times.modtime = tvp[1].tv_sec;
28         return (utime(file,&times));
29 }
30 #endif
31
32 random()
33 {
34         return rand();
35 }
36
37 srandom(seed)
38 {
39         srand(seed);
40 }
41                
42 getdtablesize()
43 {
44         return (20);
45 }
46
47 setlinebuf(file)
48 FILE *file;
49 {
50         setbuf(file,NULL);
51 }
52
53 psignal(sig,s)
54 unsigned sig;
55 char *s;
56 {
57         fprintf (stderr,"%s: signal %d\n",s,sig);
58 }
59 #endif /* AFS_HPUX_ENV */
60