1 /***********************************************************************
3 * This software is part of the ast package *
4 * Copyright (c) 1985-2010 AT&T Intellectual Property *
5 * and is licensed under the *
6 * Common Public License, Version 1.0 *
7 * by AT&T Intellectual Property *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
13 * Information and Software Systems Research *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
21 ***********************************************************************/
25 * C99 stdio extensions
31 clearerr_unlocked(Sfio_t
* sp
)
37 feof_unlocked(Sfio_t
* sp
)
43 ferror_unlocked(Sfio_t
* sp
)
49 fflush_unlocked(Sfio_t
* sp
)
55 fgetc_unlocked(Sfio_t
* sp
)
61 fgets_unlocked(char* buf
, int size
, Sfio_t
* sp
)
63 return fgets(buf
, size
, sp
);
67 fileno_unlocked(Sfio_t
* sp
)
73 fputc_unlocked(int c
, Sfio_t
* sp
)
79 fputs_unlocked(char* buf
, Sfio_t
* sp
)
81 return fputs(buf
, sp
);
85 fread_unlocked(void* buf
, size_t size
, size_t n
, Sfio_t
* sp
)
87 return fread(buf
, size
, n
, sp
);
91 fwrite_unlocked(void* buf
, size_t size
, size_t n
, Sfio_t
* sp
)
93 return fwrite(buf
, size
, n
, sp
);
97 getc_unlocked(Sfio_t
* sp
)
103 getchar_unlocked(void)
109 putc_unlocked(int c
, Sfio_t
* sp
)
115 putchar_unlocked(int c
)