vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
changeset 260 445e01aede7e
parent 256 6d9efbef00a9
child 262 8d3354485fc3
equal deleted inserted replaced
259:db4911b0c721 260:445e01aede7e
    28 
    28 
    29 type Timeval struct {
    29 type Timeval struct {
    30 	Sec  int32
    30 	Sec  int32
    31 	Usec int32
    31 	Usec int32
    32 }
    32 }
       
    33 
       
    34 type Time_t int32
    33 
    35 
    34 type Rusage struct {
    36 type Rusage struct {
    35 	Utime    Timeval
    37 	Utime    Timeval
    36 	Stime    Timeval
    38 	Stime    Timeval
    37 	Maxrss   int32
    39 	Maxrss   int32
    86 	Flags   uint32
    88 	Flags   uint32
    87 	Gen     uint64
    89 	Gen     uint64
    88 	Spare   [10]uint64
    90 	Spare   [10]uint64
    89 }
    91 }
    90 
    92 
    91 type stat_freebsd11_t struct {
       
    92 	Dev     uint32
       
    93 	Ino     uint32
       
    94 	Mode    uint16
       
    95 	Nlink   uint16
       
    96 	Uid     uint32
       
    97 	Gid     uint32
       
    98 	Rdev    uint32
       
    99 	Atim    Timespec
       
   100 	Mtim    Timespec
       
   101 	Ctim    Timespec
       
   102 	Size    int64
       
   103 	Blocks  int64
       
   104 	Blksize int32
       
   105 	Flags   uint32
       
   106 	Gen     uint32
       
   107 	Lspare  int32
       
   108 	Btim    Timespec
       
   109 	_       [8]byte
       
   110 }
       
   111 
       
   112 type Statfs_t struct {
    93 type Statfs_t struct {
   113 	Version     uint32
    94 	Version     uint32
   114 	Type        uint32
    95 	Type        uint32
   115 	Flags       uint64
    96 	Flags       uint64
   116 	Bsize       uint64
    97 	Bsize       uint64
   132 	Fstypename  [16]byte
   113 	Fstypename  [16]byte
   133 	Mntfromname [1024]byte
   114 	Mntfromname [1024]byte
   134 	Mntonname   [1024]byte
   115 	Mntonname   [1024]byte
   135 }
   116 }
   136 
   117 
   137 type statfs_freebsd11_t struct {
       
   138 	Version     uint32
       
   139 	Type        uint32
       
   140 	Flags       uint64
       
   141 	Bsize       uint64
       
   142 	Iosize      uint64
       
   143 	Blocks      uint64
       
   144 	Bfree       uint64
       
   145 	Bavail      int64
       
   146 	Files       uint64
       
   147 	Ffree       int64
       
   148 	Syncwrites  uint64
       
   149 	Asyncwrites uint64
       
   150 	Syncreads   uint64
       
   151 	Asyncreads  uint64
       
   152 	Spare       [10]uint64
       
   153 	Namemax     uint32
       
   154 	Owner       uint32
       
   155 	Fsid        Fsid
       
   156 	Charspare   [80]int8
       
   157 	Fstypename  [16]byte
       
   158 	Mntfromname [88]byte
       
   159 	Mntonname   [88]byte
       
   160 }
       
   161 
       
   162 type Flock_t struct {
   118 type Flock_t struct {
   163 	Start  int64
   119 	Start  int64
   164 	Len    int64
   120 	Len    int64
   165 	Pid    int32
   121 	Pid    int32
   166 	Type   int16
   122 	Type   int16
   174 	Reclen uint16
   130 	Reclen uint16
   175 	Type   uint8
   131 	Type   uint8
   176 	Pad0   uint8
   132 	Pad0   uint8
   177 	Namlen uint16
   133 	Namlen uint16
   178 	Pad1   uint16
   134 	Pad1   uint16
   179 	Name   [256]int8
       
   180 }
       
   181 
       
   182 type dirent_freebsd11 struct {
       
   183 	Fileno uint32
       
   184 	Reclen uint16
       
   185 	Type   uint8
       
   186 	Namlen uint8
       
   187 	Name   [256]int8
   135 	Name   [256]int8
   188 }
   136 }
   189 
   137 
   190 type Fsid struct {
   138 type Fsid struct {
   191 	Val [2]int32
   139 	Val [2]int32
   333 	SizeofIPv6MTUInfo      = 0x20
   281 	SizeofIPv6MTUInfo      = 0x20
   334 	SizeofICMPv6Filter     = 0x20
   282 	SizeofICMPv6Filter     = 0x20
   335 )
   283 )
   336 
   284 
   337 const (
   285 const (
   338 	PTRACE_ATTACH     = 0xa
   286 	PTRACE_TRACEME = 0x0
   339 	PTRACE_CONT       = 0x7
   287 	PTRACE_CONT    = 0x7
   340 	PTRACE_DETACH     = 0xb
   288 	PTRACE_KILL    = 0x8
   341 	PTRACE_GETFPREGS  = 0x23
       
   342 	PTRACE_GETFSBASE  = 0x47
       
   343 	PTRACE_GETLWPLIST = 0xf
       
   344 	PTRACE_GETNUMLWPS = 0xe
       
   345 	PTRACE_GETREGS    = 0x21
       
   346 	PTRACE_GETXSTATE  = 0x45
       
   347 	PTRACE_IO         = 0xc
       
   348 	PTRACE_KILL       = 0x8
       
   349 	PTRACE_LWPEVENTS  = 0x18
       
   350 	PTRACE_LWPINFO    = 0xd
       
   351 	PTRACE_SETFPREGS  = 0x24
       
   352 	PTRACE_SETREGS    = 0x22
       
   353 	PTRACE_SINGLESTEP = 0x9
       
   354 	PTRACE_TRACEME    = 0x0
       
   355 )
       
   356 
       
   357 const (
       
   358 	PIOD_READ_D  = 0x1
       
   359 	PIOD_WRITE_D = 0x2
       
   360 	PIOD_READ_I  = 0x3
       
   361 	PIOD_WRITE_I = 0x4
       
   362 )
       
   363 
       
   364 const (
       
   365 	PL_FLAG_BORN   = 0x100
       
   366 	PL_FLAG_EXITED = 0x200
       
   367 	PL_FLAG_SI     = 0x20
       
   368 )
       
   369 
       
   370 const (
       
   371 	TRAP_BRKPT = 0x1
       
   372 	TRAP_TRACE = 0x2
       
   373 )
   289 )
   374 
   290 
   375 type PtraceLwpInfoStruct struct {
   291 type PtraceLwpInfoStruct struct {
   376 	Lwpid        int32
   292 	Lwpid        int32
   377 	Event        int32
   293 	Event        int32
   428 	Acc   [8][10]uint8
   344 	Acc   [8][10]uint8
   429 	Ex_sw uint32
   345 	Ex_sw uint32
   430 	Pad   [64]uint8
   346 	Pad   [64]uint8
   431 }
   347 }
   432 
   348 
       
   349 type FpExtendedPrecision struct{}
       
   350 
   433 type PtraceIoDesc struct {
   351 type PtraceIoDesc struct {
   434 	Op   int32
   352 	Op   int32
   435 	Offs *byte
   353 	Offs *byte
   436 	Addr *byte
   354 	Addr *byte
   437 	Len  uint32
   355 	Len  uint32
   440 type Kevent_t struct {
   358 type Kevent_t struct {
   441 	Ident  uint32
   359 	Ident  uint32
   442 	Filter int16
   360 	Filter int16
   443 	Flags  uint16
   361 	Flags  uint16
   444 	Fflags uint32
   362 	Fflags uint32
   445 	Data   int32
   363 	Data   int64
   446 	Udata  *byte
   364 	Udata  *byte
       
   365 	Ext    [4]uint64
   447 }
   366 }
   448 
   367 
   449 type FdSet struct {
   368 type FdSet struct {
   450 	Bits [32]uint32
   369 	Bits [32]uint32
   451 }
   370 }