This function needs a OS X counterpart.  The lgetxattr call can be done using the XATTR_NOFOLLOW option in OS X getxattr.  The 32 suffix is not needed, I think.  The existing platform_XXX64 functions are there because the OS X compiler throws warnings when using XXX64 functions.