| 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 #define CPUCLOCK_VIRT 1 | 720 #define CPUCLOCK_VIRT 1 |
| 721 #endif | 721 #endif |
| 722 #ifndef CPUCLOCK_SCHED | 722 #ifndef CPUCLOCK_SCHED |
| 723 #define CPUCLOCK_SCHED 2 | 723 #define CPUCLOCK_SCHED 2 |
| 724 #endif | 724 #endif |
| 725 #ifndef CPUCLOCK_PERTHREAD_MASK | 725 #ifndef CPUCLOCK_PERTHREAD_MASK |
| 726 #define CPUCLOCK_PERTHREAD_MASK 4 | 726 #define CPUCLOCK_PERTHREAD_MASK 4 |
| 727 #endif | 727 #endif |
| 728 #ifndef MAKE_PROCESS_CPUCLOCK | 728 #ifndef MAKE_PROCESS_CPUCLOCK |
| 729 #define MAKE_PROCESS_CPUCLOCK(pid, clock) \ | 729 #define MAKE_PROCESS_CPUCLOCK(pid, clock) \ |
| 730 ((~(int)(pid) << 3) | (int)(clock)) | 730 ((int)(~(unsigned)(pid) << 3) | (int)(clock)) |
| 731 #endif | 731 #endif |
| 732 #ifndef MAKE_THREAD_CPUCLOCK | 732 #ifndef MAKE_THREAD_CPUCLOCK |
| 733 #define MAKE_THREAD_CPUCLOCK(tid, clock) \ | 733 #define MAKE_THREAD_CPUCLOCK(tid, clock) \ |
| 734 ((~(int)(tid) << 3) | (int)((clock) | CPUCLOCK_PERTHREAD_MASK)) | 734 ((int)(~(unsigned)(tid) << 3) | \ |
| 735 (int)((clock) | CPUCLOCK_PERTHREAD_MASK)) |
| 735 #endif | 736 #endif |
| 736 | 737 |
| 737 #ifndef FUTEX_WAIT | 738 #ifndef FUTEX_WAIT |
| 738 #define FUTEX_WAIT 0 | 739 #define FUTEX_WAIT 0 |
| 739 #endif | 740 #endif |
| 740 #ifndef FUTEX_WAKE | 741 #ifndef FUTEX_WAKE |
| 741 #define FUTEX_WAKE 1 | 742 #define FUTEX_WAKE 1 |
| 742 #endif | 743 #endif |
| 743 #ifndef FUTEX_FD | 744 #ifndef FUTEX_FD |
| 744 #define FUTEX_FD 2 | 745 #define FUTEX_FD 2 |
| (...skipping 3747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4492 # pragma pop_macro("fstat64") | 4493 # pragma pop_macro("fstat64") |
| 4493 # pragma pop_macro("lstat64") | 4494 # pragma pop_macro("lstat64") |
| 4494 #endif | 4495 #endif |
| 4495 | 4496 |
| 4496 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 4497 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
| 4497 } | 4498 } |
| 4498 #endif | 4499 #endif |
| 4499 | 4500 |
| 4500 #endif | 4501 #endif |
| 4501 #endif | 4502 #endif |
| OLD | NEW |