diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-06-05 19:01:30 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-06-05 19:01:30 +0000 |
commit | 184dcf2bc384df5ed96c2f90994008605a222f6c (patch) | |
tree | d080b6b0962babce485d7461e1ecd6b3260cd6ed /libgloss/spu/jsre.h | |
parent | 7f6ee25a1a5cbf1440b379fd89916507a9bbdad5 (diff) | |
download | cygnal-184dcf2bc384df5ed96c2f90994008605a222f6c.tar.gz cygnal-184dcf2bc384df5ed96c2f90994008605a222f6c.tar.bz2 cygnal-184dcf2bc384df5ed96c2f90994008605a222f6c.zip |
2007-06-05 Patrick Mansfield <patman@us.ibm.com>
* spu/jsre.h: Remove the assist call structs and defines that are
specific to one assist call from here.
* spu/access.c: Move struct syscall_access_t to here.
* spu/fstat.c: Move struct syscall_fstat_t to here.
* spu/ftruncate.c: Move struct syscall_ftruncate_t to here.
* spu/gettimeofday.c: Move struct syscall_gettimeofday_t to here.
* spu/lseek.c: Move struct syscall_lseek_t and JSRE_SEEK defines to
here.
* spu/open.c: Move struct syscall_open_t and JSRE_O_ defines to here.
* spu/read.c: Move struct syscall_read_t to here, and actually use
it (it is the same as syscall_write_t).
* spu/stat.c: Move struct syscall_stat_t to here.
* spu/write.c: Move struct syscall_write_t to here.
* spu/close.c: Pass the address of the first and only argument to
__send_to_ppe rather than using an automatic variable and a
special struct.
* spu/dup.c: Ditto.
* spu/unlink.c: Ditto.
Diffstat (limited to 'libgloss/spu/jsre.h')
-rw-r--r-- | libgloss/spu/jsre.h | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/libgloss/spu/jsre.h b/libgloss/spu/jsre.h index f69cd490e..dc89c0d9f 100644 --- a/libgloss/spu/jsre.h +++ b/libgloss/spu/jsre.h @@ -35,23 +35,6 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com) #ifndef __JSRE_H #define __JSRE_H -#define JSRE_SEEK_SET 0 -#define JSRE_SEEK_CUR 1 -#define JSRE_SEEK_END 2 - -#define JSRE_O_RDONLY 0 -#define JSRE_O_WRONLY 1 -#define JSRE_O_RDWR 2 - -#define JSRE_O_CREAT 64 -#define JSRE_O_EXCL 128 -#define JSRE_O_NOCTTY 256 -#define JSRE_O_TRUNC 512 -#define JSRE_O_APPEND 1024 -#define JSRE_O_NDELAY 2048 -#define JSRE_O_SYNC 4096 -#define JSRE_O_ASYNC 8192 - #define JSRE_POSIX1_SIGNALCODE 0x2101 #define JSRE_CLOSE 2 @@ -67,104 +50,6 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com) #define JSRE_ACCESS 29 #define JSRE_DUP 30 -typedef struct -{ - unsigned int pathname; - unsigned int pad0[ 3 ]; - unsigned int flags; - unsigned int pad1[ 3 ]; - unsigned int mode; - unsigned int pad2[ 3 ]; -} syscall_open_t; - -typedef struct -{ - unsigned int file; - unsigned int pad0[ 3 ]; - unsigned int ptr; - unsigned int pad1[ 3 ]; - unsigned int len; - unsigned int pad2[ 3 ]; -} syscall_write_t; - -typedef struct -{ - unsigned int file; - unsigned int pad0[ 3 ]; - unsigned int ptr; - unsigned int pad1[ 3 ]; - unsigned int len; - unsigned int pad2[ 3 ]; -} syscall_read_t; - -typedef struct -{ - unsigned int file; - unsigned int pad0[ 3 ]; -} syscall_close_t; - -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; - -typedef struct -{ - unsigned int file; - unsigned int pad0[ 3 ]; - unsigned int length; - unsigned int pad1[ 3 ]; -} syscall_ftruncate_t; - -typedef struct -{ - unsigned int pathname; - unsigned int pad0[ 3 ]; - unsigned int mode; - unsigned int pad1[ 3 ]; -} syscall_access_t; - -typedef struct -{ - unsigned int oldfd; - unsigned int pad0[ 3 ]; -} syscall_dup_t; - -typedef struct -{ - unsigned int tv; - unsigned int pad0[ 3 ]; - unsigned int tz; - unsigned int pad1[ 3 ]; -} syscall_gettimeofday_t; - -typedef struct -{ - unsigned int pathname; - unsigned int pad0[ 3 ]; -} syscall_unlink_t; - -typedef struct -{ - unsigned int file; - unsigned int pad0[ 3 ]; - unsigned int ptr; - unsigned int pad1[ 3 ]; -} syscall_fstat_t; - -typedef struct -{ - unsigned int pathname; - unsigned int pad0[ 3 ]; - unsigned int ptr; - unsigned int pad1[ 3 ]; -} syscall_stat_t; - typedef struct { unsigned int dev; unsigned int ino; |