process_openbsd_amd64.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs types_openbsd.go
  3. package process
  4. const (
  5. CTLKern = 1
  6. KernProc = 66
  7. KernProcAll = 0
  8. KernProcPID = 1
  9. KernProcProc = 8
  10. KernProcPathname = 12
  11. KernProcArgs = 55
  12. KernProcArgv = 1
  13. KernProcEnv = 3
  14. )
  15. const (
  16. ArgMax = 256 * 1024
  17. )
  18. const (
  19. sizeofPtr = 0x8
  20. sizeofShort = 0x2
  21. sizeofInt = 0x4
  22. sizeofLong = 0x8
  23. sizeofLongLong = 0x8
  24. )
  25. const (
  26. sizeOfKinfoVmentry = 0x50
  27. sizeOfKinfoProc = 0x268
  28. )
  29. const (
  30. SIDL = 1
  31. SRUN = 2
  32. SSLEEP = 3
  33. SSTOP = 4
  34. SZOMB = 5
  35. SDEAD = 6
  36. SONPROC = 7
  37. )
  38. type (
  39. _C_short int16
  40. _C_int int32
  41. _C_long int64
  42. _C_long_long int64
  43. )
  44. type Timespec struct {
  45. Sec int64
  46. Nsec int64
  47. }
  48. type Timeval struct {
  49. Sec int64
  50. Usec int64
  51. }
  52. type Rusage struct {
  53. Utime Timeval
  54. Stime Timeval
  55. Maxrss int64
  56. Ixrss int64
  57. Idrss int64
  58. Isrss int64
  59. Minflt int64
  60. Majflt int64
  61. Nswap int64
  62. Inblock int64
  63. Oublock int64
  64. Msgsnd int64
  65. Msgrcv int64
  66. Nsignals int64
  67. Nvcsw int64
  68. Nivcsw int64
  69. }
  70. type Rlimit struct {
  71. Cur uint64
  72. Max uint64
  73. }
  74. type KinfoProc struct {
  75. Forw uint64
  76. Back uint64
  77. Paddr uint64
  78. Addr uint64
  79. Fd uint64
  80. Stats uint64
  81. Limit uint64
  82. Vmspace uint64
  83. Sigacts uint64
  84. Sess uint64
  85. Tsess uint64
  86. Ru uint64
  87. Eflag int32
  88. Exitsig int32
  89. Flag int32
  90. Pid int32
  91. Ppid int32
  92. Sid int32
  93. X_pgid int32
  94. Tpgid int32
  95. Uid uint32
  96. Ruid uint32
  97. Gid uint32
  98. Rgid uint32
  99. Groups [16]uint32
  100. Ngroups int16
  101. Jobc int16
  102. Tdev uint32
  103. Estcpu uint32
  104. Rtime_sec uint32
  105. Rtime_usec uint32
  106. Cpticks int32
  107. Pctcpu uint32
  108. Swtime uint32
  109. Slptime uint32
  110. Schedflags int32
  111. Uticks uint64
  112. Sticks uint64
  113. Iticks uint64
  114. Tracep uint64
  115. Traceflag int32
  116. Holdcnt int32
  117. Siglist int32
  118. Sigmask uint32
  119. Sigignore uint32
  120. Sigcatch uint32
  121. Stat int8
  122. Priority uint8
  123. Usrpri uint8
  124. Nice uint8
  125. Xstat uint16
  126. Acflag uint16
  127. Comm [24]int8
  128. Wmesg [8]int8
  129. Wchan uint64
  130. Login [32]int8
  131. Vm_rssize int32
  132. Vm_tsize int32
  133. Vm_dsize int32
  134. Vm_ssize int32
  135. Uvalid int64
  136. Ustart_sec uint64
  137. Ustart_usec uint32
  138. Uutime_sec uint32
  139. Uutime_usec uint32
  140. Ustime_sec uint32
  141. Ustime_usec uint32
  142. Pad_cgo_0 [4]byte
  143. Uru_maxrss uint64
  144. Uru_ixrss uint64
  145. Uru_idrss uint64
  146. Uru_isrss uint64
  147. Uru_minflt uint64
  148. Uru_majflt uint64
  149. Uru_nswap uint64
  150. Uru_inblock uint64
  151. Uru_oublock uint64
  152. Uru_msgsnd uint64
  153. Uru_msgrcv uint64
  154. Uru_nsignals uint64
  155. Uru_nvcsw uint64
  156. Uru_nivcsw uint64
  157. Uctime_sec uint32
  158. Uctime_usec uint32
  159. Psflags int32
  160. Spare int32
  161. Svuid uint32
  162. Svgid uint32
  163. Emul [8]int8
  164. Rlim_rss_cur uint64
  165. Cpuid uint64
  166. Vm_map_size uint64
  167. Tid int32
  168. Rtableid uint32
  169. }
  170. type Priority struct{}
  171. type KinfoVmentry struct {
  172. Start uint64
  173. End uint64
  174. Guard uint64
  175. Fspace uint64
  176. Fspace_augment uint64
  177. Offset uint64
  178. Wired_count int32
  179. Etype int32
  180. Protection int32
  181. Max_protection int32
  182. Advice int32
  183. Inheritance int32
  184. Flags uint8
  185. Pad_cgo_0 [7]byte
  186. }