pull from svn
[buildroot.git] / toolchain / uClibc / uClibc.057-sync_page_range.patch
blob27c652ca04b29bf36f9f9b58357c8e90616c9eb8
1 Index: uClibc/libc/sysdeps/linux/common/Makefile.in
2 ===================================================================
3 --- uClibc/libc/sysdeps/linux/common/Makefile.in (revision 23383)
4 +++ uClibc/libc/sysdeps/linux/common/Makefile.in (working copy)
5 @@ -35,8 +35,8 @@ CSRC := $(filter-out inotify.c ioperm.c
6 modify_ldt.c personality.c prctl.c readahead.c reboot.c \
7 remap_file_pages.c sched_getaffinity.c sched_setaffinity.c \
8 sendfile64.c sendfile.c setfsgid.c setfsuid.c setresuid.c \
9 - splice.c vmsplice.c tee.c swapoff.c swapon.c sysctl.c sysinfo.c \
10 - uselib.c vhangup.c,$(CSRC))
11 + splice.c vmsplice.c tee.c swapoff.c swapon.c sync_file_range.c \
12 + sysctl.c sysinfo.c uselib.c vhangup.c,$(CSRC))
13 endif
15 ifneq ($(UCLIBC_BSD_SPECIFIC),y)
16 Index: uClibc/libc/sysdeps/linux/common/sync_file_range.c
17 ===================================================================
18 --- uClibc/libc/sysdeps/linux/common/sync_file_range.c (revision 0)
19 +++ uClibc/libc/sysdeps/linux/common/sync_file_range.c (revision 0)
20 @@ -0,0 +1,33 @@
21 +/* vi: set sw=4 ts=4: */
22 +/*
23 + * sync_file_range() for uClibc
24 + *
25 + * Copyright (C) 2008 Bernhard Reutner-Fischer <uclibc@uclibc.org>
26 + *
27 + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
28 + */
30 +#include <sys/syscall.h>
31 +#if defined __USE_GNU
32 +#include <fcntl.h>
34 +#if defined __NR_sync_file_range && defined __UCLIBC_HAS_LFS__
35 +#define __NR___syscall_sync_file_range __NR_sync_file_range
36 +static __inline__ _syscall6(int, __syscall_sync_file_range, int, fd,
37 + off_t, offset_hi, off_t, offset_lo,
38 + off_t, nbytes_hi, off_t, nbytes_lo, unsigned int, flags);
39 +int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags)
41 + return __syscall_sync_file_range(fd,
42 + __LONG_LONG_PAIR((long)(offset >> 32), (long)(offset & 0xffffffff)),
43 + __LONG_LONG_PAIR((long)(nbytes >> 32), (long)(nbytes & 0xffffffff)),
44 + flags);
46 +#elif defined __UCLIBC_HAS_STUBS__
47 +int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags)
49 + __set_errno(ENOSYS);
50 + return -1;
52 +#endif
53 +#endif
54 Index: uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h
55 ===================================================================
56 --- uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h (revision 23383)
57 +++ uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h (working copy)
58 @@ -182,7 +182,6 @@ struct flock64
61 #ifdef __USE_GNU
62 -#if 0
63 /* Flags for SYNC_FILE_RANGE. */
64 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
65 in the range before performing the
66 @@ -193,7 +192,6 @@ struct flock64
67 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
68 the range after performing the
69 write. */
70 -#endif
72 /* Flags for SPLICE and VMSPLICE. */
73 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
74 @@ -213,11 +211,9 @@ extern ssize_t readahead (int __fd, __of
75 __THROW;
78 -#if 0
79 /* Selective file content synch'ing. */
80 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
81 unsigned int __flags);
82 -#endif
84 /* Splice address range into a pipe. */
85 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
86 Index: uClibc/libc/sysdeps/linux/arm/bits/fcntl.h
87 ===================================================================
88 --- uClibc/libc/sysdeps/linux/arm/bits/fcntl.h (revision 23383)
89 +++ uClibc/libc/sysdeps/linux/arm/bits/fcntl.h (working copy)
90 @@ -190,7 +190,6 @@ struct flock64
93 #ifdef __USE_GNU
94 -#if 0
95 /* Flags for SYNC_FILE_RANGE. */
96 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
97 in the range before performing the
98 @@ -201,7 +200,6 @@ struct flock64
99 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
100 the range after performing the
101 write. */
102 -#endif
104 /* Flags for SPLICE and VMSPLICE. */
105 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
106 @@ -220,11 +218,9 @@ __BEGIN_DECLS
107 extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count)
108 __THROW;
110 -#if 0
111 /* Selective file content synch'ing. */
112 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
113 unsigned int __flags);
114 -#endif
116 /* Splice address range into a pipe. */
117 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
118 Index: uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h
119 ===================================================================
120 --- uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h (revision 23383)
121 +++ uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h (working copy)
122 @@ -186,7 +186,6 @@ struct flock64
125 #ifdef __USE_GNU
126 -#if 0
127 /* Flags for SYNC_FILE_RANGE. */
128 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
129 in the range before performing the
130 @@ -197,7 +196,6 @@ struct flock64
131 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
132 the range after performing the
133 write. */
134 -#endif
136 /* Flags for SPLICE and VMSPLICE. */
137 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
138 @@ -217,11 +215,9 @@ extern ssize_t readahead (int __fd, __of
139 __THROW;
142 -#if 0
143 /* Selective file content synch'ing. */
144 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
145 unsigned int __flags);
146 -#endif
148 /* Splice address range into a pipe. */
149 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
150 Index: uClibc/libc/sysdeps/linux/cris/bits/fcntl.h
151 ===================================================================
152 --- uClibc/libc/sysdeps/linux/cris/bits/fcntl.h (revision 23383)
153 +++ uClibc/libc/sysdeps/linux/cris/bits/fcntl.h (working copy)
154 @@ -187,7 +187,6 @@ struct flock64
157 #ifdef __USE_GNU
158 -#if 0
159 /* Flags for SYNC_FILE_RANGE. */
160 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
161 in the range before performing the
162 @@ -198,7 +197,6 @@ struct flock64
163 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
164 the range after performing the
165 write. */
166 -#endif
168 /* Flags for SPLICE and VMSPLICE. */
169 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
170 @@ -218,11 +216,9 @@ extern ssize_t readahead (int __fd, __of
171 __THROW;
174 -#if 0
175 /* Selective file content synch'ing. */
176 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
177 unsigned int __flags);
178 -#endif
180 /* Splice address range into a pipe. */
181 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
182 Index: uClibc/libc/sysdeps/linux/e1/bits/fcntl.h
183 ===================================================================
184 --- uClibc/libc/sysdeps/linux/e1/bits/fcntl.h (revision 23383)
185 +++ uClibc/libc/sysdeps/linux/e1/bits/fcntl.h (working copy)
186 @@ -183,7 +183,6 @@ struct flock64
189 #ifdef __USE_GNU
190 -#if 0
191 /* Flags for SYNC_FILE_RANGE. */
192 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
193 in the range before performing the
194 @@ -194,7 +193,6 @@ struct flock64
195 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
196 the range after performing the
197 write. */
198 -#endif
200 /* Flags for SPLICE and VMSPLICE. */
201 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
202 @@ -214,11 +212,9 @@ extern ssize_t readahead (int __fd, __of
203 __THROW;
206 -#if 0
207 /* Selective file content synch'ing. */
208 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
209 unsigned int __flags);
210 -#endif
212 /* Splice address range into a pipe. */
213 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
214 Index: uClibc/libc/sysdeps/linux/frv/bits/fcntl.h
215 ===================================================================
216 --- uClibc/libc/sysdeps/linux/frv/bits/fcntl.h (revision 23383)
217 +++ uClibc/libc/sysdeps/linux/frv/bits/fcntl.h (working copy)
218 @@ -165,7 +165,6 @@ struct flock64
221 #ifdef __USE_GNU
222 -#if 0
223 /* Flags for SYNC_FILE_RANGE. */
224 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
225 in the range before performing the
226 @@ -176,7 +175,6 @@ struct flock64
227 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
228 the range after performing the
229 write. */
230 -#endif
232 /* Flags for SPLICE and VMSPLICE. */
233 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
234 @@ -196,11 +194,9 @@ extern ssize_t readahead (int __fd, __of
235 __THROW;
238 -#if 0
239 /* Selective file content synch'ing. */
240 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
241 unsigned int __flags);
242 -#endif
244 /* Splice address range into a pipe. */
245 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
246 Index: uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h
247 ===================================================================
248 --- uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h (revision 23383)
249 +++ uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h (working copy)
250 @@ -183,7 +183,6 @@ struct flock64
253 #ifdef __USE_GNU
254 -#if 0
255 /* Flags for SYNC_FILE_RANGE. */
256 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
257 in the range before performing the
258 @@ -194,7 +193,6 @@ struct flock64
259 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
260 the range after performing the
261 write. */
262 -#endif
264 /* Flags for SPLICE and VMSPLICE. */
265 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
266 @@ -214,11 +212,9 @@ extern ssize_t readahead (int __fd, __of
267 __THROW;
270 -#if 0
271 /* Selective file content synch'ing. */
272 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
273 unsigned int __flags);
274 -#endif
276 /* Splice address range into a pipe. */
277 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
278 Index: uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h
279 ===================================================================
280 --- uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h (revision 23383)
281 +++ uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h (working copy)
282 @@ -177,7 +177,6 @@ struct flock64
285 #ifdef __USE_GNU
286 -#if 0
287 /* Flags for SYNC_FILE_RANGE. */
288 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
289 in the range before performing the
290 @@ -188,7 +187,6 @@ struct flock64
291 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
292 the range after performing the
293 write. */
294 -#endif
296 /* Flags for SPLICE and VMSPLICE. */
297 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
298 @@ -208,11 +206,9 @@ extern ssize_t readahead (int __fd, __of
299 __THROW;
302 -#if 0
303 /* Selective file content synch'ing. */
304 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
305 unsigned int __flags);
306 -#endif
308 /* Splice address range into a pipe. */
309 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
310 Index: uClibc/libc/sysdeps/linux/i386/bits/fcntl.h
311 ===================================================================
312 --- uClibc/libc/sysdeps/linux/i386/bits/fcntl.h (revision 23383)
313 +++ uClibc/libc/sysdeps/linux/i386/bits/fcntl.h (working copy)
314 @@ -190,7 +190,6 @@ struct flock64
317 #ifdef __USE_GNU
318 -#if 0
319 /* Flags for SYNC_FILE_RANGE. */
320 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
321 in the range before performing the
322 @@ -201,7 +200,6 @@ struct flock64
323 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
324 the range after performing the
325 write. */
326 -#endif
328 /* Flags for SPLICE and VMSPLICE. */
329 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
330 @@ -221,11 +219,9 @@ extern ssize_t readahead (int __fd, __of
331 __THROW;
334 -#if 0
335 /* Selective file content synch'ing. */
336 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
337 unsigned int __flags);
338 -#endif
340 /* Splice address range into a pipe. */
341 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
342 Index: uClibc/libc/sysdeps/linux/i960/bits/fcntl.h
343 ===================================================================
344 --- uClibc/libc/sysdeps/linux/i960/bits/fcntl.h (revision 23383)
345 +++ uClibc/libc/sysdeps/linux/i960/bits/fcntl.h (working copy)
346 @@ -183,7 +183,6 @@ struct flock64
349 #ifdef __USE_GNU
350 -#if 0
351 /* Flags for SYNC_FILE_RANGE. */
352 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
353 in the range before performing the
354 @@ -194,7 +193,6 @@ struct flock64
355 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
356 the range after performing the
357 write. */
358 -#endif
360 /* Flags for SPLICE and VMSPLICE. */
361 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
362 @@ -214,11 +212,9 @@ extern ssize_t readahead (int __fd, __of
363 __THROW;
366 -#if 0
367 /* Selective file content synch'ing. */
368 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
369 unsigned int __flags);
370 -#endif
372 /* Splice address range into a pipe. */
373 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
374 Index: uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h
375 ===================================================================
376 --- uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h (revision 23383)
377 +++ uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h (working copy)
378 @@ -184,7 +184,6 @@ struct flock64
381 #ifdef __USE_GNU
382 -#if 0
383 /* Flags for SYNC_FILE_RANGE. */
384 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
385 in the range before performing the
386 @@ -195,7 +194,6 @@ struct flock64
387 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
388 the range after performing the
389 write. */
390 -#endif
392 /* Flags for SPLICE and VMSPLICE. */
393 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
394 @@ -215,11 +213,9 @@ extern ssize_t readahead (int __fd, __of
395 __THROW;
398 -#if 0
399 /* Selective file content synch'ing. */
400 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
401 unsigned int __flags);
402 -#endif
404 /* Splice address range into a pipe. */
405 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
406 Index: uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h
407 ===================================================================
408 --- uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h (revision 23383)
409 +++ uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h (working copy)
410 @@ -186,7 +186,6 @@ struct flock64
413 #ifdef __USE_GNU
414 -#if 0
415 /* Flags for SYNC_FILE_RANGE. */
416 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
417 in the range before performing the
418 @@ -197,7 +196,6 @@ struct flock64
419 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
420 the range after performing the
421 write. */
422 -#endif
424 /* Flags for SPLICE and VMSPLICE. */
425 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
426 @@ -217,11 +215,9 @@ extern ssize_t readahead (int __fd, __of
427 __THROW;
430 -#if 0
431 /* Selective file content synch'ing. */
432 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
433 unsigned int __flags);
434 -#endif
436 /* Splice address range into a pipe. */
437 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
438 Index: uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h
439 ===================================================================
440 --- uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h (revision 23383)
441 +++ uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h (working copy)
442 @@ -183,7 +183,6 @@ struct flock64
445 #ifdef __USE_GNU
446 -#if 0
447 /* Flags for SYNC_FILE_RANGE. */
448 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
449 in the range before performing the
450 @@ -194,7 +193,6 @@ struct flock64
451 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
452 the range after performing the
453 write. */
454 -#endif
456 /* Flags for SPLICE and VMSPLICE. */
457 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
458 @@ -214,11 +212,9 @@ extern ssize_t readahead (int __fd, __of
459 __THROW;
462 -#if 0
463 /* Selective file content synch'ing. */
464 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
465 unsigned int __flags);
466 -#endif
468 /* Splice address range into a pipe. */
469 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
470 Index: uClibc/libc/sysdeps/linux/mips/bits/fcntl.h
471 ===================================================================
472 --- uClibc/libc/sysdeps/linux/mips/bits/fcntl.h (revision 23383)
473 +++ uClibc/libc/sysdeps/linux/mips/bits/fcntl.h (working copy)
474 @@ -210,7 +210,6 @@ struct flock64
477 #ifdef __USE_GNU
478 -#if 0
479 /* Flags for SYNC_FILE_RANGE. */
480 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
481 in the range before performing the
482 @@ -221,7 +220,6 @@ struct flock64
483 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
484 the range after performing the
485 write. */
486 -#endif
488 /* Flags for SPLICE and VMSPLICE. */
489 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
490 @@ -241,11 +239,9 @@ extern ssize_t readahead (int __fd, __of
491 __THROW;
494 -#if 0
495 /* Selective file content synch'ing. */
496 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
497 unsigned int __flags);
498 -#endif
500 /* Splice address range into a pipe. */
501 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
502 Index: uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h
503 ===================================================================
504 --- uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h (revision 23383)
505 +++ uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h (working copy)
506 @@ -186,7 +186,6 @@ struct flock64
509 #ifdef __USE_GNU
510 -#if 0
511 /* Flags for SYNC_FILE_RANGE. */
512 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
513 in the range before performing the
514 @@ -197,7 +196,6 @@ struct flock64
515 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
516 the range after performing the
517 write. */
518 -#endif
520 /* Flags for SPLICE and VMSPLICE. */
521 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
522 @@ -217,11 +215,9 @@ extern ssize_t readahead (int __fd, __of
523 __THROW;
526 -#if 0
527 /* Selective file content synch'ing. */
528 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
529 unsigned int __flags);
530 -#endif
532 /* Splice address range into a pipe. */
533 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
534 Index: uClibc/libc/sysdeps/linux/nios/bits/fcntl.h
535 ===================================================================
536 --- uClibc/libc/sysdeps/linux/nios/bits/fcntl.h (revision 23383)
537 +++ uClibc/libc/sysdeps/linux/nios/bits/fcntl.h (working copy)
538 @@ -186,7 +186,6 @@ struct flock64
541 #ifdef __USE_GNU
542 -#if 0
543 /* Flags for SYNC_FILE_RANGE. */
544 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
545 in the range before performing the
546 @@ -197,7 +196,6 @@ struct flock64
547 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
548 the range after performing the
549 write. */
550 -#endif
552 /* Flags for SPLICE and VMSPLICE. */
553 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
554 @@ -217,11 +215,9 @@ extern ssize_t readahead (int __fd, __of
555 __THROW;
558 -#if 0
559 /* Selective file content synch'ing. */
560 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
561 unsigned int __flags);
562 -#endif
564 /* Splice address range into a pipe. */
565 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
566 Index: uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h
567 ===================================================================
568 --- uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h (revision 23383)
569 +++ uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h (working copy)
570 @@ -190,7 +190,6 @@ struct flock64
573 #ifdef __USE_GNU
574 -#if 0
575 /* Flags for SYNC_FILE_RANGE. */
576 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
577 in the range before performing the
578 @@ -201,7 +200,6 @@ struct flock64
579 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
580 the range after performing the
581 write. */
582 -#endif
584 /* Flags for SPLICE and VMSPLICE. */
585 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
586 @@ -221,11 +219,9 @@ extern ssize_t readahead (int __fd, __of
587 __THROW;
590 -#if 0
591 /* Selective file content synch'ing. */
592 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
593 unsigned int __flags);
594 -#endif
596 /* Splice address range into a pipe. */
597 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
598 Index: uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h
599 ===================================================================
600 --- uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h (revision 23383)
601 +++ uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h (working copy)
602 @@ -165,7 +165,6 @@ struct flock64
605 #ifdef __USE_GNU
606 -#if 0
607 /* Flags for SYNC_FILE_RANGE. */
608 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
609 in the range before performing the
610 @@ -176,7 +175,6 @@ struct flock64
611 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
612 the range after performing the
613 write. */
614 -#endif
616 /* Flags for SPLICE and VMSPLICE. */
617 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
618 @@ -196,11 +194,9 @@ extern ssize_t readahead (int __fd, __of
619 __THROW;
622 -#if 0
623 /* Selective file content synch'ing. */
624 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
625 unsigned int __flags);
626 -#endif
628 /* Splice address range into a pipe. */
629 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
630 Index: uClibc/libc/sysdeps/linux/sh/bits/fcntl.h
631 ===================================================================
632 --- uClibc/libc/sysdeps/linux/sh/bits/fcntl.h (revision 23383)
633 +++ uClibc/libc/sysdeps/linux/sh/bits/fcntl.h (working copy)
634 @@ -190,7 +190,6 @@ struct flock64
637 #ifdef __USE_GNU
638 -#if 0
639 /* Flags for SYNC_FILE_RANGE. */
640 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
641 in the range before performing the
642 @@ -201,7 +200,6 @@ struct flock64
643 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
644 the range after performing the
645 write. */
646 -#endif
648 /* Flags for SPLICE and VMSPLICE. */
649 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
650 @@ -221,11 +219,9 @@ extern ssize_t readahead (int __fd, __of
651 __THROW;
654 -#if 0
655 /* Selective file content synch'ing. */
656 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
657 unsigned int __flags);
658 -#endif
660 /* Splice address range into a pipe. */
661 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
662 Index: uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h
663 ===================================================================
664 --- uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h (revision 23383)
665 +++ uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h (working copy)
666 @@ -209,7 +209,6 @@ struct flock64
669 #ifdef __USE_GNU
670 -#if 0
671 /* Flags for SYNC_FILE_RANGE. */
672 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
673 in the range before performing the
674 @@ -220,7 +219,6 @@ struct flock64
675 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
676 the range after performing the
677 write. */
678 -#endif
680 /* Flags for SPLICE and VMSPLICE. */
681 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
682 @@ -240,11 +238,9 @@ extern ssize_t readahead (int __fd, __of
683 __THROW;
686 -#if 0
687 /* Selective file content synch'ing. */
688 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
689 unsigned int __flags);
690 -#endif
692 /* Splice address range into a pipe. */
693 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
694 Index: uClibc/libc/sysdeps/linux/v850/bits/fcntl.h
695 ===================================================================
696 --- uClibc/libc/sysdeps/linux/v850/bits/fcntl.h (revision 23383)
697 +++ uClibc/libc/sysdeps/linux/v850/bits/fcntl.h (working copy)
698 @@ -183,7 +183,6 @@ struct flock64
701 #ifdef __USE_GNU
702 -#if 0
703 /* Flags for SYNC_FILE_RANGE. */
704 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
705 in the range before performing the
706 @@ -194,7 +193,6 @@ struct flock64
707 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
708 the range after performing the
709 write. */
710 -#endif
712 /* Flags for SPLICE and VMSPLICE. */
713 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
714 @@ -214,11 +212,9 @@ extern ssize_t readahead (int __fd, __of
715 __THROW;
718 -#if 0
719 /* Selective file content synch'ing. */
720 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
721 unsigned int __flags);
722 -#endif
724 /* Splice address range into a pipe. */
725 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
726 Index: uClibc/libc/sysdeps/linux/vax/bits/fcntl.h
727 ===================================================================
728 --- uClibc/libc/sysdeps/linux/vax/bits/fcntl.h (revision 23383)
729 +++ uClibc/libc/sysdeps/linux/vax/bits/fcntl.h (working copy)
730 @@ -163,7 +163,6 @@ struct flock64
733 #ifdef __USE_GNU
734 -#if 0
735 /* Flags for SYNC_FILE_RANGE. */
736 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
737 in the range before performing the
738 @@ -174,7 +173,6 @@ struct flock64
739 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
740 the range after performing the
741 write. */
742 -#endif
744 /* Flags for SPLICE and VMSPLICE. */
745 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
746 @@ -194,11 +192,9 @@ extern ssize_t readahead (int __fd, __of
747 __THROW;
750 -#if 0
751 /* Selective file content synch'ing. */
752 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
753 unsigned int __flags);
754 -#endif
756 /* Splice address range into a pipe. */
757 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
758 Index: uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h
759 ===================================================================
760 --- uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h (revision 23383)
761 +++ uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h (working copy)
762 @@ -204,7 +204,6 @@ struct flock64
765 #ifdef __USE_GNU
766 -#if 0
767 /* Flags for SYNC_FILE_RANGE. */
768 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
769 in the range before performing the
770 @@ -215,7 +214,6 @@ struct flock64
771 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
772 the range after performing the
773 write. */
774 -#endif
776 /* Flags for SPLICE and VMSPLICE. */
777 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
778 @@ -235,11 +233,9 @@ extern ssize_t readahead (int __fd, __of
779 __THROW;
782 -#if 0
783 /* Selective file content synch'ing. */
784 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
785 unsigned int __flags);
786 -#endif
788 /* Splice address range into a pipe. */
789 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
790 Index: uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h
791 ===================================================================
792 --- uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h (revision 23383)
793 +++ uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h (working copy)
794 @@ -187,7 +187,6 @@ struct flock64
797 #ifdef __USE_GNU
798 -#if 0
799 /* Flags for SYNC_FILE_RANGE. */
800 # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages
801 in the range before performing the
802 @@ -198,7 +197,6 @@ struct flock64
803 # define SYNC_FILE_RANGE_WAIT_AFTER 4 /* Wait upon writeout of all pages in
804 the range after performing the
805 write. */
806 -#endif
808 /* Flags for SPLICE and VMSPLICE. */
809 # define SPLICE_F_MOVE 1 /* Move pages instead of copying. */
810 @@ -218,11 +216,9 @@ extern ssize_t readahead (int __fd, __of
811 __THROW;
814 -#if 0
815 /* Selective file content synch'ing. */
816 extern int sync_file_range (int __fd, __off64_t __from, __off64_t __to,
817 unsigned int __flags);
818 -#endif
820 /* Splice address range into a pipe. */
821 extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,