Skip to content

Commit f70c1d6

Browse files
a-popIgor Wodiany
authored and
Igor Wodiany
committed
struct xxx -> xxx_t
1 parent 6d9c131 commit f70c1d6

17 files changed

+18
-21
lines changed

gcc/libgcc/config/aarch64/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ aarch64_fallback_frame_state (struct _Unwind_Context *context,
5252
struct rt_sigframe
5353
{
5454
siginfo_t info;
55-
struct ucontext uc;
55+
ucontext_t uc;
5656
};
5757

5858
struct rt_sigframe *rt_;

gcc/libgcc/config/alpha/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ alpha_fallback_frame_state (struct _Unwind_Context *context,
5151
{
5252
struct rt_sigframe {
5353
siginfo_t info;
54-
struct ucontext uc;
54+
ucontext_t uc;
5555
} *rt_ = context->cfa;
5656
sc = &rt_->uc.uc_mcontext;
5757
}

gcc/libgcc/config/bfin/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ bfin_fallback_frame_state (struct _Unwind_Context *context,
5252
void *puc;
5353
char retcode[8];
5454
siginfo_t info;
55-
struct ucontext uc;
55+
ucontext_t uc;
5656
} *rt_ = context->cfa;
5757

5858
/* The void * cast is necessary to avoid an aliasing warning.

gcc/libgcc/config/i386/linux-unwind.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
5858
if (*(unsigned char *)(pc+0) == 0x48
5959
&& *(unsigned long long *)(pc+1) == RT_SIGRETURN_SYSCALL)
6060
{
61-
struct ucontext *uc_ = context->cfa;
61+
ucontext_t *uc_ = context->cfa;
6262
/* The void * cast is necessary to avoid an aliasing warning.
6363
The aliasing warning is correct, but should not be a problem
6464
because it does not alias anything. */
@@ -138,7 +138,7 @@ x86_fallback_frame_state (struct _Unwind_Context *context,
138138
siginfo_t *pinfo;
139139
void *puc;
140140
siginfo_t info;
141-
struct ucontext uc;
141+
ucontext_t uc;
142142
} *rt_ = context->cfa;
143143
/* The void * cast is necessary to avoid an aliasing warning.
144144
The aliasing warning is correct, but should not be a problem

gcc/libgcc/config/m68k/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3333
/* <sys/ucontext.h> is unfortunately broken right now. */
3434
struct uw_ucontext {
3535
unsigned long uc_flags;
36-
struct ucontext *uc_link;
36+
ucontext_t *uc_link;
3737
stack_t uc_stack;
3838
mcontext_t uc_mcontext;
3939
unsigned long uc_filler[80];

gcc/libgcc/config/nios2/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct nios2_mcontext {
3838

3939
struct nios2_ucontext {
4040
unsigned long uc_flags;
41-
struct ucontext *uc_link;
41+
ucontext_t *uc_link;
4242
stack_t uc_stack;
4343
struct nios2_mcontext uc_mcontext;
4444
sigset_t uc_sigmask; /* mask last for extensibility */

gcc/libgcc/config/pa/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pa32_fallback_frame_state (struct _Unwind_Context *context,
8080
struct sigcontext *sc;
8181
struct rt_sigframe {
8282
siginfo_t info;
83-
struct ucontext uc;
83+
ucontext_t uc;
8484
} *frame;
8585

8686
/* rt_sigreturn trampoline:

gcc/libgcc/config/sh/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ sh_fallback_frame_state (struct _Unwind_Context *context,
180180
{
181181
struct rt_sigframe {
182182
siginfo_t info;
183-
struct ucontext uc;
183+
ucontext_t uc;
184184
} *rt_ = context->cfa;
185185
/* The void * cast is necessary to avoid an aliasing warning.
186186
The aliasing warning is correct, but should not be a problem

gcc/libgcc/config/tilepro/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tile_fallback_frame_state (struct _Unwind_Context *context,
6161
struct rt_sigframe {
6262
unsigned char save_area[C_ABI_SAVE_AREA_SIZE];
6363
siginfo_t info;
64-
struct ucontext uc;
64+
ucontext_t uc;
6565
} *rt_;
6666

6767
/* Return if this is not a signal handler. */

gcc/libgcc/config/xtensa/linux-unwind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ xtensa_fallback_frame_state (struct _Unwind_Context *context,
6464

6565
struct rt_sigframe {
6666
siginfo_t info;
67-
struct ucontext uc;
67+
ucontext_t uc;
6868
} *rt_;
6969

7070
/* movi a2, __NR_rt_sigreturn; syscall */

gcc/libjava/include/i386-signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void _Jv_##_name (int, siginfo_t *, \
2929
#define HANDLE_DIVIDE_OVERFLOW \
3030
do \
3131
{ \
32-
struct ucontext *_uc = (struct ucontext *)_p; \
32+
ucontext_t *_uc = (ucontext_t *)_p; \
3333
gregset_t &_gregs = _uc->uc_mcontext.gregs; \
3434
unsigned char *_eip = (unsigned char *)_gregs[REG_EIP]; \
3535
\

gcc/libjava/include/s390-signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ do \
5151
struct \
5252
{ \
5353
unsigned long int uc_flags; \
54-
struct ucontext *uc_link; \
54+
ucontext_t *uc_link; \
5555
stack_t uc_stack; \
5656
mcontext_t uc_mcontext; \
5757
unsigned long sigmask[2]; \

gcc/libjava/include/x86_64-signal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static void _Jv_##_name (int, siginfo_t *, \
2828
#define HANDLE_DIVIDE_OVERFLOW \
2929
do \
3030
{ \
31-
struct ucontext *_uc = (struct ucontext *)_p; \
31+
ucontext_t *_uc = (ucontext_t *)_p; \
3232
gregset_t &_gregs = _uc->uc_mcontext.gregs; \
3333
unsigned char *_rip = (unsigned char *)_gregs[REG_RIP]; \
3434
\

gcc/libsanitizer/sanitizer_common/sanitizer_linux.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,7 @@ uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5) {
514514
}
515515
#endif
516516

517-
uptr internal_sigaltstack(const struct sigaltstack *ss,
518-
struct sigaltstack *oss) {
517+
uptr internal_sigaltstack(const void *ss, void *oss) {
519518
return internal_syscall(SYSCALL(sigaltstack), (uptr)ss, (uptr)oss);
520519
}
521520

gcc/libsanitizer/sanitizer_common/sanitizer_linux.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "sanitizer_platform_limits_posix.h"
1919

2020
struct link_map; // Opaque type returned by dlopen().
21-
struct sigaltstack;
2221

2322
namespace __sanitizer {
2423
// Dirent structure for getdents(). Note that this structure is different from
@@ -27,8 +26,7 @@ struct linux_dirent;
2726

2827
// Syscall wrappers.
2928
uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
30-
uptr internal_sigaltstack(const struct sigaltstack* ss,
31-
struct sigaltstack* oss);
29+
uptr internal_sigaltstack(const void* ss, void* oss);
3230
uptr internal_sigprocmask(int how, __sanitizer_sigset_t *set,
3331
__sanitizer_sigset_t *oldset);
3432
void internal_sigfillset(__sanitizer_sigset_t *set);

gcc/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int TracerThread(void* argument) {
234234

235235
// Alternate stack for signal handling.
236236
InternalScopedBuffer<char> handler_stack_memory(kHandlerStackSize);
237-
struct sigaltstack handler_stack;
237+
stack_t handler_stack;
238238
internal_memset(&handler_stack, 0, sizeof(handler_stack));
239239
handler_stack.ss_sp = handler_stack_memory.data();
240240
handler_stack.ss_size = kHandlerStackSize;

gcc/libsanitizer/tsan/tsan_platform_linux.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ bool IsGlobalVar(uptr addr) {
377377
int ExtractResolvFDs(void *state, int *fds, int nfd) {
378378
#if SANITIZER_LINUX
379379
int cnt = 0;
380-
__res_state *statp = (__res_state*)state;
380+
struct __res_state *statp = (struct __res_state*)state;
381381
for (int i = 0; i < MAXNS && cnt < nfd; i++) {
382382
if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
383383
fds[cnt++] = statp->_u._ext.nssocks[i];

0 commit comments

Comments
 (0)