diff mbox series

[uclibc-ng-devel] Fix wrong `struct ucontext_t` typedef for all arches.

Message ID 20240518150744.584015-1-dm.chestnykh@gmail.com
State Accepted
Headers show
Series [uclibc-ng-devel] Fix wrong `struct ucontext_t` typedef for all arches. | expand

Commit Message

Dmitriy Chestnykh May 18, 2024, 3:07 p.m. UTC
The correct one is `struct ucontext` -> `ucontext_t`.

Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
---
 libc/sysdeps/linux/aarch64/sys/ucontext.h | 4 ++--
 libc/sysdeps/linux/riscv64/sys/ucontext.h | 4 ++--
 libc/sysdeps/linux/tile/sys/ucontext.h    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

Comments

Waldemar Brodkorb May 19, 2024, 8:25 a.m. UTC | #1
Hi Dmitry,
Dmitry Chestnykh wrote,

> The correct one is `struct ucontext` -> `ucontext_t`.
> 
> Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>

Thanks. Committed and pushed,
 best regards
  Waldemar
diff mbox series

Patch

diff --git a/libc/sysdeps/linux/aarch64/sys/ucontext.h b/libc/sysdeps/linux/aarch64/sys/ucontext.h
index 5f75cbbf3..1a27f918b 100644
--- a/libc/sysdeps/linux/aarch64/sys/ucontext.h
+++ b/libc/sysdeps/linux/aarch64/sys/ucontext.h
@@ -45,10 +45,10 @@  typedef elf_fpregset_t	fpregset_t;
 typedef struct sigcontext mcontext_t;
 
 /* Userlevel context.  */
-typedef struct ucontext_t
+typedef struct ucontext
   {
     unsigned long uc_flags;
-    struct ucontext_t *uc_link;
+    struct ucontext *uc_link;
     stack_t uc_stack;
     __sigset_t uc_sigmask;
     unsigned char __reserved[128];
diff --git a/libc/sysdeps/linux/riscv64/sys/ucontext.h b/libc/sysdeps/linux/riscv64/sys/ucontext.h
index 2893ff359..308ccb8c2 100644
--- a/libc/sysdeps/linux/riscv64/sys/ucontext.h
+++ b/libc/sysdeps/linux/riscv64/sys/ucontext.h
@@ -83,10 +83,10 @@  typedef struct mcontext_t
   } mcontext_t;
 
 /* Userlevel context.  */
-typedef struct ucontext_t
+typedef struct ucontext
   {
     unsigned long int  __uc_flags;
-    struct ucontext_t *uc_link;
+    struct ucontext   *uc_link;
     stack_t            uc_stack;
     sigset_t           uc_sigmask;
     /* There's some padding here to allow sigset_t to be expanded in the
diff --git a/libc/sysdeps/linux/tile/sys/ucontext.h b/libc/sysdeps/linux/tile/sys/ucontext.h
index ed2c27b58..068da8c4a 100644
--- a/libc/sysdeps/linux/tile/sys/ucontext.h
+++ b/libc/sysdeps/linux/tile/sys/ucontext.h
@@ -82,10 +82,10 @@  typedef struct
   } mcontext_t;
 
 /* Userlevel context.  */
-typedef struct ucontext_t
+typedef struct ucontext
   {
     unsigned long int __ctx(uc_flags);
-    struct ucontext_t *uc_link;
+    struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
     sigset_t uc_sigmask;