X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=lwext4%2Fext4.h;h=abf6a3583f7003cdb2e9702d108df4a6f8f4c74f;hb=d15d9a8f91b8cf071c8d635d4643789104a3dcd8;hp=9702031605150e413de06a4c7db052a454261dfc;hpb=fc60a1283de27fd5c2fe02b7b307eefc66fb2a63;p=lwext4.git diff --git a/lwext4/ext4.h b/lwext4/ext4.h index 9702031..abf6a35 100644 --- a/lwext4/ext4.h +++ b/lwext4/ext4.h @@ -47,7 +47,7 @@ /********************************FILE OPEN FLAGS*****************************/ -#ifdef CONFIG_HAVE_OWN_OFLAGS +#if CONFIG_HAVE_OWN_OFLAGS #ifndef O_RDONLY #define O_RDONLY 00 @@ -93,6 +93,7 @@ #else #include + #include #endif /********************************OS LOCK INFERFACE***************************/ @@ -362,6 +363,14 @@ int ext4_fsymlink(const char *target, const char *path); 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.