summaryrefslogtreecommitdiffstats
path: root/libgloss/spu/lseek.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/spu/lseek.c')
-rw-r--r--libgloss/spu/lseek.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libgloss/spu/lseek.c b/libgloss/spu/lseek.c
index 9ba372ccf..e5b3b75d0 100644
--- a/libgloss/spu/lseek.c
+++ b/libgloss/spu/lseek.c
@@ -33,6 +33,20 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
#include <unistd.h>
#include "jsre.h"
+#define JSRE_SEEK_SET 0
+#define JSRE_SEEK_CUR 1
+#define JSRE_SEEK_END 2
+
+typedef struct
+{
+ unsigned int file;
+ unsigned int pad0[3];
+ unsigned int offset;
+ unsigned int pad1[3];
+ unsigned int whence;
+ unsigned int pad2[3];
+} syscall_lseek_t;
+
off_t
lseek (int file, off_t offset, int whence)
{