aboutsummaryrefslogtreecommitdiff
path: root/libgloss/spu/write.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-04-04 20:59:38 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-04-04 20:59:38 +0000
commitc6e05f0d080e0d5c7e1458b41f3211feace794ef (patch)
tree9c93e73372828515b3379031732a96bbcd260e82 /libgloss/spu/write.c
parenta706aa2e1c7326e8ed46353f3b11b6cc89e7d38f (diff)
downloadnewlib-c6e05f0d080e0d5c7e1458b41f3211feace794ef.zip
newlib-c6e05f0d080e0d5c7e1458b41f3211feace794ef.tar.gz
newlib-c6e05f0d080e0d5c7e1458b41f3211feace794ef.tar.bz2
2007-04-04 Patrick Mansfield <patmans@us.ibm.com>
* spu/syscalls.c: Rename _send_to_ppe __send_to_ppe, and set errno on return from the offload call. * spu/jsre.h: Include sys/syscall.h for the send_to_ppe prototype. * spu/access.c: Call __send_to_ppe instead of _send_to_ppe, and remove the setting of errno. * spu/close.c: Ditto. * spu/dup.c: Ditto. * spu/fstat.c: Ditto. * spu/ftruncate.c: Ditto. * spu/gettimeofday.c: Ditto. * spu/lseek.c: Ditto. * spu/open.c: Ditto. * spu/read.c: Ditto. * spu/stat.c: Ditto. * spu/unlink.c: Ditto. * spu/write.c: Ditto.
Diffstat (limited to 'libgloss/spu/write.c')
-rw-r--r--libgloss/spu/write.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libgloss/spu/write.c b/libgloss/spu/write.c
index 4952f67..eec559e 100644
--- a/libgloss/spu/write.c
+++ b/libgloss/spu/write.c
@@ -31,7 +31,6 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
*/
#include <fcntl.h>
-#include <errno.h>
#include "jsre.h"
int
@@ -44,9 +43,8 @@ write (int file, const void *ptr, size_t len)
sys.ptr = ( unsigned int )ptr;
sys.len = len;
- _send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_WRITE, &sys);
+ __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_WRITE, &sys);
- errno = psys_out->err;
return ( psys_out->rc);
}