process_freebsd_arm.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs types_freebsd.go
  3. package process
  4. const (
  5. CTLKern = 1
  6. KernProc = 14
  7. KernProcPID = 1
  8. KernProcProc = 8
  9. KernProcPathname = 12
  10. KernProcArgs = 7
  11. )
  12. const (
  13. sizeofPtr = 0x4
  14. sizeofShort = 0x2
  15. sizeofInt = 0x4
  16. sizeofLong = 0x4
  17. sizeofLongLong = 0x8
  18. )
  19. const (
  20. sizeOfKinfoVmentry = 0x488
  21. sizeOfKinfoProc = 0x440
  22. )
  23. const (
  24. SIDL = 1
  25. SRUN = 2
  26. SSLEEP = 3
  27. SSTOP = 4
  28. SZOMB = 5
  29. SWAIT = 6
  30. SLOCK = 7
  31. )
  32. type (
  33. _C_short int16
  34. _C_int int32
  35. _C_long int32
  36. _C_long_long int64
  37. )
  38. type Timespec struct {
  39. Sec int64
  40. Nsec int64
  41. }
  42. type Timeval struct {
  43. Sec int64
  44. Usec int64
  45. }
  46. type Rusage struct {
  47. Utime Timeval
  48. Stime Timeval
  49. Maxrss int32
  50. Ixrss int32
  51. Idrss int32
  52. Isrss int32
  53. Minflt int32
  54. Majflt int32
  55. Nswap int32
  56. Inblock int32
  57. Oublock int32
  58. Msgsnd int32
  59. Msgrcv int32
  60. Nsignals int32
  61. Nvcsw int32
  62. Nivcsw int32
  63. }
  64. type Rlimit struct {
  65. Cur int32
  66. Max int32
  67. }
  68. type KinfoProc struct {
  69. Structsize int32
  70. Layout int32
  71. Args int32 /* pargs */
  72. Paddr int32 /* proc */
  73. Addr int32 /* user */
  74. Tracep int32 /* vnode */
  75. Textvp int32 /* vnode */
  76. Fd int32 /* filedesc */
  77. Vmspace int32 /* vmspace */
  78. Wchan int32
  79. Pid int32
  80. Ppid int32
  81. Pgid int32
  82. Tpgid int32
  83. Sid int32
  84. Tsid int32
  85. Jobc int16
  86. Spare_short1 int16
  87. Tdev uint32
  88. Siglist [16]byte /* sigset */
  89. Sigmask [16]byte /* sigset */
  90. Sigignore [16]byte /* sigset */
  91. Sigcatch [16]byte /* sigset */
  92. Uid uint32
  93. Ruid uint32
  94. Svuid uint32
  95. Rgid uint32
  96. Svgid uint32
  97. Ngroups int16
  98. Spare_short2 int16
  99. Groups [16]uint32
  100. Size uint32
  101. Rssize int32
  102. Swrss int32
  103. Tsize int32
  104. Dsize int32
  105. Ssize int32
  106. Xstat uint16
  107. Acflag uint16
  108. Pctcpu uint32
  109. Estcpu uint32
  110. Slptime uint32
  111. Swtime uint32
  112. Cow uint32
  113. Runtime uint64
  114. Start Timeval
  115. Childtime Timeval
  116. Flag int32
  117. Kiflag int32
  118. Traceflag int32
  119. Stat int8
  120. Nice int8
  121. Lock int8
  122. Rqindex int8
  123. Oncpu uint8
  124. Lastcpu uint8
  125. Tdname [17]int8
  126. Wmesg [9]int8
  127. Login [18]int8
  128. Lockname [9]int8
  129. Comm [20]int8
  130. Emul [17]int8
  131. Loginclass [18]int8
  132. Sparestrings [50]int8
  133. Spareints [4]int32
  134. Flag2 int32
  135. Fibnum int32
  136. Cr_flags uint32
  137. Jid int32
  138. Numthreads int32
  139. Tid int32
  140. Pri Priority
  141. Rusage Rusage
  142. Rusage_ch Rusage
  143. Pcb int32 /* pcb */
  144. Kstack int32
  145. Udata int32
  146. Tdaddr int32 /* thread */
  147. Spareptrs [6]int64
  148. Sparelongs [12]int64
  149. Sflag int64
  150. Tdflags int64
  151. }
  152. type Priority struct {
  153. Class uint8
  154. Level uint8
  155. Native uint8
  156. User uint8
  157. }
  158. type KinfoVmentry struct {
  159. Structsize int32
  160. Type int32
  161. Start uint64
  162. End uint64
  163. Offset uint64
  164. Vn_fileid uint64
  165. Vn_fsid uint32
  166. Flags int32
  167. Resident int32
  168. Private_resident int32
  169. Protection int32
  170. Ref_count int32
  171. Shadow_count int32
  172. Vn_type int32
  173. Vn_size uint64
  174. Vn_rdev uint32
  175. Vn_mode uint16
  176. Status uint16
  177. X_kve_ispare [12]int32
  178. Path [1024]int8
  179. }