mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
syscall: revert to pre-FreeBSD 10 / POSIX-2008 timespec field names in Stat_t on FreeBSD
CL 138595 introduced the new names when the hardcoded stat8 definitions was replaced with a cgo generated one. Fixes #29393 Updates #22448 Change-Id: I6309958306329ff301c17344b2e0ead0cc874224 Reviewed-on: https://go-review.googlesource.com/c/155958 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
f4f1b14ab4
commit
480373c756
|
@ -386,15 +386,11 @@ pkg syscall (windows-amd64), type RawSockaddrAny struct, Pad [96]int8
|
||||||
pkg syscall (freebsd-386), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-386), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-386), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-386), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-386), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-386), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-386), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-386), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-386), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-386), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-386), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-386), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Pad_cgo_0 [8]uint8
|
pkg syscall (freebsd-386), type Stat_t struct, Pad_cgo_0 [8]uint8
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-386), type Stat_t struct, Rdev uint32
|
||||||
|
@ -403,15 +399,11 @@ pkg syscall (freebsd-386), type Statfs_t struct, Mntonname [88]int8
|
||||||
pkg syscall (freebsd-386-cgo), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-386-cgo), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-386-cgo), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-386-cgo), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-386-cgo), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-386-cgo), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Pad_cgo_0 [8]uint8
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Pad_cgo_0 [8]uint8
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Rdev uint32
|
||||||
|
@ -420,15 +412,11 @@ pkg syscall (freebsd-386-cgo), type Statfs_t struct, Mntonname [88]int8
|
||||||
pkg syscall (freebsd-amd64), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-amd64), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-amd64), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-amd64), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-amd64), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-amd64), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-amd64), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Rdev uint32
|
||||||
pkg syscall (freebsd-amd64), type Statfs_t struct, Mntfromname [88]int8
|
pkg syscall (freebsd-amd64), type Statfs_t struct, Mntfromname [88]int8
|
||||||
|
@ -436,15 +424,11 @@ pkg syscall (freebsd-amd64), type Statfs_t struct, Mntonname [88]int8
|
||||||
pkg syscall (freebsd-amd64-cgo), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-amd64-cgo), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Rdev uint32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Statfs_t struct, Mntfromname [88]int8
|
pkg syscall (freebsd-amd64-cgo), type Statfs_t struct, Mntfromname [88]int8
|
||||||
|
@ -452,15 +436,11 @@ pkg syscall (freebsd-amd64-cgo), type Statfs_t struct, Mntonname [88]int8
|
||||||
pkg syscall (freebsd-arm), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-arm), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-arm), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-arm), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-arm), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-arm), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-arm), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-arm), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-arm), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-arm), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-arm), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-arm), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-arm), type Stat_t struct, Rdev uint32
|
||||||
pkg syscall (freebsd-arm), type Statfs_t struct, Mntfromname [88]int8
|
pkg syscall (freebsd-arm), type Statfs_t struct, Mntfromname [88]int8
|
||||||
|
@ -468,15 +448,11 @@ pkg syscall (freebsd-arm), type Statfs_t struct, Mntonname [88]int8
|
||||||
pkg syscall (freebsd-arm-cgo), func Mknod(string, uint32, int) error
|
pkg syscall (freebsd-arm-cgo), func Mknod(string, uint32, int) error
|
||||||
pkg syscall (freebsd-arm-cgo), type Dirent struct, Fileno uint32
|
pkg syscall (freebsd-arm-cgo), type Dirent struct, Fileno uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Dirent struct, Namlen uint8
|
pkg syscall (freebsd-arm-cgo), type Dirent struct, Namlen uint8
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Atimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Birthtimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Blksize uint32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Blksize uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ctimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Dev uint32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Dev uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Gen uint32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Gen uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ino uint32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ino uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Lspare int32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Lspare int32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Mtimespec Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint16
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint16
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Rdev uint32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Rdev uint32
|
||||||
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntfromname [88]int8
|
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntfromname [88]int8
|
||||||
|
|
|
@ -67,17 +67,13 @@ pkg syscall (freebsd-386), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-386), type Dirent struct, Off int64
|
pkg syscall (freebsd-386), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-386), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-386), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-386), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-386), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Atim_ext int32
|
pkg syscall (freebsd-386), type Stat_t struct, Atim_ext int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-386), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Btim_ext int32
|
pkg syscall (freebsd-386), type Stat_t struct, Btim_ext int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Ctim_ext int32
|
pkg syscall (freebsd-386), type Stat_t struct, Ctim_ext int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-386), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-386), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-386), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Mtim_ext int32
|
pkg syscall (freebsd-386), type Stat_t struct, Mtim_ext int32
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-386), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-386), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-386), type Stat_t struct, Padding0 int16
|
||||||
|
@ -97,17 +93,13 @@ pkg syscall (freebsd-386-cgo), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-386-cgo), type Dirent struct, Off int64
|
pkg syscall (freebsd-386-cgo), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-386-cgo), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-386-cgo), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-386-cgo), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-386-cgo), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Atim_ext int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Atim_ext int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Btim_ext int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Btim_ext int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ctim_ext int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ctim_ext int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Mtim_ext int32
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Mtim_ext int32
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-386-cgo), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-386-cgo), type Stat_t struct, Padding0 int16
|
||||||
|
@ -127,14 +119,10 @@ pkg syscall (freebsd-amd64), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-amd64), type Dirent struct, Off int64
|
pkg syscall (freebsd-amd64), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-amd64), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-amd64), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-amd64), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-amd64), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-amd64), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-amd64), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-amd64), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-amd64), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-amd64), type Stat_t struct, Padding0 int16
|
||||||
pkg syscall (freebsd-amd64), type Stat_t struct, Padding1 int32
|
pkg syscall (freebsd-amd64), type Stat_t struct, Padding1 int32
|
||||||
|
@ -153,14 +141,10 @@ pkg syscall (freebsd-amd64-cgo), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Off int64
|
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-amd64-cgo), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Padding0 int16
|
||||||
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Padding1 int32
|
pkg syscall (freebsd-amd64-cgo), type Stat_t struct, Padding1 int32
|
||||||
|
@ -179,14 +163,10 @@ pkg syscall (freebsd-arm), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-arm), type Dirent struct, Off int64
|
pkg syscall (freebsd-arm), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-arm), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-arm), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-arm), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-arm), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-arm), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-arm), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-arm), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-arm), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-arm), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-arm), type Stat_t struct, Padding0 int16
|
||||||
pkg syscall (freebsd-arm), type Stat_t struct, Padding1 int32
|
pkg syscall (freebsd-arm), type Stat_t struct, Padding1 int32
|
||||||
|
@ -205,14 +185,10 @@ pkg syscall (freebsd-arm-cgo), type Dirent struct, Namlen uint16
|
||||||
pkg syscall (freebsd-arm-cgo), type Dirent struct, Off int64
|
pkg syscall (freebsd-arm-cgo), type Dirent struct, Off int64
|
||||||
pkg syscall (freebsd-arm-cgo), type Dirent struct, Pad0 uint8
|
pkg syscall (freebsd-arm-cgo), type Dirent struct, Pad0 uint8
|
||||||
pkg syscall (freebsd-arm-cgo), type Dirent struct, Pad1 uint16
|
pkg syscall (freebsd-arm-cgo), type Dirent struct, Pad1 uint16
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Atim Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Birthtim Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Blksize int32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Blksize int32
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ctim Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Dev uint64
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Dev uint64
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Gen uint64
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Gen uint64
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ino uint64
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Ino uint64
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Mtim Timespec
|
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint64
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint64
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Padding0 int16
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Padding0 int16
|
||||||
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Padding1 int32
|
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Padding1 int32
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build linux dragonfly freebsd openbsd solaris
|
// +build linux dragonfly openbsd solaris
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin netbsd
|
// +build darwin freebsd netbsd
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
func fillFileStatFromSys(fs *fileStat, name string) {
|
func fillFileStatFromSys(fs *fileStat, name string) {
|
||||||
fs.name = basename(name)
|
fs.name = basename(name)
|
||||||
fs.size = fs.sys.Size
|
fs.size = fs.sys.Size
|
||||||
fs.modTime = timespecToTime(fs.sys.Mtim)
|
fs.modTime = timespecToTime(fs.sys.Mtimespec)
|
||||||
fs.mode = FileMode(fs.sys.Mode & 0777)
|
fs.mode = FileMode(fs.sys.Mode & 0777)
|
||||||
switch fs.sys.Mode & syscall.S_IFMT {
|
switch fs.sys.Mode & syscall.S_IFMT {
|
||||||
case syscall.S_IFBLK:
|
case syscall.S_IFBLK:
|
||||||
|
@ -47,5 +47,5 @@ func timespecToTime(ts syscall.Timespec) time.Time {
|
||||||
|
|
||||||
// For testing.
|
// For testing.
|
||||||
func atime(fi FileInfo) time.Time {
|
func atime(fi FileInfo) time.Time {
|
||||||
return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
|
return timespecToTime(fi.Sys().(*syscall.Stat_t).Atimespec)
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,8 @@ func main() {
|
||||||
|
|
||||||
goarch := os.Getenv("GOARCH")
|
goarch := os.Getenv("GOARCH")
|
||||||
goos := os.Getenv("GOOS")
|
goos := os.Getenv("GOOS")
|
||||||
if goarch == "s390x" && goos == "linux" {
|
switch {
|
||||||
|
case goarch == "s390x" && goos == "linux":
|
||||||
// Export the types of PtraceRegs fields.
|
// Export the types of PtraceRegs fields.
|
||||||
re := regexp.MustCompile("ptrace(Psw|Fpregs|Per)")
|
re := regexp.MustCompile("ptrace(Psw|Fpregs|Per)")
|
||||||
s = re.ReplaceAllString(s, "Ptrace$1")
|
s = re.ReplaceAllString(s, "Ptrace$1")
|
||||||
|
@ -53,6 +54,11 @@ func main() {
|
||||||
// the existing gccgo API.
|
// the existing gccgo API.
|
||||||
re = regexp.MustCompile("(Data\\s+\\[14\\])uint8")
|
re = regexp.MustCompile("(Data\\s+\\[14\\])uint8")
|
||||||
s = re.ReplaceAllString(s, "${1}int8")
|
s = re.ReplaceAllString(s, "${1}int8")
|
||||||
|
|
||||||
|
case goos == "freebsd":
|
||||||
|
// Keep pre-FreeBSD 10 / non-POSIX 2008 names for timespec fields
|
||||||
|
re := regexp.MustCompile("(A|M|C|Birth)tim\\s+Timespec")
|
||||||
|
s = re.ReplaceAllString(s, "${1}timespec Timespec")
|
||||||
}
|
}
|
||||||
|
|
||||||
// gofmt
|
// gofmt
|
||||||
|
|
|
@ -300,22 +300,22 @@ func roundup(x, y int) int {
|
||||||
|
|
||||||
func (s *Stat_t) convertFrom(old *stat_freebsd11_t) {
|
func (s *Stat_t) convertFrom(old *stat_freebsd11_t) {
|
||||||
*s = Stat_t{
|
*s = Stat_t{
|
||||||
Dev: uint64(old.Dev),
|
Dev: uint64(old.Dev),
|
||||||
Ino: uint64(old.Ino),
|
Ino: uint64(old.Ino),
|
||||||
Nlink: uint64(old.Nlink),
|
Nlink: uint64(old.Nlink),
|
||||||
Mode: old.Mode,
|
Mode: old.Mode,
|
||||||
Uid: old.Uid,
|
Uid: old.Uid,
|
||||||
Gid: old.Gid,
|
Gid: old.Gid,
|
||||||
Rdev: uint64(old.Rdev),
|
Rdev: uint64(old.Rdev),
|
||||||
Atim: old.Atim,
|
Atimespec: old.Atimespec,
|
||||||
Mtim: old.Mtim,
|
Mtimespec: old.Mtimespec,
|
||||||
Ctim: old.Ctim,
|
Ctimespec: old.Ctimespec,
|
||||||
Birthtim: old.Birthtim,
|
Birthtimespec: old.Birthtimespec,
|
||||||
Size: old.Size,
|
Size: old.Size,
|
||||||
Blocks: old.Blocks,
|
Blocks: old.Blocks,
|
||||||
Blksize: old.Blksize,
|
Blksize: old.Blksize,
|
||||||
Flags: old.Flags,
|
Flags: old.Flags,
|
||||||
Gen: uint64(old.Gen),
|
Gen: uint64(old.Gen),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,50 +81,50 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
Ino uint64
|
Ino uint64
|
||||||
Nlink uint64
|
Nlink uint64
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Padding0 int16
|
Padding0 int16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Padding1 int32
|
Padding1 int32
|
||||||
Rdev uint64
|
Rdev uint64
|
||||||
Atim_ext int32
|
Atim_ext int32
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim_ext int32
|
Mtim_ext int32
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim_ext int32
|
Ctim_ext int32
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Btim_ext int32
|
Btim_ext int32
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint64
|
Gen uint64
|
||||||
Spare [10]uint64
|
Spare [10]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type stat_freebsd11_t struct {
|
type stat_freebsd11_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Nlink uint16
|
Nlink uint16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev uint32
|
Rdev uint32
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
Pad_cgo_0 [8]byte
|
Pad_cgo_0 [8]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Statfs_t struct {
|
type Statfs_t struct {
|
||||||
|
|
|
@ -81,45 +81,45 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
Ino uint64
|
Ino uint64
|
||||||
Nlink uint64
|
Nlink uint64
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Padding0 int16
|
Padding0 int16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Padding1 int32
|
Padding1 int32
|
||||||
Rdev uint64
|
Rdev uint64
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint64
|
Gen uint64
|
||||||
Spare [10]uint64
|
Spare [10]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type stat_freebsd11_t struct {
|
type stat_freebsd11_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Nlink uint16
|
Nlink uint16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev uint32
|
Rdev uint32
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
}
|
}
|
||||||
|
|
||||||
type Statfs_t struct {
|
type Statfs_t struct {
|
||||||
|
|
|
@ -83,45 +83,45 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
Ino uint64
|
Ino uint64
|
||||||
Nlink uint64
|
Nlink uint64
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Padding0 int16
|
Padding0 int16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Padding1 int32
|
Padding1 int32
|
||||||
Rdev uint64
|
Rdev uint64
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint64
|
Gen uint64
|
||||||
Spare [10]uint64
|
Spare [10]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type stat_freebsd11_t struct {
|
type stat_freebsd11_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
Mode uint16
|
Mode uint16
|
||||||
Nlink uint16
|
Nlink uint16
|
||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev uint32
|
Rdev uint32
|
||||||
Atim Timespec
|
Atimespec Timespec
|
||||||
Mtim Timespec
|
Mtimespec Timespec
|
||||||
Ctim Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize int32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
Birthtim Timespec
|
Birthtimespec Timespec
|
||||||
}
|
}
|
||||||
|
|
||||||
type Statfs_t struct {
|
type Statfs_t struct {
|
||||||
|
|
Loading…
Reference in a new issue