1 //===-- Platform.h ----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef lldb_Platform_h_
11 #define lldb_Platform_h_
15 #include "lldb/Host/HostGetOpt.h"
21 #include "lldb/Host/windows/windows.h"
28 typedef unsigned char cc_t;
29 typedef unsigned int speed_t;
30 typedef unsigned int tcflag_t;
36 #define TIOCGWINSZ 0x5413
44 // tcsetattr arguments
49 tcflag_t c_iflag; // input mode flags
50 tcflag_t c_oflag; // output mode flags
51 tcflag_t c_cflag; // control mode flags
52 tcflag_t c_lflag; // local mode flags
53 cc_t c_line; // line discipline
54 cc_t c_cc[NCCS]; // control characters
55 speed_t c_ispeed; // input speed
56 speed_t c_ospeed; // output speed
65 #define snprintf _snprintf
66 #define PATH_MAX MAX_PATH
69 #define STDIN_FILENO 0
71 extern int ioctl(int d, int request, ...);
72 extern int kill(pid_t pid, int sig);
73 extern int tcsetattr(int fd, int optional_actions,
74 const struct termios *termios_p);
75 extern int tcgetattr(int fildes, struct termios *termios_p);
78 #include "lldb/Host/HostGetOpt.h"
82 #include <sys/ioctl.h>
90 #endif // lldb_Platform_h_