...

Source file src/github.com/shirou/gopsutil/host/host_linux_386.go

Documentation: github.com/shirou/gopsutil/host

     1  // ATTENTION - FILE MANUAL FIXED AFTER CGO.
     2  // Fixed line: Tv		_Ctype_struct_timeval -> Tv		UtTv
     3  // Created by cgo -godefs, MANUAL FIXED
     4  // cgo -godefs types_linux.go
     5  
     6  package host
     7  
     8  const (
     9  	sizeofPtr      = 0x4
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x4
    13  	sizeofLongLong = 0x8
    14  	sizeOfUtmp     = 0x180
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int32
    21  	_C_long_long int64
    22  )
    23  
    24  type utmp struct {
    25  	Type      int16
    26  	Pad_cgo_0 [2]byte
    27  	Pid       int32
    28  	Line      [32]int8
    29  	ID        [4]int8
    30  	User      [32]int8
    31  	Host      [256]int8
    32  	Exit      exit_status
    33  	Session   int32
    34  	Tv        UtTv
    35  	Addr_v6   [4]int32
    36  	X__unused [20]int8
    37  }
    38  type exit_status struct {
    39  	Termination int16
    40  	Exit        int16
    41  }
    42  type UtTv struct {
    43  	Sec  int32
    44  	Usec int32
    45  }
    46  

View as plain text