]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/hpux.h
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_OS_HPUX_H
10 #define SQUID_OS_HPUX_H
14 /****************************************************************************
15 *--------------------------------------------------------------------------*
16 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
17 *--------------------------------------------------------------------------*
18 ****************************************************************************/
20 #if !defined(HAVE_GETPAGESIZE)
21 #define HAVE_GETPAGESIZE
22 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
26 * getrusage(...) not available on some HPUX
29 #define HAVE_GETRUSAGE 1
30 #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
34 * getpagesize(...) not available on HPUX
36 #if !defined(HAVE_GETPAGESIZE)
37 #define HAVE_GETPAGESIZE
38 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
41 #endif /* _SQUID_HPUX_ */
42 #endif /* SQUID_OS_HPUX_H */