On Thu, 24 Sep 2020, Tim Rice wrote:

> 
> Hi Bruno,
> 
> On Fri, 25 Sep 2020, Bruno Haible wrote:
> 
> > Tim Rice wrote:
> > > I've attached a patch to address the fact that UnixWare does not have
> > > stdio_ext.h but has some __X() stdio helper functions.
> > 
> > In which header file are they declared? Can you show these declarations,
> > please?
> > 
> > Bruno
> 
> stdio.h
> 
> extern size_t   __fbufsiz(FILE *);
> extern int      __filbuf(FILE *);
> extern int      __flbf(FILE *);
> extern int      __flsbuf(int, FILE *);
> extern size_t   __fpending(FILE *);
> extern void     __fpurge(FILE *);
> extern int      __freadable(FILE *);
> extern int      __freading(FILE *);
> extern int      __fwritable(FILE *);
> extern int      __fwriting(FILE *);
> extern void     _flushlbf(void);

This may be if interest also. (also stdio.h)

#define __flbf(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & _IOLBF)
#define __freading(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & 
_IOREAD)
#define __fwriting(p) ((void)sizeof(__filbuf(p)), ((FILE *)(p))->__flag & 
_IOWRT)
#define __freadable(p) (__freading(p) && __fpending(p))
#define __fwritable(p) (__fwriting(p) && __fpending(p) < __fbufsiz(p))

#define __fpurge(p) funflush(p)


-- 
Tim Rice                                Multitalents
t...@multitalents.net



Reply via email to