I added some minor indirection around the base (foo)xattr C calls so that I could create functions with the Linux signature that call the OS X versions.
Note this does't handle the half-dozen OS X special cases (com.apple.ResourceFork, com.apple.FinderInfo, compressed EAs, etc.) but the API is low-level enough that it shouldn't matter in most cases (and if it does matter to someone, that's what ctypes/cffi is for).
I added some minor indirection around the base
(foo)xattr
C calls so that I could create functions with the Linux signature that call the OS X versions.Note this does't handle the half-dozen OS X special cases (com.apple.ResourceFork, com.apple.FinderInfo, compressed EAs, etc.) but the API is low-level enough that it shouldn't matter in most cases (and if it does matter to someone, that's what ctypes/cffi is for).