src/pkg/syscall/ztypes_linux_amd64.go - The Go Programming Language

Golang

Source file src/pkg/syscall/ztypes_linux_amd64.go

     1	// Created by cgo -godefs - DO NOT EDIT
     2	// cgo -godefs types_linux.go
     3	
     4	package syscall
     5	
     6	const (
     7		sizeofPtr      = 0x8
     8		sizeofShort    = 0x2
     9		sizeofInt      = 0x4
    10		sizeofLong     = 0x8
    11		sizeofLongLong = 0x8
    12		PathMax        = 0x1000
    13	)
    14	
    15	type (
    16		_C_short     int16
    17		_C_int       int32
    18		_C_long      int64
    19		_C_long_long int64
    20	)
    21	
    22	type Timespec struct {
    23		Sec  int64
    24		Nsec int64
    25	}
    26	
    27	type Timeval struct {
    28		Sec  int64
    29		Usec int64
    30	}
    31	
    32	type Timex struct {
    33		Modes     uint32
    34		Pad_cgo_0 [4]byte
    35		Offset    int64
    36		Freq      int64
    37		Maxerror  int64
    38		Esterror  int64
    39		Status    int32
    40		Pad_cgo_1 [4]byte
    41		Constant  int64
    42		Precision int64
    43		Tolerance int64
    44		Time      Timeval
    45		Tick      int64
    46		Ppsfreq   int64
    47		Jitter    int64
    48		Shift     int32
    49		Pad_cgo_2 [4]byte
    50		Stabil    int64
    51		Jitcnt    int64
    52		Calcnt    int64
    53		Errcnt    int64
    54		Stbcnt    int64
    55		Tai       int32
    56		Pad_cgo_3 [44]byte
    57	}
    58	
    59	type Time_t int64
    60	
    61	type Tms struct {
    62		Utime  int64
    63		Stime  int64
    64		Cutime int64
    65		Cstime int64
    66	}
    67	
    68	type Utimbuf struct {
    69		Actime  int64
    70		Modtime int64
    71	}
    72	
    73	type Rusage struct {
    74		Utime    Timeval
    75		Stime    Timeval
    76		Maxrss   int64
    77		Ixrss    int64
    78		Idrss    int64
    79		Isrss    int64
    80		Minflt   int64
    81		Majflt   int64
    82		Nswap    int64
    83		Inblock  int64
    84		Oublock  int64
    85		Msgsnd   int64
    86		Msgrcv   int64
    87		Nsignals int64
    88		Nvcsw    int64
    89		Nivcsw   int64
    90	}
    91	
    92	type Rlimit struct {
    93		Cur uint64
    94		Max uint64
    95	}
    96	
    97	type _Gid_t uint32
    98	
    99	type Stat_t struct {
   100		Dev       uint64
   101		Ino       uint64
   102		Nlink     uint64
   103		Mode      uint32
   104		Uid       uint32
   105		Gid       uint32
   106		X__pad0   int32
   107		Rdev      uint64
   108		Size      int64
   109		Blksize   int64
   110		Blocks    int64
   111		Atim      Timespec
   112		Mtim      Timespec
   113		Ctim      Timespec
   114		X__unused [3]int64
   115	}
   116	
   117	type Statfs_t struct {
   118		Type    int64
   119		Bsize   int64
   120		Blocks  uint64
   121		Bfree   uint64
   122		Bavail  uint64
   123		Files   uint64
   124		Ffree   uint64
   125		Fsid    Fsid
   126		Namelen int64
   127		Frsize  int64
   128		Flags   int64
   129		Spare   [4]int64
   130	}
   131	
   132	type Dirent struct {
   133		Ino       uint64
   134		Off       int64
   135		Reclen    uint16
   136		Type      uint8
   137		Name      [256]int8
   138		Pad_cgo_0 [5]byte
   139	}
   140	
   141	type Fsid struct {
   142		X__val [2]int32
   143	}
   144	
   145	type RawSockaddrInet4 struct {
   146		Family uint16
   147		Port   uint16
   148		Addr   [4]byte /* in_addr */
   149		Zero   [8]uint8
   150	}
   151	
   152	type RawSockaddrInet6 struct {
   153		Family   uint16
   154		Port     uint16
   155		Flowinfo uint32
   156		Addr     [16]byte /* in6_addr */
   157		Scope_id uint32
   158	}
   159	
   160	type RawSockaddrUnix struct {
   161		Family uint16
   162		Path   [108]int8
   163	}
   164	
   165	type RawSockaddrLinklayer struct {
   166		Family   uint16
   167		Protocol uint16
   168		Ifindex  int32
   169		Hatype   uint16
   170		Pkttype  uint8
   171		Halen    uint8
   172		Addr     [8]uint8
   173	}
   174	
   175	type RawSockaddrNetlink struct {
   176		Family uint16
   177		Pad    uint16
   178		Pid    uint32
   179		Groups uint32
   180	}
   181	
   182	type RawSockaddr struct {
   183		Family uint16
   184		Data   [14]int8
   185	}
   186	
   187	type RawSockaddrAny struct {
   188		Addr RawSockaddr
   189		Pad  [96]int8
   190	}
   191	
   192	type _Socklen uint32
   193	
   194	type Linger struct {
   195		Onoff  int32
   196		Linger int32
   197	}
   198	
   199	type Iovec struct {
   200		Base *byte
   201		Len  uint64
   202	}
   203	
   204	type IPMreq struct {
   205		Multiaddr [4]byte /* in_addr */
   206		Interface [4]byte /* in_addr */
   207	}
   208	
   209	type IPMreqn struct {
   210		Multiaddr [4]byte /* in_addr */
   211		Address   [4]byte /* in_addr */
   212		Ifindex   int32
   213	}
   214	
   215	type IPv6Mreq struct {
   216		Multiaddr [16]byte /* in6_addr */
   217		Interface uint32
   218	}
   219	
   220	type Msghdr struct {
   221		Name       *byte
   222		Namelen    uint32
   223		Pad_cgo_0  [4]byte
   224		Iov        *Iovec
   225		Iovlen     uint64
   226		Control    *byte
   227		Controllen uint64
   228		Flags      int32
   229		Pad_cgo_1  [4]byte
   230	}
   231	
   232	type Cmsghdr struct {
   233		Len          uint64
   234		Level        int32
   235		Type         int32
   236		X__cmsg_data [0]byte
   237	}
   238	
   239	type Inet4Pktinfo struct {
   240		Ifindex  int32
   241		Spec_dst [4]byte /* in_addr */
   242		Addr     [4]byte /* in_addr */
   243	}
   244	
   245	type Inet6Pktinfo struct {
   246		Addr    [16]byte /* in6_addr */
   247		Ifindex uint32
   248	}
   249	
   250	type Ucred struct {
   251		Pid int32
   252		Uid uint32
   253		Gid uint32
   254	}
   255	
   256	const (
   257		SizeofSockaddrInet4     = 0x10
   258		SizeofSockaddrInet6     = 0x1c
   259		SizeofSockaddrAny       = 0x70
   260		SizeofSockaddrUnix      = 0x6e
   261		SizeofSockaddrLinklayer = 0x14
   262		SizeofSockaddrNetlink   = 0xc
   263		SizeofLinger            = 0x8
   264		SizeofIPMreq            = 0x8
   265		SizeofIPMreqn           = 0xc
   266		SizeofIPv6Mreq          = 0x14
   267		SizeofMsghdr            = 0x38
   268		SizeofCmsghdr           = 0x10
   269		SizeofInet4Pktinfo      = 0xc
   270		SizeofInet6Pktinfo      = 0x14
   271		SizeofUcred             = 0xc
   272	)
   273	
   274	const (
   275		IFA_UNSPEC        = 0x0
   276		IFA_ADDRESS       = 0x1
   277		IFA_LOCAL         = 0x2
   278		IFA_LABEL         = 0x3
   279		IFA_BROADCAST     = 0x4
   280		IFA_ANYCAST       = 0x5
   281		IFA_CACHEINFO     = 0x6
   282		IFA_MULTICAST     = 0x7
   283		IFLA_UNSPEC       = 0x0
   284		IFLA_ADDRESS      = 0x1
   285		IFLA_BROADCAST    = 0x2
   286		IFLA_IFNAME       = 0x3
   287		IFLA_MTU          = 0x4
   288		IFLA_LINK         = 0x5
   289		IFLA_QDISC        = 0x6
   290		IFLA_STATS        = 0x7
   291		IFLA_COST         = 0x8
   292		IFLA_PRIORITY     = 0x9
   293		IFLA_MASTER       = 0xa
   294		IFLA_WIRELESS     = 0xb
   295		IFLA_PROTINFO     = 0xc
   296		IFLA_TXQLEN       = 0xd
   297		IFLA_MAP          = 0xe
   298		IFLA_WEIGHT       = 0xf
   299		IFLA_OPERSTATE    = 0x10
   300		IFLA_LINKMODE     = 0x11
   301		IFLA_LINKINFO     = 0x12
   302		IFLA_NET_NS_PID   = 0x13
   303		IFLA_IFALIAS      = 0x14
   304		IFLA_MAX          = 0x1c
   305		RT_SCOPE_UNIVERSE = 0x0
   306		RT_SCOPE_SITE     = 0xc8
   307		RT_SCOPE_LINK     = 0xfd
   308		RT_SCOPE_HOST     = 0xfe
   309		RT_SCOPE_NOWHERE  = 0xff
   310		RT_TABLE_UNSPEC   = 0x0
   311		RT_TABLE_COMPAT   = 0xfc
   312		RT_TABLE_DEFAULT  = 0xfd
   313		RT_TABLE_MAIN     = 0xfe
   314		RT_TABLE_LOCAL    = 0xff
   315		RT_TABLE_MAX      = 0xffffffff
   316		RTA_UNSPEC        = 0x0
   317		RTA_DST           = 0x1
   318		RTA_SRC           = 0x2
   319		RTA_IIF           = 0x3
   320		RTA_OIF           = 0x4
   321		RTA_GATEWAY       = 0x5
   322		RTA_PRIORITY      = 0x6
   323		RTA_PREFSRC       = 0x7
   324		RTA_METRICS       = 0x8
   325		RTA_MULTIPATH     = 0x9
   326		RTA_FLOW          = 0xb
   327		RTA_CACHEINFO     = 0xc
   328		RTA_TABLE         = 0xf
   329		RTN_UNSPEC        = 0x0
   330		RTN_UNICAST       = 0x1
   331		RTN_LOCAL         = 0x2
   332		RTN_BROADCAST     = 0x3
   333		RTN_ANYCAST       = 0x4
   334		RTN_MULTICAST     = 0x5
   335		RTN_BLACKHOLE     = 0x6
   336		RTN_UNREACHABLE   = 0x7
   337		RTN_PROHIBIT      = 0x8
   338		RTN_THROW         = 0x9
   339		RTN_NAT           = 0xa
   340		RTN_XRESOLVE      = 0xb
   341		SizeofNlMsghdr    = 0x10
   342		SizeofNlMsgerr    = 0x14
   343		SizeofRtGenmsg    = 0x1
   344		SizeofNlAttr      = 0x4
   345		SizeofRtAttr      = 0x4
   346		SizeofIfInfomsg   = 0x10
   347		SizeofIfAddrmsg   = 0x8
   348		SizeofRtMsg       = 0xc
   349		SizeofRtNexthop   = 0x8
   350	)
   351	
   352	type NlMsghdr struct {
   353		Len   uint32
   354		Type  uint16
   355		Flags uint16
   356		Seq   uint32
   357		Pid   uint32
   358	}
   359	
   360	type NlMsgerr struct {
   361		Error int32
   362		Msg   NlMsghdr
   363	}
   364	
   365	type RtGenmsg struct {
   366		Family uint8
   367	}
   368	
   369	type NlAttr struct {
   370		Len  uint16
   371		Type uint16
   372	}
   373	
   374	type RtAttr struct {
   375		Len  uint16
   376		Type uint16
   377	}
   378	
   379	type IfInfomsg struct {
   380		Family     uint8
   381		X__ifi_pad uint8
   382		Type       uint16
   383		Index      int32
   384		Flags      uint32
   385		Change     uint32
   386	}
   387	
   388	type IfAddrmsg struct {
   389		Family    uint8
   390		Prefixlen uint8
   391		Flags     uint8
   392		Scope     uint8
   393		Index     uint32
   394	}
   395	
   396	type RtMsg struct {
   397		Family   uint8
   398		Dst_len  uint8
   399		Src_len  uint8
   400		Tos      uint8
   401		Table    uint8
   402		Protocol uint8
   403		Scope    uint8
   404		Type     uint8
   405		Flags    uint32
   406	}
   407	
   408	type RtNexthop struct {
   409		Len     uint16
   410		Flags   uint8
   411		Hops    uint8
   412		Ifindex int32
   413	}
   414	
   415	const (
   416		SizeofSockFilter = 0x8
   417		SizeofSockFprog  = 0x10
   418	)
   419	
   420	type SockFilter struct {
   421		Code uint16
   422		Jt   uint8
   423		Jf   uint8
   424		K    uint32
   425	}
   426	
   427	type SockFprog struct {
   428		Len       uint16
   429		Pad_cgo_0 [6]byte
   430		Filter    *SockFilter
   431	}
   432	
   433	type InotifyEvent struct {
   434		Wd     int32
   435		Mask   uint32
   436		Cookie uint32
   437		Len    uint32
   438		Name   [0]byte
   439	}
   440	
   441	const SizeofInotifyEvent = 0x10
   442	
   443	type PtraceRegs struct {
   444		R15      uint64
   445		R14      uint64
   446		R13      uint64
   447		R12      uint64
   448		Rbp      uint64
   449		Rbx      uint64
   450		R11      uint64
   451		R10      uint64
   452		R9       uint64
   453		R8       uint64
   454		Rax      uint64
   455		Rcx      uint64
   456		Rdx      uint64
   457		Rsi      uint64
   458		Rdi      uint64
   459		Orig_rax uint64
   460		Rip      uint64
   461		Cs       uint64
   462		Eflags   uint64
   463		Rsp      uint64
   464		Ss       uint64
   465		Fs_base  uint64
   466		Gs_base  uint64
   467		Ds       uint64
   468		Es       uint64
   469		Fs       uint64
   470		Gs       uint64
   471	}
   472	
   473	type FdSet struct {
   474		Bits [16]int64
   475	}
   476	
   477	type Sysinfo_t struct {
   478		Uptime    int64
   479		Loads     [3]uint64
   480		Totalram  uint64
   481		Freeram   uint64
   482		Sharedram uint64
   483		Bufferram uint64
   484		Totalswap uint64
   485		Freeswap  uint64
   486		Procs     uint16
   487		Pad       uint16
   488		Pad_cgo_0 [4]byte
   489		Totalhigh uint64
   490		Freehigh  uint64
   491		Unit      uint32
   492		X_f       [0]byte
   493		Pad_cgo_1 [4]byte
   494	}
   495	
   496	type Utsname struct {
   497		Sysname    [65]int8
   498		Nodename   [65]int8
   499		Release    [65]int8
   500		Version    [65]int8
   501		Machine    [65]int8
   502		Domainname [65]int8
   503	}
   504	
   505	type Ustat_t struct {
   506		Tfree     int32
   507		Pad_cgo_0 [4]byte
   508		Tinode    uint64
   509		Fname     [6]int8
   510		Fpack     [6]int8
   511		Pad_cgo_1 [4]byte
   512	}
   513	
   514	type EpollEvent struct {
   515		Events uint32
   516		Fd     int32
   517		Pad    int32
   518	}
   519	
   520	type Termios struct {
   521		Iflag     uint32
   522		Oflag     uint32
   523		Cflag     uint32
   524		Lflag     uint32
   525		Line      uint8
   526		Cc        [32]uint8
   527		Pad_cgo_0 [3]byte
   528		Ispeed    uint32
   529		Ospeed    uint32
   530	}
   531	
   532	const (
   533		VINTR    = 0x0
   534		VQUIT    = 0x1
   535		VERASE   = 0x2
   536		VKILL    = 0x3
   537		VEOF     = 0x4
   538		VTIME    = 0x5
   539		VMIN     = 0x6
   540		VSWTC    = 0x7
   541		VSTART   = 0x8
   542		VSTOP    = 0x9
   543		VSUSP    = 0xa
   544		VEOL     = 0xb
   545		VREPRINT = 0xc
   546		VDISCARD = 0xd
   547		VWERASE  = 0xe
   548		VLNEXT   = 0xf
   549		VEOL2    = 0x10
   550		IGNBRK   = 0x1
   551		BRKINT   = 0x2
   552		IGNPAR   = 0x4
   553		PARMRK   = 0x8
   554		INPCK    = 0x10
   555		ISTRIP   = 0x20
   556		INLCR    = 0x40
   557		IGNCR    = 0x80
   558		ICRNL    = 0x100
   559		IUCLC    = 0x200
   560		IXON     = 0x400
   561		IXANY    = 0x800
   562		IXOFF    = 0x1000
   563		IMAXBEL  = 0x2000
   564		IUTF8    = 0x4000
   565		OPOST    = 0x1
   566		OLCUC    = 0x2
   567		ONLCR    = 0x4
   568		OCRNL    = 0x8
   569		ONOCR    = 0x10
   570		ONLRET   = 0x20
   571		OFILL    = 0x40
   572		OFDEL    = 0x80
   573		B0       = 0x0
   574		B50      = 0x1
   575		B75      = 0x2
   576		B110     = 0x3
   577		B134     = 0x4
   578		B150     = 0x5
   579		B200     = 0x6
   580		B300     = 0x7
   581		B600     = 0x8
   582		B1200    = 0x9
   583		B1800    = 0xa
   584		B2400    = 0xb
   585		B4800    = 0xc
   586		B9600    = 0xd
   587		B19200   = 0xe
   588		B38400   = 0xf
   589		CSIZE    = 0x30
   590		CS5      = 0x0
   591		CS6      = 0x10
   592		CS7      = 0x20
   593		CS8      = 0x30
   594		CSTOPB   = 0x40
   595		CREAD    = 0x80
   596		PARENB   = 0x100
   597		PARODD   = 0x200
   598		HUPCL    = 0x400
   599		CLOCAL   = 0x800
   600		B57600   = 0x1001
   601		B115200  = 0x1002
   602		B230400  = 0x1003
   603		B460800  = 0x1004
   604		B500000  = 0x1005
   605		B576000  = 0x1006
   606		B921600  = 0x1007
   607		B1000000 = 0x1008
   608		B1152000 = 0x1009
   609		B1500000 = 0x100a
   610		B2000000 = 0x100b
   611		B2500000 = 0x100c
   612		B3000000 = 0x100d
   613		B3500000 = 0x100e
   614		B4000000 = 0x100f
   615		ISIG     = 0x1
   616		ICANON   = 0x2
   617		XCASE    = 0x4
   618		ECHO     = 0x8
   619		ECHOE    = 0x10
   620		ECHOK    = 0x20
   621		ECHONL   = 0x40
   622		NOFLSH   = 0x80
   623		TOSTOP   = 0x100
   624		ECHOCTL  = 0x200
   625		ECHOPRT  = 0x400
   626		ECHOKE   = 0x800
   627		FLUSHO   = 0x1000
   628		PENDIN   = 0x4000
   629		IEXTEN   = 0x8000
   630		TCGETS   = 0x5401
   631		TCSETS   = 0x5402
   632	)