From c6e05f0d080e0d5c7e1458b41f3211feace794ef Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 4 Apr 2007 20:59:38 +0000 Subject: 2007-04-04 Patrick Mansfield * 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. --- libgloss/spu/stat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libgloss/spu/stat.c') diff --git a/libgloss/spu/stat.c b/libgloss/spu/stat.c index 5dbae8ac8..ec7ab6d3a 100644 --- a/libgloss/spu/stat.c +++ b/libgloss/spu/stat.c @@ -32,7 +32,6 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com) #include #include -#include #include "jsre.h" int @@ -45,7 +44,7 @@ stat (const char *pathname, struct stat *pstat) sys.pathname = (unsigned int)pathname; sys.ptr = ( unsigned int )&pjstat; - _send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_STAT, &sys); + __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_STAT, &sys); pstat->st_dev = pjstat.dev; pstat->st_ino = pjstat.ino; @@ -61,7 +60,6 @@ stat (const char *pathname, struct stat *pstat) pstat->st_mtime = pjstat.mtime; pstat->st_ctime = pjstat.ctime; - errno = psys_out->err; return( psys_out->rc ); } -- cgit v1.2.3