From 079bff4fa52b0c3c76057451cc9cdecf1827fce0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 16 Aug 2017 16:30:54 -0700 Subject: Name function arguments in libc headers for Studio. Second batch of headers... Bug: http://b/64613623 Test: builds Change-Id: I8eef043dbf32afee8ff814e9d005f46aee8fa21f --- libc/include/semaphore.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libc/include/semaphore.h') diff --git a/libc/include/semaphore.h b/libc/include/semaphore.h index 218f22a39..7e3dc1c42 100644 --- a/libc/include/semaphore.h +++ b/libc/include/semaphore.h @@ -44,19 +44,19 @@ typedef struct { #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0) -int sem_destroy(sem_t*); -int sem_getvalue(sem_t*, int*); -int sem_init(sem_t*, int, unsigned int); -int sem_post(sem_t*); -int sem_timedwait(sem_t*, const struct timespec*); -int sem_trywait(sem_t*); -int sem_wait(sem_t*); +int sem_destroy(sem_t* __sem); +int sem_getvalue(sem_t* __sem, int* __value); +int sem_init(sem_t* __sem, int __shared, unsigned int __value); +int sem_post(sem_t* __sem); +int sem_timedwait(sem_t* __sem, const struct timespec* __ts); +int sem_trywait(sem_t* __sem); +int sem_wait(sem_t* __sem); /* These aren't actually implemented. */ -sem_t* sem_open(const char*, int, ...); -int sem_close(sem_t*); -int sem_unlink(const char*); +sem_t* sem_open(const char* __name, int _flags, ...); +int sem_close(sem_t* __sem); +int sem_unlink(const char* __name); __END_DECLS -#endif /* _SEMAPHORE_H */ +#endif -- cgit v1.2.3