Changeset 1922
- Timestamp:
- Apr 26, 2005, 4:59:01 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/sys/sysctl.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1921 r1922 168 168 169 169 #ifdef __INNOTEK_LIBC__ 170 #define sysctl_handle_int __ sysctl_handle_int171 #define sysctl_handle_long __ sysctl_handle_long172 #define sysctl_handle_intptr __ sysctl_handle_intptr173 #define sysctl_handle_string __ sysctl_handle_string174 #define sysctl_handle_opaque __ sysctl_handle_opaque170 #define sysctl_handle_int __libc_sysctl_handle_int 171 #define sysctl_handle_long __libc_sysctl_handle_long 172 #define sysctl_handle_intptr __libc_sysctl_handle_intptr 173 #define sysctl_handle_string __libc_sysctl_handle_string 174 #define sysctl_handle_opaque __libc_sysctl_handle_opaque 175 175 #endif 176 176 … … 191 191 /* Declare a static oid to allow child oids to be added to it. */ 192 192 #define SYSCTL_DECL(name) \ 193 extern struct sysctl_oid_list __ sysctl_##name##_children193 extern struct sysctl_oid_list __libc_sysctl_##name##_children 194 194 195 195 /* Hide these in macros */ … … 199 199 (oid_ptr)->oid_arg1 = (val); 200 200 #define SYSCTL_STATIC_CHILDREN(oid_name) \ 201 (&__ sysctl_##oid_name##_children)201 (&__libc_sysctl_##oid_name##_children) 202 202 203 203 /* === Structs and macros related to context handling === */ … … 212 212 213 213 #define SYSCTL_NODE_CHILDREN(parent, name) \ 214 __ sysctl_##parent##_##name##_children214 __libc_sysctl_##parent##_##name##_children 215 215 216 216 #undef DATA_SET 217 #define DATA_SET(set, data) __asm__ (".stabs \"___ " #set "__\", 25, 0, 0, _" #data)217 #define DATA_SET(set, data) __asm__ (".stabs \"___libc_" #set "__\", 25, 0, 0, _" #data) 218 218 219 219 /* This constructs a "raw" MIB oid. */ 220 220 #define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr) \ 221 static struct sysctl_oid __ sysctl__##parent##_##name = { \222 &__ sysctl_##parent##_children, { &__sysctl__##parent##_##name }, \221 static struct sysctl_oid __libc_sysctl__##parent##_##name = { \ 222 &__libc_sysctl_##parent##_children, { &__libc_sysctl__##parent##_##name }, \ 223 223 nbr, kind, a1, a2, #name, handler, fmt, 0, descr }; \ 224 DATA_SET(sysctl_set, __ sysctl__##parent##_##name)224 DATA_SET(sysctl_set, __libc_sysctl__##parent##_##name) 225 225 226 226 … … 230 230 /* This constructs a node from which other oids can hang. */ 231 231 #define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \ 232 struct sysctl_oid_list SYSCTL_NODE_CHILDREN(parent, name) ;\232 struct sysctl_oid_list SYSCTL_NODE_CHILDREN(parent, name) = {0}; \ 233 233 SYSCTL_OID(parent, nbr, name, CTLTYPE_NODE|(access), \ 234 234 (void*)&SYSCTL_NODE_CHILDREN(parent, name), 0, handler, \ … … 599 599 * Declare some common oids. 600 600 */ 601 #define sysctl__children __ sysctl__children601 #define sysctl__children __libc_sysctl__children 602 602 extern struct sysctl_oid_list sysctl__children; 603 603 SYSCTL_DECL(_kern); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.