Adds the new status and scrub commands.

This commit is contained in:
Andrea Mazzoleni 2013-06-29 17:53:40 +02:00
parent edc885ac79
commit a32a1cd9a8
17 changed files with 978 additions and 87 deletions

8
util.c
View file

@ -175,6 +175,14 @@ int sclose(STREAM* s)
return 0;
}
int shandle(STREAM* s)
{
if (!s->handle_size)
return -1;
return s->handle[0].f;
}
int sfill(STREAM* s)
{
ssize_t ret;