mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 04:54:25 +00:00
20 lines
296 B
C
20 lines
296 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
#include "libcontainer.h"
|
|
|
|
int container_fstat(container_FILE *file, struct stream_stat *buf)
|
|
{
|
|
if (buf == NULL)
|
|
return -1;
|
|
if (file->container->size == -1)
|
|
return -1;
|
|
|
|
buf->st_size = file->container->size;
|
|
|
|
return 0;
|
|
}
|