diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-05-23 21:39:54 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-05-23 21:39:54 +0000 |
commit | a0050b64fc79c4bab523e7abf0739ab22a4d2a33 (patch) | |
tree | c204b305fea8f9aefa971fbf553458ddac581cbc /libgloss/spu/ftruncate.c | |
parent | 9a3ec8622b2fb10c95112188c7f5ff1424c738e6 (diff) | |
download | cygnal-a0050b64fc79c4bab523e7abf0739ab22a4d2a33.tar.gz cygnal-a0050b64fc79c4bab523e7abf0739ab22a4d2a33.tar.bz2 cygnal-a0050b64fc79c4bab523e7abf0739ab22a4d2a33.zip |
2007-05-23 Patrick Mansfield <patmans@us.ibm.com>
* 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.
Diffstat (limited to 'libgloss/spu/ftruncate.c')
-rw-r--r-- | libgloss/spu/ftruncate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libgloss/spu/ftruncate.c b/libgloss/spu/ftruncate.c index 487c70dac..47a998f09 100644 --- a/libgloss/spu/ftruncate.c +++ b/libgloss/spu/ftruncate.c @@ -35,13 +35,8 @@ int ftruncate (int file, off_t length) { syscall_ftruncate_t sys; - syscall_out_t *psys_out = ( syscall_out_t* )&sys; sys.file = file; sys.length = length; - - __send_to_ppe(JSRE_POSIX1_SIGNALCODE, JSRE_FTRUNCATE, &sys); - - return ( psys_out->rc); + return __send_to_ppe(JSRE_POSIX1_SIGNALCODE, JSRE_FTRUNCATE, &sys); } - |