diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-06-30 12:09:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-06-30 12:09:42 +0000 |
commit | 4959e310bfbf3fa34b5a4b4ff688d8d564c8363c (patch) | |
tree | 65381cc0476c07dfb96c8dee790fda3630744a8f /linuxthreads/attr.c | |
parent | fdacb17d4819c7112a147195c5ce3c82147f4b46 (diff) | |
download | glibc-4959e310bfbf3fa34b5a4b4ff688d8d564c8363c.tar glibc-4959e310bfbf3fa34b5a4b4ff688d8d564c8363c.tar.gz glibc-4959e310bfbf3fa34b5a4b4ff688d8d564c8363c.tar.bz2 glibc-4959e310bfbf3fa34b5a4b4ff688d8d564c8363c.zip |
Update.
1998-06-30 11:47 Ulrich Drepper <drepper@cygnus.com>
* include/aio.h: New file.
* posix/Makefile (distribute): Add bits/pthreadtypes.h.
(tests): Build and run annexc program.
* posix/annexc.c: New file.
* posix/bits/posix1_lim.h: Add several more _POSIX_* limits.
* rt/aio.h: Remove __need_timespec_t. We can include the whole time.h.
* rt/aio_misc.c: Include limits.h.
* rt/aio_notify.c: Include errno.h.
* sysdeps/unix/sysv/linux/alpha/bits/types.h: Include pthreadtypes.h.
Define size_t.
* sysdeps/unix/sysv/linux/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/bits/errno.h: Define ENOTSUP though the
kernel doesn't do this.
* sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_LARGEFILE only if
__USE_LARGEFILE64 is defined.
* sysdeps/unix/sysv/linux/bits/pthreadtypes.h: New file. Empty.
* sysdeps/unix/sysv/linux/bits/sched.h: Define __sched_param struct
if requested.
* sysdeps/unix/sysv/linux/bits/siginifo.h: Protect non-standard names.
* stdlib/isomac.c: Avoid include_next warning.
Diffstat (limited to 'linuxthreads/attr.c')
-rw-r--r-- | linuxthreads/attr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linuxthreads/attr.c b/linuxthreads/attr.c index d1f605810f..cdd27d6012 100644 --- a/linuxthreads/attr.c +++ b/linuxthreads/attr.c @@ -14,6 +14,7 @@ /* Handling of thread attributes */ +#include <errno.h> #include <unistd.h> #include <sys/param.h> #include "pthread.h" @@ -79,14 +80,14 @@ int pthread_attr_setschedparam(pthread_attr_t *attr, if (param->sched_priority < min_prio || param->sched_priority > max_prio) return EINVAL; - attr->schedparam = *param; + memcpy (&attr->schedparam, param, sizeof (struct sched_param)); return 0; } int pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param) { - *param = attr->schedparam; + memcpy (param, &attr->schedparam, sizeof (struct sched_param)); return 0; } |