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.
This commit is contained in:
Jeff Johnston
2007-06-20 21:41:33 +00:00
parent 2751142e3c
commit 72a14088c2
7 changed files with 140 additions and 40 deletions

View File

@@ -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