summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/sys/stdio.h
blob: 29097c89e379961d31328fdec51aecbd9d0548e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _NEWLIB_STDIO_H
#define _NEWLIB_STDIO_H

/* Internal locking macros, used to protect stdio functions.  In the
   linux case, expand to flockfile, and funlockfile, both defined in
   LinuxThreads. */
#if !defined(__SINGLE_THREAD__)
#  if !defined(_flockfile)
#    define _flockfile(fp) flockfile(fp)
#  endif
#  if !defined(_funlockfile)
#    define _funlockfile(fp) funlockfile(fp)
#  endif
#endif /* __SINGLE_THREAD__ */

#define getline __getline
#define getdelim __getdelim

#endif /* _NEWLIB_STDIO_H */