107
107
#endif
108
108
#endif
109
109
110
- #ifndef __NR_open_tree
111
- #if defined __alpha__
112
- #define __NR_open_tree 538
113
- #elif defined _MIPS_SIM
114
- #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
115
- #define __NR_open_tree 4428
116
- #endif
117
- #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
118
- #define __NR_open_tree 6428
119
- #endif
120
- #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
121
- #define __NR_open_tree 5428
122
- #endif
123
- #elif defined __ia64__
124
- #define __NR_open_tree (428 + 1024)
125
- #else
126
- #define __NR_open_tree 428
127
- #endif
128
- #endif
129
-
130
- #ifndef __NR_move_mount
131
- #if defined __alpha__
132
- #define __NR_move_mount 539
133
- #elif defined _MIPS_SIM
134
- #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */
135
- #define __NR_move_mount 4429
136
- #endif
137
- #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */
138
- #define __NR_move_mount 6429
139
- #endif
140
- #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */
141
- #define __NR_move_mount 5429
142
- #endif
143
- #elif defined __ia64__
144
- #define __NR_move_mount (428 + 1024)
145
- #else
146
- #define __NR_move_mount 429
147
- #endif
148
- #endif
149
-
150
110
#ifndef MOUNT_ATTR_IDMAP
151
111
#define MOUNT_ATTR_IDMAP 0x00100000
152
112
#endif
@@ -161,18 +121,6 @@ static inline int sys_mount_setattr(int dfd, const char *path, unsigned int flag
161
121
return syscall (__NR_mount_setattr , dfd , path , flags , attr , size );
162
122
}
163
123
164
- #ifndef OPEN_TREE_CLONE
165
- #define OPEN_TREE_CLONE 1
166
- #endif
167
-
168
- #ifndef OPEN_TREE_CLOEXEC
169
- #define OPEN_TREE_CLOEXEC O_CLOEXEC
170
- #endif
171
-
172
- #ifndef AT_RECURSIVE
173
- #define AT_RECURSIVE 0x8000 /* Apply to the entire subtree */
174
- #endif
175
-
176
124
static ssize_t write_nointr (int fd , const void * buf , size_t count )
177
125
{
178
126
ssize_t ret ;
0 commit comments