ardera / flutter_packages

My collected packages for pub.dev
MIT License
28 stars 7 forks source link

Unify generated libc platform bindings #13

Open ardera opened 1 year ago

ardera commented 1 year ago

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.