diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-07-31 20:32:01 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-07-31 20:32:01 +0000 |
commit | ad71126b24491c31fd99b4ca8010cd1363f1c016 (patch) | |
tree | b788d320c7c35e7b1eaca2e18973d55b3a5b2242 /linuxthreads/tst-context.c | |
parent | 34183f57d75b4e8b9ed6608f888f0f1e1ada8b34 (diff) | |
download | glibc-ad71126b24491c31fd99b4ca8010cd1363f1c016.tar.gz |
Update.
* sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Correct
test for cmsg struct size.
* sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Likewise.
* sysdeps/unix/sysv/linux/i386/makecontext.S: Remove unnecessary
initializations.
* libio/oldiopopen.c: Add lock for old_proc_file_chain access.
Diffstat (limited to 'linuxthreads/tst-context.c')
-rw-r--r-- | linuxthreads/tst-context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linuxthreads/tst-context.c b/linuxthreads/tst-context.c index 82a877cffe..c72b2ac101 100644 --- a/linuxthreads/tst-context.c +++ b/linuxthreads/tst-context.c @@ -28,6 +28,12 @@ threadfct (void *arg) { int n = (int) (long int) arg; + if (getcontext (&ctx[n][1]) != 0) + { + printf ("%d: cannot get context: %m\n", n); + exit (1); + } + printf ("%d: %s: before makecontext\n", n, __FUNCTION__); ctx[n][1].uc_stack.ss_sp = stacks[n]; |