diff options
author | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2013-11-21 19:53:52 +0400 |
---|---|---|
committer | Marcus Shawcroft <marcus.shawcroft@arm.com> | 2013-11-21 19:53:52 +0400 |
commit | 37d3b04f8803d335c1262ae08ca7f4a91cdd445f (patch) | |
tree | a7be05caa8e4ca0af88bdeb0db3034d07ca48901 /libgloss/aarch64/ftruncate.c | |
parent | eee6552c954f6279b8fbec985767c02b8c33a821 (diff) |
[AArch64] Set errno in ftruncate() and truncate().
Diffstat (limited to 'libgloss/aarch64/ftruncate.c')
-rw-r--r-- | libgloss/aarch64/ftruncate.c | 2 |
1 files changed, 2 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; } |