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 //===----------------------------------------------------------------------===//
17 #include "lldb/Host/HostGetOpt.h"
18 #include "lldb/Host/windows/windows.h"
24 typedef unsigned char cc_t;
25 typedef unsigned int speed_t;
26 typedef unsigned int tcflag_t;
28 // fcntl.h // This is not used by MI
32 #define TIOCGWINSZ 0x5413
34 // tcsetattr arguments
39 tcflag_t c_iflag; // input mode flags
40 tcflag_t c_oflag; // output mode flags
41 tcflag_t c_cflag; // control mode flags
42 tcflag_t c_lflag; // local mode flags
43 cc_t c_line; // line discipline
44 cc_t c_cc[NCCS]; // control characters
45 speed_t c_ispeed; // input speed
46 speed_t c_ospeed; // output speed
51 #define STDIN_FILENO 0
52 #define PATH_MAX 32768
53 #define snprintf _snprintf
55 extern int ioctl(int d, int request, ...);
56 extern int kill(pid_t pid, int sig);
57 extern int tcsetattr(int fd, int optional_actions,
58 const struct termios *termios_p);
59 extern int tcgetattr(int fildes, struct termios *termios_p);
61 // signal handler function pointer type
62 typedef void (*sighandler_t)(int);
64 // CODETAG_IOR_SIGNALS
66 #define SIGQUIT 3 // Terminal quit signal
67 #define SIGKILL 9 // Kill (cannot be caught or ignored)
68 #define SIGPIPE 13 // Write on a pipe with no one to read it
69 #define SIGCONT 18 // Continue executing, if stopped.
70 #define SIGTSTP 20 // Terminal stop signal
71 #define SIGSTOP 23 // Stop executing (cannot be caught or ignored)
72 #define SIGWINCH 28 // (== SIGVTALRM)
81 #include <sys/ioctl.h>