Commit | Line | Data |
---|---|---|
805e021f CE |
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 <afsconfig.h> | |
11 | #include <afs/param.h> | |
12 | ||
13 | #include <roken.h> | |
14 | ||
15 | #ifdef AFS_HPUX_ENV | |
16 | #include <utime.h> | |
17 | ||
18 | /* insque/remque moved to timer.c where they are used. */ | |
19 | ||
20 | #ifndef AFS_HPUX102_ENV | |
21 | int | |
22 | utimes(char *file, 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, ×)); | |
29 | } | |
30 | #endif | |
31 | ||
32 | void | |
33 | setlinebuf(FILE * file) | |
34 | { | |
35 | setbuf(file, NULL); | |
36 | } | |
37 | ||
38 | void | |
39 | psignal(unsigned int sig, char *s) | |
40 | { | |
41 | fprintf(stderr, "%s: signal %d\n", s, sig); | |
42 | } | |
43 | #endif /* AFS_HPUX_ENV */ |