Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2013-11-21 19:53:52 +0400
committerMarcus Shawcroft <marcus.shawcroft@arm.com>2013-11-21 19:53:52 +0400
commit37d3b04f8803d335c1262ae08ca7f4a91cdd445f (patch)
treea7be05caa8e4ca0af88bdeb0db3034d07ca48901 /libgloss/aarch64
parenteee6552c954f6279b8fbec985767c02b8c33a821 (diff)
[AArch64] Set errno in ftruncate() and truncate().
Diffstat (limited to 'libgloss/aarch64')
-rw-r--r--libgloss/aarch64/ftruncate.c2
-rw-r--r--libgloss/aarch64/truncate.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/aarch64/ftruncate.c b/libgloss/aarch64/ftruncate.c
index da46fc5d7..41a64d2ae 100644
--- a/libgloss/aarch64/ftruncate.c
+++ b/libgloss/aarch64/ftruncate.c
@@ -23,10 +23,12 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
+#include <errno.h>
#include <sys/types.h>
int
ftruncate (int file, off_t length)
{
+ errno = ENOSYS;
return -1;
}
diff --git a/libgloss/aarch64/truncate.c b/libgloss/aarch64/truncate.c
index d53394a67..92c0fcab3 100644
--- a/libgloss/aarch64/truncate.c
+++ b/libgloss/aarch64/truncate.c
@@ -23,10 +23,12 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
+#include <errno.h>
#include <sys/types.h>
int
truncate (const char *path, off_t length)
{
+ errno = ENOSYS;
return -1;
}