Import upstream version 1.28
[debian/tar] / gnu / selinux-at.c
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* openat-style fd-relative functions for SE Linux
4    Copyright (C) 2007, 2009-2014 Free Software Foundation, Inc.
5
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.
10
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.
15
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/>.  */
18
19 /* written by Jim Meyering */
20
21 #include <config.h>
22
23 #include "selinux-at.h"
24 #include "openat.h"
25
26 #include <stdlib.h>
27 #include <unistd.h>
28 #include <errno.h>
29 #include <fcntl.h>
30
31 #include "save-cwd.h"
32
33 #include "openat-priv.h"
34
35 #define AT_FUNC_NAME getfileconat
36 #define AT_FUNC_F1 getfilecon
37 #define AT_FUNC_POST_FILE_PARAM_DECLS , security_context_t *con
38 #define AT_FUNC_POST_FILE_ARGS        , con
39 #include "at-func.c"
40 #undef AT_FUNC_NAME
41 #undef AT_FUNC_F1
42 #undef AT_FUNC_POST_FILE_PARAM_DECLS
43 #undef AT_FUNC_POST_FILE_ARGS
44
45 #define AT_FUNC_NAME lgetfileconat
46 #define AT_FUNC_F1 lgetfilecon
47 #define AT_FUNC_POST_FILE_PARAM_DECLS , security_context_t *con
48 #define AT_FUNC_POST_FILE_ARGS        , con
49 #include "at-func.c"
50 #undef AT_FUNC_NAME
51 #undef AT_FUNC_F1
52 #undef AT_FUNC_POST_FILE_PARAM_DECLS
53 #undef AT_FUNC_POST_FILE_ARGS
54
55 #define AT_FUNC_NAME setfileconat
56 #define AT_FUNC_F1 setfilecon
57 #define AT_FUNC_POST_FILE_PARAM_DECLS , security_context_t con
58 #define AT_FUNC_POST_FILE_ARGS        , con
59 #include "at-func.c"
60 #undef AT_FUNC_NAME
61 #undef AT_FUNC_F1
62 #undef AT_FUNC_POST_FILE_PARAM_DECLS
63 #undef AT_FUNC_POST_FILE_ARGS
64
65 #define AT_FUNC_NAME lsetfileconat
66 #define AT_FUNC_F1 lsetfilecon
67 #define AT_FUNC_POST_FILE_PARAM_DECLS , security_context_t con
68 #define AT_FUNC_POST_FILE_ARGS        , con
69 #include "at-func.c"
70 #undef AT_FUNC_NAME
71 #undef AT_FUNC_F1
72 #undef AT_FUNC_POST_FILE_PARAM_DECLS
73 #undef AT_FUNC_POST_FILE_ARGS