Skip to content

Commit

Permalink
Add missing export of fallocate64 on 32-bit platforms.
Browse files Browse the repository at this point in the history
Due to a pasto the fallocate64 interface, introduced in glibc 2.10,
isn't exported for 32-bit Linux platforms.  It is too late for this
now so exported them for glibc 2.11.
  • Loading branch information
Jakub Jelinek authored and Ulrich Drepper committed May 16, 2009
1 parent 9e471da commit 1f3615a
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 3 deletions.
18 changes: 18 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
2009-05-14 Jakub Jelinek <jakub@redhat.com>

* sysdeps/unix/sysv/linux/i386/fallocate64.c (__fallocate64_l64):
Rename ...
(fallocate64): ... to this.
* sysdeps/unix/sysv/linux/fallocate64.c (__fallocate64_l64):
Rename ...
(fallocate64): ... to this.
* sysdeps/unix/sysv/linux/Versions (libc): Remove fallocate64.
* sysdeps/unix/sysv/linux/wordsize-64/Versions (libc): Add
fallocate64@@GLIBC_2.10.
* sysdeps/unix/sysv/linux/i386/Versions (libc): Add
fallocate64@@GLIBC_2.11.
* sysdeps/unix/sysv/linux/s390/s390-32/Versions (libc): Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions (libc): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/Versions (libc): Likewise.
* sysdeps/unix/sysv/linux/sh/Versions (libc): Likewise.

2009-05-14 Jakub Jelinek <jakub@redhat.com>

* nscd/selinux.c (nscd_avc_destroy): Removed.
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ libc {
epoll_create1; inotify_init1;
}
GLIBC_2.10 {
fallocate; fallocate64;
fallocate;
}
GLIBC_PRIVATE {
# functions used in other libraries
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/fallocate64.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/* Reserve storage for the data of the file associated with FD. */
int
__fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
{
#ifdef __NR_fallocate
return INLINE_SYSCALL (fallocate, 6, fd, mode,
Expand Down
4 changes: 4 additions & 0 deletions sysdeps/unix/sysv/linux/i386/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ libc {
# v*
vm86;
}
GLIBC_2.11 {
# f*
fallocate64;
}
GLIBC_PRIVATE {
__modify_ldt;
}
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/i386/fallocate64.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len)

/* Reserve storage for the data of the file associated with FD. */
int
__fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
{
return __call_fallocate (fd, mode, offset, len);
}
3 changes: 3 additions & 0 deletions sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ libc {
GLIBC_2.3.4 {
setcontext; getcontext; swapcontext; makecontext;
}
GLIBC_2.11 {
fallocate64;
}
}
3 changes: 3 additions & 0 deletions sysdeps/unix/sysv/linux/s390/s390-32/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ libc {
getutmp;
getutmpx;
}
GLIBC_2.11 {
fallocate64;
}
}

libutil {
Expand Down
3 changes: 3 additions & 0 deletions sysdeps/unix/sysv/linux/sh/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ libc {
GLIBC_2.3.3 {
posix_fadvise64; posix_fallocate64;
}
GLIBC_2.11 {
fallocate64;
}
}
3 changes: 3 additions & 0 deletions sysdeps/unix/sysv/linux/sparc/sparc32/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ libc {
GLIBC_2.3.3 {
posix_fadvise64; posix_fallocate64;
}
GLIBC_2.11 {
fallocate64;
}
}
5 changes: 5 additions & 0 deletions sysdeps/unix/sysv/linux/wordsize-64/Versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libc {
GLIBC_2.10 {
fallocate64;
}
}

0 comments on commit 1f3615a

Please sign in to comment.