Open ronaldoussoren opened 9 months ago
I thing I noticed while working on this: at least one of the constants is defined as requiring a buffer of PATH_MAX bytes to read the value (IIRC F_GETPATH
). The buffer we're using is only 1K long.
Some of constants require an access to a specific C struct. I am currently working on adding Python interface to such structs for Linux and FreeBSD, and it may results in some convenient helper C API. But this requires some preparatory steps (#114388, #114392, and some more).
It can help to do similar on macOS.
Feature or enhancement
Proposal:
There's a fairly large number of
F_*
macros that are present insys/fcntl.h
on macOS, but are not exposed infcntlmodule.c
:F_SETSIZE(No-op)F_PATHPKG_CHECK(found no public use other than XNU kernel, can't get test to work)Fixing this issue requires more than just adding definitions for the macros above, but also needs new tests to check that these settings are actually usable.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response