diff options
author | Elliott Hughes <enh@google.com> | 2017-08-17 22:34:21 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-08-18 00:00:38 +0000 |
commit | ff26a16c1de7be696719e9001f0707b7c55b52cf (patch) | |
tree | 1f2667df4a1ed2dd79cb53a6231cb88d3d9ade13 /libc/include/sys | |
parent | 9af9120091ceb96641d7c6c645fabad96db4bc0d (diff) | |
download | android_bionic-ff26a16c1de7be696719e9001f0707b7c55b52cf.tar.gz android_bionic-ff26a16c1de7be696719e9001f0707b7c55b52cf.tar.bz2 android_bionic-ff26a16c1de7be696719e9001f0707b7c55b52cf.zip |
Re-submit "Name function arguments in libc headers for Studio."
This reverts commit 9af9120091ceb96641d7c6c645fabad96db4bc0d (a revert
of 079bff4fa52b0c3c76057451cc9cdecf1827fce0), now the versioner bug is
fixed.
Bug: http://b/64613623 # header bug
Bug: http://b/64802958 # versioner bug
Change-Id: I1cb9d7832d4b3aecdc57a9285e2291443e59d02d
Diffstat (limited to 'libc/include/sys')
45 files changed, 237 insertions, 243 deletions
diff --git a/libc/include/sys/_system_properties.h b/libc/include/sys/_system_properties.h index f8dbd3305..67beb9abe 100644 --- a/libc/include/sys/_system_properties.h +++ b/libc/include/sys/_system_properties.h @@ -61,14 +61,14 @@ __BEGIN_DECLS ** Map the property area from the specified filename. This ** method is for testing only. */ -int __system_property_set_filename(const char *filename); +int __system_property_set_filename(const char* __filename); /* ** Initialize the area to be used to store properties. Can ** only be done by a single process that has write access to ** the property area. */ -int __system_property_area_init(); +int __system_property_area_init(void); /* Read the global serial number of the system properties ** @@ -92,7 +92,7 @@ int __system_property_area_init(); ** ** Returns the serial number on success, -1 on error. */ -uint32_t __system_property_area_serial(); +uint32_t __system_property_area_serial(void); /* Add a new system property. Can only be done by a single ** process that has write access to the property area, and @@ -102,7 +102,7 @@ uint32_t __system_property_area_serial(); ** ** Returns 0 on success, -1 if the property area is full. */ -int __system_property_add(const char *name, unsigned int namelen, const char *value, unsigned int valuelen); +int __system_property_add(const char* __name, unsigned int __name_length, const char* __value, unsigned int __value_length); /* Update the value of a system property returned by ** __system_property_find. Can only be done by a single process @@ -112,14 +112,14 @@ int __system_property_add(const char *name, unsigned int namelen, const char *va ** ** Returns 0 on success, -1 if the parameters are incorrect. */ -int __system_property_update(prop_info *pi, const char *value, unsigned int len); +int __system_property_update(prop_info* __pi, const char* __value, unsigned int __value_length); /* Read the serial number of a system property returned by ** __system_property_find. ** ** Returns the serial number on success, -1 on error. */ -uint32_t __system_property_serial(const prop_info* pi); +uint32_t __system_property_serial(const prop_info* __pi); /* Initialize the system properties area in read only mode. * Should be done by all processes that need to read system @@ -127,10 +127,10 @@ uint32_t __system_property_serial(const prop_info* pi); * * Returns 0 on success, -1 otherwise. */ -int __system_properties_init(); +int __system_properties_init(void); /* Deprecated: use __system_property_wait instead. */ -uint32_t __system_property_wait_any(uint32_t old_serial); +uint32_t __system_property_wait_any(uint32_t __old_serial); __END_DECLS diff --git a/libc/include/sys/auxv.h b/libc/include/sys/auxv.h index ab5a39dfc..9251390d3 100644 --- a/libc/include/sys/auxv.h +++ b/libc/include/sys/auxv.h @@ -35,8 +35,8 @@ __BEGIN_DECLS -unsigned long int getauxval(unsigned long int type) __INTRODUCED_IN(18); +unsigned long int getauxval(unsigned long int __type) __INTRODUCED_IN(18); __END_DECLS -#endif /* _SYS_AUXV_H_ */ +#endif diff --git a/libc/include/sys/cachectl.h b/libc/include/sys/cachectl.h index 5b20c1918..92353273c 100644 --- a/libc/include/sys/cachectl.h +++ b/libc/include/sys/cachectl.h @@ -34,4 +34,4 @@ #include <asm/cachectl.h> #endif -#endif /* sys/cachectl.h */ +#endif diff --git a/libc/include/sys/capability.h b/libc/include/sys/capability.h index b9a40b3b4..637c84419 100644 --- a/libc/include/sys/capability.h +++ b/libc/include/sys/capability.h @@ -34,9 +34,9 @@ __BEGIN_DECLS -int capget(cap_user_header_t hdrp, cap_user_data_t datap); -int capset(cap_user_header_t hdrp, const cap_user_data_t datap); +int capget(cap_user_header_t __hdr_ptr, cap_user_data_t __data_ptr); +int capset(cap_user_header_t __hdr_ptr, const cap_user_data_t __data_ptr); __END_DECLS -#endif /* _BIONIC_SYS_CAPABILITY_H */ +#endif diff --git a/libc/include/sys/endian.h b/libc/include/sys/endian.h index de172fe57..799a6f285 100644 --- a/libc/include/sys/endian.h +++ b/libc/include/sys/endian.h @@ -49,10 +49,10 @@ /* glibc compatibility. */ __BEGIN_DECLS -uint32_t htonl(uint32_t) __attribute_const__ __INTRODUCED_IN(21); -uint16_t htons(uint16_t) __attribute_const__ __INTRODUCED_IN(21); -uint32_t ntohl(uint32_t) __attribute_const__ __INTRODUCED_IN(21); -uint16_t ntohs(uint16_t) __attribute_const__ __INTRODUCED_IN(21); +uint32_t htonl(uint32_t __x) __attribute_const__ __INTRODUCED_IN(21); +uint16_t htons(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21); +uint32_t ntohl(uint32_t __x) __attribute_const__ __INTRODUCED_IN(21); +uint16_t ntohs(uint16_t __x) __attribute_const__ __INTRODUCED_IN(21); __END_DECLS #define htonl(x) __swap32(x) @@ -103,4 +103,4 @@ __END_DECLS #define le64toh(x) htole64(x) #endif /* __USE_BSD */ -#endif /* _SYS_ENDIAN_H_ */ +#endif diff --git a/libc/include/sys/epoll.h b/libc/include/sys/epoll.h index fcdab43a9..6ecd93f81 100644 --- a/libc/include/sys/epoll.h +++ b/libc/include/sys/epoll.h @@ -53,8 +53,8 @@ __packed #endif ; -int epoll_create(int); -int epoll_create1(int) __INTRODUCED_IN(21); +int epoll_create(int __size); +int epoll_create1(int __flags) __INTRODUCED_IN(21); /* * Some third-party code uses the existence of EPOLL_CLOEXEC to detect the @@ -71,10 +71,10 @@ int epoll_create1(int) __INTRODUCED_IN(21); #undef EPOLL_CLOEXEC #endif -int epoll_ctl(int, int, int, struct epoll_event*); -int epoll_wait(int, struct epoll_event*, int, int); -int epoll_pwait(int, struct epoll_event*, int, int, const sigset_t*) __INTRODUCED_IN(21); +int epoll_ctl(int __epoll_fd, int __op, int __fd, struct epoll_event* __event); +int epoll_wait(int __epoll_fd, struct epoll_event* __events, int __event_count, int __timeout_ms); +int epoll_pwait(int __epoll_fd, struct epoll_event* __events, int __event_count, int __timeout_ms, const sigset_t* __mask) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_EPOLL_H_ */ +#endif diff --git a/libc/include/sys/eventfd.h b/libc/include/sys/eventfd.h index 6b9749a11..3cfb5e7fa 100644 --- a/libc/include/sys/eventfd.h +++ b/libc/include/sys/eventfd.h @@ -37,14 +37,13 @@ __BEGIN_DECLS #define EFD_CLOEXEC O_CLOEXEC #define EFD_NONBLOCK O_NONBLOCK -/* type of event counter */ typedef uint64_t eventfd_t; -int eventfd(unsigned int initial_value, int flags); +int eventfd(unsigned int __initial_value, int __flags); -int eventfd_read(int fd, eventfd_t* value); -int eventfd_write(int fd, eventfd_t value); +int eventfd_read(int __fd, eventfd_t* __value); +int eventfd_write(int __fd, eventfd_t __value); __END_DECLS -#endif /* _SYS_EVENTFD_H */ +#endif diff --git a/libc/include/sys/file.h b/libc/include/sys/file.h index f414d34aa..a4200219f 100644 --- a/libc/include/sys/file.h +++ b/libc/include/sys/file.h @@ -36,8 +36,8 @@ __BEGIN_DECLS -int flock(int, int); +int flock(int __fd, int __op); __END_DECLS -#endif /* _SYS_FILE_H_ */ +#endif diff --git a/libc/include/sys/fsuid.h b/libc/include/sys/fsuid.h index e4d9ebcd7..bb7a58d5f 100644 --- a/libc/include/sys/fsuid.h +++ b/libc/include/sys/fsuid.h @@ -34,9 +34,9 @@ __BEGIN_DECLS -int setfsuid(uid_t) __INTRODUCED_IN(21); -int setfsgid(gid_t) __INTRODUCED_IN(21); +int setfsuid(uid_t __uid) __INTRODUCED_IN(21); +int setfsgid(gid_t __gid) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_FSUID_H_ */ +#endif diff --git a/libc/include/sys/inotify.h b/libc/include/sys/inotify.h index 98f719856..32e16d9c1 100644 --- a/libc/include/sys/inotify.h +++ b/libc/include/sys/inotify.h @@ -54,10 +54,10 @@ __BEGIN_DECLS #endif int inotify_init(void); -int inotify_init1(int) __INTRODUCED_IN(21); -int inotify_add_watch(int, const char*, uint32_t); -int inotify_rm_watch(int, uint32_t); +int inotify_init1(int __flags) __INTRODUCED_IN(21); +int inotify_add_watch(int __fd, const char* __path, uint32_t __mask); +int inotify_rm_watch(int __fd, uint32_t __watch_descriptor); __END_DECLS -#endif /* _SYS_INOTIFY_H_ */ +#endif diff --git a/libc/include/sys/ioctl.h b/libc/include/sys/ioctl.h index efbcb0c5a..76dc1ff7c 100644 --- a/libc/include/sys/ioctl.h +++ b/libc/include/sys/ioctl.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_IOCTL_H_ #define _SYS_IOCTL_H_ @@ -41,4 +42,4 @@ #include <bits/ioctl.h> -#endif /* _SYS_IOCTL_H_ */ +#endif diff --git a/libc/include/sys/ipc.h b/libc/include/sys/ipc.h index 3d6c45f60..dee7c8a9a 100644 --- a/libc/include/sys/ipc.h +++ b/libc/include/sys/ipc.h @@ -42,8 +42,8 @@ __BEGIN_DECLS -key_t ftok(const char* path, int id); +key_t ftok(const char* __path, int __id); __END_DECLS -#endif /* _SYS_IPC_H */ +#endif diff --git a/libc/include/sys/klog.h b/libc/include/sys/klog.h index 47eb3a4cf..ed746fcc6 100644 --- a/libc/include/sys/klog.h +++ b/libc/include/sys/klog.h @@ -46,8 +46,8 @@ __BEGIN_DECLS #define KLOG_SIZE_UNREAD 9 #define KLOG_SIZE_BUFFER 10 -int klogctl(int, char *, int); +int klogctl(int __type, char* __buf, int __buf_size); __END_DECLS -#endif /* _SYS_KLOG_H_ */ +#endif diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 1440dc6d6..1e752c444 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_MMAN_H_ #define _SYS_MMAN_H_ @@ -44,27 +45,27 @@ __BEGIN_DECLS #define MREMAP_FIXED 2 #if defined(__USE_FILE_OFFSET64) -void* mmap(void*, size_t, int, int, int, off_t) __RENAME(mmap64) __INTRODUCED_IN(21); +void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset) __RENAME(mmap64) __INTRODUCED_IN(21); #else -void* mmap(void*, size_t, int, int, int, off_t); +void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset); #endif -void* mmap64(void*, size_t, int, int, int, off64_t) __INTRODUCED_IN(21); +void* mmap64(void* __addr, size_t __size, int __prot, int __flags, int __fd, off64_t __offset) __INTRODUCED_IN(21); -int munmap(void*, size_t); -int msync(void*, size_t, int); -int mprotect(void*, size_t, int); -void* mremap(void*, size_t, size_t, int, ...); +int munmap(void* __addr, size_t __size); +int msync(void* __addr, size_t __size, int __flags); +int mprotect(void* __addr, size_t __size, int __prot); +void* mremap(void* __old_addr, size_t __old_size, size_t __new_size, int __flags, ...); -int mlockall(int) __INTRODUCED_IN(17); +int mlockall(int __flags) __INTRODUCED_IN(17); int munlockall(void) __INTRODUCED_IN(17); -int mlock(const void*, size_t); -int munlock(const void*, size_t); +int mlock(const void* __addr, size_t __size); +int munlock(const void* __addr, size_t __size); -int mincore(void*, size_t, unsigned char*); +int mincore(void* __addr, size_t __size, unsigned char* __vector); -int madvise(void*, size_t, int); +int madvise(void* __addr, size_t __size, int __advice); #if __ANDROID_API__ >= __ANDROID_API_M__ /* @@ -81,8 +82,8 @@ int madvise(void*, size_t, int); #define POSIX_MADV_WILLNEED MADV_WILLNEED #define POSIX_MADV_DONTNEED MADV_DONTNEED #endif -int posix_madvise(void*, size_t, int) __INTRODUCED_IN(23); +int posix_madvise(void* __addr, size_t __size, int __advice) __INTRODUCED_IN(23); __END_DECLS -#endif /* _SYS_MMAN_H_ */ +#endif diff --git a/libc/include/sys/mount.h b/libc/include/sys/mount.h index 26c0e0f5b..c0c084b40 100644 --- a/libc/include/sys/mount.h +++ b/libc/include/sys/mount.h @@ -41,10 +41,10 @@ __BEGIN_DECLS #define MNT_EXPIRE 4 #define UMOUNT_NOFOLLOW 8 -int mount(const char*, const char*, const char*, unsigned long, const void*); -int umount(const char*); -int umount2(const char*, int); +int mount(const char* __source, const char* __target, const char* __fs_type, unsigned long __flags, const void* __data); +int umount(const char* __target); +int umount2(const char* __target, int __flags); __END_DECLS -#endif /* _SYS_MOUNT_H */ +#endif diff --git a/libc/include/sys/msg.h b/libc/include/sys/msg.h index ced5a3e01..0273499c7 100644 --- a/libc/include/sys/msg.h +++ b/libc/include/sys/msg.h @@ -41,11 +41,11 @@ __BEGIN_DECLS typedef __kernel_ulong_t msgqnum_t; typedef __kernel_ulong_t msglen_t; -int msgctl(int, int, struct msqid_ds*) __INTRODUCED_IN(26); -int msgget(key_t, int) __INTRODUCED_IN(26); -ssize_t msgrcv(int, void*, size_t, long, int) __INTRODUCED_IN(26); -int msgsnd(int, const void*, size_t, int) __INTRODUCED_IN(26); +int msgctl(int __msg_id, int __cmd, struct msqid_ds* __buf) __INTRODUCED_IN(26); +int msgget(key_t __key, int __flags) __INTRODUCED_IN(26); +ssize_t msgrcv(int __msg_id, void* __msgbuf_ptr, size_t __size, long __type, int __flags) __INTRODUCED_IN(26); +int msgsnd(int __msg_id, const void* __msgbuf_ptr, size_t __size, int __flags) __INTRODUCED_IN(26); __END_DECLS -#endif /* _SYS_MSG_H_ */ +#endif diff --git a/libc/include/sys/param.h b/libc/include/sys/param.h index d3686e096..ec50da2b9 100644 --- a/libc/include/sys/param.h +++ b/libc/include/sys/param.h @@ -49,4 +49,4 @@ #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) -#endif /* _SYS_PARAM_H_ */ +#endif diff --git a/libc/include/sys/personality.h b/libc/include/sys/personality.h index 6f3a3c956..51b5cd791 100644 --- a/libc/include/sys/personality.h +++ b/libc/include/sys/personality.h @@ -34,8 +34,8 @@ __BEGIN_DECLS -int personality(unsigned int persona) __INTRODUCED_IN(15); +int personality(unsigned int __persona) __INTRODUCED_IN(15); __END_DECLS -#endif /* _SYS_PERSONALITY_H_ */ +#endif diff --git a/libc/include/sys/prctl.h b/libc/include/sys/prctl.h index 742ed57af..64f59540a 100644 --- a/libc/include/sys/prctl.h +++ b/libc/include/sys/prctl.h @@ -35,8 +35,8 @@ __BEGIN_DECLS -int prctl(int option, ...); +int prctl(int __option, ...); __END_DECLS -#endif /* _SYS_PRCTL_H */ +#endif diff --git a/libc/include/sys/procfs.h b/libc/include/sys/procfs.h index eff39e21f..75a1e986e 100644 --- a/libc/include/sys/procfs.h +++ b/libc/include/sys/procfs.h @@ -59,4 +59,4 @@ struct elf_siginfo { __END_DECLS -#endif /* _SYS_PROCFS_H_ */ +#endif diff --git a/libc/include/sys/ptrace.h b/libc/include/sys/ptrace.h index 4b881e743..022fc3a9e 100644 --- a/libc/include/sys/ptrace.h +++ b/libc/include/sys/ptrace.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_PTRACE_H_ #define _SYS_PTRACE_H_ @@ -58,8 +59,8 @@ __BEGIN_DECLS #define PT_GETSIGINFO PTRACE_GETSIGINFO #define PT_SETSIGINFO PTRACE_SETSIGINFO -long ptrace(int, ...); +long ptrace(int __request, ...); __END_DECLS -#endif /* _SYS_PTRACE_H_ */ +#endif diff --git a/libc/include/sys/quota.h b/libc/include/sys/quota.h index 51f767573..157c2d9cb 100644 --- a/libc/include/sys/quota.h +++ b/libc/include/sys/quota.h @@ -40,7 +40,7 @@ __BEGIN_DECLS -int quotactl(int, const char*, int, char*) __INTRODUCED_IN(26); +int quotactl(int __cmd, const char* __special, int __id, char* __addr) __INTRODUCED_IN(26); __END_DECLS diff --git a/libc/include/sys/reboot.h b/libc/include/sys/reboot.h index df4739e56..c0c4860ed 100644 --- a/libc/include/sys/reboot.h +++ b/libc/include/sys/reboot.h @@ -42,8 +42,8 @@ __BEGIN_DECLS #define RB_DISABLE_CAD LINUX_REBOOT_CMD_CAD_OFF #define RB_POWER_OFF LINUX_REBOOT_CMD_POWER_OFF -int reboot(int reboot_type); +int reboot(int __cmd); __END_DECLS -#endif /* _SYS_REBOOT_H_ */ +#endif diff --git a/libc/include/sys/reg.h b/libc/include/sys/reg.h index 1066b6dc5..6c496ba45 100644 --- a/libc/include/sys/reg.h +++ b/libc/include/sys/reg.h @@ -83,4 +83,4 @@ #endif -#endif /* _SYS_REG_H_ */ +#endif diff --git a/libc/include/sys/resource.h b/libc/include/sys/resource.h index 7c43ca339..918112556 100644 --- a/libc/include/sys/resource.h +++ b/libc/include/sys/resource.h @@ -42,21 +42,20 @@ __BEGIN_DECLS typedef unsigned long rlim_t; -int getrlimit(int, struct rlimit*); -int setrlimit(int, const struct rlimit*); +int getrlimit(int __resource, struct rlimit* __limit); +int setrlimit(int __resource, const struct rlimit* __limit); -int getrlimit64(int, struct rlimit64*) __INTRODUCED_IN(21); -int setrlimit64(int, const struct rlimit64*) __INTRODUCED_IN(21); +int getrlimit64(int __resource, struct rlimit64* __limit) __INTRODUCED_IN(21); +int setrlimit64(int __resource, const struct rlimit64* __limit) __INTRODUCED_IN(21); -int getpriority(int, id_t); -int setpriority(int, id_t, int); +int getpriority(int __which, id_t __who); +int setpriority(int __which, id_t __who, int __priority); -int getrusage(int, struct rusage*); +int getrusage(int __who, struct rusage* __usage); -int prlimit(pid_t, int, const struct rlimit*, struct rlimit*) __INTRODUCED_IN_32(24) - __INTRODUCED_IN_64(21); -int prlimit64(pid_t, int, const struct rlimit64*, struct rlimit64*) __INTRODUCED_IN(21); +int prlimit(pid_t __pid, int __resource, const struct rlimit* __new_limit, struct rlimit* __old_limit) __INTRODUCED_IN_32(24) __INTRODUCED_IN_64(21); +int prlimit64(pid_t __pid, int __resource, const struct rlimit64* __new_limit, struct rlimit64* __old_limit) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_RESOURCE_H_ */ +#endif diff --git a/libc/include/sys/select.h b/libc/include/sys/select.h index 40bd32e17..e919188ac 100644 --- a/libc/include/sys/select.h +++ b/libc/include/sys/select.h @@ -72,9 +72,9 @@ int __FD_ISSET_chk(int, fd_set*, size_t) __INTRODUCED_IN(21); #define FD_ISSET(fd, set) ((__FDS_BITS(set)[__FDELT(fd)] & __FDMASK(fd)) != 0) #endif /* defined(__BIONIC_FORTIFY) && __ANDROID_API >= 21 */ -int select(int, fd_set*, fd_set*, fd_set*, struct timeval*); -int pselect(int, fd_set*, fd_set*, fd_set*, const struct timespec*, const sigset_t*); +int select(int __fd_count, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, struct timeval* __timeout); +int pselect(int __fd_count, fd_set* __read_fds, fd_set* __write_fds, fd_set* __exception_fds, const struct timespec* __timeout, const sigset_t* __mask); __END_DECLS -#endif /* _SYS_SELECT_H_ */ +#endif diff --git a/libc/include/sys/sem.h b/libc/include/sys/sem.h index be0e22dca..cd6224221 100644 --- a/libc/include/sys/sem.h +++ b/libc/include/sys/sem.h @@ -51,12 +51,12 @@ union semun { void* __pad; }; -int semctl(int, int, int, ...) __INTRODUCED_IN(26); -int semget(key_t, int, int) __INTRODUCED_IN(26); -int semop(int, struct sembuf*, size_t) __INTRODUCED_IN(26); +int semctl(int __sem_id, int __sem_num, int __cmd, ...) __INTRODUCED_IN(26); +int semget(key_t __key, int __sem_count, int __flags) __INTRODUCED_IN(26); +int semop(int __sem_id, struct sembuf* __ops, size_t __op_count) __INTRODUCED_IN(26); #if defined(__USE_GNU) -int semtimedop(int, struct sembuf*, size_t, const struct timespec*) __INTRODUCED_IN(26); +int semtimedop(int __sem_id, struct sembuf* __ops, size_t __op_count, const struct timespec* __timeout) __INTRODUCED_IN(26); #endif __END_DECLS diff --git a/libc/include/sys/sendfile.h b/libc/include/sys/sendfile.h index 43b334c2e..ecdb76c63 100644 --- a/libc/include/sys/sendfile.h +++ b/libc/include/sys/sendfile.h @@ -35,12 +35,12 @@ __BEGIN_DECLS #if defined(__USE_FILE_OFFSET64) -ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) __RENAME(sendfile64) __INTRODUCED_IN(21); +ssize_t sendfile(int __out_fd, int __in_fd, off_t* __offset, size_t __count) __RENAME(sendfile64) __INTRODUCED_IN(21); #else -ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count); +ssize_t sendfile(int __out_fd, int __in_fd, off_t* __offset, size_t __count); #endif -ssize_t sendfile64(int out_fd, int in_fd, off64_t* offset, size_t count) __INTRODUCED_IN(21); +ssize_t sendfile64(int __out_fd, int __in_fd, off64_t* __offset, size_t __count) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_SENDFILE_H_ */ +#endif diff --git a/libc/include/sys/shm.h b/libc/include/sys/shm.h index ccd3b3605..4723eba40 100644 --- a/libc/include/sys/shm.h +++ b/libc/include/sys/shm.h @@ -42,10 +42,10 @@ __BEGIN_DECLS typedef unsigned long shmatt_t; -void* shmat(int, const void*, int) __INTRODUCED_IN(26); -int shmctl(int, int, struct shmid_ds*) __INTRODUCED_IN(26); -int shmdt(const void*) __INTRODUCED_IN(26); -int shmget(key_t, size_t, int) __INTRODUCED_IN(26); +void* shmat(int __shm_id, const void* __addr, int __flags) __INTRODUCED_IN(26); +int shmctl(int __shm_id, int __cmd, struct shmid_ds* __buf) __INTRODUCED_IN(26); +int shmdt(const void* __addr) __INTRODUCED_IN(26); +int shmget(key_t __key, size_t __size, int __flags) __INTRODUCED_IN(26); __END_DECLS diff --git a/libc/include/sys/signalfd.h b/libc/include/sys/signalfd.h index 1e4d46411..315622c7f 100644 --- a/libc/include/sys/signalfd.h +++ b/libc/include/sys/signalfd.h @@ -36,8 +36,8 @@ __BEGIN_DECLS -int signalfd(int fd, const sigset_t* mask, int flags) __INTRODUCED_IN(18); +int signalfd(int __fd, const sigset_t* __mask, int __flags) __INTRODUCED_IN(18); __END_DECLS -#endif /* _SYS_SIGNALFD_H */ +#endif diff --git a/libc/include/sys/socket.h b/libc/include/sys/socket.h index 6875d7fa0..ed851a217 100644 --- a/libc/include/sys/socket.h +++ b/libc/include/sys/socket.h @@ -115,7 +115,7 @@ struct cmsghdr { #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && (cmsg)->cmsg_len <= (unsigned long) ((mhdr)->msg_controllen - ((char*)(cmsg) - (char*)(mhdr)->msg_control))) #if __ANDROID_API__ >= __ANDROID_API_L__ -struct cmsghdr* __cmsg_nxthdr(struct msghdr*, struct cmsghdr*) __INTRODUCED_IN(21); +struct cmsghdr* __cmsg_nxthdr(struct msghdr* __msg, struct cmsghdr* __cmsg) __INTRODUCED_IN(21); #else /* TODO(danalbert): Move this into libandroid_support. */ static inline struct cmsghdr* __cmsg_nxthdr(struct msghdr* msg, struct cmsghdr* cmsg) { @@ -299,31 +299,30 @@ struct ucred { # define __socketcall extern #endif -__socketcall int accept(int, struct sockaddr*, socklen_t*); -__socketcall int accept4(int, struct sockaddr*, socklen_t*, int) __INTRODUCED_IN(21); -__socketcall int bind(int, const struct sockaddr*, socklen_t); -__socketcall int connect(int, const struct sockaddr*, socklen_t); -__socketcall int getpeername(int, struct sockaddr*, socklen_t*); -__socketcall int getsockname(int, struct sockaddr*, socklen_t*); -__socketcall int getsockopt(int, int, int, void*, socklen_t*); -__socketcall int listen(int, int); -__socketcall int recvmmsg(int, struct mmsghdr*, unsigned int, int, const struct timespec*) +__socketcall int accept(int __fd, struct sockaddr* __addr, socklen_t* __addr_length); +__socketcall int accept4(int __fd, struct sockaddr* __addr, socklen_t* __addr_length, int __flags) __INTRODUCED_IN(21); +__socketcall int bind(int __fd, const struct sockaddr* __addr, socklen_t __addr_length); +__socketcall int connect(int __fd, const struct sockaddr* __addr, socklen_t __addr_length); +__socketcall int getpeername(int __fd, struct sockaddr* __addr, socklen_t* __addr_length); +__socketcall int getsockname(int __fd, struct sockaddr* __addr, socklen_t* __addr_length); +__socketcall int getsockopt(int __fd, int __level, int __option, void* __value, socklen_t* __value_length); +__socketcall int listen(int __fd, int __backlog); +__socketcall int recvmmsg(int __fd, struct mmsghdr* __msgs, unsigned int __msg_count, int __flags, const struct timespec* __timeout) __INTRODUCED_IN(21); -__socketcall ssize_t recvmsg(int, struct msghdr*, int); -__socketcall int sendmmsg(int, const struct mmsghdr*, unsigned int, int) __INTRODUCED_IN(21); -__socketcall ssize_t sendmsg(int, const struct msghdr*, int); -__socketcall int setsockopt(int, int, int, const void*, socklen_t); -__socketcall int shutdown(int, int); -__socketcall int socket(int, int, int); -__socketcall int socketpair(int, int, int, int*); - -ssize_t recv(int, void*, size_t, int) __overloadable __RENAME_CLANG(recv); -ssize_t send(int, const void*, size_t, int) __overloadable __RENAME_CLANG(send); - -__socketcall ssize_t sendto(int, const void*, size_t, int, const struct sockaddr*, socklen_t) +__socketcall ssize_t recvmsg(int __fd, struct msghdr* __msg, int __flags); +__socketcall int sendmmsg(int __fd, const struct mmsghdr* __msgs, unsigned int __msg_count, int __flags) __INTRODUCED_IN(21); +__socketcall ssize_t sendmsg(int __fd, const struct msghdr* __msg, int __flags); +__socketcall int setsockopt(int __fd, int __level, int __option, const void* __value, socklen_t __value_length); +__socketcall int shutdown(int __fd, int __how); +__socketcall int socket(int __af, int __type, int __protocol); +__socketcall int socketpair(int __af, int __type, int __protocol, int __fds[2]); + +ssize_t recv(int __fd, void* __buf, size_t __n, int __flags) __overloadable __RENAME_CLANG(recv); +ssize_t send(int __fd, const void* __buf, size_t __n, int __flags) __overloadable __RENAME_CLANG(send); + +__socketcall ssize_t sendto(int __fd, const void* __buf, size_t __n, int __flags, const struct sockaddr* __dst_addr, socklen_t __dst_addr_length) __overloadable __RENAME_CLANG(sendto); -__socketcall ssize_t recvfrom(int, void*, size_t, int, struct sockaddr*, - socklen_t*) __overloadable __RENAME_CLANG(recvfrom); +__socketcall ssize_t recvfrom(int __fd, void* __buf, size_t __n, int __flags, struct sockaddr* __src_addr, socklen_t* __src_addr_length) __overloadable __RENAME_CLANG(recvfrom); #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #include <bits/fortify/socket.h> @@ -333,4 +332,4 @@ __socketcall ssize_t recvfrom(int, void*, size_t, int, struct sockaddr*, __END_DECLS -#endif /* _SYS_SOCKET_H */ +#endif diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index b8e3cb16c..14b522476 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h @@ -151,46 +151,46 @@ struct stat64 { __STAT64_BODY }; #define S_TYPEISSHM(__sb) 0 #define S_TYPEISTMO(__sb) 0 -int chmod(const char*, mode_t); -int fchmod(int, mode_t); -int mkdir(const char*, mode_t); - -int fstat(int, struct stat*); -int fstat64(int, struct stat64*) __INTRODUCED_IN(21); -int fstatat(int, const char*, struct stat*, int); -int fstatat64(int, const char*, struct stat64*, int) __INTRODUCED_IN(21); -int lstat(const char*, struct stat*); -int lstat64(const char*, struct stat64*) __INTRODUCED_IN(21); -int stat(const char*, struct stat*); -int stat64(const char*, struct stat64*) __INTRODUCED_IN(21); - -int mknod(const char*, mode_t, dev_t); -mode_t umask(mode_t) __overloadable __RENAME_CLANG(umask); +int chmod(const char* __path, mode_t __mode); +int fchmod(int __fd, mode_t __mode); +int mkdir(const char* __path, mode_t __mode); + +int fstat(int __fd, struct stat* __buf); +int fstat64(int __fd, struct stat64* __buf) __INTRODUCED_IN(21); +int fstatat(int __dir_fd, const char* __path, struct stat* __buf, int __flags); +int fstatat64(int __dir_fd, const char* __path, struct stat64* __buf, int __flags) __INTRODUCED_IN(21); +int lstat(const char* __path, struct stat* __buf); +int lstat64(const char* __path, struct stat64* __buf) __INTRODUCED_IN(21); +int stat(const char* __path, struct stat* __buf); +int stat64(const char* __path, struct stat64* __buf) __INTRODUCED_IN(21); + +int mknod(const char* __path, mode_t __mode, dev_t __dev); +mode_t umask(mode_t __mask) __overloadable __RENAME_CLANG(umask); #if defined(__BIONIC_INCLUDE_FORTIFY_HEADERS) #include <bits/fortify/stat.h> #endif #if __ANDROID_API__ >= __ANDROID_API_L__ -int mkfifo(const char*, mode_t) __INTRODUCED_IN(21); +int mkfifo(const char* __path, mode_t __mode) __INTRODUCED_IN(21); #else // Implemented as a static inline before 21. #endif -int mkfifoat(int, const char*, mode_t) __INTRODUCED_IN(23); +int mkfifoat(int __dir_fd, const char* __path, mode_t __mode) __INTRODUCED_IN(23); -int fchmodat(int, const char*, mode_t, int); -int mkdirat(int, const char*, mode_t); -int mknodat(int, const char*, mode_t, dev_t) __INTRODUCED_IN(21); +int fchmodat(int __dir_fd, const char* __path, mode_t __mode, int __flags); +int mkdirat(int __dir_fd, const char* __path, mode_t __mode); +int mknodat(int __dir_fd, const char* __path, mode_t __mode, dev_t __dev) __INTRODUCED_IN(21); #define UTIME_NOW ((1L << 30) - 1L) #define UTIME_OMIT ((1L << 30) - 2L) -int utimensat(int fd, const char* path, const struct timespec times[2], int flags) +int utimensat(int __dir_fd, const char* __path, const struct timespec __times[2], int __flags) __INTRODUCED_IN(12); -int futimens(int fd, const struct timespec times[2]) __INTRODUCED_IN(19); +int futimens(int __dir_fd, const struct timespec __times[2]) __INTRODUCED_IN(19); __END_DECLS #include <android/legacy_sys_stat_inlines.h> -#endif /* _SYS_STAT_H_ */ +#endif diff --git a/libc/include/sys/statvfs.h b/libc/include/sys/statvfs.h index 0f421a4f2..e60cadc75 100644 --- a/libc/include/sys/statvfs.h +++ b/libc/include/sys/statvfs.h @@ -59,11 +59,11 @@ struct statvfs64 { __STATVFS64_BODY }; #define ST_NODIRATIME 0x0800 #define ST_RELATIME 0x1000 -int statvfs(const char*, struct statvfs*) __INTRODUCED_IN(19); -int statvfs64(const char*, struct statvfs64*) __INTRODUCED_IN(21); -int fstatvfs(int, struct statvfs*) __INTRODUCED_IN(19); -int fstatvfs64(int, struct statvfs64*) __INTRODUCED_IN(21); +int statvfs(const char* __path, struct statvfs* __buf) __INTRODUCED_IN(19); +int statvfs64(const char* __path, struct statvfs64* __buf) __INTRODUCED_IN(21); +int fstatvfs(int __fd, struct statvfs* __buf) __INTRODUCED_IN(19); +int fstatvfs64(int __fd, struct statvfs64* __buf) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_STATVFS_H_ */ +#endif diff --git a/libc/include/sys/swap.h b/libc/include/sys/swap.h index e79af97a7..8a30ccef5 100644 --- a/libc/include/sys/swap.h +++ b/libc/include/sys/swap.h @@ -38,9 +38,9 @@ __BEGIN_DECLS #define SWAP_FLAG_PRIO_MASK 0x7fff #define SWAP_FLAG_PRIO_SHIFT 0 -int swapon(const char*, int) __INTRODUCED_IN(19); -int swapoff(const char*) __INTRODUCED_IN(19); +int swapon(const char* __path, int __flags) __INTRODUCED_IN(19); +int swapoff(const char* __path) __INTRODUCED_IN(19); __END_DECLS -#endif /* _SYS_SWAP_H_ */ +#endif diff --git a/libc/include/sys/sysinfo.h b/libc/include/sys/sysinfo.h index 9a10d6471..6da02ee4e 100644 --- a/libc/include/sys/sysinfo.h +++ b/libc/include/sys/sysinfo.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_SYSINFO_H_ #define _SYS_SYSINFO_H_ @@ -33,16 +34,12 @@ __BEGIN_DECLS -int sysinfo(struct sysinfo* info); - +int sysinfo(struct sysinfo* __info); int get_nprocs_conf(void) __INTRODUCED_IN(23); - int get_nprocs(void) __INTRODUCED_IN(23); - long get_phys_pages(void) __INTRODUCED_IN(23); - long get_avphys_pages(void) __INTRODUCED_IN(23); __END_DECLS -#endif /* _SYS_SYSINFO_H_ */ +#endif diff --git a/libc/include/sys/system_properties.h b/libc/include/sys/system_properties.h index d07585936..f469599b5 100644 --- a/libc/include/sys/system_properties.h +++ b/libc/include/sys/system_properties.h @@ -41,9 +41,9 @@ typedef struct prop_info prop_info; #define PROP_VALUE_MAX 92 /* - * Sets system property `key` to `value`, creating the system property if it doesn't already exist. + * Sets system property `name` to `value`, creating the system property if it doesn't already exist. */ -int __system_property_set(const char* key, const char* value) __INTRODUCED_IN(12); +int __system_property_set(const char* __name, const char* __value) __INTRODUCED_IN(12); /* * Returns a `prop_info` corresponding system property `name`, or nullptr if it doesn't exist. @@ -51,14 +51,14 @@ int __system_property_set(const char* key, const char* value) __INTRODUCED_IN(12 * * Property lookup is expensive, so it can be useful to cache the result of this function. */ -const prop_info* __system_property_find(const char* name); +const prop_info* __system_property_find(const char* __name); /* * Calls `callback` with a consistent trio of name, value, and serial number for property `pi`. */ -void __system_property_read_callback(const prop_info *pi, - void (*callback)(void* cookie, const char *name, const char *value, uint32_t serial), - void* cookie) __INTRODUCED_IN(26); +void __system_property_read_callback(const prop_info* __pi, + void (*__callback)(void* __cookie, const char* __name, const char* __value, uint32_t __serial), + void* __cookie) __INTRODUCED_IN(26); /* * Passes a `prop_info` for each system property to the provided @@ -66,7 +66,7 @@ void __system_property_read_callback(const prop_info *pi, * * This method is for inspecting and debugging the property system, and not generally useful. */ -int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie) +int __system_property_foreach(void (*__callback)(const prop_info* __pi, void* __cookie), void* __cookie) __INTRODUCED_IN(19); /* @@ -82,20 +82,17 @@ int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), * timed out. */ struct timespec; -bool __system_property_wait(const prop_info* pi, - uint32_t old_serial, - uint32_t* new_serial_ptr, - const struct timespec* relative_timeout) +bool __system_property_wait(const prop_info* __pi, uint32_t __old_serial, uint32_t* __new_serial_ptr, const struct timespec* __relative_timeout) __INTRODUCED_IN(26); /* Deprecated. In Android O and above, there's no limit on property name length. */ #define PROP_NAME_MAX 32 /* Deprecated. Use __system_property_read_callback instead. */ -int __system_property_read(const prop_info* pi, char* name, char* value); +int __system_property_read(const prop_info* __pi, char* __name, char* __value); /* Deprecated. Use __system_property_read_callback instead. */ -int __system_property_get(const char* name, char* value); +int __system_property_get(const char* __name, char* __value); /* Deprecated. Use __system_property_foreach instead. */ -const prop_info* __system_property_find_nth(unsigned n); +const prop_info* __system_property_find_nth(unsigned __n); __END_DECLS diff --git a/libc/include/sys/time.h b/libc/include/sys/time.h index 4d477e1ff..45190c3a0 100644 --- a/libc/include/sys/time.h +++ b/libc/include/sys/time.h @@ -38,21 +38,21 @@ __BEGIN_DECLS -int gettimeofday(struct timeval*, struct timezone*); -int settimeofday(const struct timeval*, const struct timezone*); +int gettimeofday(struct timeval* __tv, struct timezone* __tz); +int settimeofday(const struct timeval* __tv, const struct timezone* __tz); -int getitimer(int, struct itimerval*); -int setitimer(int, const struct itimerval*, struct itimerval*); +int getitimer(int __which, struct itimerval* __current_value); +int setitimer(int __which, const struct itimerval* __new_value, struct itimerval* __old_value); -int utimes(const char*, const struct timeval*); +int utimes(const char* __path, const struct timeval __times[2]); #if defined(__USE_BSD) -int futimes(int, const struct timeval[2]) __INTRODUCED_IN(26); -int lutimes(const char*, const struct timeval[2]) __INTRODUCED_IN(26); +int futimes(int __fd, const struct timeval __times[2]) __INTRODUCED_IN(26); +int lutimes(const char* __path, const struct timeval __times[2]) __INTRODUCED_IN(26); #endif #if defined(__USE_GNU) -int futimesat(int, const char*, const struct timeval[2]) __INTRODUCED_IN(26); +int futimesat(int __dir_fd, const char* __path, const struct timeval __times[2]) __INTRODUCED_IN(26); #endif #define timerclear(a) \ @@ -97,4 +97,4 @@ int futimesat(int, const char*, const struct timeval[2]) __INTRODUCED_IN(26); __END_DECLS -#endif /* _SYS_TIME_H_ */ +#endif diff --git a/libc/include/sys/timerfd.h b/libc/include/sys/timerfd.h index a500060c0..7bf675ba7 100644 --- a/libc/include/sys/timerfd.h +++ b/libc/include/sys/timerfd.h @@ -42,10 +42,10 @@ __BEGIN_DECLS #define TFD_CLOEXEC O_CLOEXEC #define TFD_NONBLOCK O_NONBLOCK -int timerfd_create(clockid_t, int) __INTRODUCED_IN(19); -int timerfd_settime(int, int, const struct itimerspec*, struct itimerspec*) __INTRODUCED_IN(19); -int timerfd_gettime(int, struct itimerspec*) __INTRODUCED_IN(19); +int timerfd_create(clockid_t __clock, int __flags) __INTRODUCED_IN(19); +int timerfd_settime(int __fd, int __flags, const struct itimerspec* __new_value, struct itimerspec* __old_value) __INTRODUCED_IN(19); +int timerfd_gettime(int __fd, struct itimerspec* __current_value) __INTRODUCED_IN(19); __END_DECLS -#endif /* _SYS_TIMERFD_H */ +#endif diff --git a/libc/include/sys/times.h b/libc/include/sys/times.h index f52db1f99..3c8a4efc1 100644 --- a/libc/include/sys/times.h +++ b/libc/include/sys/times.h @@ -35,8 +35,8 @@ __BEGIN_DECLS -clock_t times(struct tms*); +clock_t times(struct tms* __buf); __END_DECLS -#endif /* _SYS_TIMES_H_ */ +#endif diff --git a/libc/include/sys/timex.h b/libc/include/sys/timex.h index f704ce80c..74c86118c 100644 --- a/libc/include/sys/timex.h +++ b/libc/include/sys/timex.h @@ -35,9 +35,9 @@ __BEGIN_DECLS -int adjtimex(struct timex*) __INTRODUCED_IN(24); -int clock_adjtime(clockid_t, struct timex*) __INTRODUCED_IN(24); +int adjtimex(struct timex* __buf) __INTRODUCED_IN(24); +int clock_adjtime(clockid_t __clock, struct timex* __tx) __INTRODUCED_IN(24); __END_DECLS -#endif /* _SYS_TIMEX_H_ */ +#endif diff --git a/libc/include/sys/uio.h b/libc/include/sys/uio.h index b166277d4..37961e30f 100644 --- a/libc/include/sys/uio.h +++ b/libc/include/sys/uio.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_UIO_H_ #define _SYS_UIO_H_ @@ -34,23 +35,21 @@ __BEGIN_DECLS -ssize_t readv(int, const struct iovec*, int); -ssize_t writev(int, const struct iovec*, int); +ssize_t readv(int __fd, const struct iovec* __iov, int __count); +ssize_t writev(int __fd, const struct iovec* __iov, int __count); #if defined(__USE_GNU) -ssize_t preadv(int, const struct iovec*, int, off_t) __RENAME_IF_FILE_OFFSET64(preadv64) __INTRODUCED_IN(24); -ssize_t pwritev(int, const struct iovec*, int, off_t) __RENAME_IF_FILE_OFFSET64(pwritev64) __INTRODUCED_IN(24); -ssize_t preadv64(int, const struct iovec*, int, off64_t) __INTRODUCED_IN(24); -ssize_t pwritev64(int, const struct iovec*, int, off64_t) __INTRODUCED_IN(24); +ssize_t preadv(int __fd, const struct iovec* __iov, int __count, off_t __offset) __RENAME_IF_FILE_OFFSET64(preadv64) __INTRODUCED_IN(24); +ssize_t pwritev(int __fd, const struct iovec* __iov, int __count, off_t __offset) __RENAME_IF_FILE_OFFSET64(pwritev64) __INTRODUCED_IN(24); +ssize_t preadv64(int __fd, const struct iovec* __iov, int __count, off64_t __offset) __INTRODUCED_IN(24); +ssize_t pwritev64(int __fd, const struct iovec* __iov, int __count, off64_t __offset) __INTRODUCED_IN(24); #endif #if defined(__USE_GNU) -ssize_t process_vm_readv(pid_t, const struct iovec*, unsigned long, const struct iovec*, - unsigned long, unsigned long) __INTRODUCED_IN(23); -ssize_t process_vm_writev(pid_t, const struct iovec*, unsigned long, const struct iovec*, - unsigned long, unsigned long) __INTRODUCED_IN(23); +ssize_t process_vm_readv(pid_t __pid, const struct iovec* __local_iov, unsigned long __local_iov_count, const struct iovec* __remote_iov, unsigned long __remote_iov_count, unsigned long __flags) __INTRODUCED_IN(23); +ssize_t process_vm_writev(pid_t __pid, const struct iovec* __local_iov, unsigned long __local_iov_count, const struct iovec* __remote_iov, unsigned long __remote_iov_count, unsigned long __flags) __INTRODUCED_IN(23); #endif __END_DECLS -#endif /* _SYS_UIO_H_ */ +#endif diff --git a/libc/include/sys/utsname.h b/libc/include/sys/utsname.h index b3856a704..2420fb4c9 100644 --- a/libc/include/sys/utsname.h +++ b/libc/include/sys/utsname.h @@ -36,16 +36,16 @@ __BEGIN_DECLS #define SYS_NMLN 65 struct utsname { - char sysname [SYS_NMLN]; - char nodename [SYS_NMLN]; - char release [SYS_NMLN]; - char version [SYS_NMLN]; - char machine [SYS_NMLN]; - char domainname[SYS_NMLN]; + char sysname[SYS_NMLN]; + char nodename[SYS_NMLN]; + char release[SYS_NMLN]; + char version[SYS_NMLN]; + char machine[SYS_NMLN]; + char domainname[SYS_NMLN]; }; -int uname(struct utsname*); +int uname(struct utsname* __buf); __END_DECLS -#endif /* _SYS_UTSNAME_H_ */ +#endif diff --git a/libc/include/sys/vfs.h b/libc/include/sys/vfs.h index 30786835f..9237ee6d6 100644 --- a/libc/include/sys/vfs.h +++ b/libc/include/sys/vfs.h @@ -137,11 +137,11 @@ struct statfs64 { __STATFS64_BODY }; #define XENIX_SUPER_MAGIC 0x012FF7B4 #define XFS_SUPER_MAGIC 0x58465342 -int statfs(const char*, struct statfs*); -int statfs64(const char*, struct statfs64*) __INTRODUCED_IN(21); -int fstatfs(int, struct statfs*); -int fstatfs64(int, struct statfs64*) __INTRODUCED_IN(21); +int statfs(const char* __path, struct statfs* __buf); +int statfs64(const char* __path, struct statfs64* __buf) __INTRODUCED_IN(21); +int fstatfs(int __fd, struct statfs* __buf); +int fstatfs64(int __fd, struct statfs64* __buf) __INTRODUCED_IN(21); __END_DECLS -#endif /* _SYS_VFS_H_ */ +#endif diff --git a/libc/include/sys/wait.h b/libc/include/sys/wait.h index 0247b2bce..e259e3118 100644 --- a/libc/include/sys/wait.h +++ b/libc/include/sys/wait.h @@ -25,6 +25,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_WAIT_H_ #define _SYS_WAIT_H_ @@ -49,10 +50,10 @@ __BEGIN_DECLS #define W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) #define W_STOPCODE(sig) ((sig) << 8 | 0x7f) -pid_t wait(int*); -pid_t waitpid(pid_t, int*, int); +pid_t wait(int* __status); +pid_t waitpid(pid_t __pid, int* __status, int __options); #if __ANDROID_API__ >= __ANDROID_API_J_MR2__ -pid_t wait4(pid_t, int*, int, struct rusage*) __INTRODUCED_IN(18); +pid_t wait4(pid_t __pid, int* __status, int __options, struct rusage* __rusage) __INTRODUCED_IN(18); #else // Implemented as a static inline before 18. #endif @@ -63,10 +64,10 @@ pid_t wait4(pid_t, int*, int, struct rusage*) __INTRODUCED_IN(18); */ typedef int idtype_t; -int waitid(idtype_t which, id_t id, siginfo_t* info, int options); +int waitid(idtype_t __type, id_t __id, siginfo_t* __info, int __options); __END_DECLS #include <android/legacy_sys_wait_inlines.h> -#endif /* _SYS_WAIT_H_ */ +#endif diff --git a/libc/include/sys/xattr.h b/libc/include/sys/xattr.h index 37e352d3f..d15b3fce9 100644 --- a/libc/include/sys/xattr.h +++ b/libc/include/sys/xattr.h @@ -35,25 +35,25 @@ __BEGIN_DECLS -int fsetxattr(int fd, const char* name, const void* value, size_t size, int flags) +int fsetxattr(int __fd, const char* __name, const void* __value, size_t __size, int __flags) __INTRODUCED_IN(16); -int setxattr(const char* path, const char* name, const void* value, size_t size, int flags) +int setxattr(const char* __path, const char* __name, const void* __value, size_t __size, int __flags) __INTRODUCED_IN(16); -int lsetxattr(const char* path, const char* name, const void* value, size_t size, int flags) +int lsetxattr(const char* __path, const char* __name, const void* __value, size_t __size, int __flags) __INTRODUCED_IN(16); -ssize_t fgetxattr(int fd, const char* name, void* value, size_t size) __INTRODUCED_IN(16); -ssize_t getxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16); -ssize_t lgetxattr(const char* path, const char* name, void* value, size_t size) __INTRODUCED_IN(16); +ssize_t fgetxattr(int __fd, const char* __name, void* __value, size_t __size) __INTRODUCED_IN(16); +ssize_t getxattr(const char* __path, const char* __name, void* __value, size_t __size) __INTRODUCED_IN(16); +ssize_t lgetxattr(const char* __path, const char* __name, void* __value, size_t __size) __INTRODUCED_IN(16); -ssize_t listxattr(const char* path, char* list, size_t size) __INTRODUCED_IN(16); -ssize_t llistxattr(const char* path, char* list, size_t size) __INTRODUCED_IN(16); -ssize_t flistxattr(int fd, char* list, size_t size) __INTRODUCED_IN(16); +ssize_t listxattr(const char* __path, char* __list, size_t __size) __INTRODUCED_IN(16); +ssize_t llistxattr(const char* __path, char* __list, size_t __size) __INTRODUCED_IN(16); +ssize_t flistxattr(int __fd, char* __list, size_t __size) __INTRODUCED_IN(16); -int removexattr(const char* path, const char* name) __INTRODUCED_IN(16); -int lremovexattr(const char* path, const char* name) __INTRODUCED_IN(16); -int fremovexattr(int fd, const char* name) __INTRODUCED_IN(16); +int removexattr(const char* __path, const char* __name) __INTRODUCED_IN(16); +int lremovexattr(const char* __path, const char* __name) __INTRODUCED_IN(16); +int fremovexattr(int __fd, const char* __name) __INTRODUCED_IN(16); __END_DECLS -#endif /* _SYS_XATTR_H_ */ +#endif |