github.com/gofiber/fiber/v2@v2.47.0/internal/gopsutil/process/process_darwin_arm64.go (about)

     1  //go:build darwin && arm64
     2  // +build darwin,arm64
     3  
     4  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     5  // cgo -godefs process/types_darwin.go
     6  
     7  package process
     8  
     9  const (
    10  	sizeofPtr      = 0x8
    11  	sizeofShort    = 0x2
    12  	sizeofInt      = 0x4
    13  	sizeofLong     = 0x8
    14  	sizeofLongLong = 0x8
    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 Timespec struct {
    25  	Sec  int64
    26  	Nsec int64
    27  }
    28  
    29  type Timeval struct {
    30  	Sec       int64
    31  	Usec      int32
    32  	Pad_cgo_0 [4]byte
    33  }
    34  
    35  type Rusage struct {
    36  	Utime    Timeval
    37  	Stime    Timeval
    38  	Maxrss   int64
    39  	Ixrss    int64
    40  	Idrss    int64
    41  	Isrss    int64
    42  	Minflt   int64
    43  	Majflt   int64
    44  	Nswap    int64
    45  	Inblock  int64
    46  	Oublock  int64
    47  	Msgsnd   int64
    48  	Msgrcv   int64
    49  	Nsignals int64
    50  	Nvcsw    int64
    51  	Nivcsw   int64
    52  }
    53  
    54  type Rlimit struct {
    55  	Cur uint64
    56  	Max uint64
    57  }
    58  
    59  type UGid_t uint32
    60  
    61  type KinfoProc struct {
    62  	Proc  ExternProc
    63  	Eproc Eproc
    64  }
    65  
    66  type Eproc struct {
    67  	Paddr     *Proc
    68  	Sess      *Session
    69  	Pcred     Upcred
    70  	Ucred     Uucred
    71  	Vm        Vmspace
    72  	Ppid      int32
    73  	Pgid      int32
    74  	Jobc      int16
    75  	Tdev      int32
    76  	Tpgid     int32
    77  	Tsess     *Session
    78  	Wmesg     [8]int8
    79  	Xsize     int32
    80  	Xrssize   int16
    81  	Xccount   int16
    82  	Xswrss    int16
    83  	Flag      int32
    84  	Login     [12]int8
    85  	Spare     [4]int32
    86  	Pad_cgo_0 [4]byte
    87  }
    88  
    89  type Proc struct{}
    90  
    91  type Session struct{}
    92  
    93  type ucred struct{}
    94  
    95  type Uucred struct {
    96  	Ref     int32
    97  	UID     uint32
    98  	Ngroups int16
    99  	Groups  [16]uint32
   100  }
   101  
   102  type Upcred struct {
   103  	Pc_lock   [72]int8
   104  	Pc_ucred  *ucred
   105  	P_ruid    uint32
   106  	P_svuid   uint32
   107  	P_rgid    uint32
   108  	P_svgid   uint32
   109  	P_refcnt  int32
   110  	Pad_cgo_0 [4]byte
   111  }
   112  
   113  type Vmspace struct {
   114  	Dummy  int32
   115  	Dummy2 *int8
   116  	Dummy3 [5]int32
   117  	Dummy4 [3]*int8
   118  }
   119  
   120  type Sigacts struct{}
   121  
   122  type ExternProc struct {
   123  	P_un        [16]byte
   124  	P_vmspace   *Vmspace
   125  	P_sigacts   *Sigacts
   126  	P_flag      int32
   127  	P_stat      int8
   128  	P_pid       int32
   129  	P_oppid     int32
   130  	P_dupfd     int32
   131  	User_stack  *int8
   132  	Exit_thread *byte
   133  	P_debugger  int32
   134  	Sigwait     int32
   135  	P_estcpu    uint32
   136  	P_cpticks   int32
   137  	P_pctcpu    uint32
   138  	P_wchan     *byte
   139  	P_wmesg     *int8
   140  	P_swtime    uint32
   141  	P_slptime   uint32
   142  	P_realtimer Itimerval
   143  	P_rtime     Timeval
   144  	P_uticks    uint64
   145  	P_sticks    uint64
   146  	P_iticks    uint64
   147  	P_traceflag int32
   148  	P_tracep    *Vnode
   149  	P_siglist   int32
   150  	P_textvp    *Vnode
   151  	P_holdcnt   int32
   152  	P_sigmask   uint32
   153  	P_sigignore uint32
   154  	P_sigcatch  uint32
   155  	P_priority  uint8
   156  	P_usrpri    uint8
   157  	P_nice      int8
   158  	P_comm      [17]int8
   159  	P_pgrp      *Pgrp
   160  	P_addr      *UserStruct
   161  	P_xstat     uint16
   162  	P_acflag    uint16
   163  	P_ru        *Rusage
   164  }
   165  
   166  type Itimerval struct {
   167  	Interval Timeval
   168  	Value    Timeval
   169  }
   170  
   171  type Vnode struct{}
   172  
   173  type Pgrp struct{}
   174  
   175  type UserStruct struct{}
   176  
   177  type Au_session struct {
   178  	Aia_p *AuditinfoAddr
   179  	Mask  AuMask
   180  }
   181  
   182  type Posix_cred struct{}
   183  
   184  type Label struct{}
   185  
   186  type AuditinfoAddr struct {
   187  	Auid   uint32
   188  	Mask   AuMask
   189  	Termid AuTidAddr
   190  	Asid   int32
   191  	Flags  uint64
   192  }
   193  type AuMask struct {
   194  	Success uint32
   195  	Failure uint32
   196  }
   197  type AuTidAddr struct {
   198  	Port int32
   199  	Type uint32
   200  	Addr [4]uint32
   201  }
   202  
   203  type UcredQueue struct {
   204  	Next *ucred
   205  	Prev **ucred
   206  }