Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: fusl/src/linux/xattr.c

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/linux/x32/sysinfo.s ('k') | fusl/src/locale/__lctrans.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #include <sys/xattr.h>
2 #include "syscall.h"
3
4 ssize_t getxattr(const char *path, const char *name, void *value, size_t size)
5 {
6 return syscall(SYS_getxattr, path, name, value, size);
7 }
8
9 ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
10 {
11 return syscall(SYS_lgetxattr, path, name, value, size);
12 }
13
14 ssize_t fgetxattr(int filedes, const char *name, void *value, size_t size)
15 {
16 return syscall(SYS_fgetxattr, filedes, name, value, size);
17 }
18
19 ssize_t listxattr(const char *path, char *list, size_t size)
20 {
21 return syscall(SYS_listxattr, path, list, size);
22 }
23
24 ssize_t llistxattr(const char *path, char *list, size_t size)
25 {
26 return syscall(SYS_llistxattr, path, list, size);
27 }
28
29 ssize_t flistxattr(int filedes, char *list, size_t size)
30 {
31 return syscall(SYS_flistxattr, filedes, list, size);
32 }
33
34 int setxattr(const char *path, const char *name, const void *value, size_t size, int flags)
35 {
36 return syscall(SYS_setxattr, path, name, value, size, flags);
37 }
38
39 int lsetxattr(const char *path, const char *name, const void *value, size_t size , int flags)
40 {
41 return syscall(SYS_lsetxattr, path, name, value, size, flags);
42 }
43
44 int fsetxattr(int filedes, const char *name, const void *value, size_t size, int flags)
45 {
46 return syscall(SYS_fsetxattr, filedes, name, value, size, flags);
47 }
48
49 int removexattr(const char *path, const char *name)
50 {
51 return syscall(SYS_removexattr, path, name);
52 }
53
54 int lremovexattr(const char *path, const char *name)
55 {
56 return syscall(SYS_lremovexattr, path, name);
57 }
58
59 int fremovexattr(int fd, const char *name)
60 {
61 return syscall(SYS_fremovexattr, fd, name);
62 }
OLDNEW
« no previous file with comments | « fusl/src/linux/x32/sysinfo.s ('k') | fusl/src/locale/__lctrans.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698