diff options
Diffstat (limited to 'include/asm-mips64')
-rw-r--r-- | include/asm-mips64/posix_types.h | 21 | ||||
-rw-r--r-- | include/asm-mips64/stat.h | 26 |
2 files changed, 46 insertions, 1 deletions
diff --git a/include/asm-mips64/posix_types.h b/include/asm-mips64/posix_types.h index 94d973f65..2de3064c1 100644 --- a/include/asm-mips64/posix_types.h +++ b/include/asm-mips64/posix_types.h @@ -1,4 +1,4 @@ -/* $Id: posix_types.h,v 1.3 2000/02/04 23:32:54 ralf Exp $ +/* $Id: posix_types.h,v 1.4 2000/02/16 01:07:49 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -45,6 +45,25 @@ typedef __kernel_gid_t __kernel_old_gid_t; typedef long long __kernel_loff_t; #endif +/* Now 32bit compatibility types */ +typedef unsigned int __kernel_dev_t32; +typedef unsigned int __kernel_ino_t32; +typedef unsigned int __kernel_mode_t32; +typedef unsigned int __kernel_nlink_t32; +typedef int __kernel_off_t32; +typedef int __kernel_pid_t32; +typedef int __kernel_ipc_pid_t32; +typedef int __kernel_uid_t32; +typedef int __kernel_gid_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_suseconds_t32; +typedef int __kernel_clock_t32; +typedef int __kernel_daddr_t32; +typedef char * __kernel_caddr_t32; + typedef struct { int val[2]; } __kernel_fsid_t; diff --git a/include/asm-mips64/stat.h b/include/asm-mips64/stat.h index f42ef7293..8fdcd95d4 100644 --- a/include/asm-mips64/stat.h +++ b/include/asm-mips64/stat.h @@ -28,6 +28,32 @@ struct __old_kernel_stat { unsigned int st_gen; }; +struct stat32 { + __kernel_dev_t32 st_dev; + int st_pad1[3]; + __kernel_ino_t32 st_ino; + __kernel_mode_t32 st_mode; + __kernel_nlink_t32 st_nlink; + __kernel_uid_t32 st_uid; + __kernel_gid_t32 st_gid; + __kernel_dev_t32 st_rdev; + int st_pad2[2]; + __kernel_off_t32 st_size; + int st_pad3; + __kernel_time_t32 st_atime; + int reserved0; + __kernel_time_t32 st_mtime; + int reserved1; + __kernel_time_t32 st_ctime; + int reserved2; + int st_blksize; + int st_blocks; + char st_fstype[16]; /* Filesystem type name */ + int st_pad4[8]; + unsigned int st_flags; + unsigned int st_gen; +}; + struct stat { dev_t st_dev; long st_pad1[3]; /* Reserved for network id */ |