From a0050b64fc79c4bab523e7abf0739ab22a4d2a33 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 23 May 2007 21:39:54 +0000 Subject: 2007-05-23 Patrick Mansfield * spu/syscalls.c: Change __send_to_ppe to return the result stored in stored in slot 0 of the data, rather than have each assisted call retrieve the value. * spu/jsre.h: Remove the now unused syscall_out_t. * spu/access.c: Use the __send_to_ppe result instead of the slot 0 value, remove unused syscall_out_t variable. * 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/unlink.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libgloss/spu/unlink.c') diff --git a/libgloss/spu/unlink.c b/libgloss/spu/unlink.c index 47b02a6a4..4a7edefb7 100644 --- a/libgloss/spu/unlink.c +++ b/libgloss/spu/unlink.c @@ -35,13 +35,8 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com) int unlink (const char *pathname) { - syscall_unlink_t sys ; - syscall_out_t *psys_out = ( syscall_out_t* )&sys; + syscall_unlink_t sys; sys.pathname = ( unsigned int )pathname; - - __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_UNLINK, &sys); - - return ( psys_out->rc); + return __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_UNLINK, &sys); } - -- cgit v1.2.3