Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch define struct linux_stat64 used by lin...



details:   https://anonhg.NetBSD.org/src/rev/c5b2d9aa841c
branches:  trunk
changeset: 500488:c5b2d9aa841c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Dec 12 19:07:59 2000 +0000

description:
define struct linux_stat64 used by linux_sys_*stat64()

diffstat:

 sys/compat/linux/arch/i386/linux_types.h |  38 +++++++++++++++++++++++++++++++-
 sys/compat/linux/arch/m68k/linux_types.h |  38 +++++++++++++++++++++++++++++++-
 2 files changed, 74 insertions(+), 2 deletions(-)

diffs (100 lines):

diff -r 059a9c323ab3 -r c5b2d9aa841c sys/compat/linux/arch/i386/linux_types.h
--- a/sys/compat/linux/arch/i386/linux_types.h  Tue Dec 12 19:06:53 2000 +0000
+++ b/sys/compat/linux/arch/i386/linux_types.h  Tue Dec 12 19:07:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_types.h,v 1.7 1998/10/04 00:02:29 fvdl Exp $     */
+/*     $NetBSD: linux_types.h,v 1.8 2000/12/12 19:07:59 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -95,4 +95,40 @@
        unsigned long           unused5;
 };
 
+/* This matches struct stat64 in glibc2.1, hence the absolutely
+ * insane amounts of padding around dev_t's.
+ */
+struct linux_stat64 {
+       unsigned short  lst_dev;
+       unsigned char   __pad0[10];
+
+       unsigned long   lst_ino;
+       unsigned int    lst_mode;
+       unsigned int    lst_nlink;
+
+       unsigned long   lst_uid;
+       unsigned long   lst_gid;
+
+       unsigned short  lst_rdev;
+       unsigned char   __pad3[10];
+
+       long long       lst_size;
+       unsigned long   lst_blksize;
+
+       unsigned long   lst_blocks;     /* Number 512-byte blocks allocated. */
+       unsigned long   __pad4;         /* future possible st_blocks high bits*/
+
+       unsigned long   lst_atime;
+       unsigned long   __pad5;
+
+       unsigned long   lst_mtime;
+       unsigned long   __pad6;
+
+       unsigned long   lst_ctime;
+       unsigned long   __pad7;         /* will be high 32 bits of ctime someday */
+
+       unsigned long   __unused1;
+       unsigned long   __unused2;
+};
+
 #endif /* !_I386_LINUX_TYPES_H */
diff -r 059a9c323ab3 -r c5b2d9aa841c sys/compat/linux/arch/m68k/linux_types.h
--- a/sys/compat/linux/arch/m68k/linux_types.h  Tue Dec 12 19:06:53 2000 +0000
+++ b/sys/compat/linux/arch/m68k/linux_types.h  Tue Dec 12 19:07:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_types.h,v 1.1 1998/12/15 19:25:41 itohy Exp $    */
+/*     $NetBSD: linux_types.h,v 1.2 2000/12/12 19:07:59 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -95,4 +95,40 @@
        unsigned long           unused5;
 };
 
+/* This matches struct stat64 in glibc2.1, hence the absolutely
+ * insane amounts of padding around dev_t's.
+ */
+struct linux_stat64 {
+       unsigned short  lst_dev;
+       unsigned char   __pad0[10];
+
+       unsigned long   lst_ino;
+       unsigned int    lst_mode;
+       unsigned int    lst_nlink;
+
+       unsigned long   lst_uid;
+       unsigned long   lst_gid;
+
+       unsigned short  lst_rdev;
+       unsigned char   __pad3[10];
+
+       long long       lst_size;
+       unsigned long   lst_blksize;
+
+       unsigned long   lst_blocks;     /* Number 512-byte blocks allocated. */
+       unsigned long   __pad4;         /* future possible st_blocks high bits */
+
+       unsigned long   lst_atime;
+       unsigned long   __pad5;
+
+       unsigned long   lst_mtime;
+       unsigned long   __pad6;
+
+       unsigned long   lst_ctime;
+       unsigned long   __pad7;         /* will be high 32 bits of ctime someday */
+
+       unsigned long   __unused1;
+       unsigned long   __unused2;
+};
+
 #endif /* !_M68K_LINUX_TYPES_H */



Home | Main Index | Thread Index | Old Index