Add iso9660_fstat()

This commit is contained in:
Laurent Vivier 2005-11-23 00:10:15 +00:00
parent a55aa395c7
commit 69cbebe1f7
3 changed files with 16 additions and 1 deletions

View File

@ -15,7 +15,7 @@ SOURCES = iso9660_mount.c iso9660_opendir.c \
iso9660_closedir.c iso9660_readdir.c \
iso9660_is_directory.c iso9660_open.c \
iso9660_read.c iso9660_close.c \
iso9660_lseek.c
iso9660_lseek.c iso9660_fstat.c
HEADERS = libiso9660.h

View File

@ -0,0 +1,14 @@
/*
*
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
#include "libiso9660.h"
int iso9660_fstat(iso9660_FILE *file, struct stream_stat *buf)
{
buf->st_size = file->size;
return 0;
}

View File

@ -67,5 +67,6 @@ extern struct iso_directory_record* iso9660_get_node(iso9660_VOLUME *volume, str
extern ssize_t iso9660_read(iso9660_FILE *file, void *buf, size_t count);
extern void iso9660_close(iso9660_FILE *file);
extern int iso9660_lseek(iso9660_FILE *file, long offset, int whence);
extern int iso9660_fstat(iso9660_FILE *file, struct stream_stat *buf);
#endif /* __LIBISO9660_H__ */