diff options
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/floatscan.c | 1 | ||||
-rw-r--r-- | src/internal/i386/syscall.s | 3 | ||||
-rw-r--r-- | src/internal/intscan.c | 1 | ||||
-rw-r--r-- | src/internal/pthread_impl.h | 13 | ||||
-rw-r--r-- | src/internal/stdio_impl.h | 17 |
5 files changed, 9 insertions, 26 deletions
diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c index 08251213..f6e331d4 100644 --- a/src/internal/floatscan.c +++ b/src/internal/floatscan.c @@ -4,6 +4,7 @@ #include <float.h> #include <limits.h> #include <errno.h> +#include <ctype.h> #include "shgetc.h" #include "floatscan.h" diff --git a/src/internal/i386/syscall.s b/src/internal/i386/syscall.s index 291168c3..2914acee 100644 --- a/src/internal/i386/syscall.s +++ b/src/internal/i386/syscall.s @@ -16,7 +16,8 @@ __vsyscall: mov 12(%esp),%edi push %eax call 1f -2: pop %ebx +2: mov %ebx,%edx + pop %ebx pop %ebx pop %edi ret diff --git a/src/internal/intscan.c b/src/internal/intscan.c index 178cdf0d..69350efa 100644 --- a/src/internal/intscan.c +++ b/src/internal/intscan.c @@ -1,5 +1,6 @@ #include <limits.h> #include <errno.h> +#include <ctype.h> #include "shgetc.h" /* Lookup table for digit values. -1==255>=36 -> invalid */ diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 0f10cc48..4215e67a 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -2,17 +2,9 @@ #define _PTHREAD_IMPL_H #include <pthread.h> -#include <sched.h> #include <signal.h> -#include <unistd.h> -#include <sys/mman.h> #include <errno.h> #include <limits.h> -#include <inttypes.h> -#include <setjmp.h> -#include <string.h> -#include <time.h> -#include <locale.h> #include "libc.h" #include "syscall.h" #include "atomic.h" @@ -48,6 +40,8 @@ struct pthread { locale_t locale; int killlock[2]; int exitlock[2]; + int startlock[2]; + unsigned long sigmask[__SYSCALL_SSLEN/sizeof(long)]; }; struct __timer { @@ -61,6 +55,9 @@ struct __timer { #define _a_guardsize __u.__s[1] #define _a_stackaddr __u.__s[2] #define _a_detach __u.__i[3*__SU+0] +#define _a_sched __u.__i[3*__SU+1] +#define _a_policy __u.__i[3*__SU+2] +#define _a_prio __u.__i[3*__SU+3] #define _m_type __u.__i[0] #define _m_lock __u.__i[1] #define _m_waiters __u.__i[2] diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index e9045f27..c9d20fac 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -2,23 +2,6 @@ #define _STDIO_IMPL_H #include <stdio.h> -#include <stdlib.h> -#include <stddef.h> -#include <stdarg.h> -#include <string.h> -#include <inttypes.h> -#include <wchar.h> -#include <unistd.h> -#include <fcntl.h> -#include <limits.h> -#include <errno.h> -#include <termios.h> -#include <sys/ioctl.h> -#include <ctype.h> -#include <sys/wait.h> -#include <math.h> -#include <float.h> -#include <sys/uio.h> #include "syscall.h" #include "libc.h" |