2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 * The only purpose of this file is help liblustre adaptive to more
22 * applications, and specifically for running on Linux. The ideal
23 * final solution would be remove this completely and only rely on
24 * system call interception. Unfortunately we failed to find that
27 * Initially we try the simplest implementation here, just get a confidence
31 #if !(defined(BSD) || defined(REDSTORM))
40 #include "sysio-symbols.h"
42 /***********************************************************
43 * FIXME workaround for linux only *
44 ***********************************************************/
48 ssize_t getxattr(char *path, char *name, void *value, size_t size)
54 ssize_t lgetxattr(char *path, char *name, void *value, size_t size)
60 ssize_t fgetxattr(int fd, char *name, void *value, size_t size)
66 long setxattr(char *path, char *name, void *value, size_t size, int flags)
72 long lsetxattr(char *path, char *name, void *value, size_t size, int flags)
78 long fsetxattr(int fd, char *name, void *value, size_t size, int flags)
84 long listxattr(char *path, char *list, size_t size)
90 long llistxattr(char *path, char *list, size_t size)
96 long flistxattr(int fd, char *list, size_t size)
102 long removexattr(char *path, char *name)
108 long lremovexattr(char *path, char *name)
114 long fremovexattr(int fd, char *name)