hpux.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_COMPAT_OS_HPUX_H
10 #define SQUID_COMPAT_OS_HPUX_H
11 
12 #if _SQUID_HPUX_
13 
14 /****************************************************************************
15  *--------------------------------------------------------------------------*
16  * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
17  *--------------------------------------------------------------------------*
18  ****************************************************************************/
19 
20 #if !defined(HAVE_GETPAGESIZE)
21 #define HAVE_GETPAGESIZE
22 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
23 #endif
24 
25 /*
26  * getrusage(...) not available on some HPUX
27  */
28 #if !HAVE_GETRUSAGE
29 #define HAVE_GETRUSAGE 1
30 #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
31 #endif
32 
33 /*
34  * getpagesize(...) not available on HPUX
35  */
36 #if !defined(HAVE_GETPAGESIZE)
37 #define HAVE_GETPAGESIZE
38 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
39 #endif
40 
41 #endif /* _SQUID_HPUX_ */
42 #endif /* SQUID_COMPAT_OS_HPUX_H */
43 

 

Introduction

Documentation

Support

Miscellaneous