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 3926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3937 | 3937 |
3938 #if defined(__aarch64__) | 3938 #if defined(__aarch64__) |
3939 LSS_INLINE _syscall3(int, dup3, int, s, int, d, int, f) | 3939 LSS_INLINE _syscall3(int, dup3, int, s, int, d, int, f) |
3940 LSS_INLINE _syscall6(void *, mmap, void *, addr, size_t, length, int, prot, | 3940 LSS_INLINE _syscall6(void *, mmap, void *, addr, size_t, length, int, prot, |
3941 int, flags, int, fd, int64_t, offset) | 3941 int, flags, int, fd, int64_t, offset) |
3942 LSS_INLINE _syscall4(int, newfstatat, int, dirfd, const char *, pathname, | 3942 LSS_INLINE _syscall4(int, newfstatat, int, dirfd, const char *, pathname, |
3943 struct kernel_stat *, buf, int, flags) | 3943 struct kernel_stat *, buf, int, flags) |
3944 LSS_INLINE _syscall2(int, pipe2, int *, pipefd, int, flags) | 3944 LSS_INLINE _syscall2(int, pipe2, int *, pipefd, int, flags) |
3945 LSS_INLINE _syscall5(int, ppoll, struct kernel_pollfd *, u, | 3945 LSS_INLINE _syscall5(int, ppoll, struct kernel_pollfd *, u, |
3946 unsigned int, n, const struct kernel_timespec *, t, | 3946 unsigned int, n, const struct kernel_timespec *, t, |
3947 const kernel_sigset_t *, sigmask, size_t, s) | 3947 const struct kernel_sigset_t *, sigmask, size_t, s) |
3948 LSS_INLINE _syscall4(int, readlinkat, int, d, const char *, p, char *, b, | 3948 LSS_INLINE _syscall4(int, readlinkat, int, d, const char *, p, char *, b, |
3949 size_t, s) | 3949 size_t, s) |
3950 #endif | 3950 #endif |
3951 | 3951 |
3952 /* | 3952 /* |
3953 * Polyfills for deprecated syscalls. | 3953 * Polyfills for deprecated syscalls. |
3954 */ | 3954 */ |
3955 | 3955 |
3956 #if defined(__aarch64__) | 3956 #if defined(__aarch64__) |
3957 LSS_INLINE int LSS_NAME(dup2)(int s, int d) { | 3957 LSS_INLINE int LSS_NAME(dup2)(int s, int d) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4020 # pragma pop_macro("fstat64") | 4020 # pragma pop_macro("fstat64") |
4021 # pragma pop_macro("lstat64") | 4021 # pragma pop_macro("lstat64") |
4022 #endif | 4022 #endif |
4023 | 4023 |
4024 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) | 4024 #if defined(__cplusplus) && !defined(SYS_CPLUSPLUS) |
4025 } | 4025 } |
4026 #endif | 4026 #endif |
4027 | 4027 |
4028 #endif | 4028 #endif |
4029 #endif | 4029 #endif |
OLD | NEW |