OLD | NEW |
1 /* Copyright (c) 2005-2011, Google Inc. | 1 /* Copyright (c) 2005-2011, Google Inc. |
2 * All rights reserved. | 2 * All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 long ru_nswap; | 233 long ru_nswap; |
234 long ru_inblock; | 234 long ru_inblock; |
235 long ru_oublock; | 235 long ru_oublock; |
236 long ru_msgsnd; | 236 long ru_msgsnd; |
237 long ru_msgrcv; | 237 long ru_msgrcv; |
238 long ru_nsignals; | 238 long ru_nsignals; |
239 long ru_nvcsw; | 239 long ru_nvcsw; |
240 long ru_nivcsw; | 240 long ru_nivcsw; |
241 }; | 241 }; |
242 | 242 |
243 struct siginfo; | |
244 #if defined(__i386__) || defined(__ARM_EABI__) || defined(__ARM_ARCH_3__) \ | 243 #if defined(__i386__) || defined(__ARM_EABI__) || defined(__ARM_ARCH_3__) \ |
245 || defined(__PPC__) | 244 || defined(__PPC__) |
246 | 245 |
247 /* include/asm-{arm,i386,mips,ppc}/signal.h */ | 246 /* include/asm-{arm,i386,mips,ppc}/signal.h */ |
248 struct kernel_old_sigaction { | 247 struct kernel_old_sigaction { |
249 union { | 248 union { |
250 void (*sa_handler_)(int); | 249 void (*sa_handler_)(int); |
251 void (*sa_sigaction_)(int, struct siginfo *, void *); | 250 void (*sa_sigaction_)(int, siginfo_t *, void *); |
252 }; | 251 }; |
253 unsigned long sa_mask; | 252 unsigned long sa_mask; |
254 unsigned long sa_flags; | 253 unsigned long sa_flags; |
255 void (*sa_restorer)(void); | 254 void (*sa_restorer)(void); |
256 } __attribute__((packed,aligned(4))); | 255 } __attribute__((packed,aligned(4))); |
257 #elif (defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) | 256 #elif (defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) |
258 #define kernel_old_sigaction kernel_sigaction | 257 #define kernel_old_sigaction kernel_sigaction |
259 #endif | 258 #endif |
260 | 259 |
261 /* Some kernel functions (e.g. sigaction() in 2.6.23) require that the | 260 /* Some kernel functions (e.g. sigaction() in 2.6.23) require that the |
(...skipping 16 matching lines...) Expand all Loading... |
278 unsigned long sig[(KERNEL_NSIG + 8*sizeof(unsigned long) - 1)/ | 277 unsigned long sig[(KERNEL_NSIG + 8*sizeof(unsigned long) - 1)/ |
279 (8*sizeof(unsigned long))]; | 278 (8*sizeof(unsigned long))]; |
280 }; | 279 }; |
281 | 280 |
282 /* include/asm-{arm,i386,mips,x86_64,ppc}/signal.h */ | 281 /* include/asm-{arm,i386,mips,x86_64,ppc}/signal.h */ |
283 struct kernel_sigaction { | 282 struct kernel_sigaction { |
284 #ifdef __mips__ | 283 #ifdef __mips__ |
285 unsigned long sa_flags; | 284 unsigned long sa_flags; |
286 union { | 285 union { |
287 void (*sa_handler_)(int); | 286 void (*sa_handler_)(int); |
288 void (*sa_sigaction_)(int, struct siginfo *, void *); | 287 void (*sa_sigaction_)(int, siginfo_t *, void *); |
289 }; | 288 }; |
290 struct kernel_sigset_t sa_mask; | 289 struct kernel_sigset_t sa_mask; |
291 #else | 290 #else |
292 union { | 291 union { |
293 void (*sa_handler_)(int); | 292 void (*sa_handler_)(int); |
294 void (*sa_sigaction_)(int, struct siginfo *, void *); | 293 void (*sa_sigaction_)(int, siginfo_t *, void *); |
295 }; | 294 }; |
296 unsigned long sa_flags; | 295 unsigned long sa_flags; |
297 void (*sa_restorer)(void); | 296 void (*sa_restorer)(void); |
298 struct kernel_sigset_t sa_mask; | 297 struct kernel_sigset_t sa_mask; |
299 #endif | 298 #endif |
300 }; | 299 }; |
301 | 300 |
302 /* include/linux/socket.h */ | 301 /* include/linux/socket.h */ |
303 struct kernel_sockaddr { | 302 struct kernel_sockaddr { |
304 unsigned short sa_family; | 303 unsigned short sa_family; |
(...skipping 3233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3538 # pragma pop_macro("fstat64") | 3537 # pragma pop_macro("fstat64") |
3539 # pragma pop_macro("lstat64") | 3538 # pragma pop_macro("lstat64") |
3540 #endif | 3539 #endif |
3541 | 3540 |
3542 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 3541 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
3543 } | 3542 } |
3544 #endif | 3543 #endif |
3545 | 3544 |
3546 #endif | 3545 #endif |
3547 #endif | 3546 #endif |
OLD | NEW |