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/jsre.h
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/jsre.h')
-rw-r--r--libgloss/spu/jsre.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libgloss/spu/jsre.h b/libgloss/spu/jsre.h
index 143289e81..33a2af739 100644
--- a/libgloss/spu/jsre.h
+++ b/libgloss/spu/jsre.h
@@ -32,6 +32,9 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
/* this file provides the mappings for the JSRE defined interface for PE assisted libary calls */
+#include <sys/stat.h>
+#include <sys/syscall.h>
+
#ifndef __JSRE_H
#define __JSRE_H
@@ -42,6 +45,7 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
#define JSRE_GETPAGESIZE 6
#define JSRE_GETTIMEOFDAY 7
#define JSRE_LSEEK 9
+#define JSRE_LSTAT 10
#define JSRE_OPEN 15
#define JSRE_READ 16
#define JSRE_STAT 23
@@ -64,7 +68,7 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
#define JSRE_LCHOWN 42
#define JSRE_GETCWD 43
-typedef struct {
+struct jsre_stat {
unsigned int dev;
unsigned int ino;
unsigned int mode;
@@ -78,8 +82,8 @@ typedef struct {
unsigned int atime;
unsigned int mtime;
unsigned int ctime;
-} jsre_stat_t;
+};
-#include <sys/syscall.h>
+void __conv_stat (struct stat *stat, struct jsre_stat *jstat);
#endif