Patch for PR libc/10001
Andreas Jaeger
aj@arthur.rhein-neckar.de
Thu Apr 1 00:00:00 GMT 1999
Craig Metz reported that struct ucontext uses uc_links instead of
uc_link like Solaris. I had a look into Unix98 and found that they
use uc_link. us_link is also used by the Linux kernel - and some
architectures have it already right in glibc (Linux/sparc*,
Solaris2/sparc). Internally uc_link(s) is not used in glibc.
I'm appending a patch to rename the fields. Should we add this
verbatim or do we need to add a backwards compatible macro uc_links?
Andreas
1999-03-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/i386/sys/ucontext.h (ucontext): Rename field uc_links to
uc_link which is the right name according to Unix98.
Reported by Craig Metz [PR libc/1001].
* sysdeps/arm/sys/ucontext.h (ucontext): Likewise.
* sysdeps/m68k/sys/ucontext.h (ucontext): Likewise.
* sysdeps/mips/sys/ucontext.h (ucontext): Likewise.
* sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (ucontext): Likewise.
* sysdeps/unix/sysv/linux/i386/sys/ucontext.h (ucontext): Likewise
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext): Likewise.
============================================================
Index: sysdeps/i386/sys/ucontext.h
--- sysdeps/i386/sys/ucontext.h 1997/12/03 23:29:06 1.2
+++ sysdeps/i386/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -110,7 +110,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
__sigset_t uc_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
============================================================
Index: sysdeps/arm/sys/ucontext.h
--- sysdeps/arm/sys/ucontext.h 1998/02/10 19:59:41 1.1
+++ sysdeps/arm/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -85,7 +85,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
__sigset_t uc_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
============================================================
Index: sysdeps/m68k/sys/ucontext.h
--- sysdeps/m68k/sys/ucontext.h 1997/10/26 19:59:49 1.1
+++ sysdeps/m68k/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -98,7 +98,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
__sigset_t uc_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
============================================================
Index: sysdeps/mips/sys/ucontext.h
--- sysdeps/mips/sys/ucontext.h 1998/11/26 12:01:59 1.1
+++ sysdeps/mips/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -134,7 +134,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
__sigset_t uc_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
============================================================
Index: sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
--- sysdeps/unix/sysv/linux/alpha/sys/ucontext.h 1998/01/26 22:04:53 1.1
+++ sysdeps/unix/sysv/linux/alpha/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -31,7 +31,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
unsigned long __uc_osf_sigmask;
stack_t uc_stack;
mcontext_t uc_mcontext;
============================================================
Index: sysdeps/unix/sysv/linux/i386/sys/ucontext.h
--- sysdeps/unix/sysv/linux/i386/sys/ucontext.h 1998/01/25 16:57:24 1.2
+++ sysdeps/unix/sysv/linux/i386/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -97,7 +97,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
__sigset_t uc_sigmask;
============================================================
Index: sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
--- sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h 1998/03/04 17:14:25 1.1
+++ sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h 1999/03/01 07:52:51
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -32,7 +32,7 @@
typedef struct ucontext
{
unsigned long int uc_flags;
- struct ucontext *uc_links;
+ struct ucontext *uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
__sigset_t uc_sigmask;
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de
More information about the Libc-alpha
mailing list