summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:40 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:40 +0200
commit27f9ff5ab47354f933348663af30b9a28435c11b (patch)
treef27b343f9e83cfb48dbe40ccd35d5919da8b6bbf /include
parent27a44f6c7e2c6aa1046cb1fc9d3c03b3ebba6ccd (diff)
downloadbarebox-27f9ff5ab47354f933348663af30b9a28435c11b.tar.gz
barebox-27f9ff5ab47354f933348663af30b9a28435c11b.tar.xz
svn_rev_290
add lseek
Diffstat (limited to 'include')
-rw-r--r--include/fs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/fs.h b/include/fs.h
index 523d2f2c0c..2597784a0a 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -5,6 +5,7 @@
#define FS_TYPE_CRAMFS 1
#define FS_TYPE_RAMFS 2
+#define FS_TYPE_DEVFS 3
#define PATH_MAX 1024 /* include/linux/limits.h */
@@ -28,6 +29,7 @@ typedef struct filep {
struct device_d *dev; /* The device this FILE belongs to */
ulong pos; /* current position in stream */
ulong size; /* The size of this inode */
+ ulong flags; /* the O_* flags from open */
void *inode; /* private to the filesystem driver */
@@ -78,7 +80,13 @@ int close(int fd);
int stat(const char *filename, struct stat *s);
int read(int fd, void *buf, size_t count);
ssize_t write(int fd, const void *buf, size_t count);
-int ls(const char *path);
+
+#define SEEK_SET 1
+#define SEEK_CUR 2
+#define SEEK_END 3
+
+off_t lseek(int fildes, off_t offset, int whence);
+int ls(const char *path, ulong flags);
int mkdir (const char *pathname);
int mount (struct device_d *dev, char *fsname, char *path);
int umount(const char *pathname);