...

Source file src/pkg/syscall/ztypes_freebsd_arm.go

     1	// Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2	// cgo -godefs -- -fsigned-char types_freebsd.go
     3	
     4	// +build arm,freebsd
     5	
     6	package syscall
     7	
     8	const (
     9		sizeofPtr      = 0x4
    10		sizeofShort    = 0x2
    11		sizeofInt      = 0x4
    12		sizeofLong     = 0x4
    13		sizeofLongLong = 0x8
    14	)
    15	
    16	type (
    17		_C_short     int16
    18		_C_int       int32
    19		_C_long      int32
    20		_C_long_long int64
    21	)
    22	
    23	type Timespec struct {
    24		Sec       int64
    25		Nsec      int32
    26		Pad_cgo_0 [4]byte
    27	}
    28	
    29	type Timeval struct {
    30		Sec       int64
    31		Usec      int32
    32		Pad_cgo_0 [4]byte
    33	}
    34	
    35	type Rusage struct {
    36		Utime    Timeval
    37		Stime    Timeval
    38		Maxrss   int32
    39		Ixrss    int32
    40		Idrss    int32
    41		Isrss    int32
    42		Minflt   int32
    43		Majflt   int32
    44		Nswap    int32
    45		Inblock  int32
    46		Oublock  int32
    47		Msgsnd   int32
    48		Msgrcv   int32
    49		Nsignals int32
    50		Nvcsw    int32
    51		Nivcsw   int32
    52	}
    53	
    54	type Rlimit struct {
    55		Cur int64
    56		Max int64
    57	}
    58	
    59	type _Gid_t uint32
    60	
    61	const (
    62		S_IFMT   = 0xf000
    63		S_IFIFO  = 0x1000
    64		S_IFCHR  = 0x2000
    65		S_IFDIR  = 0x4000
    66		S_IFBLK  = 0x6000
    67		S_IFREG  = 0x8000
    68		S_IFLNK  = 0xa000
    69		S_IFSOCK = 0xc000
    70		S_ISUID  = 0x800
    71		S_ISGID  = 0x400
    72		S_ISVTX  = 0x200
    73		S_IRUSR  = 0x100
    74		S_IWUSR  = 0x80
    75		S_IXUSR  = 0x40
    76		S_IRWXG  = 0x38
    77		S_IRWXO  = 0x7
    78	)
    79	
    80	const (
    81		_statfsVersion = 0x20140518
    82		_dirblksiz     = 0x400
    83	)
    84	
    85	type Stat_t struct {
    86		Dev           uint64
    87		Ino           uint64
    88		Nlink         uint64
    89		Mode          uint16
    90		Padding0      int16
    91		Uid           uint32
    92		Gid           uint32
    93		Padding1      int32
    94		Rdev          uint64
    95		Atimespec     Timespec
    96		Mtimespec     Timespec
    97		Ctimespec     Timespec
    98		Birthtimespec Timespec
    99		Size          int64
   100		Blocks        int64
   101		Blksize       int32
   102		Flags         uint32
   103		Gen           uint64
   104		Spare         [10]uint64
   105	}
   106	
   107	type stat_freebsd11_t struct {
   108		Dev           uint32
   109		Ino           uint32
   110		Mode          uint16
   111		Nlink         uint16
   112		Uid           uint32
   113		Gid           uint32
   114		Rdev          uint32
   115		Atimespec     Timespec
   116		Mtimespec     Timespec
   117		Ctimespec     Timespec
   118		Size          int64
   119		Blocks        int64
   120		Blksize       int32
   121		Flags         uint32
   122		Gen           uint32
   123		Lspare        int32
   124		Birthtimespec Timespec
   125	}
   126	
   127	type Statfs_t struct {
   128		Version     uint32
   129		Type        uint32
   130		Flags       uint64
   131		Bsize       uint64
   132		Iosize      uint64
   133		Blocks      uint64
   134		Bfree       uint64
   135		Bavail      int64
   136		Files       uint64
   137		Ffree       int64
   138		Syncwrites  uint64
   139		Asyncwrites uint64
   140		Syncreads   uint64
   141		Asyncreads  uint64
   142		Spare       [10]uint64
   143		Namemax     uint32
   144		Owner       uint32
   145		Fsid        Fsid
   146		Charspare   [80]int8
   147		Fstypename  [16]int8
   148		Mntfromname [1024]int8
   149		Mntonname   [1024]int8
   150	}
   151	
   152	type statfs_freebsd11_t struct {
   153		Version     uint32
   154		Type        uint32
   155		Flags       uint64
   156		Bsize       uint64
   157		Iosize      uint64
   158		Blocks      uint64
   159		Bfree       uint64
   160		Bavail      int64
   161		Files       uint64
   162		Ffree       int64
   163		Syncwrites  uint64
   164		Asyncwrites uint64
   165		Syncreads   uint64
   166		Asyncreads  uint64
   167		Spare       [10]uint64
   168		Namemax     uint32
   169		Owner       uint32
   170		Fsid        Fsid
   171		Charspare   [80]int8
   172		Fstypename  [16]int8
   173		Mntfromname [88]int8
   174		Mntonname   [88]int8
   175	}
   176	
   177	type Flock_t struct {
   178		Start     int64
   179		Len       int64
   180		Pid       int32
   181		Type      int16
   182		Whence    int16
   183		Sysid     int32
   184		Pad_cgo_0 [4]byte
   185	}
   186	
   187	type Dirent struct {
   188		Fileno uint64
   189		Off    int64
   190		Reclen uint16
   191		Type   uint8
   192		Pad0   uint8
   193		Namlen uint16
   194		Pad1   uint16
   195		Name   [256]int8
   196	}
   197	
   198	type dirent_freebsd11 struct {
   199		Fileno uint32
   200		Reclen uint16
   201		Type   uint8
   202		Namlen uint8
   203		Name   [256]int8
   204	}
   205	
   206	type Fsid struct {
   207		Val [2]int32
   208	}
   209	
   210	const (
   211		pathMax = 0x400
   212	)
   213	
   214	type RawSockaddrInet4 struct {
   215		Len    uint8
   216		Family uint8
   217		Port   uint16
   218		Addr   [4]byte /* in_addr */
   219		Zero   [8]int8
   220	}
   221	
   222	type RawSockaddrInet6 struct {
   223		Len      uint8
   224		Family   uint8
   225		Port     uint16
   226		Flowinfo uint32
   227		Addr     [16]byte /* in6_addr */
   228		Scope_id uint32
   229	}
   230	
   231	type RawSockaddrUnix struct {
   232		Len    uint8
   233		Family uint8
   234		Path   [104]int8
   235	}
   236	
   237	type RawSockaddrDatalink struct {
   238		Len    uint8
   239		Family uint8
   240		Index  uint16
   241		Type   uint8
   242		Nlen   uint8
   243		Alen   uint8
   244		Slen   uint8
   245		Data   [46]int8
   246	}
   247	
   248	type RawSockaddr struct {
   249		Len    uint8
   250		Family uint8
   251		Data   [14]int8
   252	}
   253	
   254	type RawSockaddrAny struct {
   255		Addr RawSockaddr
   256		Pad  [92]int8
   257	}
   258	
   259	type _Socklen uint32
   260	
   261	type Linger struct {
   262		Onoff  int32
   263		Linger int32
   264	}
   265	
   266	type Iovec struct {
   267		Base *byte
   268		Len  uint32
   269	}
   270	
   271	type IPMreq struct {
   272		Multiaddr [4]byte /* in_addr */
   273		Interface [4]byte /* in_addr */
   274	}
   275	
   276	type IPMreqn struct {
   277		Multiaddr [4]byte /* in_addr */
   278		Address   [4]byte /* in_addr */
   279		Ifindex   int32
   280	}
   281	
   282	type IPv6Mreq struct {
   283		Multiaddr [16]byte /* in6_addr */
   284		Interface uint32
   285	}
   286	
   287	type Msghdr struct {
   288		Name       *byte
   289		Namelen    uint32
   290		Iov        *Iovec
   291		Iovlen     int32
   292		Control    *byte
   293		Controllen uint32
   294		Flags      int32
   295	}
   296	
   297	type Cmsghdr struct {
   298		Len   uint32
   299		Level int32
   300		Type  int32
   301	}
   302	
   303	type Inet6Pktinfo struct {
   304		Addr    [16]byte /* in6_addr */
   305		Ifindex uint32
   306	}
   307	
   308	type IPv6MTUInfo struct {
   309		Addr RawSockaddrInet6
   310		Mtu  uint32
   311	}
   312	
   313	type ICMPv6Filter struct {
   314		Filt [8]uint32
   315	}
   316	
   317	const (
   318		SizeofSockaddrInet4    = 0x10
   319		SizeofSockaddrInet6    = 0x1c
   320		SizeofSockaddrAny      = 0x6c
   321		SizeofSockaddrUnix     = 0x6a
   322		SizeofSockaddrDatalink = 0x36
   323		SizeofLinger           = 0x8
   324		SizeofIPMreq           = 0x8
   325		SizeofIPMreqn          = 0xc
   326		SizeofIPv6Mreq         = 0x14
   327		SizeofMsghdr           = 0x1c
   328		SizeofCmsghdr          = 0xc
   329		SizeofInet6Pktinfo     = 0x14
   330		SizeofIPv6MTUInfo      = 0x20
   331		SizeofICMPv6Filter     = 0x20
   332	)
   333	
   334	const (
   335		PTRACE_TRACEME = 0x0
   336		PTRACE_CONT    = 0x7
   337		PTRACE_KILL    = 0x8
   338	)
   339	
   340	type Kevent_t struct {
   341		Ident  uint32
   342		Filter int16
   343		Flags  uint16
   344		Fflags uint32
   345		Data   int32
   346		Udata  *byte
   347	}
   348	
   349	type FdSet struct {
   350		X__fds_bits [32]uint32
   351	}
   352	
   353	const (
   354		sizeofIfMsghdr         = 0x70
   355		SizeofIfMsghdr         = 0x70
   356		sizeofIfData           = 0x60
   357		SizeofIfData           = 0x60
   358		SizeofIfaMsghdr        = 0x14
   359		SizeofIfmaMsghdr       = 0x10
   360		SizeofIfAnnounceMsghdr = 0x18
   361		SizeofRtMsghdr         = 0x5c
   362		SizeofRtMetrics        = 0x38
   363	)
   364	
   365	type ifMsghdr struct {
   366		Msglen    uint16
   367		Version   uint8
   368		Type      uint8
   369		Addrs     int32
   370		Flags     int32
   371		Index     uint16
   372		Pad_cgo_0 [2]byte
   373		Data      ifData
   374	}
   375	
   376	type IfMsghdr struct {
   377		Msglen    uint16
   378		Version   uint8
   379		Type      uint8
   380		Addrs     int32
   381		Flags     int32
   382		Index     uint16
   383		Pad_cgo_0 [2]byte
   384		Data      IfData
   385	}
   386	
   387	type ifData struct {
   388		Type        uint8
   389		Physical    uint8
   390		Addrlen     uint8
   391		Hdrlen      uint8
   392		Link_state  uint8
   393		Vhid        uint8
   394		Baudrate_pf uint8
   395		Datalen     uint8
   396		Mtu         uint32
   397		Metric      uint32
   398		Baudrate    uint32
   399		Ipackets    uint32
   400		Ierrors     uint32
   401		Opackets    uint32
   402		Oerrors     uint32
   403		Collisions  uint32
   404		Ibytes      uint32
   405		Obytes      uint32
   406		Imcasts     uint32
   407		Omcasts     uint32
   408		Iqdrops     uint32
   409		Noproto     uint32
   410		Hwassist    uint64
   411		Epoch       int64
   412		Lastchange  Timeval
   413	}
   414	
   415	type IfData struct {
   416		Type        uint8
   417		Physical    uint8
   418		Addrlen     uint8
   419		Hdrlen      uint8
   420		Link_state  uint8
   421		Spare_char1 uint8
   422		Spare_char2 uint8
   423		Datalen     uint8
   424		Mtu         uint32
   425		Metric      uint32
   426		Baudrate    uint32
   427		Ipackets    uint32
   428		Ierrors     uint32
   429		Opackets    uint32
   430		Oerrors     uint32
   431		Collisions  uint32
   432		Ibytes      uint32
   433		Obytes      uint32
   434		Imcasts     uint32
   435		Omcasts     uint32
   436		Iqdrops     uint32
   437		Noproto     uint32
   438		Hwassist    uint32
   439		Pad_cgo_0   [4]byte
   440		Epoch       int64
   441		Lastchange  Timeval
   442	}
   443	
   444	type IfaMsghdr struct {
   445		Msglen    uint16
   446		Version   uint8
   447		Type      uint8
   448		Addrs     int32
   449		Flags     int32
   450		Index     uint16
   451		Pad_cgo_0 [2]byte
   452		Metric    int32
   453	}
   454	
   455	type IfmaMsghdr struct {
   456		Msglen    uint16
   457		Version   uint8
   458		Type      uint8
   459		Addrs     int32
   460		Flags     int32
   461		Index     uint16
   462		Pad_cgo_0 [2]byte
   463	}
   464	
   465	type IfAnnounceMsghdr struct {
   466		Msglen  uint16
   467		Version uint8
   468		Type    uint8
   469		Index   uint16
   470		Name    [16]int8
   471		What    uint16
   472	}
   473	
   474	type RtMsghdr struct {
   475		Msglen    uint16
   476		Version   uint8
   477		Type      uint8
   478		Index     uint16
   479		Pad_cgo_0 [2]byte
   480		Flags     int32
   481		Addrs     int32
   482		Pid       int32
   483		Seq       int32
   484		Errno     int32
   485		Fmask     int32
   486		Inits     uint32
   487		Rmx       RtMetrics
   488	}
   489	
   490	type RtMetrics struct {
   491		Locks    uint32
   492		Mtu      uint32
   493		Hopcount uint32
   494		Expire   uint32
   495		Recvpipe uint32
   496		Sendpipe uint32
   497		Ssthresh uint32
   498		Rtt      uint32
   499		Rttvar   uint32
   500		Pksent   uint32
   501		Weight   uint32
   502		Filler   [3]uint32
   503	}
   504	
   505	const (
   506		SizeofBpfVersion    = 0x4
   507		SizeofBpfStat       = 0x8
   508		SizeofBpfZbuf       = 0xc
   509		SizeofBpfProgram    = 0x8
   510		SizeofBpfInsn       = 0x8
   511		SizeofBpfHdr        = 0x20
   512		SizeofBpfZbufHeader = 0x20
   513	)
   514	
   515	type BpfVersion struct {
   516		Major uint16
   517		Minor uint16
   518	}
   519	
   520	type BpfStat struct {
   521		Recv uint32
   522		Drop uint32
   523	}
   524	
   525	type BpfZbuf struct {
   526		Bufa   *byte
   527		Bufb   *byte
   528		Buflen uint32
   529	}
   530	
   531	type BpfProgram struct {
   532		Len   uint32
   533		Insns *BpfInsn
   534	}
   535	
   536	type BpfInsn struct {
   537		Code uint16
   538		Jt   uint8
   539		Jf   uint8
   540		K    uint32
   541	}
   542	
   543	type BpfHdr struct {
   544		Tstamp    Timeval
   545		Caplen    uint32
   546		Datalen   uint32
   547		Hdrlen    uint16
   548		Pad_cgo_0 [6]byte
   549	}
   550	
   551	type BpfZbufHeader struct {
   552		Kernel_gen uint32
   553		Kernel_len uint32
   554		User_gen   uint32
   555		X_bzh_pad  [5]uint32
   556	}
   557	
   558	const (
   559		_AT_FDCWD            = -0x64
   560		_AT_SYMLINK_FOLLOW   = 0x400
   561		_AT_SYMLINK_NOFOLLOW = 0x200
   562	)
   563	
   564	type Termios struct {
   565		Iflag  uint32
   566		Oflag  uint32
   567		Cflag  uint32
   568		Lflag  uint32
   569		Cc     [20]uint8
   570		Ispeed uint32
   571		Ospeed uint32
   572	}
   573	

View as plain text