Commit 9814e55
golang: Use
* add three C functions to retrieve the major, minor and micro
version values from `seccomp_version()` when that's available
under v2.3.x or newer
* has to change type from `int` to `uint` as that's the type
used in `struct scmp_version`
Signed-off-by: K.C. Wong <[email protected]>
[MH: Tweaked commit message]
Signed-off-by: Matthew Heon <[email protected]>seccomp_version API to obtain library version1 parent e3496e3 commit 9814e55
2 files changed
Lines changed: 36 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
126 | 154 | | |
127 | 155 | | |
128 | 156 | | |
| |||
177 | 205 | | |
178 | 206 | | |
179 | 207 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
183 | 211 | | |
184 | 212 | | |
185 | 213 | | |
186 | 214 | | |
187 | 215 | | |
188 | | - | |
| 216 | + | |
189 | 217 | | |
190 | 218 | | |
191 | 219 | | |
| |||
0 commit comments