diff options
author | bje <bje> | 1998-09-12 07:59:34 +0000 |
---|---|---|
committer | bje <bje> | 1998-09-12 07:59:34 +0000 |
commit | b63e40988fde13ccd11dea845bd9008c56b21cdb (patch) | |
tree | e2db70ba088ec35c71c59781551775c4847ac0f0 | |
parent | bebf4fe4f6ae3d8296a6b9144876d08e5de2261a (diff) |
1998-09-12 Ben Elliston <bje@cygnus.com>
* {most}.c: Include <errno.h> to get POSIX error values.
* signal.c (pthread_sigmask): Only provide if HAVE_SIGSET_T is
defined.
* config.h: #undef features, don't #define them. This will be
generated by autoconf very soon.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | attr.c | 4 | ||||
-rw-r--r-- | cancel.c | 2 | ||||
-rw-r--r-- | cleanup.c | 4 | ||||
-rw-r--r-- | condvar.c | 2 | ||||
-rw-r--r-- | config.h | 4 | ||||
-rw-r--r-- | create.c | 2 | ||||
-rw-r--r-- | fork.c | 3 | ||||
-rw-r--r-- | misc.c | 2 | ||||
-rw-r--r-- | mutex.c | 2 | ||||
-rw-r--r-- | private.c | 2 | ||||
-rw-r--r-- | sched.c | 4 | ||||
-rw-r--r-- | signal.c | 6 | ||||
-rw-r--r-- | sync.c | 2 | ||||
-rw-r--r-- | tsd.c | 2 |
16 files changed, 48 insertions, 5 deletions
@@ -1,3 +1,13 @@ +1998-09-12 Ben Elliston <bje@cygnus.com> + + * {most}.c: Include <errno.h> to get POSIX error values. + + * signal.c (pthread_sigmask): Only provide if HAVE_SIGSET_T is + defined. + + * config.h: #undef features, don't #define them. This will be + generated by autoconf very soon. + 1998-08-11 Ben Elliston <bje@cygnus.com> * Makefile (LIB): Define. @@ -3,7 +3,7 @@ CFLAGS = -I. -DHAVE_CONFIG_H -Wall OBJS = attr.o cancel.o cleanup.o condvar.o create.o dll.o \ exit.o fork.o global.o misc.o mutex.o private.o sched.o \ - signal.o sync.o tsd.o windows.o + signal.o sync.o tsd.o INCL = implement.h pthread.h windows.h @@ -5,9 +5,11 @@ * This translation unit implements operations on thread attribute objects. */ +#include <errno.h> +#include <string.h> + #include "pthread.h" #include "implement.h" -#include <string.h> static int is_attr(const pthread_attr_t *attr) @@ -5,6 +5,8 @@ * POSIX thread functions related to thread cancellation. */ +#include <errno.h> + #include "pthread.h" #include "implement.h" @@ -6,6 +6,8 @@ * threads. */ +#include <errno.h> + #include <malloc.h> #include "pthread.h" #include "implement.h" @@ -29,7 +31,7 @@ _pthread_handler_push(int stack, if (new_thread == NULL) { - return ENOMEM; + return 0; /* NOMEM */ } new_thread->routine = routine; @@ -5,6 +5,8 @@ * This translation unit implements condition variables and their primitives. */ +#include <errno.h> + #include <windows.h> #include "pthread.h" @@ -1,2 +1,2 @@ -#define HAVE_SIGNAL_H -#define HAVE_SIGSET_T +#undef HAVE_SIGNAL_H +#undef HAVE_SIGSET_T @@ -6,6 +6,8 @@ * thread. */ +#include <errno.h> + #include <windows.h> #include <process.h> #include <string.h> @@ -5,6 +5,9 @@ * Implementation of fork() for POSIX threads. */ +/* FIXME! */ +#define ENOMEM 0 + #include "pthread.h" #include "implement.h" @@ -5,6 +5,8 @@ * This translation unit implements miscellaneous thread functions. */ +#include <errno.h> + #include "pthread.h" int @@ -5,6 +5,8 @@ * This translation unit implements mutual exclusion (mutex) primitives. */ +#include <errno.h> + #include "pthread.h" #include "implement.h" @@ -6,6 +6,8 @@ * the implementation and may be used throughout it. */ +#include <errno.h> + #include "pthread.h" #include "implement.h" @@ -5,6 +5,10 @@ * POSIX thread functions that deal with thread scheduling. */ +#define ENOSUP 0 + +#include <errno.h> + #include "pthread.h" #include "implement.h" @@ -5,9 +5,13 @@ * POSIX thread-aware signal functions. */ +#include <errno.h> + #include "pthread.h" #include "implement.h" +#ifdef HAVE_SIGSET_T + int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) { @@ -70,3 +74,5 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) return 0; } + +#endif /* HAVE_SIGSET_T */ @@ -6,6 +6,8 @@ * synchronisation. */ +#include <errno.h> + /* POSIX STANDARD: A thread may pass a value pointer to some data via pthread_exit(). That pointer will be stored in a location supplied as an argument to pthread_join(). @@ -5,6 +5,8 @@ * POSIX thread functions which implement thread-specific data (TSD). */ +#include <errno.h> + #include "pthread.h" #include "implement.h" |