Dear list,
So, IllumOS OpenZFS has fcntl(F_FREESP), and even though XNU does not have
it, the testing environment uses it for some of its tests. So I do not need
it, but thought it would be "amusing" to support it anyway.
I define the standard:
#define F_FREESP_IOC _IOW('Z', 11, struct flock)
#
Ah ok, so the code in
libsyscall/wrappers/cancelable/fcntl-base.c
has a switch() with a large list of fcntls that are to be handled as "void
*" and everything else is int *.
All the void * entries listed there, is handled in bsd/kern/kern_descrip.c,
and will not reach the default case. So I can