/usr/include/net-snmp/system/darwin9.h is in libsnmp-dev 5.7.3+dfsg-1.7+deb9u1.
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | /*
* While Darwin 9 (aka, Mac OS X 10.5 Leopard) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
/* Portions of this file are subject to the following copyright(s). See
* the Net-SNMP's COPYING file for more details and other copyrights
* that may apply:
*/
/*
* Portions of this file are copyrighted by:
* Copyright (C) 2007 Apple, Inc. All rights reserved.
* Use is subject to license terms specified in the COPYING file
* distributed with the Net-SNMP package.
*/
/*
* BSD systems use a different method of looking up sockaddr_in values
*/
/* #define NEED_KLGETSA 1 */
/*
* ARP_Scan_Next needs a 4th ifIndex argument
*/
#define ARP_SCAN_FOUR_ARGUMENTS 1
#define CHECK_RT_FLAGS 1
/*
* this is not good enough before freebsd3!
*/
/* #undef HAVE_NET_IF_MIB_H */
/*
* This section adds the relevant definitions from generic.h
* (a file we don't include here)
*/
/*
* udp_inpcb list symbol, e.g. for mibII/udpTable.c
*/
#define INP_NEXT_SYMBOL inp_next
/*
* This section defines Mac OS X 10.5 (and later) specific additions.
*/
#define darwin 9
#ifndef darwin9
# define darwin9 darwin
#endif
/*
* Mac OS X should only use the modern API and definitions.
*/
#ifndef NETSNMP_NO_LEGACY_DEFINITIONS
#define NETSNMP_NO_LEGACY_DEFINITIONS 1
#endif
/*
* looks like the IFTable stuff works better than the mibII versions
*/
#define NETSNMP_INCLUDE_IFTABLE_REWRITES
/*
* use new host resources files as well
*/
#define NETSNMP_INCLUDE_HRSWINST_REWRITES
#define NETSNMP_INCLUDE_HRSWRUN_REWRITES
#undef NETSNMP_INCLUDE_HRSWRUN_WRITE_SUPPORT
#define NETSNMP_CAN_GET_DISK_LABEL 1
/*
* Enabling this restricts the compiler to mostly public APIs.
*/
#ifndef __APPLE_API_STRICT_CONFORMANCE
#define __APPLE_API_STRICT_CONFORMANCE 1
#endif
#ifndef __APPLE_API_UNSTABLE
#define __APPLE_API_UNSTABLE 1
#endif
/*
* Darwin's tools are capable of building multiple architectures in one pass.
* As a result, platform definitions should be deferred until compile time.
*/
#ifdef BYTE_ORDER
# undef WORDS_BIGENDIAN
# if BYTE_ORDER == BIG_ENDIAN
# define WORDS_BIGENDIAN 1
# endif
#endif
/*
* Although Darwin does have an fstab.h file, getfsfile etc. always return null.
* At least, as of 5.3.
*/
#undef HAVE_FSTAB_H
#define SWAPFILE_DIR "/private/var/vm"
#define SWAPFILE_PREFIX "swapfile"
/*
* These apparently used to be in netinet/tcp_timers.h, but went away in
* 10.4.2. Define them here til we find out a way to get the real values.
*/
#define TCPTV_MIN ( 1*PR_SLOWHZ) /* minimum allowable value */
#define TCPTV_REXMTMAX ( 64*PR_SLOWHZ) /* max allowable REXMT value */
/*
* Because Mac OS X is built on Mach, it does not provide a BSD-compatible
* VM statistics API.
*/
#define USE_MACH_HOST_STATISTICS 1
/*
* This tells code that manipulates IPv6 that the structures are unified,
* i.e., IPv4 and IPv6 use the same structs.
* This should eventually be replaced with a configure directive.
*/
/* #define USE_UNIFIED_IPV6_STRUCTS 1 */
#undef STRUCT_in6pcb_HAS_inp_vflag
/*
* utility macro used in several darwin specific files
*/
#define SNMP_CFRelease(x) do { if (x) { CFRelease(x); x = NULL; } } while(0)
/*
* Mac OS X runs on both PPC and Intel hardware,
* which handle udpTable index values differently
*/
#include <TargetConditionals.h>
#ifdef TARGET_RT_LITTLE_ENDIAN
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif
|