OSDN Git Service

Portability bits for the recent ls smack changes.
authorRob Landley <rob@landley.net>
Fri, 1 May 2015 19:40:49 +0000 (14:40 -0500)
committerRob Landley <rob@landley.net>
Fri, 1 May 2015 19:40:49 +0000 (14:40 -0500)
lib/portability.h

index 740a4ee..b25048f 100644 (file)
@@ -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