Commit 5c3045e
committed
Move static variables to lsof_context in Darwin dproc.c
- Move process information buffers (Fds, Pids, NbPids, NbFds) to ctx->dialect
- Move thread buffers (Threads, NbThreads) to ctx->dialect (DARWINV>=900)
- Move fileport buffers (Fps, NbFps) to ctx->dialect (PROC_PIDLISTFILEPORTS)
- Move vnode recording (Vips, NVips) to ctx->dialect
- Replace manual malloc/realloc with grow_array() helper for Vips
- Remove redundant NbVips field (bytes can be calculated from NVips)
- Add convenience macros in dlsof.h for accessing context fields
- Rename struct vips_info to struct darwin_vips_info for namespacing
All 14 test cases pass successfully.1 parent f3cbd37 commit 5c3045e
2 files changed
+45
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
132 | 174 | | |
133 | 175 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 59 | | |
91 | 60 | | |
92 | 61 | | |
| |||
133 | 102 | | |
134 | 103 | | |
135 | 104 | | |
136 | | - | |
137 | 105 | | |
138 | 106 | | |
139 | 107 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 108 | + | |
| 109 | + | |
148 | 110 | | |
149 | 111 | | |
150 | 112 | | |
| |||
0 commit comments