OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e18bae
)
Portability bits for the recent ls smack changes.
author
Rob Landley
<rob@landley.net>
Fri, 1 May 2015 19:40:49 +0000
(14:40 -0500)
committer
Rob Landley
<rob@landley.net>
Fri, 1 May 2015 19:40:49 +0000
(14:40 -0500)
lib/portability.h
patch
|
blob
|
history
diff --git
a/lib/portability.h
b/lib/portability.h
index
740a4ee
..
b25048f
100644
(file)
--- 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