summaryrefslogtreecommitdiffstats
path: root/libgloss/spu/ftruncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/spu/ftruncate.c')
-rw-r--r--libgloss/spu/ftruncate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/spu/ftruncate.c b/libgloss/spu/ftruncate.c
index 47a998f09..138f60ed6 100644
--- a/libgloss/spu/ftruncate.c
+++ b/libgloss/spu/ftruncate.c
@@ -31,6 +31,14 @@ POSSIBILITY OF SUCH DAMAGE.
#include <unistd.h>
#include "jsre.h"
+typedef struct
+{
+ unsigned int file;
+ unsigned int pad0[3];
+ unsigned int length;
+ unsigned int pad1[3];
+} syscall_ftruncate_t;
+
int
ftruncate (int file, off_t length)
{