~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to include/net-snmp/system/darwin9.h

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-05-16 21:01:27 UTC
  • mfrom: (1.2.4) (1.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20130516210127-y6meyeiobdx0131q
Tags: 5.7.2~dfsg-4ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Don't stop service in runlevels 0 and 6.
  - debian/snmpd.init: LSBify the init script.
  - debian/snmp.preinst, debian/snmp.prerm: Kill any/all processes owned
    by snmp user before install/uninstall.
  - Add apport hook.
* debian/patches/ubuntu-fix-lp-587828.patch: Drop. Fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 * substantially enough to not warrant pretending it is a BSD flavor.
4
4
 * This first section are the vestigal BSD remnants.
5
5
 */
 
6
/* Portions of this file are subject to the following copyright(s).  See
 
7
 * the Net-SNMP's COPYING file for more details and other copyrights
 
8
 * that may apply:
 
9
 */
 
10
/*
 
11
 * Portions of this file are copyrighted by:
 
12
 * Copyright (C) 2007 Apple, Inc. All rights reserved.
 
13
 * Use is subject to license terms specified in the COPYING file
 
14
 * distributed with the Net-SNMP package.
 
15
 */
6
16
 
7
17
/*
8
18
 * BSD systems use a different method of looking up sockaddr_in values 
35
45
 * This section defines Mac OS X 10.5 (and later) specific additions.
36
46
 */
37
47
#define darwin 9
 
48
#ifndef darwin9
 
49
#   define darwin9 darwin
 
50
#endif
38
51
 
39
52
/*
40
53
 * Mac OS X should only use the modern API and definitions.
50
63
#define NETSNMP_INCLUDE_IFTABLE_REWRITES
51
64
 
52
65
/*
 
66
 * use new host resources files as well
 
67
 */
 
68
#define NETSNMP_INCLUDE_HRSWINST_REWRITES
 
69
#define NETSNMP_INCLUDE_HRSWRUN_REWRITES
 
70
#undef NETSNMP_INCLUDE_HRSWRUN_WRITE_SUPPORT
 
71
#define NETSNMP_CAN_GET_DISK_LABEL 1
 
72
 
 
73
/*
53
74
 * Enabling this restricts the compiler to mostly public APIs.
54
75
 */
55
76
#ifndef __APPLE_API_STRICT_CONFORMANCE
82
103
#endif
83
104
 
84
105
/*
85
 
 * Although Darwin does have a kvm.h file, kvm_openfiles etc. always
86
 
 * return null because /dev/kmem was removed completely in OS X 10.5.
87
 
 */
88
 
#undef HAVE_KVM_H
89
 
#undef HAVE_KVM_GETPROCS
90
 
#undef HAVE_KVM_OPENFILES
91
 
 
92
 
/*
93
106
 * Although Darwin does have an fstab.h file, getfsfile etc. always return null.
94
107
 * At least, as of 5.3.
95
108
 */
120
133
#undef STRUCT_in6pcb_HAS_inp_vflag
121
134
 
122
135
/*
 
136
 * utility macro used in several darwin specific files
 
137
 */
 
138
#define SNMP_CFRelease(x) do { if (x) { CFRelease(x); x = NULL; } } while(0)
 
139
 
 
140
/*
123
141
 * Mac OS X runs on both PPC and Intel hardware,
124
142
 *   which handle udpTable index values differently
125
143
 */
127
145
#ifdef TARGET_RT_LITTLE_ENDIAN
128
146
#define UDP_ADDRESSES_IN_HOST_ORDER 1
129
147
#endif
 
148