* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
+ * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
2009-03-25 Andrew Stubbs <ams@codesourcery.com>
glibc-base := HEAD
DIST_BRANCH := devel
COLLECTION := dist-f8
-fedora-sync-date := 2009-04-15 16:19 UTC
-fedora-sync-tag := fedora-glibc-20090415T1619
+fedora-sync-date := 2009-04-16 06:10 UTC
+fedora-sync-tag := fedora-glibc-20090416T0610
Summary: The GNU libc libraries
Name: glibc
Version: @glibcversion@
-Release: 17
+Release: 18
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
%endif
%changelog
+* Thu Apr 16 2009 Jakub Jelinek <jakub@redhat.com> 2.9.90-18
+- update from trunk
+ - fix fallocate
+
* Wed Apr 15 2009 Jakub Jelinek <jakub@redhat.com> 2.9.90-17
- update from trunk
- if threads have very small stack sizes, use much smaller buffer
int
fallocate (int fd, int mode, __off_t offset, __off_t len)
{
-#ifndef __NR_fallocate
+#ifdef __NR_fallocate
return INLINE_SYSCALL (fallocate, 6, fd, mode,
__LONG_LONG_PAIR (offset >> 31, offset),
__LONG_LONG_PAIR (len >> 31, len));
int
__fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
{
-#ifndef __NR_fallocate
+#ifdef __NR_fallocate
return INLINE_SYSCALL (fallocate, 6, fd, mode,
__LONG_LONG_PAIR ((long int) (offset >> 32),
(long int) offset),
int
fallocate (int fd, int mode, __off_t offset, __off_t len)
{
+#ifdef __NR_fallocate
return INLINE_SYSCALL (fallocate, 4, fd, mode, offset, len);
+#else
+ __set_errno (ENOSYS);
+ return -1;
+#endif
}
strong_alias (fallocate, fallocate64)