diff options
Diffstat (limited to 'ports/darwin/guts')
-rw-r--r-- | ports/darwin/guts/fgetxattr.c | 4 | ||||
-rw-r--r-- | ports/darwin/guts/flistxattr.c | 4 | ||||
-rw-r--r-- | ports/darwin/guts/fremovexattr.c | 13 | ||||
-rw-r--r-- | ports/darwin/guts/fsetxattr.c | 4 | ||||
-rw-r--r-- | ports/darwin/guts/getxattr.c | 6 | ||||
-rw-r--r-- | ports/darwin/guts/listxattr.c | 6 | ||||
-rw-r--r-- | ports/darwin/guts/removexattr.c | 13 | ||||
-rw-r--r-- | ports/darwin/guts/setxattr.c | 6 |
8 files changed, 41 insertions, 15 deletions
diff --git a/ports/darwin/guts/fgetxattr.c b/ports/darwin/guts/fgetxattr.c index 1cd8904..dbb3681 100644 --- a/ports/darwin/guts/fgetxattr.c +++ b/ports/darwin/guts/fgetxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * * ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size, u_int32_t position, int options) * ssize_t rc = -1; */ - rc = real_fgetxattr(filedes, name, value, size, position, options); + rc = shared_getxattr(NULL, filedes, name, value, size, position, options); /* return rc; * } diff --git a/ports/darwin/guts/flistxattr.c b/ports/darwin/guts/flistxattr.c index 7575f28..bfaa4e9 100644 --- a/ports/darwin/guts/flistxattr.c +++ b/ports/darwin/guts/flistxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * * ssize_t flistxattr(int filedes, char *list, size_t size, int options) * ssize_t rc = -1; */ - rc = real_flistxattr(filedes, list, size, options); + rc = shared_listxattr(NULL, filedes, list, size, options); /* return rc; * } diff --git a/ports/darwin/guts/fremovexattr.c b/ports/darwin/guts/fremovexattr.c new file mode 100644 index 0000000..4edc38c --- /dev/null +++ b/ports/darwin/guts/fremovexattr.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2014 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * int fremovexattr(int filedes, const char *name, int options) + * int rc = -1; + */ + + rc = shared_removexattr(NULL, filedes, name, options); + +/* return rc; + * } + */ diff --git a/ports/darwin/guts/fsetxattr.c b/ports/darwin/guts/fsetxattr.c index 541569a..d707595 100644 --- a/ports/darwin/guts/fsetxattr.c +++ b/ports/darwin/guts/fsetxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * * int fsetxattr(int filedes, const char *name, const void *value, size_t size, u_int32_t position, int options) * int rc = -1; */ - rc = real_fsetxattr(filedes, name, value, size, position, options); + rc = shared_setxattr(NULL, filedes, name, value, size, position, options); /* return rc; * } diff --git a/ports/darwin/guts/getxattr.c b/ports/darwin/guts/getxattr.c index 16f0993..ecef9cf 100644 --- a/ports/darwin/guts/getxattr.c +++ b/ports/darwin/guts/getxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * - * ssize_t getxattr(const char *pathname, const char *name, void *value, size_t size, u_int32_t position, int options) + * ssize_t getxattr(const char *path, const char *name, void *value, size_t size, u_int32_t position, int options) * ssize_t rc = -1; */ - rc = real_getxattr(pathname, name, value, size, position, options); + rc = shared_getxattr(path, -1, name, value, size, position, options); /* return rc; * } diff --git a/ports/darwin/guts/listxattr.c b/ports/darwin/guts/listxattr.c index 0bba451..5a8a7a8 100644 --- a/ports/darwin/guts/listxattr.c +++ b/ports/darwin/guts/listxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * - * ssize_t listxattr(const char *pathname, char *list, size_t size, int options) + * ssize_t listxattr(const char *path, char *list, size_t size, int options) * ssize_t rc = -1; */ - rc = real_listxattr(pathname, list, size, options); + rc = shared_listxattr(path, -1, list, size, options); /* return rc; * } diff --git a/ports/darwin/guts/removexattr.c b/ports/darwin/guts/removexattr.c new file mode 100644 index 0000000..c125b1a --- /dev/null +++ b/ports/darwin/guts/removexattr.c @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2014 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * int removexattr(const char *path, const char *name, int options) + * int rc = -1; + */ + + rc = shared_removexattr(path, -1, name, options); + +/* return rc; + * } + */ diff --git a/ports/darwin/guts/setxattr.c b/ports/darwin/guts/setxattr.c index 3c8fd3d..10ffba4 100644 --- a/ports/darwin/guts/setxattr.c +++ b/ports/darwin/guts/setxattr.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2011 Wind River Systems; see + * Copyright (c) 2014 Wind River Systems; see * guts/COPYRIGHT for information. * - * int setxattr(const char *pathname, const char *name, const void *value, size_t size, u_int32_t position, int options) + * int setxattr(const char *path, const char *name, const void *value, size_t size, u_int32_t position, int options) * int rc = -1; */ - rc = real_setxattr(pathname, name, value, size, position, options); + rc = shared_setxattr(path, -1, name, value, size, position, options); /* return rc; * } |