mirror of
https://gitea.com/Sirherobrine23/tea.git
synced 2024-08-21 23:47:24 +00:00
update go min version Update Vendors: * code.gitea.io/gitea-vet v0.2.0 -> v0.2.1 * code.gitea.io/sdk/gitea v0.13.0 -> v0.13.1 * github.com/AlecAivazis/survey v2.1.1 -> v2.2.2 * github.com/adrg/xdg v0.2.1 -> v0.2.2 * github.com/araddon/dateparse d820a6159ab1 -> 8aadafed4dc4 * github.com/go-git/go-git v5.1.0 -> v5.2.0 * github.com/muesli/termenv v0.7.2 -> v0.7.4 * github.com/stretchr/testify v1.5.1 -> v1.6.1 * github.com/urfave/cli v2.2.0 -> v2.3.0 Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/250 Reviewed-by: Andrew Thornton <art27@cantab.net> Reviewed-by: mrsdizzie <info@mrsdizzie.com> Co-Authored-By: 6543 <6543@noreply.gitea.io> Co-Committed-By: 6543 <6543@noreply.gitea.io>
641 lines
11 KiB
Go
641 lines
11 KiB
Go
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go
|
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
|
|
|
// +build s390x,linux
|
|
|
|
package unix
|
|
|
|
const (
|
|
SizeofPtr = 0x8
|
|
SizeofLong = 0x8
|
|
)
|
|
|
|
type (
|
|
_C_long int64
|
|
)
|
|
|
|
type Timespec struct {
|
|
Sec int64
|
|
Nsec int64
|
|
}
|
|
|
|
type Timeval struct {
|
|
Sec int64
|
|
Usec int64
|
|
}
|
|
|
|
type Timex struct {
|
|
Modes uint32
|
|
Offset int64
|
|
Freq int64
|
|
Maxerror int64
|
|
Esterror int64
|
|
Status int32
|
|
Constant int64
|
|
Precision int64
|
|
Tolerance int64
|
|
Time Timeval
|
|
Tick int64
|
|
Ppsfreq int64
|
|
Jitter int64
|
|
Shift int32
|
|
Stabil int64
|
|
Jitcnt int64
|
|
Calcnt int64
|
|
Errcnt int64
|
|
Stbcnt int64
|
|
Tai int32
|
|
_ [44]byte
|
|
}
|
|
|
|
type Time_t int64
|
|
|
|
type Tms struct {
|
|
Utime int64
|
|
Stime int64
|
|
Cutime int64
|
|
Cstime int64
|
|
}
|
|
|
|
type Utimbuf struct {
|
|
Actime int64
|
|
Modtime int64
|
|
}
|
|
|
|
type Rusage struct {
|
|
Utime Timeval
|
|
Stime Timeval
|
|
Maxrss int64
|
|
Ixrss int64
|
|
Idrss int64
|
|
Isrss int64
|
|
Minflt int64
|
|
Majflt int64
|
|
Nswap int64
|
|
Inblock int64
|
|
Oublock int64
|
|
Msgsnd int64
|
|
Msgrcv int64
|
|
Nsignals int64
|
|
Nvcsw int64
|
|
Nivcsw int64
|
|
}
|
|
|
|
type Stat_t struct {
|
|
Dev uint64
|
|
Ino uint64
|
|
Nlink uint64
|
|
Mode uint32
|
|
Uid uint32
|
|
Gid uint32
|
|
_ int32
|
|
Rdev uint64
|
|
Size int64
|
|
Atim Timespec
|
|
Mtim Timespec
|
|
Ctim Timespec
|
|
Blksize int64
|
|
Blocks int64
|
|
_ [3]int64
|
|
}
|
|
|
|
type Dirent struct {
|
|
Ino uint64
|
|
Off int64
|
|
Reclen uint16
|
|
Type uint8
|
|
Name [256]int8
|
|
_ [5]byte
|
|
}
|
|
|
|
type Flock_t struct {
|
|
Type int16
|
|
Whence int16
|
|
Start int64
|
|
Len int64
|
|
Pid int32
|
|
_ [4]byte
|
|
}
|
|
|
|
type DmNameList struct {
|
|
Dev uint64
|
|
Next uint32
|
|
Name [0]byte
|
|
_ [4]byte
|
|
}
|
|
|
|
const (
|
|
FADV_DONTNEED = 0x6
|
|
FADV_NOREUSE = 0x7
|
|
)
|
|
|
|
type RawSockaddr struct {
|
|
Family uint16
|
|
Data [14]int8
|
|
}
|
|
|
|
type RawSockaddrAny struct {
|
|
Addr RawSockaddr
|
|
Pad [96]int8
|
|
}
|
|
|
|
type Iovec struct {
|
|
Base *byte
|
|
Len uint64
|
|
}
|
|
|
|
type Msghdr struct {
|
|
Name *byte
|
|
Namelen uint32
|
|
Iov *Iovec
|
|
Iovlen uint64
|
|
Control *byte
|
|
Controllen uint64
|
|
Flags int32
|
|
_ [4]byte
|
|
}
|
|
|
|
type Cmsghdr struct {
|
|
Len uint64
|
|
Level int32
|
|
Type int32
|
|
}
|
|
|
|
const (
|
|
SizeofIovec = 0x10
|
|
SizeofMsghdr = 0x38
|
|
SizeofCmsghdr = 0x10
|
|
)
|
|
|
|
const (
|
|
SizeofSockFprog = 0x10
|
|
)
|
|
|
|
type PtraceRegs struct {
|
|
Psw PtracePsw
|
|
Gprs [16]uint64
|
|
Acrs [16]uint32
|
|
Orig_gpr2 uint64
|
|
Fp_regs PtraceFpregs
|
|
Per_info PtracePer
|
|
Ieee_instruction_pointer uint64
|
|
}
|
|
|
|
type PtracePsw struct {
|
|
Mask uint64
|
|
Addr uint64
|
|
}
|
|
|
|
type PtraceFpregs struct {
|
|
Fpc uint32
|
|
Fprs [16]float64
|
|
}
|
|
|
|
type PtracePer struct {
|
|
_ [0]uint64
|
|
_ [32]byte
|
|
Starting_addr uint64
|
|
Ending_addr uint64
|
|
Perc_atmid uint16
|
|
Address uint64
|
|
Access_id uint8
|
|
_ [7]byte
|
|
}
|
|
|
|
type FdSet struct {
|
|
Bits [16]int64
|
|
}
|
|
|
|
type Sysinfo_t struct {
|
|
Uptime int64
|
|
Loads [3]uint64
|
|
Totalram uint64
|
|
Freeram uint64
|
|
Sharedram uint64
|
|
Bufferram uint64
|
|
Totalswap uint64
|
|
Freeswap uint64
|
|
Procs uint16
|
|
Pad uint16
|
|
Totalhigh uint64
|
|
Freehigh uint64
|
|
Unit uint32
|
|
_ [0]int8
|
|
_ [4]byte
|
|
}
|
|
|
|
type Ustat_t struct {
|
|
Tfree int32
|
|
Tinode uint64
|
|
Fname [6]int8
|
|
Fpack [6]int8
|
|
_ [4]byte
|
|
}
|
|
|
|
type EpollEvent struct {
|
|
Events uint32
|
|
_ int32
|
|
Fd int32
|
|
Pad int32
|
|
}
|
|
|
|
const (
|
|
POLLRDHUP = 0x2000
|
|
)
|
|
|
|
type Sigset_t struct {
|
|
Val [16]uint64
|
|
}
|
|
|
|
const _C__NSIG = 0x41
|
|
|
|
type Termios struct {
|
|
Iflag uint32
|
|
Oflag uint32
|
|
Cflag uint32
|
|
Lflag uint32
|
|
Line uint8
|
|
Cc [19]uint8
|
|
Ispeed uint32
|
|
Ospeed uint32
|
|
}
|
|
|
|
type Taskstats struct {
|
|
Version uint16
|
|
Ac_exitcode uint32
|
|
Ac_flag uint8
|
|
Ac_nice uint8
|
|
Cpu_count uint64
|
|
Cpu_delay_total uint64
|
|
Blkio_count uint64
|
|
Blkio_delay_total uint64
|
|
Swapin_count uint64
|
|
Swapin_delay_total uint64
|
|
Cpu_run_real_total uint64
|
|
Cpu_run_virtual_total uint64
|
|
Ac_comm [32]int8
|
|
Ac_sched uint8
|
|
Ac_pad [3]uint8
|
|
_ [4]byte
|
|
Ac_uid uint32
|
|
Ac_gid uint32
|
|
Ac_pid uint32
|
|
Ac_ppid uint32
|
|
Ac_btime uint32
|
|
Ac_etime uint64
|
|
Ac_utime uint64
|
|
Ac_stime uint64
|
|
Ac_minflt uint64
|
|
Ac_majflt uint64
|
|
Coremem uint64
|
|
Virtmem uint64
|
|
Hiwater_rss uint64
|
|
Hiwater_vm uint64
|
|
Read_char uint64
|
|
Write_char uint64
|
|
Read_syscalls uint64
|
|
Write_syscalls uint64
|
|
Read_bytes uint64
|
|
Write_bytes uint64
|
|
Cancelled_write_bytes uint64
|
|
Nvcsw uint64
|
|
Nivcsw uint64
|
|
Ac_utimescaled uint64
|
|
Ac_stimescaled uint64
|
|
Cpu_scaled_run_real_total uint64
|
|
Freepages_count uint64
|
|
Freepages_delay_total uint64
|
|
Thrashing_count uint64
|
|
Thrashing_delay_total uint64
|
|
Ac_btime64 uint64
|
|
}
|
|
|
|
type cpuMask uint64
|
|
|
|
const (
|
|
_NCPUBITS = 0x40
|
|
)
|
|
|
|
const (
|
|
CBitFieldMaskBit0 = 0x8000000000000000
|
|
CBitFieldMaskBit1 = 0x4000000000000000
|
|
CBitFieldMaskBit2 = 0x2000000000000000
|
|
CBitFieldMaskBit3 = 0x1000000000000000
|
|
CBitFieldMaskBit4 = 0x800000000000000
|
|
CBitFieldMaskBit5 = 0x400000000000000
|
|
CBitFieldMaskBit6 = 0x200000000000000
|
|
CBitFieldMaskBit7 = 0x100000000000000
|
|
CBitFieldMaskBit8 = 0x80000000000000
|
|
CBitFieldMaskBit9 = 0x40000000000000
|
|
CBitFieldMaskBit10 = 0x20000000000000
|
|
CBitFieldMaskBit11 = 0x10000000000000
|
|
CBitFieldMaskBit12 = 0x8000000000000
|
|
CBitFieldMaskBit13 = 0x4000000000000
|
|
CBitFieldMaskBit14 = 0x2000000000000
|
|
CBitFieldMaskBit15 = 0x1000000000000
|
|
CBitFieldMaskBit16 = 0x800000000000
|
|
CBitFieldMaskBit17 = 0x400000000000
|
|
CBitFieldMaskBit18 = 0x200000000000
|
|
CBitFieldMaskBit19 = 0x100000000000
|
|
CBitFieldMaskBit20 = 0x80000000000
|
|
CBitFieldMaskBit21 = 0x40000000000
|
|
CBitFieldMaskBit22 = 0x20000000000
|
|
CBitFieldMaskBit23 = 0x10000000000
|
|
CBitFieldMaskBit24 = 0x8000000000
|
|
CBitFieldMaskBit25 = 0x4000000000
|
|
CBitFieldMaskBit26 = 0x2000000000
|
|
CBitFieldMaskBit27 = 0x1000000000
|
|
CBitFieldMaskBit28 = 0x800000000
|
|
CBitFieldMaskBit29 = 0x400000000
|
|
CBitFieldMaskBit30 = 0x200000000
|
|
CBitFieldMaskBit31 = 0x100000000
|
|
CBitFieldMaskBit32 = 0x80000000
|
|
CBitFieldMaskBit33 = 0x40000000
|
|
CBitFieldMaskBit34 = 0x20000000
|
|
CBitFieldMaskBit35 = 0x10000000
|
|
CBitFieldMaskBit36 = 0x8000000
|
|
CBitFieldMaskBit37 = 0x4000000
|
|
CBitFieldMaskBit38 = 0x2000000
|
|
CBitFieldMaskBit39 = 0x1000000
|
|
CBitFieldMaskBit40 = 0x800000
|
|
CBitFieldMaskBit41 = 0x400000
|
|
CBitFieldMaskBit42 = 0x200000
|
|
CBitFieldMaskBit43 = 0x100000
|
|
CBitFieldMaskBit44 = 0x80000
|
|
CBitFieldMaskBit45 = 0x40000
|
|
CBitFieldMaskBit46 = 0x20000
|
|
CBitFieldMaskBit47 = 0x10000
|
|
CBitFieldMaskBit48 = 0x8000
|
|
CBitFieldMaskBit49 = 0x4000
|
|
CBitFieldMaskBit50 = 0x2000
|
|
CBitFieldMaskBit51 = 0x1000
|
|
CBitFieldMaskBit52 = 0x800
|
|
CBitFieldMaskBit53 = 0x400
|
|
CBitFieldMaskBit54 = 0x200
|
|
CBitFieldMaskBit55 = 0x100
|
|
CBitFieldMaskBit56 = 0x80
|
|
CBitFieldMaskBit57 = 0x40
|
|
CBitFieldMaskBit58 = 0x20
|
|
CBitFieldMaskBit59 = 0x10
|
|
CBitFieldMaskBit60 = 0x8
|
|
CBitFieldMaskBit61 = 0x4
|
|
CBitFieldMaskBit62 = 0x2
|
|
CBitFieldMaskBit63 = 0x1
|
|
)
|
|
|
|
type SockaddrStorage struct {
|
|
Family uint16
|
|
_ [118]int8
|
|
_ uint64
|
|
}
|
|
|
|
type HDGeometry struct {
|
|
Heads uint8
|
|
Sectors uint8
|
|
Cylinders uint16
|
|
Start uint64
|
|
}
|
|
|
|
type Statfs_t struct {
|
|
Type uint32
|
|
Bsize uint32
|
|
Blocks uint64
|
|
Bfree uint64
|
|
Bavail uint64
|
|
Files uint64
|
|
Ffree uint64
|
|
Fsid Fsid
|
|
Namelen uint32
|
|
Frsize uint32
|
|
Flags uint32
|
|
Spare [4]uint32
|
|
_ [4]byte
|
|
}
|
|
|
|
type TpacketHdr struct {
|
|
Status uint64
|
|
Len uint32
|
|
Snaplen uint32
|
|
Mac uint16
|
|
Net uint16
|
|
Sec uint32
|
|
Usec uint32
|
|
_ [4]byte
|
|
}
|
|
|
|
const (
|
|
SizeofTpacketHdr = 0x20
|
|
)
|
|
|
|
type RTCPLLInfo struct {
|
|
Ctrl int32
|
|
Value int32
|
|
Max int32
|
|
Min int32
|
|
Posmult int32
|
|
Negmult int32
|
|
Clock int64
|
|
}
|
|
|
|
type BlkpgPartition struct {
|
|
Start int64
|
|
Length int64
|
|
Pno int32
|
|
Devname [64]uint8
|
|
Volname [64]uint8
|
|
_ [4]byte
|
|
}
|
|
|
|
const (
|
|
BLKPG = 0x1269
|
|
)
|
|
|
|
type XDPUmemReg struct {
|
|
Addr uint64
|
|
Len uint64
|
|
Size uint32
|
|
Headroom uint32
|
|
Flags uint32
|
|
_ [4]byte
|
|
}
|
|
|
|
type CryptoUserAlg struct {
|
|
Name [64]int8
|
|
Driver_name [64]int8
|
|
Module_name [64]int8
|
|
Type uint32
|
|
Mask uint32
|
|
Refcnt uint32
|
|
Flags uint32
|
|
}
|
|
|
|
type CryptoStatAEAD struct {
|
|
Type [64]int8
|
|
Encrypt_cnt uint64
|
|
Encrypt_tlen uint64
|
|
Decrypt_cnt uint64
|
|
Decrypt_tlen uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatAKCipher struct {
|
|
Type [64]int8
|
|
Encrypt_cnt uint64
|
|
Encrypt_tlen uint64
|
|
Decrypt_cnt uint64
|
|
Decrypt_tlen uint64
|
|
Verify_cnt uint64
|
|
Sign_cnt uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatCipher struct {
|
|
Type [64]int8
|
|
Encrypt_cnt uint64
|
|
Encrypt_tlen uint64
|
|
Decrypt_cnt uint64
|
|
Decrypt_tlen uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatCompress struct {
|
|
Type [64]int8
|
|
Compress_cnt uint64
|
|
Compress_tlen uint64
|
|
Decompress_cnt uint64
|
|
Decompress_tlen uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatHash struct {
|
|
Type [64]int8
|
|
Hash_cnt uint64
|
|
Hash_tlen uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatKPP struct {
|
|
Type [64]int8
|
|
Setsecret_cnt uint64
|
|
Generate_public_key_cnt uint64
|
|
Compute_shared_secret_cnt uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatRNG struct {
|
|
Type [64]int8
|
|
Generate_cnt uint64
|
|
Generate_tlen uint64
|
|
Seed_cnt uint64
|
|
Err_cnt uint64
|
|
}
|
|
|
|
type CryptoStatLarval struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type CryptoReportLarval struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type CryptoReportHash struct {
|
|
Type [64]int8
|
|
Blocksize uint32
|
|
Digestsize uint32
|
|
}
|
|
|
|
type CryptoReportCipher struct {
|
|
Type [64]int8
|
|
Blocksize uint32
|
|
Min_keysize uint32
|
|
Max_keysize uint32
|
|
}
|
|
|
|
type CryptoReportBlkCipher struct {
|
|
Type [64]int8
|
|
Geniv [64]int8
|
|
Blocksize uint32
|
|
Min_keysize uint32
|
|
Max_keysize uint32
|
|
Ivsize uint32
|
|
}
|
|
|
|
type CryptoReportAEAD struct {
|
|
Type [64]int8
|
|
Geniv [64]int8
|
|
Blocksize uint32
|
|
Maxauthsize uint32
|
|
Ivsize uint32
|
|
}
|
|
|
|
type CryptoReportComp struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type CryptoReportRNG struct {
|
|
Type [64]int8
|
|
Seedsize uint32
|
|
}
|
|
|
|
type CryptoReportAKCipher struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type CryptoReportKPP struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type CryptoReportAcomp struct {
|
|
Type [64]int8
|
|
}
|
|
|
|
type LoopInfo struct {
|
|
Number int32
|
|
Device uint16
|
|
Inode uint64
|
|
Rdevice uint16
|
|
Offset int32
|
|
Encrypt_type int32
|
|
Encrypt_key_size int32
|
|
Flags int32
|
|
Name [64]int8
|
|
Encrypt_key [32]uint8
|
|
Init [2]uint64
|
|
Reserved [4]int8
|
|
_ [4]byte
|
|
}
|
|
|
|
type TIPCSubscr struct {
|
|
Seq TIPCServiceRange
|
|
Timeout uint32
|
|
Filter uint32
|
|
Handle [8]int8
|
|
}
|
|
|
|
type TIPCSIOCLNReq struct {
|
|
Peer uint32
|
|
Id uint32
|
|
Linkname [68]int8
|
|
}
|
|
|
|
type TIPCSIOCNodeIDReq struct {
|
|
Peer uint32
|
|
Id [16]int8
|
|
}
|
|
|
|
type PPSKInfo struct {
|
|
Assert_sequence uint32
|
|
Clear_sequence uint32
|
|
Assert_tu PPSKTime
|
|
Clear_tu PPSKTime
|
|
Current_mode int32
|
|
_ [4]byte
|
|
}
|
|
|
|
const (
|
|
PPS_GETPARAMS = 0x800870a1
|
|
PPS_SETPARAMS = 0x400870a2
|
|
PPS_GETCAP = 0x800870a3
|
|
PPS_FETCH = 0xc00870a4
|
|
)
|