Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-06-05 23:01:30 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-06-05 23:01:30 +0400
commit184dcf2bc384df5ed96c2f90994008605a222f6c (patch)
treed080b6b0962babce485d7461e1ecd6b3260cd6ed /libgloss/spu/stat.c
parent7f6ee25a1a5cbf1440b379fd89916507a9bbdad5 (diff)
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/stat.c')
-rw-r--r--libgloss/spu/stat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/spu/stat.c b/libgloss/spu/stat.c
index ad925c624..5f64c42f5 100644
--- a/libgloss/spu/stat.c
+++ b/libgloss/spu/stat.c
@@ -34,6 +34,14 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
#include <fcntl.h>
#include "jsre.h"
+typedef struct
+{
+ unsigned int pathname;
+ unsigned int pad0[3];
+ unsigned int ptr;
+ unsigned int pad1[3];
+} syscall_stat_t;
+
int
stat (const char *pathname, struct stat *pstat)
{