]>
Dogcows Code - chaz/tar/blob - lib/xattr-at.c
3703e1c57dd5532806132dfbcb96f9bf16403ea7
1 /* openat-style fd-relative functions for operating with extended file
4 Copyright 2012-2013 Free Software Foundation, Inc.
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
29 #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
32 #include "openat-priv.h"
35 #define AT_FUNC_NAME setxattrat
36 #define AT_FUNC_F1 setxattr
37 #define AT_FUNC_POST_FILE_PARAM_DECLS , const char *name, const void *value \
38 , size_t size, int flags
39 #define AT_FUNC_POST_FILE_ARGS , name, value, size, flags
43 #undef AT_FUNC_POST_FILE_PARAM_DECLS
44 #undef AT_FUNC_POST_FILE_ARGS
47 #define AT_FUNC_NAME lsetxattrat
48 #define AT_FUNC_F1 lsetxattr
49 #define AT_FUNC_POST_FILE_PARAM_DECLS , const char *name, const void *value \
50 , size_t size, int flags
51 #define AT_FUNC_POST_FILE_ARGS , name, value, size, flags
55 #undef AT_FUNC_POST_FILE_PARAM_DECLS
56 #undef AT_FUNC_POST_FILE_ARGS
59 #define AT_FUNC_NAME getxattrat
60 #define AT_FUNC_RESULT ssize_t
61 #define AT_FUNC_F1 getxattr
62 #define AT_FUNC_POST_FILE_PARAM_DECLS , const char *name, void *value \
64 #define AT_FUNC_POST_FILE_ARGS , name, value, size
69 #undef AT_FUNC_POST_FILE_PARAM_DECLS
70 #undef AT_FUNC_POST_FILE_ARGS
73 #define AT_FUNC_NAME lgetxattrat
74 #define AT_FUNC_RESULT ssize_t
75 #define AT_FUNC_F1 lgetxattr
76 #define AT_FUNC_POST_FILE_PARAM_DECLS , const char *name, void *value \
78 #define AT_FUNC_POST_FILE_ARGS , name, value, size
83 #undef AT_FUNC_POST_FILE_PARAM_DECLS
84 #undef AT_FUNC_POST_FILE_ARGS
87 #define AT_FUNC_NAME listxattrat
88 #define AT_FUNC_RESULT ssize_t
89 #define AT_FUNC_F1 listxattr
90 #define AT_FUNC_POST_FILE_PARAM_DECLS , char *list , size_t size
91 #define AT_FUNC_POST_FILE_ARGS , list , size
96 #undef AT_FUNC_POST_FILE_PARAM_DECLS
97 #undef AT_FUNC_POST_FILE_ARGS
100 #define AT_FUNC_NAME llistxattrat
101 #define AT_FUNC_RESULT ssize_t
102 #define AT_FUNC_F1 llistxattr
103 #define AT_FUNC_POST_FILE_PARAM_DECLS , char *list , size_t size
104 #define AT_FUNC_POST_FILE_ARGS , list , size
108 #undef AT_FUNC_RESULT
109 #undef AT_FUNC_POST_FILE_PARAM_DECLS
110 #undef AT_FUNC_POST_FILE_ARGS
This page took 0.038332 seconds and 4 git commands to generate.