8354 sync regcomp(3C) with upstream (fix make catalog)
[unleashed/tickless.git] / usr / src / lib / libast / common / stdio / stdio_c99.c
blob01e289d2137702eead51a814ac702c0698a50f9c
1 /***********************************************************************
2 * *
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 *
8 * *
9 * A copy of the License is available at *
10 * http://www.opensource.org/licenses/cpl1.0.txt *
11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
12 * *
13 * Information and Software Systems Research *
14 * AT&T Research *
15 * Florham Park NJ *
16 * *
17 * Glenn Fowler <gsf@research.att.com> *
18 * David Korn <dgk@research.att.com> *
19 * Phong Vo <kpv@research.att.com> *
20 * *
21 ***********************************************************************/
22 #pragma prototyped
25 * C99 stdio extensions
28 #include "stdhdr.h"
30 void
31 clearerr_unlocked(Sfio_t* sp)
33 clearerr(sp);
36 int
37 feof_unlocked(Sfio_t* sp)
39 return feof(sp);
42 int
43 ferror_unlocked(Sfio_t* sp)
45 return ferror(sp);
48 int
49 fflush_unlocked(Sfio_t* sp)
51 return fflush(sp);
54 int
55 fgetc_unlocked(Sfio_t* sp)
57 return fgetc(sp);
60 char*
61 fgets_unlocked(char* buf, int size, Sfio_t* sp)
63 return fgets(buf, size, sp);
66 int
67 fileno_unlocked(Sfio_t* sp)
69 return fileno(sp);
72 int
73 fputc_unlocked(int c, Sfio_t* sp)
75 return fputc(c, sp);
78 int
79 fputs_unlocked(char* buf, Sfio_t* sp)
81 return fputs(buf, sp);
84 size_t
85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp)
87 return fread(buf, size, n, sp);
90 size_t
91 fwrite_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp)
93 return fwrite(buf, size, n, sp);
96 int
97 getc_unlocked(Sfio_t* sp)
99 return getc(sp);
103 getchar_unlocked(void)
105 return getchar();
109 putc_unlocked(int c, Sfio_t* sp)
111 return putc(c, sp);
115 putchar_unlocked(int c)
117 return putchar(c);