X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libsysio%2Fsrc%2Fstdlib.c;fp=libsysio%2Fsrc%2Fstdlib.c;h=0000000000000000000000000000000000000000;hb=cdfbc722f4d63d3ed3740cbb549062f712010d90;hp=03bf1c7b2dd8ab510e37cd3068c662d7b5a6542c;hpb=fc75c4b4f597f095fc16d6119427f17f0d8e2a85;p=fs%2Flustre-release.git diff --git a/libsysio/src/stdlib.c b/libsysio/src/stdlib.c deleted file mode 100644 index 03bf1c7..0000000 --- a/libsysio/src/stdlib.c +++ /dev/null @@ -1,121 +0,0 @@ -/* - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -/* - * stdlib.c - * - * The only purpose of this file is help liblustre adaptive to more - * applications, and specifically for running on Linux. The ideal - * final solution would be remove this completely and only rely on - * system call interception. Unfortunately we failed to find that - * way at the moment. - * - * Initially we try the simplest implementation here, just get a confidence - * it could work. - * - */ -#if !(defined(BSD) || defined(REDSTORM)) - -#include -#include -#include -#include - -#include - -#include "sysio-symbols.h" - -/*********************************************************** - * FIXME workaround for linux only * - ***********************************************************/ - -#define LINUX -#if defined(LINUX) -ssize_t getxattr(char *path, char *name, void *value, size_t size) -{ - errno = ENOSYS; - return -1; -} - -ssize_t lgetxattr(char *path, char *name, void *value, size_t size) -{ - errno = ENOSYS; - return -1; -} - -ssize_t fgetxattr(int fd, char *name, void *value, size_t size) -{ - errno = ENOSYS; - return -1; -} - -long setxattr(char *path, char *name, void *value, size_t size, int flags) -{ - errno = ENOSYS; - return -1; -} - -long lsetxattr(char *path, char *name, void *value, size_t size, int flags) -{ - errno = ENOSYS; - return -1; -} - -long fsetxattr(int fd, char *name, void *value, size_t size, int flags) -{ - errno = ENOSYS; - return -1; -} - -long listxattr(char *path, char *list, size_t size) -{ - errno = ENOSYS; - return -1; -} - -long llistxattr(char *path, char *list, size_t size) -{ - errno = ENOSYS; - return -1; -} - -long flistxattr(int fd, char *list, size_t size) -{ - errno = ENOSYS; - return -1; -} - -long removexattr(char *path, char *name) -{ - errno = ENOSYS; - return -1; -} - -long lremovexattr(char *path, char *name) -{ - errno = ENOSYS; - return -1; -} - -long fremovexattr(int fd, char *name) -{ - errno = ENOSYS; - return -1; -} -#endif - -#endif