/usr/include/net-snmp/system/hpux.h is in libsnmp-dev 5.7.2~dfsg-8.1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | #include "sysv.h"
#undef hpux
#define hpux hpux
#ifdef hpux11
#define NETSNMP_DONT_USE_NLIST 1
#endif
/*
* HP-UX needs _REENTRANT defined to pick up strtok_r.
* Otherwise, at least for 64-bit code, strtok_r will not work
* and will make net-snmp segfault.
*/
#define _REENTRANT 1
#undef TCP_TTL_SYMBOL
#ifndef hpux11
#define TCP_TTL_SYMBOL "ipDefaultTTL"
#endif
#ifndef hpux11
/*
* hpux specific
*/
#define MIB_IPCOUNTER_SYMBOL "MIB_ipcounter"
#define MIB_TCPCOUNTER_SYMBOL "MIB_tcpcounter"
#define MIB_UDPCOUNTER_SYMBOL "MIB_udpcounter"
#endif
#undef ARPTAB_SYMBOL
#ifndef hpux11
#define ARPTAB_SYMBOL "arphd"
#endif
#undef ARPTAB_SIZE_SYMBOL
#ifndef hpux11
#define ARPTAB_SIZE_SYMBOL "arptab_nb"
#endif
#if defined(hpux10) || defined(hpux11)
#undef SWDEVT_SYMBOL
#undef FSWDEVT_SYMBOL
#undef NSWAPFS_SYMBOL
#undef NSWAPDEV_SYMBOL
#undef LOADAVE_SYMBOL
#undef PROC_SYMBOL
#undef NPROC_SYMBOL
#undef TOTAL_MEMORY_SYMBOL
#undef MBSTAT_SYMBOL
#endif
#ifdef hpux11
#undef IPSTAT_SYMBOL
#undef TCP_SYMBOL
#undef TCPSTAT_SYMBOL
#undef UDB_SYMBOL
#undef UDPSTAT_SYMBOL
#undef ICMPSTAT_SYMBOL
#undef IP_FORWARDING_SYMBOL
#undef RTTABLES_SYMBOL
#undef RTHASHSIZE_SYMBOL
#undef RTHOST_SYMBOL
#undef RTNET_SYMBOL
#undef PHYSMEM_SYMBOL
#endif
/*
* ARP_Scan_Next needs a 4th ifIndex argument
*/
#define ARP_SCAN_FOUR_ARGUMENTS
#define rt_pad1 rt_refcnt
/*
* disable inline for non-gcc compiler
*/
#ifndef __GNUC__
# undef NETSNMP_ENABLE_INLINE
# define NETSNMP_ENABLE_INLINE 0
#endif
/*
* prevent sigaction being redefined to cma_sigaction
* (causing build errors on HP-UX 10.20, at least)
*/
#ifdef hpux10
#ifndef _CMA_NOWRAPPERS_
# define _CMA_NOWRAPPERS_ 1
#endif
#endif
/* define the extra mib modules that are supported */
#define NETSNMP_INCLUDE_HOST_RESOURCES
|