diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-06-20 21:41:33 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-06-20 21:41:33 +0000 |
commit | 72a14088c27bf0059e99366b5264b93cf37df364 (patch) | |
tree | 3b499c0bfcc3e4da2039c561229835a780e63ccf /libgloss/spu/fstat.c | |
parent | 2751142e3c27114dcf7b3350f7741b76a7113e2e (diff) | |
download | cygnal-72a14088c27bf0059e99366b5264b93cf37df364.tar.gz cygnal-72a14088c27bf0059e99366b5264b93cf37df364.tar.bz2 cygnal-72a14088c27bf0059e99366b5264b93cf37df364.zip |
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
* spu/jsre.h: Add JSRE_LSTAT.
* spu/lstat.c: New file add lstat support via an assist call.
* spu/conv_stat.c: New file, add common stat conversion code.
* spu/fstat.c: Use __conv_stat.
* spu/stat.c: Use __conv_stat.
* spu/Makefile.in: Add conv_stat.o and lstat.o.
Diffstat (limited to 'libgloss/spu/fstat.c')
-rw-r--r-- | libgloss/spu/fstat.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/libgloss/spu/fstat.c b/libgloss/spu/fstat.c index 45abeeb02..cb983d958 100644 --- a/libgloss/spu/fstat.c +++ b/libgloss/spu/fstat.c @@ -45,26 +45,12 @@ int fstat (int file, struct stat *pstat) { syscall_fstat_t sys; - jsre_stat_t pjstat; + struct jsre_stat pjstat; int ret; sys.file = file; sys.ptr = ( unsigned int )&pjstat; ret = __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_FSTAT, &sys); - - pstat->st_dev = pjstat.dev; - pstat->st_ino = pjstat.ino; - pstat->st_mode = pjstat.mode; - pstat->st_nlink = pjstat.nlink; - pstat->st_uid = pjstat.uid; - pstat->st_gid = pjstat.gid; - pstat->st_rdev = pjstat.rdev; - pstat->st_size = pjstat.size; - pstat->st_blksize = pjstat.blksize; - pstat->st_blocks = pjstat.blocks; - pstat->st_atime = pjstat.atime; - pstat->st_mtime = pjstat.mtime; - pstat->st_ctime = pjstat.ctime; - + __conv_stat (pstat, &pjstat); return ret; } |