mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-31 20:05:01 +00:00
Add iso9660_fstat()
This commit is contained in:
parent
a55aa395c7
commit
69cbebe1f7
@ -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
|
||||
|
||||
|
14
libiso9660/iso9660_fstat.c
Normal file
14
libiso9660/iso9660_fstat.c
Normal 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;
|
||||
}
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user