mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
22 lines
366 B
C
22 lines
366 B
C
/*
|
|
*
|
|
* (c) 2005-2008 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include "libcontainer.h"
|
|
#include "container.h"
|
|
|
|
int container_fstat(stream_FILE *_file, struct stream_stat *buf)
|
|
{
|
|
container_FILE *file = (container_FILE*)_file;
|
|
if (buf == NULL)
|
|
return -1;
|
|
if (file->container->size == -1)
|
|
return -1;
|
|
|
|
buf->st_size = file->container->size;
|
|
|
|
return 0;
|
|
}
|