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-21 01:41:33 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-06-21 01:41:33 +0400
commit72a14088c27bf0059e99366b5264b93cf37df364 (patch)
tree3b499c0bfcc3e4da2039c561229835a780e63ccf /libgloss/spu/stat.c
parent2751142e3c27114dcf7b3350f7741b76a7113e2e (diff)
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/stat.c')
-rw-r--r--libgloss/spu/stat.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/libgloss/spu/stat.c b/libgloss/spu/stat.c
index 5f64c42f5..79be7dc67 100644
--- a/libgloss/spu/stat.c
+++ b/libgloss/spu/stat.c
@@ -46,26 +46,12 @@ int
stat (const char *pathname, struct stat *pstat)
{
syscall_stat_t sys;
- jsre_stat_t pjstat;
+ struct jsre_stat pjstat;
int ret;
sys.pathname = (unsigned int)pathname;
sys.ptr = ( unsigned int )&pjstat;
ret = __send_to_ppe (JSRE_POSIX1_SIGNALCODE, JSRE_STAT, &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;
}