KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
stdio.h
Go to the documentation of this file.
1/** \file sys/stdio.h
2 \brief Basic sys/stdio.h file from newlib.
3
4 This file simply defines locking for files as no-ops if they aren't defined
5 already.
6*/
7
8#ifndef _NEWLIB_STDIO_H
9#define _NEWLIB_STDIO_H
10
11#include <sys/cdefs.h>
12__BEGIN_DECLS
13
14// Cribbed from newlib sys/stdio.h
15
16/* Internal locking macros, used to protect stdio functions. In the
17 general case, expand to nothing. */
18#if !defined(_flockfile)
19/** \brief No-op lock on a file
20 \param fp The file to lock.
21*/
22# define _flockfile(fp)
23#endif
24
25#if !defined(_funlockfile)
26/** \brief No-op unlock a file
27 \param fp The file to unlock.
28*/
29# define _funlockfile(fp)
30#endif
31
32/* Keep compat with old dbglog.h inclusion */
33#include <unistd.h>
34#include <stdarg.h>
35#include <kos/fs.h>
36
37__END_DECLS
38
39#endif /* _NEWLIB_STDIO_H */
Virtual filesystem support.