Project

General

Profile

Bug #2594 ยป fpending.diff

davshao, 10/05/2013 04:54 PM

View differences:

include/stdio.h
void *fcookie(FILE *);
char *fgetln(FILE *, size_t *);
const char *fmtcheck(const char *, const char *) __format_arg(2);
__ssize_t __fpending(const FILE *);
__size_t __fpending(FILE *);
int fpurge(FILE *);
void setbuffer(FILE *, char *, int);
int setlinebuf(FILE *);
lib/libc/stdio/__fpending.c
#include "local.h"
__ssize_t
__fpending(const FILE *fp)
__size_t
__fpending(FILE *fp)
{
if (HASUB(fp))
return(fp->_up - fp->_bf._base);
    (1-1/1)