mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
21 lines
295 B
C
21 lines
295 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
|
|
#include "libstream.h"
|
|
|
|
int stream_fstat(stream_t *stream, struct stream_stat *buf)
|
|
{
|
|
int ret;
|
|
|
|
if (stream->fs.fstat == NULL)
|
|
return -1;
|
|
|
|
ret = stream->fs.fstat(stream->file, buf);
|
|
buf->st_dev = stream->unit;
|
|
|
|
return ret;
|
|
}
|