diff options
author | Rob Landley <rob@landley.net> | 2015-05-01 14:40:49 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-05-01 14:40:49 -0500 |
commit | 06d378325b9e7b6fd06fe45b284e189ac440345b (patch) | |
tree | 7320f4570688d43605e5f2aa3c0ab1799508f9b6 | |
parent | 5e18bae30a80d6149e47d9adb1acb3a64bac7c08 (diff) | |
download | toybox-06d378325b9e7b6fd06fe45b284e189ac440345b.tar.gz |
Portability bits for the recent ls smack changes.
-rw-r--r-- | lib/portability.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index 740a4ee5..b25048fe 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -226,6 +226,10 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream); #define O_CLOEXEC 02000000 #endif +#ifndef O_PATH +#define O_PATH 010000000 +#endif + #if defined(__SIZEOF_DOUBLE__) && defined(__SIZEOF_LONG__) \ && __SIZEOF_DOUBLE__ <= __SIZEOF_LONG__ typedef double FLOAT; @@ -257,5 +261,7 @@ int getcon(void* con); #define smack_set_label_for_self(...) (-1) #define XATTR_NAME_SMACK "" #define SMACK_LABEL_LEN (1) /* for just ? */ + +ssize_t fgetxattr (int fd, char *name, void *value, size_t size); #endif |