backport to buster
[hcoop/debian/openafs.git] / src / util / hputil.c
CommitLineData
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
21int
22utimes(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, &times));
29}
30#endif
31
32void
33setlinebuf(FILE * file)
34{
35 setbuf(file, NULL);
36}
37
38void
39psignal(unsigned int sig, char *s)
40{
41 fprintf(stderr, "%s: signal %d\n", s, sig);
42}
43#endif /* AFS_HPUX_ENV */