mirror of /home/gitosis/repositories/libowfat.git
parent
62be2d80a1
commit
00dcef4652
6 changed files with 23 additions and 5 deletions
@ -0,0 +1,15 @@ |
||||
#include "iob_internal.h" |
||||
|
||||
int iob_addfile_close(io_batch* b,int64 fd,uint64 off,uint64 n) { |
||||
iob_entry* e=array_allocate(&b->b,sizeof(iob_entry), |
||||
array_length(&b->b,sizeof(iob_entry))); |
||||
if (!e) return 0; |
||||
e->type=FROMFILE_CLOSE; |
||||
e->fd=fd; |
||||
e->buf=0; |
||||
e->n=n; |
||||
e->offset=off; |
||||
b->bytesleft+=n; |
||||
++b->files; |
||||
return 1; |
||||
} |
Loading…
Reference in new issue