mirror of git://sourceware.org/git/glibc.git
posix_fallocate, posix_fallocate64 stub: Do not set errno
These functions return an error code.
This commit is contained in:
parent
c25fec6f57
commit
2dd6ee79b1
|
@ -1,3 +1,8 @@
|
||||||
|
2015-04-24 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* io/posix_fallocate.c (posix_fallocate): Do not set errno.
|
||||||
|
* io/posix_fallocate64.c (posix_fallocate64): Likewise.
|
||||||
|
|
||||||
2015-04-24 Roland McGrath <roland@hack.frob.com>
|
2015-04-24 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
* sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
|
* sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
int
|
int
|
||||||
posix_fallocate (int fd, __off_t offset, __off_t len)
|
posix_fallocate (int fd, __off_t offset, __off_t len)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
return ENOSYS;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
stub_warning (posix_fallocate)
|
stub_warning (posix_fallocate)
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
int
|
int
|
||||||
posix_fallocate64 (int fd, __off64_t offset, __off64_t len)
|
posix_fallocate64 (int fd, __off64_t offset, __off64_t len)
|
||||||
{
|
{
|
||||||
__set_errno (ENOSYS);
|
return ENOSYS;
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
stub_warning (posix_fallocate64)
|
stub_warning (posix_fallocate64)
|
||||||
|
|
Loading…
Reference in New Issue