|
|
|
|
|
by loeg
1432 days ago
|
|
The kernel can easily version APIs using struct size, as long as new members are only appended. The libc function would pass the size of the struct to the syscall, or you could have pledge() itself be a macro that computes sizeof in the caller. |
|
I (obviously) prefer the extensible struct solution but there are downsides (and other solutions weren't an option for Linux anyway).