add bsd fgetln function

optimized to avoid allocation and return lines directly out of the
stream buffer whenever possible.
This commit is contained in:
Rich Felker 2012-08-11 18:10:38 -04:00
commit 617182734c
4 changed files with 25 additions and 1 deletions

View file

@ -57,7 +57,7 @@ struct __FILE_s {
int waiters;
void *cookie;
off_t off;
void *dummy4;
char *getln_buf;
void *mustbezero_2;
unsigned char *shend;
off_t shlim, shcnt;