diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/errno.h | 3 | ||||
-rw-r--r-- | src/include/pthread.h | 7 | ||||
-rw-r--r-- | src/include/stdio.h | 20 | ||||
-rw-r--r-- | src/include/stdlib.h | 7 | ||||
-rw-r--r-- | src/include/sys/auxv.h | 10 | ||||
-rw-r--r-- | src/include/sys/membarrier.h | 9 | ||||
-rw-r--r-- | src/include/sys/stat.h | 9 | ||||
-rw-r--r-- | src/include/time.h | 1 | ||||
-rw-r--r-- | src/include/unistd.h | 2 | ||||
-rw-r--r-- | src/include/wchar.h | 9 |
10 files changed, 76 insertions, 1 deletions
diff --git a/src/include/errno.h b/src/include/errno.h index 54a38ff4..8ec49377 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -3,6 +3,9 @@ #include "../../include/errno.h" +#ifdef __GNUC__ +__attribute__((const)) +#endif hidden int *___errno_location(void); #undef errno diff --git a/src/include/pthread.h b/src/include/pthread.h index d93ac3a5..7167d3e1 100644 --- a/src/include/pthread.h +++ b/src/include/pthread.h @@ -18,5 +18,12 @@ hidden int __private_cond_signal(pthread_cond_t *, int); hidden int __pthread_cond_timedwait(pthread_cond_t *restrict, pthread_mutex_t *restrict, const struct timespec *restrict); hidden int __pthread_key_create(pthread_key_t *, void (*)(void *)); hidden int __pthread_key_delete(pthread_key_t); +hidden int __pthread_rwlock_rdlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_tryrdlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); +hidden int __pthread_rwlock_wrlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_trywrlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); +hidden int __pthread_rwlock_unlock(pthread_rwlock_t *); #endif diff --git a/src/include/stdio.h b/src/include/stdio.h new file mode 100644 index 00000000..fae3755b --- /dev/null +++ b/src/include/stdio.h @@ -0,0 +1,20 @@ +#ifndef STDIO_H +#define STDIO_H + +#define __DEFINED_struct__IO_FILE + +#include "../../include/stdio.h" + +#undef stdin +#undef stdout +#undef stderr + +extern hidden FILE __stdin_FILE; +extern hidden FILE __stdout_FILE; +extern hidden FILE __stderr_FILE; + +#define stdin (&__stdin_FILE) +#define stdout (&__stdout_FILE) +#define stderr (&__stderr_FILE) + +#endif diff --git a/src/include/stdlib.h b/src/include/stdlib.h index d38a5417..812b04de 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -8,5 +8,12 @@ hidden void __env_rm_add(char *, char *); hidden int __mkostemps(char *, int, int); hidden int __ptsname_r(int, char *, size_t); hidden char *__randname(char *); +hidden void __qsort_r (void *, size_t, size_t, int (*)(const void *, const void *, void *), void *); + +hidden void *__libc_malloc(size_t); +hidden void *__libc_malloc_impl(size_t); +hidden void *__libc_calloc(size_t, size_t); +hidden void *__libc_realloc(void *, size_t); +hidden void __libc_free(void *); #endif diff --git a/src/include/sys/auxv.h b/src/include/sys/auxv.h new file mode 100644 index 00000000..9358a4a5 --- /dev/null +++ b/src/include/sys/auxv.h @@ -0,0 +1,10 @@ +#ifndef SYS_AUXV_H +#define SYS_AUXV_H + +#include "../../../include/sys/auxv.h" + +#include <features.h> + +hidden unsigned long __getauxval(unsigned long); + +#endif diff --git a/src/include/sys/membarrier.h b/src/include/sys/membarrier.h new file mode 100644 index 00000000..3654491c --- /dev/null +++ b/src/include/sys/membarrier.h @@ -0,0 +1,9 @@ +#ifndef SYS_MEMBARRIER_H +#define SYS_MEMBARRIER_H + +#include "../../../include/sys/membarrier.h" +#include <features.h> + +hidden int __membarrier(int, int); + +#endif diff --git a/src/include/sys/stat.h b/src/include/sys/stat.h new file mode 100644 index 00000000..59339bee --- /dev/null +++ b/src/include/sys/stat.h @@ -0,0 +1,9 @@ +#ifndef SYS_STAT_H +#define SYS_STAT_H + +#include "../../../include/sys/stat.h" + +hidden int __fstat(int, struct stat *); +hidden int __fstatat(int, const char *restrict, struct stat *restrict, int); + +#endif diff --git a/src/include/time.h b/src/include/time.h index 24c87973..cbabde47 100644 --- a/src/include/time.h +++ b/src/include/time.h @@ -4,6 +4,7 @@ #include "../../include/time.h" hidden int __clock_gettime(clockid_t, struct timespec *); +hidden int __clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); hidden char *__asctime_r(const struct tm *, char *); hidden struct tm *__gmtime_r(const time_t *restrict, struct tm *restrict); diff --git a/src/include/unistd.h b/src/include/unistd.h index 6deb1bcc..7b52a924 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -8,6 +8,6 @@ extern char **__environ; hidden int __dup3(int, int, int); hidden int __mkostemps(char *, int, int); hidden int __execvpe(const char *, char *const *, char *const *); -hidden int __aio_close(int); +hidden off_t __lseek(int, off_t, int); #endif diff --git a/src/include/wchar.h b/src/include/wchar.h new file mode 100644 index 00000000..79f5d0e7 --- /dev/null +++ b/src/include/wchar.h @@ -0,0 +1,9 @@ +#ifndef WCHAR_H +#define WCHAR_H + +#define __DEFINED_struct__IO_FILE + +#include "../../include/wchar.h" + +#endif + |