diff options
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/ChangeLog | 7 | ||||
-rw-r--r-- | libgloss/arm/ftruncate.c | 2 | ||||
-rw-r--r-- | libgloss/arm/truncate.c | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 4515f8efb..6a3f797b7 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -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. diff --git a/libgloss/arm/ftruncate.c b/libgloss/arm/ftruncate.c index da46fc5d7..41a64d2ae 100644 --- a/libgloss/arm/ftruncate.c +++ b/libgloss/arm/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/arm/truncate.c b/libgloss/arm/truncate.c index d53394a67..92c0fcab3 100644 --- a/libgloss/arm/truncate.c +++ b/libgloss/arm/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; } |