diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/alpha/sysdep.h | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/a.out.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/hppa/makecontext.c | 14 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/sysdeps/unix/alpha/sysdep.h b/sysdeps/unix/alpha/sysdep.h index 05f8cde80b..dcd4c79be5 100644 --- a/sysdeps/unix/alpha/sysdep.h +++ b/sysdeps/unix/alpha/sysdep.h @@ -200,7 +200,7 @@ __LABEL(name) \ no matter what the "real" sign of the 32-bit type. We want to preserve that when filling in values for the kernel. */ #define syscall_promote(arg) \ - (sizeof(arg) == 4 ? (long)(int)(long)(arg) : (long)(arg)) + (sizeof (arg) == 4 ? (long)(int)(long)(arg) : (long)(arg)) /* Make sure and "use" the variable that we're not returning, in order to suppress unused variable warnings. */ diff --git a/sysdeps/unix/sysv/linux/alpha/a.out.h b/sysdeps/unix/sysv/linux/alpha/a.out.h index a7699f0fe0..44e19bd8fd 100644 --- a/sysdeps/unix/sysv/linux/alpha/a.out.h +++ b/sysdeps/unix/sysv/linux/alpha/a.out.h @@ -72,8 +72,8 @@ struct exec #define a_gpvalue ah.gpvalue -#define AOUTHSZ sizeof(struct aouthdr) -#define SCNHSZ sizeof(struct scnhdr) +#define AOUTHSZ sizeof (struct aouthdr) +#define SCNHSZ sizeof (struct scnhdr) #define SCNROUND 16 enum machine_type diff --git a/sysdeps/unix/sysv/linux/hppa/makecontext.c b/sysdeps/unix/sysv/linux/hppa/makecontext.c index baa6bb2cee..217fa2b5cc 100644 --- a/sysdeps/unix/sysv/linux/hppa/makecontext.c +++ b/sysdeps/unix/sysv/linux/hppa/makecontext.c @@ -31,9 +31,9 @@ /* Size of frame marker in unsigned long words. */ #define FRAME_SIZE_UL 8 /* Size of frame marker in bytes. */ -#define FRAME_SIZE_BYTES (8 * sizeof(unsigned long)) +#define FRAME_SIZE_BYTES (8 * sizeof (unsigned long)) /* Size of X arguments in bytes. */ -#define ARGS(x) (x * sizeof(unsigned long)) +#define ARGS(x) (x * sizeof (unsigned long)) void __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) @@ -61,14 +61,14 @@ __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) if (ucp->uc_link) { /* Returning to the next context and next frame. */ - sp[-4/sizeof(unsigned long)] = ucp->uc_link->uc_mcontext.sc_gr[30]; - sp[-20/sizeof(unsigned long)] = ucp->uc_link->uc_mcontext.sc_gr[2]; + sp[-4 / sizeof (unsigned long)] = ucp->uc_link->uc_mcontext.sc_gr[30]; + sp[-20 / sizeof (unsigned long)] = ucp->uc_link->uc_mcontext.sc_gr[2]; } else { /* This is the main context. No frame marker, and no return address. */ - sp[-4/sizeof(unsigned long)] = 0x0; - sp[-20/sizeof(unsigned long)] = 0x0; + sp[-4 / sizeof (unsigned long)] = 0x0; + sp[-20 / sizeof (unsigned long)] = 0x0; } /* Store address to jump to. */ @@ -84,7 +84,7 @@ __makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...) continue; } - if ((i < 8) && (sizeof(unsigned long) == 8)) + if ((i < 8) && (sizeof (unsigned long) == 8)) { /* 64bit: r19-r22 are arg7-arg4. */ ucp->uc_mcontext.sc_gr[22+4-i] = va_arg (ap, int); diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h index 95142401a3..640381a5c7 100644 --- a/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h @@ -188,7 +188,7 @@ typedef struct ucontext_t } uc_mcontext; sigset_t uc_sigmask; /* last for extensibility */ - char __ctx(uc_reg_space)[sizeof(mcontext_t) + 12]; + char __ctx(uc_reg_space)[sizeof (mcontext_t) + 12]; #else /* 64-bit */ sigset_t uc_sigmask; mcontext_t uc_mcontext; /* last for extensibility */ |