flush
[m6w6/ext-psi] / m4 / stdio.m4
1 AC_DEFUN(PSI_CHECK_STDIO, [
2 AC_CHECK_HEADER(stdio.h)
3
4 PSI_STRUCT(FILE)
5 PSI_STRUCT(fpos_t)
6
7 PSI_CONST(BUFSIZ, int)
8 PSI_CONST(_IOFBF, int)
9 PSI_CONST(_IOLBF, int)
10 PSI_CONST(_IONBF, int)
11 PSI_CONST(SEEK_CUR, int)
12 PSI_CONST(SEEK_END, int)
13 PSI_CONST(SEEK_SET, int)
14 PSI_CONST(FILENAME_MAX, int)
15 PSI_CONST(FOPEN_MAX, int)
16 PSI_CONST(TMP_MAX, int)
17 PSI_CONST(EOF, int)
18 PSI_CONST(P_tmpdir, string)
19 PSI_CONST(L_ctermid, int)
20 PSI_CONST(L_tmpnam, int)
21
22 PSI_DECL(void clearerr, [(FILE *stream)])
23 PSI_DECL(char *ctermid, [(char *s)])
24 PSI_DECL(int fclose, [(FILE *stream)])
25 PSI_DECL(FILE *fdopen, [(int fd, char *mode)])
26 PSI_DECL(int feof, [(FILE *stream)])
27 PSI_DECL(int ferror, [(FILE *stream)])
28 PSI_DECL(int fflush, [(FILE *stream)])
29 PSI_DECL(int fgetc, [(FILE *stream)])
30 PSI_DECL(int fgetpos, [(FILE *stream, fpos_t *pos)])
31 PSI_DECL(char *fgets, [(char *buf, int len, FILE *stream)])
32 PSI_DECL(int fileno, [(FILE *stream)])
33 PSI_DECL(void flockfile, [(FILE *stream)])
34 PSI_DECL(FILE *fmemopen, [(void *buf, size_t len, char *mode)])
35 PSI_DECL(FILE *fopen, [(char *path, char *mode)])
36 PSI_DECL(int fputc, [(int c, FILE *stream)])
37 PSI_DECL(int fputs, [(char *s, FILE *stream)])
38 PSI_DECL(size_t fread, [(void *buf, size_t len, size_t n, FILE *stream)])
39 PSI_DECL(FILE *freopen, [(char *path, char *mode, FILE *stream)])
40 PSI_DECL(int fseek, [(FILE *stream, long offset, int whence)])
41 PSI_DECL(int fseeko, [(FILE *stream, off_t offset, int whence)])
42 PSI_DECL(int fsetpos, [(FILE *stream, fpos_t *pos)])
43 PSI_DECL(long ftell, [(FILE *stream)])
44 PSI_DECL(off_t ftello, [(FILE *stream)])
45 PSI_DECL(int ftrylockfile, [(FILE *stream)])
46 PSI_DECL(void funlockfile, [(FILE *stream)])
47 PSI_DECL(size_t fwrite, [(void *buf, size_t len, size_t n, FILE *stream)])
48 PSI_DECL(int getc, [(FILE *stream)])
49 PSI_DECL(int getchar, [(void)])
50 PSI_DECL(int getc_unlocked, [(FILE *stream)])
51 PSI_DECL(int getchar_unlocked, [(void)])
52 PSI_DECL(ssize_t getdelim, [(char **lineptr, size_t *n, int delim, FILE *stream)])
53 PSI_DECL(ssize_t getline, [(char **lineptr, size_t *n, FILE *stream)])
54 PSI_DECL(char *gets, [(char *buf)])
55 PSI_DECL(FILE *open_memstream, [(char **ptr, size_t *sizeloc)])
56 PSI_DECL(int pclose, [(FILE *stream)])
57 PSI_DECL(void perror, [(char *s)])
58 PSI_DECL(FILE *popen, [(char *command, char *type)])
59 PSI_DECL(int putc, [(int c, FILE *stream)])
60 PSI_DECL(int putchar, [(int c)])
61 PSI_DECL(int putc_unlocked, [(int c, FILE *stream)])
62 PSI_DECL(int putchar_unlocked, [(int c)])
63 PSI_DECL(int puts, [(char *s)])
64 PSI_DECL(int remove, [(char *path)])
65 PSI_DECL(int rename, [(char *old, char *new)])
66 PSI_DECL(int renameat, [(int oldfd, char *oldpath, int newfd, char *newpath)])
67 PSI_DECL(void rewind, [(FILE *stream)])
68 PSI_DECL(void setbuf, [(FILE *stream, char *buf)])
69 PSI_DECL(int setvbuf, [(FILE *stream, char *buf, int mode, size_t size)])
70 PSI_DECL(char *tempnam, [(char *dir, char *prefix)])
71 PSI_DECL(FILE *tmpfile, [(void)])
72 PSI_DECL(char *tmpnam, [(char *s)])
73 PSI_DECL(int ungetc, [(int c, FILE *stream)])
74
75 ])