1989-05-30 13:34:25 +00:00
|
|
|
/*
|
|
|
|
* loc_incl.h - local include file for stdio library
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1989-05-30 13:34:25 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2007-04-27 22:41:39 +00:00
|
|
|
#include <ack/config.h>
|
1989-05-30 13:34:25 +00:00
|
|
|
|
|
|
|
#define fileno(p) ((p)->_fd)
|
|
|
|
#define io_testflag(p,x) ((p)->_flags & (x))
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
2019-06-15 11:07:10 +00:00
|
|
|
int _doprnt(const char *format, va_list ap, void (*put)(int c));
|
|
|
|
int _doscan(const char *format, va_list ap, int (*get)(void), void (*unget)(int c));
|
1989-06-26 10:37:05 +00:00
|
|
|
char *_i_compute(unsigned long val, int base, char *s, int nrdigits);
|
1991-06-10 17:07:18 +00:00
|
|
|
char *_f_print(va_list *ap, int flags, char *s, char c, int precision);
|
2018-06-23 16:35:45 +00:00
|
|
|
|
|
|
|
extern void __register_stdio_cleanup(void);
|
1989-05-30 13:34:25 +00:00
|
|
|
|
1989-06-26 10:37:05 +00:00
|
|
|
FILE *popen(const char *command, const char *type);
|
|
|
|
FILE *fdopen(int fd, const char *mode);
|
1989-05-30 13:34:25 +00:00
|
|
|
|
2018-06-22 22:04:14 +00:00
|
|
|
#if ACKCONF_WANT_STDIO_FLOAT
|
1990-02-27 16:48:01 +00:00
|
|
|
char *_ecvt(long double value, int ndigit, int *decpt, int *sign);
|
|
|
|
char *_fcvt(long double value, int ndigit, int *decpt, int *sign);
|
2018-06-22 22:04:14 +00:00
|
|
|
#endif
|
1989-05-30 13:34:25 +00:00
|
|
|
|
|
|
|
#define FL_LJUST 0x0001 /* left-justify field */
|
|
|
|
#define FL_SIGN 0x0002 /* sign in signed conversions */
|
|
|
|
#define FL_SPACE 0x0004 /* space in signed conversions */
|
|
|
|
#define FL_ALT 0x0008 /* alternate form */
|
|
|
|
#define FL_ZEROFILL 0x0010 /* fill with zero's */
|
|
|
|
#define FL_SHORT 0x0020 /* optional h */
|
|
|
|
#define FL_LONG 0x0040 /* optional l */
|
|
|
|
#define FL_LONGDOUBLE 0x0080 /* optional L */
|
|
|
|
#define FL_WIDTHSPEC 0x0100 /* field width is specified */
|
|
|
|
#define FL_PRECSPEC 0x0200 /* precision is specified */
|
|
|
|
#define FL_SIGNEDCONV 0x0400 /* may contain a sign */
|
|
|
|
#define FL_NOASSIGN 0x0800 /* do not assign (in scanf) */
|
|
|
|
#define FL_NOMORE 0x1000 /* all flags collected */
|