diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread.h | 6 | ||||
-rw-r--r-- | include/stdio.h | 3 | ||||
-rw-r--r-- | include/stdlib.h | 2 | ||||
-rw-r--r-- | include/string.h | 6 | ||||
-rw-r--r-- | include/sys/wait.h | 1 | ||||
-rw-r--r-- | include/wchar.h | 1 | ||||
-rw-r--r-- | include/wctype.h | 5 |
7 files changed, 23 insertions, 1 deletions
diff --git a/include/pthread.h b/include/pthread.h new file mode 100644 index 0000000000..fb37db13bc --- /dev/null +++ b/include/pthread.h @@ -0,0 +1,6 @@ +#include_next <pthread.h> + +/* This function is called to initialize the pthread library. */ +extern void __pthread_initialize (void) __attribute__ ((weak)); + +extern void __pthread_initialize_minimal (void) __attribute__ ((weak)); diff --git a/include/stdio.h b/include/stdio.h index 4fe3bb03eb..7619108118 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -14,6 +14,9 @@ extern int __fcloseall (void); extern int __snprintf (char *__restrict __s, size_t __maxlen, __const char *__restrict __format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); +extern int __vsnprintf (char *__restrict __s, size_t __maxlen, + __const char *__restrict __format, _G_va_list __arg) + __attribute__ ((__format__ (__printf__, 3, 0))); extern int __vfscanf (FILE *__restrict __s, __const char *__restrict __format, _G_va_list __arg) diff --git a/include/stdlib.h b/include/stdlib.h index 12fce40f9b..675ed768c6 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -54,6 +54,8 @@ extern int __add_to_environ (const char *name, const char *value, extern void _quicksort (void *const pbase, size_t total_elems, size_t size, __compar_fn_t cmp); +extern int __on_exit (void (*__func) (int __status, void *__arg), void *__arg); + extern int __cxa_atexit (void (*func) (void *), void *arg, void *d); extern void __cxa_finalize (void *d); diff --git a/include/string.h b/include/string.h index d27a8ebfa2..7d268ecfb1 100644 --- a/include/string.h +++ b/include/string.h @@ -39,7 +39,11 @@ extern void *__memrchr (__const void *__s, int __c, size_t __n) extern void *__memchr (__const void *__s, int __c, size_t __n) __attribute_pure__; - + +extern int __ffs (int __i) __attribute__ ((const)); + +extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen); + /* Now the real definitions. We do this here since some of the functions above are defined as macros in the headers. */ #include <string/string.h> diff --git a/include/sys/wait.h b/include/sys/wait.h index 37873dfbfe..ebaa199bba 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -6,6 +6,7 @@ extern __pid_t __waitpid (__pid_t __pid, int *__stat_loc, int __options); extern __pid_t __libc_waitpid (pid_t __pid, int *__stat_loc, int __options); extern __pid_t __libc_wait (int *__stat_loc); +extern __pid_t __wait (__WAIT_STATUS __stat_loc); extern __pid_t __wait3 (__WAIT_STATUS __stat_loc, int __options, struct rusage * __usage); extern __pid_t __wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, diff --git a/include/wchar.h b/include/wchar.h index c6cc9cb1a3..6f580b43fc 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -8,6 +8,7 @@ extern int __wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) extern int __wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n) __attribute_pure__; +extern size_t __wcslen (__const wchar_t *__s) __attribute_pure__; extern size_t __wcsnlen (__const wchar_t *__s, size_t __maxlen) __attribute_pure__; extern wint_t __btowc (int __c); diff --git a/include/wctype.h b/include/wctype.h index f1a00f881e..2a944915a5 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -2,6 +2,11 @@ #include <wctype/wctype.h> +/* Internal interfaces. */ extern int __iswspace (wint_t __wc); +extern int __iswctype (wint_t __wc, wctype_t __desc); +extern wctype_t __wctype (__const char *__property); +extern wint_t __towctrans (wint_t __wc, wctrans_t __desc); + #endif |