mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
[AArch64] Set errno in ftruncate() and truncate().
This commit is contained in:
parent
eee6552c95
commit
37d3b04f88
@ -1,3 +1,10 @@
|
|||||||
|
2013-11-21 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
|
* aarch64/ftruncate.c: Include errno.h.
|
||||||
|
(ftruncate) Set errno.
|
||||||
|
* aarch64/truncate.c: Include errno.h.
|
||||||
|
(truncate) Set errno.
|
||||||
|
|
||||||
2013-11-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
2013-11-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
||||||
|
|
||||||
* arm/ftruncate.c: Include errno.h.
|
* arm/ftruncate.c: Include errno.h.
|
||||||
|
@ -23,10 +23,12 @@
|
|||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
ftruncate (int file, off_t length)
|
ftruncate (int file, off_t length)
|
||||||
{
|
{
|
||||||
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -23,10 +23,12 @@
|
|||||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
truncate (const char *path, off_t length)
|
truncate (const char *path, off_t length)
|
||||||
{
|
{
|
||||||
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user