Created
September 16, 2021 10:18
-
-
Save tklauser/1f48bf55c14df195d03213d1c5d5236a to your computer and use it in GitHub Desktop.
ztypes_linux*.go.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/unix/ztypes_linux_arm.go b/unix/ztypes_linux_arm.go | |
index c4982a22982e..35385673ddb7 100644 | |
--- a/unix/ztypes_linux_arm.go | |
+++ b/unix/ztypes_linux_arm.go | |
@@ -83,24 +83,24 @@ type Rusage struct { | |
} | |
type Stat_t struct { | |
- Dev uint64 | |
- _ uint16 | |
- _ uint32 | |
- Mode uint32 | |
- Nlink uint32 | |
- Uid uint32 | |
- Gid uint32 | |
- Rdev uint64 | |
- _ uint16 | |
- _ [4]byte | |
- Size int64 | |
- Blksize int32 | |
- _ [4]byte | |
- Blocks int64 | |
- Atim Timespec | |
- Mtim Timespec | |
- Ctim Timespec | |
- Ino uint64 | |
+ St_dev uint64 | |
+ _ uint16 | |
+ _ uint32 | |
+ St_mode uint32 | |
+ St_nlink uint32 | |
+ St_uid uint32 | |
+ St_gid uint32 | |
+ St_rdev uint64 | |
+ _ uint16 | |
+ _ [4]byte | |
+ St_size int64 | |
+ St_blksize int32 | |
+ _ [4]byte | |
+ St_blocks int64 | |
+ St_atim Timespec | |
+ St_mtim Timespec | |
+ St_ctim Timespec | |
+ St_ino uint64 | |
} | |
type Dirent struct { | |
@@ -113,13 +113,13 @@ type Dirent struct { | |
} | |
type Flock_t struct { | |
- Type int16 | |
- Whence int16 | |
- _ [4]byte | |
- Start int64 | |
- Len int64 | |
- Pid int32 | |
- _ [4]byte | |
+ L_type int16 | |
+ L_whence int16 | |
+ _ [4]byte | |
+ L_start int64 | |
+ L_len int64 | |
+ L_pid int32 | |
+ _ [4]byte | |
} | |
type DmNameList struct { | |
diff --git a/unix/ztypes_linux_mips.go b/unix/ztypes_linux_mips.go | |
index d5bfc3565624..899f64fafd7a 100644 | |
--- a/unix/ztypes_linux_mips.go | |
+++ b/unix/ztypes_linux_mips.go | |
@@ -112,13 +112,13 @@ type Dirent struct { | |
} | |
type Flock_t struct { | |
- Type int16 | |
- Whence int16 | |
- _ [4]byte | |
- Start int64 | |
- Len int64 | |
- Pid int32 | |
- _ [4]byte | |
+ L_type int16 | |
+ L_whence int16 | |
+ _ [4]byte | |
+ L_start int64 | |
+ L_len int64 | |
+ L_pid int32 | |
+ _ [4]byte | |
} | |
type DmNameList struct { | |
@@ -396,20 +396,20 @@ type HDGeometry struct { | |
} | |
type Statfs_t struct { | |
- Type int32 | |
- Bsize int32 | |
- Frsize int32 | |
- _ [4]byte | |
- Blocks uint64 | |
- Bfree uint64 | |
- Files uint64 | |
- Ffree uint64 | |
- Bavail uint64 | |
- Fsid Fsid | |
- Namelen int32 | |
- Flags int32 | |
- Spare [5]int32 | |
- _ [4]byte | |
+ F_type int32 | |
+ F_bsize int32 | |
+ F_frsize int32 | |
+ _ [4]byte | |
+ F_blocks uint64 | |
+ F_bfree uint64 | |
+ F_files uint64 | |
+ F_ffree uint64 | |
+ F_bavail uint64 | |
+ F_fsid Fsid | |
+ F_namelen int32 | |
+ F_flags int32 | |
+ F_spare [5]int32 | |
+ _ [4]byte | |
} | |
type TpacketHdr struct { | |
diff --git a/unix/ztypes_linux_mipsle.go b/unix/ztypes_linux_mipsle.go | |
index b43d8e2ce4c8..27e5c5768cd9 100644 | |
--- a/unix/ztypes_linux_mipsle.go | |
+++ b/unix/ztypes_linux_mipsle.go | |
@@ -112,13 +112,13 @@ type Dirent struct { | |
} | |
type Flock_t struct { | |
- Type int16 | |
- Whence int16 | |
- _ [4]byte | |
- Start int64 | |
- Len int64 | |
- Pid int32 | |
- _ [4]byte | |
+ L_type int16 | |
+ L_whence int16 | |
+ _ [4]byte | |
+ L_start int64 | |
+ L_len int64 | |
+ L_pid int32 | |
+ _ [4]byte | |
} | |
type DmNameList struct { | |
@@ -396,20 +396,20 @@ type HDGeometry struct { | |
} | |
type Statfs_t struct { | |
- Type int32 | |
- Bsize int32 | |
- Frsize int32 | |
- _ [4]byte | |
- Blocks uint64 | |
- Bfree uint64 | |
- Files uint64 | |
- Ffree uint64 | |
- Bavail uint64 | |
- Fsid Fsid | |
- Namelen int32 | |
- Flags int32 | |
- Spare [5]int32 | |
- _ [4]byte | |
+ F_type int32 | |
+ F_bsize int32 | |
+ F_frsize int32 | |
+ _ [4]byte | |
+ F_blocks uint64 | |
+ F_bfree uint64 | |
+ F_files uint64 | |
+ F_ffree uint64 | |
+ F_bavail uint64 | |
+ F_fsid Fsid | |
+ F_namelen int32 | |
+ F_flags int32 | |
+ F_spare [5]int32 | |
+ _ [4]byte | |
} | |
type TpacketHdr struct { | |
diff --git a/unix/ztypes_linux_ppc.go b/unix/ztypes_linux_ppc.go | |
index efd7313a76cc..b5314f57413c 100644 | |
--- a/unix/ztypes_linux_ppc.go | |
+++ b/unix/ztypes_linux_ppc.go | |
@@ -83,24 +83,24 @@ type Rusage struct { | |
} | |
type Stat_t struct { | |
- Dev uint64 | |
- Ino uint64 | |
- Mode uint32 | |
- Nlink uint32 | |
- Uid uint32 | |
- Gid uint32 | |
- Rdev uint64 | |
- _ uint16 | |
- _ [4]byte | |
- Size int64 | |
- Blksize int32 | |
- _ [4]byte | |
- Blocks int64 | |
- Atim Timespec | |
- Mtim Timespec | |
- Ctim Timespec | |
- _ uint32 | |
- _ uint32 | |
+ St_dev uint64 | |
+ St_ino uint64 | |
+ St_mode uint32 | |
+ St_nlink uint32 | |
+ St_uid uint32 | |
+ St_gid uint32 | |
+ St_rdev uint64 | |
+ _ uint16 | |
+ _ [4]byte | |
+ St_size int64 | |
+ St_blksize int32 | |
+ _ [4]byte | |
+ St_blocks int64 | |
+ St_atim Timespec | |
+ St_mtim Timespec | |
+ St_ctim Timespec | |
+ _ uint32 | |
+ _ uint32 | |
} | |
type Dirent struct { | |
@@ -113,13 +113,13 @@ type Dirent struct { | |
} | |
type Flock_t struct { | |
- Type int16 | |
- Whence int16 | |
- _ [4]byte | |
- Start int64 | |
- Len int64 | |
- Pid int32 | |
- _ [4]byte | |
+ L_type int16 | |
+ L_whence int16 | |
+ _ [4]byte | |
+ L_start int64 | |
+ L_len int64 | |
+ L_pid int32 | |
+ _ [4]byte | |
} | |
type DmNameList struct { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment