github.com/ie310mu/ie310go/forks/golang.org/x/sys@v0.0.0-20190821095322-9a46783d4de5/unix/ztypes_aix_ppc64.go (about)

     1  // cgo -godefs types_aix.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build ppc64,aix
     5  
     6  package unix
     7  
     8  const (
     9  	SizeofPtr      = 0x8
    10  	SizeofShort    = 0x2
    11  	SizeofInt      = 0x4
    12  	SizeofLong     = 0x8
    13  	SizeofLongLong = 0x8
    14  	PathMax        = 0x3ff
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int64
    21  	_C_long_long int64
    22  )
    23  
    24  type off64 int64
    25  type off int64
    26  type Mode_t uint32
    27  
    28  type Timespec struct {
    29  	Sec  int64
    30  	Nsec int64
    31  }
    32  
    33  type Timeval struct {
    34  	Sec  int64
    35  	Usec int32
    36  	_    [4]byte
    37  }
    38  
    39  type Timeval32 struct {
    40  	Sec  int32
    41  	Usec int32
    42  }
    43  
    44  type Timex struct{}
    45  
    46  type Time_t int64
    47  
    48  type Tms struct{}
    49  
    50  type Utimbuf struct {
    51  	Actime  int64
    52  	Modtime int64
    53  }
    54  
    55  type Timezone struct {
    56  	Minuteswest int32
    57  	Dsttime     int32
    58  }
    59  
    60  type Rusage struct {
    61  	Utime    Timeval
    62  	Stime    Timeval
    63  	Maxrss   int64
    64  	Ixrss    int64
    65  	Idrss    int64
    66  	Isrss    int64
    67  	Minflt   int64
    68  	Majflt   int64
    69  	Nswap    int64
    70  	Inblock  int64
    71  	Oublock  int64
    72  	Msgsnd   int64
    73  	Msgrcv   int64
    74  	Nsignals int64
    75  	Nvcsw    int64
    76  	Nivcsw   int64
    77  }
    78  
    79  type Rlimit struct {
    80  	Cur uint64
    81  	Max uint64
    82  }
    83  
    84  type Pid_t int32
    85  
    86  type _Gid_t uint32
    87  
    88  type dev_t uint64
    89  
    90  type Stat_t struct {
    91  	Dev      uint64
    92  	Ino      uint64
    93  	Mode     uint32
    94  	Nlink    int16
    95  	Flag     uint16
    96  	Uid      uint32
    97  	Gid      uint32
    98  	Rdev     uint64
    99  	Ssize    int32
   100  	Atim     Timespec
   101  	Mtim     Timespec
   102  	Ctim     Timespec
   103  	Blksize  int64
   104  	Blocks   int64
   105  	Vfstype  int32
   106  	Vfs      uint32
   107  	Type     uint32
   108  	Gen      uint32
   109  	Reserved [9]uint32
   110  	Padto_ll uint32
   111  	Size     int64
   112  }
   113  
   114  type StatxTimestamp struct{}
   115  
   116  type Statx_t struct{}
   117  
   118  type Dirent struct {
   119  	Offset uint64
   120  	Ino    uint64
   121  	Reclen uint16
   122  	Namlen uint16
   123  	Name   [256]uint8
   124  	_      [4]byte
   125  }
   126  
   127  type RawSockaddrInet4 struct {
   128  	Len    uint8
   129  	Family uint8
   130  	Port   uint16
   131  	Addr   [4]byte /* in_addr */
   132  	Zero   [8]uint8
   133  }
   134  
   135  type RawSockaddrInet6 struct {
   136  	Len      uint8
   137  	Family   uint8
   138  	Port     uint16
   139  	Flowinfo uint32
   140  	Addr     [16]byte /* in6_addr */
   141  	Scope_id uint32
   142  }
   143  
   144  type RawSockaddrUnix struct {
   145  	Len    uint8
   146  	Family uint8
   147  	Path   [1023]uint8
   148  }
   149  
   150  type RawSockaddrDatalink struct {
   151  	Len    uint8
   152  	Family uint8
   153  	Index  uint16
   154  	Type   uint8
   155  	Nlen   uint8
   156  	Alen   uint8
   157  	Slen   uint8
   158  	Data   [120]uint8
   159  }
   160  
   161  type RawSockaddr struct {
   162  	Len    uint8
   163  	Family uint8
   164  	Data   [14]uint8
   165  }
   166  
   167  type RawSockaddrAny struct {
   168  	Addr RawSockaddr
   169  	Pad  [1012]uint8
   170  }
   171  
   172  type _Socklen uint32
   173  
   174  type Cmsghdr struct {
   175  	Len   uint32
   176  	Level int32
   177  	Type  int32
   178  }
   179  
   180  type ICMPv6Filter struct {
   181  	Filt [8]uint32
   182  }
   183  
   184  type Iovec struct {
   185  	Base *byte
   186  	Len  uint64
   187  }
   188  
   189  type IPMreq struct {
   190  	Multiaddr [4]byte /* in_addr */
   191  	Interface [4]byte /* in_addr */
   192  }
   193  
   194  type IPv6Mreq struct {
   195  	Multiaddr [16]byte /* in6_addr */
   196  	Interface uint32
   197  }
   198  
   199  type IPv6MTUInfo struct {
   200  	Addr RawSockaddrInet6
   201  	Mtu  uint32
   202  }
   203  
   204  type Linger struct {
   205  	Onoff  int32
   206  	Linger int32
   207  }
   208  
   209  type Msghdr struct {
   210  	Name       *byte
   211  	Namelen    uint32
   212  	Iov        *Iovec
   213  	Iovlen     int32
   214  	Control    *byte
   215  	Controllen uint32
   216  	Flags      int32
   217  }
   218  
   219  const (
   220  	SizeofSockaddrInet4    = 0x10
   221  	SizeofSockaddrInet6    = 0x1c
   222  	SizeofSockaddrAny      = 0x404
   223  	SizeofSockaddrUnix     = 0x401
   224  	SizeofSockaddrDatalink = 0x80
   225  	SizeofLinger           = 0x8
   226  	SizeofIPMreq           = 0x8
   227  	SizeofIPv6Mreq         = 0x14
   228  	SizeofIPv6MTUInfo      = 0x20
   229  	SizeofMsghdr           = 0x30
   230  	SizeofCmsghdr          = 0xc
   231  	SizeofICMPv6Filter     = 0x20
   232  )
   233  
   234  const (
   235  	SizeofIfMsghdr = 0x10
   236  )
   237  
   238  type IfMsgHdr struct {
   239  	Msglen  uint16
   240  	Version uint8
   241  	Type    uint8
   242  	Addrs   int32
   243  	Flags   int32
   244  	Index   uint16
   245  	Addrlen uint8
   246  	_       [1]byte
   247  }
   248  
   249  type FdSet struct {
   250  	Bits [1024]int64
   251  }
   252  
   253  type Utsname struct {
   254  	Sysname  [32]byte
   255  	Nodename [32]byte
   256  	Release  [32]byte
   257  	Version  [32]byte
   258  	Machine  [32]byte
   259  }
   260  
   261  type Ustat_t struct{}
   262  
   263  type Sigset_t struct {
   264  	Set [4]uint64
   265  }
   266  
   267  const (
   268  	AT_FDCWD            = -0x2
   269  	AT_REMOVEDIR        = 0x1
   270  	AT_SYMLINK_NOFOLLOW = 0x1
   271  )
   272  
   273  type Termios struct {
   274  	Iflag uint32
   275  	Oflag uint32
   276  	Cflag uint32
   277  	Lflag uint32
   278  	Cc    [16]uint8
   279  }
   280  
   281  type Termio struct {
   282  	Iflag uint16
   283  	Oflag uint16
   284  	Cflag uint16
   285  	Lflag uint16
   286  	Line  uint8
   287  	Cc    [8]uint8
   288  	_     [1]byte
   289  }
   290  
   291  type Winsize struct {
   292  	Row    uint16
   293  	Col    uint16
   294  	Xpixel uint16
   295  	Ypixel uint16
   296  }
   297  
   298  type PollFd struct {
   299  	Fd      int32
   300  	Events  uint16
   301  	Revents uint16
   302  }
   303  
   304  const (
   305  	POLLERR    = 0x4000
   306  	POLLHUP    = 0x2000
   307  	POLLIN     = 0x1
   308  	POLLNVAL   = 0x8000
   309  	POLLOUT    = 0x2
   310  	POLLPRI    = 0x4
   311  	POLLRDBAND = 0x20
   312  	POLLRDNORM = 0x10
   313  	POLLWRBAND = 0x40
   314  	POLLWRNORM = 0x2
   315  )
   316  
   317  type Flock_t struct {
   318  	Type   int16
   319  	Whence int16
   320  	Sysid  uint32
   321  	Pid    int32
   322  	Vfs    int32
   323  	Start  int64
   324  	Len    int64
   325  }
   326  
   327  type Fsid_t struct {
   328  	Val [2]uint32
   329  }
   330  type Fsid64_t struct {
   331  	Val [2]uint64
   332  }
   333  
   334  type Statfs_t struct {
   335  	Version   int32
   336  	Type      int32
   337  	Bsize     uint64
   338  	Blocks    uint64
   339  	Bfree     uint64
   340  	Bavail    uint64
   341  	Files     uint64
   342  	Ffree     uint64
   343  	Fsid      Fsid64_t
   344  	Vfstype   int32
   345  	Fsize     uint64
   346  	Vfsnumber int32
   347  	Vfsoff    int32
   348  	Vfslen    int32
   349  	Vfsvers   int32
   350  	Fname     [32]uint8
   351  	Fpack     [32]uint8
   352  	Name_max  int32
   353  	_         [4]byte
   354  }
   355  
   356  const RNDGETENTCNT = 0x80045200