flutter_packages icon indicating copy to clipboard operation
flutter_packages copied to clipboard

Unify generated libc platform bindings

Open ardera opened this issue 1 year ago • 0 comments

now that the generated libc platform bindings are portable (i.e. the same for each ABI, so linux-armhf, arm64, i386 and amd64), the old boilerplate code that was there to wrap the platform-specific bindings and provide a common API can be deleted and we can just use the bindings that are generated for amd64 (for example).

Though we should still generate the bindings for all platforms and check whether they are the same, so for example we catch outliers such as O_NOFOLLOW and O_DIRECTORY, which have different values depending on ABI.

ardera avatar Aug 08 '22 10:08 ardera