[ARM] set errno in ftruncate and truncate stubs.

This commit is contained in:
Marcus Shawcroft 2013-11-21 15:49:05 +00:00
parent 3c7451d8de
commit eee6552c95
3 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2013-11-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
* arm/ftruncate.c: Include errno.h.
(ftruncate) Set errno.
* arm/truncate.c: Include errno.h.
(truncate) Set errno.
2013-11-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
* arm/ftruncate.c: New.

View File

@ -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;
}

View File

@ -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;
}