Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / cython / src / Cython / Includes / libc / stdio.pxd
1 # 7.19 Input/output <stdio.h>
2
3
4 # deprecated cimports for backwards compatibility:
5 from libc.string cimport const_char, const_void
6
7
8 cdef extern from "stdio.h" nogil:
9
10     ctypedef struct FILE
11     cdef FILE *stdin
12     cdef FILE *stdout
13     cdef FILE *stderr
14
15     enum: FOPEN_MAX
16     enum: FILENAME_MAX
17     FILE *fopen   (const char *filename, const char  *opentype)
18     FILE *freopen (const char *filename, const char *opentype, FILE *stream)
19     FILE *fdopen  (int fdescriptor, const char *opentype)
20     int  fclose   (FILE *stream)
21     int  remove   (const char *filename)
22     int  rename   (const char *oldname, const char *newname)
23     FILE *tmpfile ()
24
25     int remove (const char *pathname)
26     int rename (const char *oldpath, const char *newpath)
27
28     enum: _IOFBF
29     enum: _IOLBF
30     enum: _IONBF
31     int setvbuf (FILE *stream, char *buf, int mode, size_t size)
32     enum: BUFSIZ
33     void setbuf (FILE *stream, char *buf)
34
35     size_t fread  (void *data, size_t size, size_t count, FILE *stream)
36     size_t fwrite (const void *data, size_t size, size_t count, FILE *stream)
37     int    fflush (FILE *stream)
38
39     enum: EOF
40     void clearerr (FILE *stream)
41     int feof      (FILE *stream)
42     int ferror    (FILE *stream)
43
44     enum: SEEK_SET
45     enum: SEEK_CUR
46     enum: SEEK_END
47     int      fseek  (FILE *stream, long int offset, int whence)
48     void     rewind (FILE *stream)
49     long int ftell  (FILE *stream)
50
51     ctypedef struct fpos_t
52     ctypedef const fpos_t const_fpos_t "const fpos_t"
53     int fgetpos (FILE *stream, fpos_t *position)
54     int fsetpos (FILE *stream, const fpos_t *position)
55
56     int scanf    (const char *template, ...)
57     int sscanf   (const char *s, const char *template, ...)
58     int fscanf   (FILE *stream, const char *template, ...)
59
60     int printf   (const char *template, ...)
61     int sprintf  (char *s, const char *template, ...)
62     int snprintf (char *s, size_t size, const char *template, ...)
63     int fprintf  (FILE *stream, const char *template, ...)
64
65     void perror  (const char *message)
66
67     char *gets  (char *s)
68     char *fgets (char *s, int count, FILE *stream)
69     int getchar ()
70     int fgetc   (FILE *stream)
71     int getc    (FILE *stream)
72     int ungetc  (int c, FILE *stream)
73
74     int puts    (const char *s)
75     int fputs   (const char *s, FILE *stream)
76     int putchar (int c)
77     int fputc   (int c, FILE *stream)
78     int putc    (int c, FILE *stream)
79
80     size_t getline(char **lineptr, size_t *n, FILE *stream)