...

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

Documentation: github.com/shirou/gopsutil/host

     1  // +build ignore
     2  
     3  /*
     4  Input to cgo -godefs.
     5  */
     6  
     7  package host
     8  
     9  /*
    10  #define KERNEL
    11  #include <sys/types.h>
    12  #include <sys/time.h>
    13  #include <utmp.h>
    14  
    15  enum {
    16  	sizeofPtr = sizeof(void*),
    17  };
    18  
    19  */
    20  import "C"
    21  
    22  // Machine characteristics; for internal use.
    23  
    24  const (
    25  	sizeofPtr      = C.sizeofPtr
    26  	sizeofShort    = C.sizeof_short
    27  	sizeofInt      = C.sizeof_int
    28  	sizeofLong     = C.sizeof_long
    29  	sizeofLongLong = C.sizeof_longlong
    30  	sizeOfUtmp     = C.sizeof_struct_utmp
    31  )
    32  
    33  // Basic types
    34  
    35  type (
    36  	_C_short     C.short
    37  	_C_int       C.int
    38  	_C_long      C.long
    39  	_C_long_long C.longlong
    40  )
    41  
    42  type Utmp C.struct_utmp
    43  type Timeval C.struct_timeval
    44  

View as plain text