patch-2.4.21 linux-2.4.21/include/asm-ppc64/ppc32.h
Next file: linux-2.4.21/include/asm-ppc64/ppcdebug.h
Previous file: linux-2.4.21/include/asm-ppc64/posix_types.h
Back to the patch index
Back to the overall index
- Lines: 157
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-ppc64/ppc32.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.20/include/asm-ppc64/ppc32.h linux-2.4.21/include/asm-ppc64/ppc32.h
@@ -43,25 +43,25 @@
})
/* These are here to support 32-bit syscalls on a 64-bit kernel. */
-typedef unsigned int __kernel_size_t32;
-typedef int __kernel_ssize_t32;
-typedef int __kernel_ptrdiff_t32;
-typedef int __kernel_time_t32;
-typedef int __kernel_clock_t32;
-typedef int __kernel_pid_t32;
-typedef unsigned short __kernel_ipc_pid_t32;
-typedef unsigned int __kernel_uid_t32;
-typedef unsigned int __kernel_gid_t32;
-typedef unsigned int __kernel_dev_t32;
-typedef unsigned int __kernel_ino_t32;
-typedef unsigned int __kernel_mode_t32;
-typedef unsigned int __kernel_umode_t32;
-typedef short __kernel_nlink_t32;
-typedef int __kernel_daddr_t32;
-typedef int __kernel_off_t32;
-typedef unsigned int __kernel_caddr_t32;
-typedef int __kernel_loff_t32;
-/* typedef __kernel_fsid_t __kernel_fsid_t32; */
+typedef unsigned int __kernel_size_t32;
+typedef int __kernel_ssize_t32;
+typedef int __kernel_ptrdiff_t32;
+typedef int __kernel_time_t32;
+typedef int __kernel_clock_t32;
+typedef int __kernel_pid_t32;
+typedef unsigned short __kernel_ipc_pid_t32;
+typedef unsigned int __kernel_uid_t32;
+typedef unsigned int __kernel_gid_t32;
+typedef unsigned int __kernel_dev_t32;
+typedef unsigned int __kernel_ino_t32;
+typedef unsigned int __kernel_mode_t32;
+typedef unsigned int __kernel_umode_t32;
+typedef short __kernel_nlink_t32;
+typedef int __kernel_daddr_t32;
+typedef int __kernel_off_t32;
+typedef unsigned int __kernel_caddr_t32;
+typedef int __kernel_loff_t32;
+typedef int __kernel_key_t32;
struct statfs32 {
int f_type;
@@ -87,12 +87,12 @@
int si_code;
union {
- int _pad[SI_PAD_SIZE];
+ int _pad[SI_PAD_SIZE32];
/* kill() */
struct {
__kernel_pid_t32 _pid; /* sender's pid */
- unsigned int _uid; /* sender's uid */
+ __kernel_uid_t32 _uid; /* sender's uid */
} _kill;
/* POSIX.1b timers */
@@ -104,14 +104,14 @@
/* POSIX.1b signals */
struct {
__kernel_pid_t32 _pid; /* sender's pid */
- unsigned int _uid; /* sender's uid */
+ __kernel_uid_t32 _uid; /* sender's uid */
sigval_t32 _sigval;
} _rt;
/* SIGCHLD */
struct {
__kernel_pid_t32 _pid; /* which child */
- unsigned int _uid; /* sender's uid */
+ __kernel_uid_t32 _uid; /* sender's uid */
int _status; /* exit code */
__kernel_clock_t32 _utime;
__kernel_clock_t32 _stime;
@@ -119,8 +119,7 @@
/* SIGILL, SIGFPE, SIGSEGV, SIGBUS, SIGEMT */
struct {
- u32 _addr; /* faulting insn/memory ref. */
- int _trapno;
+ unsigned int _addr; /* faulting insn/memory ref. */
} _sigfault;
/* SIGPOLL */
@@ -136,10 +135,10 @@
typedef unsigned int __old_sigset_t32;
struct __old_sigaction32 {
- unsigned sa_handler;
+ unsigned int sa_handler;
__old_sigset_t32 sa_mask;
unsigned int sa_flags;
- unsigned sa_restorer; /* not used by Linux/SPARC yet */
+ unsigned int sa_restorer; /* not used by Linux/SPARC yet */
};
@@ -153,8 +152,7 @@
} sigset32_t;
struct sigaction32 {
- unsigned int sa_handler; /* Really a pointer, but need to deal
- with 32 bits */
+ unsigned int sa_handler; /* Really a pointer, but need to deal with 32 bits */
unsigned int sa_flags;
unsigned int sa_restorer; /* Another 32 bit pointer */
sigset32_t sa_mask; /* A 32 bit mask */
@@ -212,7 +210,7 @@
unsigned int st_ctime;
};
-struct sigcontext32_struct {
+struct sigcontext32 {
unsigned int _unused[4];
int signal;
unsigned int handler;
@@ -224,9 +222,36 @@
unsigned int uc_flags;
unsigned int uc_link;
stack_32_t uc_stack;
- struct sigcontext32_struct uc_mcontext;
+ struct sigcontext32 uc_mcontext;
sigset_t uc_sigmask; /* mask last for extensibility */
};
+struct ipc_kludge_32 {
+ unsigned int msgp;
+ int msgtyp;
+};
+
+struct ipc_perm32 {
+ __kernel_key_t32 key;
+ __kernel_uid_t32 uid;
+ __kernel_gid_t32 gid;
+ __kernel_uid_t32 cuid;
+ __kernel_gid_t32 cgid;
+ __kernel_mode_t32 mode;
+ unsigned short seq;
+};
+
+struct ipc64_perm32 {
+ __kernel_key_t32 key;
+ __kernel_uid_t32 uid;
+ __kernel_gid_t32 gid;
+ __kernel_uid_t32 cuid;
+ __kernel_gid_t32 cgid;
+ __kernel_mode_t32 mode;
+ unsigned int seq;
+ unsigned int __pad1;
+ unsigned long __unused1;
+ unsigned long __unused2;
+};
#endif /* _PPC64_PPC32_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)