github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/src/syscall/ztypes_plan9_386.go (about)

     1  // godefs -gsyscall -f -m32 types_plan9.c
     2  
     3  // MACHINE GENERATED - DO NOT EDIT.
     4  
     5  package syscall
     6  
     7  // Constants
     8  const (
     9  	O_RDONLY   = 0
    10  	O_WRONLY   = 0x1
    11  	O_RDWR     = 0x2
    12  	O_TRUNC    = 0x10
    13  	O_CLOEXEC  = 0x20
    14  	O_EXCL     = 0x1000
    15  	STATMAX    = 0xffff
    16  	ERRMAX     = 0x80
    17  	MORDER     = 0x3
    18  	MREPL      = 0
    19  	MBEFORE    = 0x1
    20  	MAFTER     = 0x2
    21  	MCREATE    = 0x4
    22  	MCACHE     = 0x10
    23  	MMASK      = 0x17
    24  	RFNAMEG    = 0x1
    25  	RFENVG     = 0x2
    26  	RFFDG      = 0x4
    27  	RFNOTEG    = 0x8
    28  	RFPROC     = 0x10
    29  	RFMEM      = 0x20
    30  	RFNOWAIT   = 0x40
    31  	RFCNAMEG   = 0x400
    32  	RFCENVG    = 0x800
    33  	RFCFDG     = 0x1000
    34  	RFREND     = 0x2000
    35  	RFNOMNT    = 0x4000
    36  	QTDIR      = 0x80
    37  	QTAPPEND   = 0x40
    38  	QTEXCL     = 0x20
    39  	QTMOUNT    = 0x10
    40  	QTAUTH     = 0x8
    41  	QTTMP      = 0x4
    42  	QTFILE     = 0
    43  	DMDIR      = 0x80000000
    44  	DMAPPEND   = 0x40000000
    45  	DMEXCL     = 0x20000000
    46  	DMMOUNT    = 0x10000000
    47  	DMAUTH     = 0x8000000
    48  	DMTMP      = 0x4000000
    49  	DMREAD     = 0x4
    50  	DMWRITE    = 0x2
    51  	DMEXEC     = 0x1
    52  	STATFIXLEN = 0x31
    53  )
    54  
    55  // Types
    56  
    57  type _C_int int32
    58  
    59  type Prof struct {
    60  	Pp    *[0]byte /* sPlink */
    61  	Next  *[0]byte /* sPlink */
    62  	Last  *[0]byte /* sPlink */
    63  	First *[0]byte /* sPlink */
    64  	Pid   uint32
    65  	What  uint32
    66  }
    67  
    68  type Tos struct {
    69  	Prof      Prof
    70  	Cyclefreq uint64
    71  	Kcycles   int64
    72  	Pcycles   int64
    73  	Pid       uint32
    74  	Clock     uint32
    75  }