HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SYS_IO.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: SYS_IO.h (SYS Library, C++)
7  *
8  * COMMENTS: Platform-independent I/O routines that we require wrappers for.
9  */
10 
11 #ifndef __SYS_IO_H_INCLUDED__
12 #define __SYS_IO_H_INCLUDED__
13 
14 #include "SYS_API.h"
15 
16 // We only include these headers here because it is common for people to use
17 // fileno() with SYSisatty() which requires different platform-specific
18 // headers.
19 #ifdef WIN32
20  #include <io.h>
21 #else
22  #include <unistd.h>
23 #endif
24 
25 
26 /// Platform-independent version of isatty()
27 SYS_API extern bool SYSisatty(int fd);
28 
29 /// Synonym for SYSisatty(fileno(stdin))
30 SYS_API extern bool SYSisStdinTTY();
31 
32 /// Synonym for SYSisatty(fileno(stdout))
33 SYS_API extern bool SYSisStdoutTTY();
34 
35 /// Synonym for SYSisatty(fileno(stderr))
36 SYS_API extern bool SYSisStderrTTY();
37 
38 #endif // __SYS_IO_H_INCLUDED__
SYS_API bool SYSisStdoutTTY()
Synonym for SYSisatty(fileno(stdout))
SYS_API bool SYSisStderrTTY()
Synonym for SYSisatty(fileno(stderr))
SYS_API bool SYSisatty(int fd)
Platform-independent version of isatty()
SYS_API bool SYSisStdinTTY()
Synonym for SYSisatty(fileno(stdin))
#define SYS_API
Definition: SYS_API.h:11
GLuint64 GLenum GLint fd
Definition: RE_OGL.h:262