process_darwin_386.go 3.5 KB

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