/********************************FILE OPEN FLAGS*****************************/
-#ifdef CONFIG_HAVE_OWN_OFLAGS
+#if CONFIG_HAVE_OWN_OFLAGS
#ifndef O_RDONLY
#define O_RDONLY 00
#else
#include <unistd.h>
+ #include <fcntl.h>
#endif
/********************************OS LOCK INFERFACE***************************/
int ext4_readlink(const char *path, char *buf, size_t bufsize, size_t *rcnt);
+int ext4_setxattr(const char *path, const char *name, size_t name_len,
+ const void *data, size_t data_size, bool replace);
+int ext4_getxattr(const char *path, const char *name, size_t name_len,
+ void *buf, size_t buf_size, size_t *data_size);
+int ext4_listxattr(const char *path, char *list, size_t size, size_t *ret_size);
+int ext4_removexattr(const char *path, const char *name, size_t name_len);
+
+
/*********************************DIRECTORY OPERATION***********************/
/**@brief Recursive directory remove.