1 //===-- Platform.h ----------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef lldb_Platform_h_
10 #define lldb_Platform_h_
18 #include "lldb/Host/windows/windows.h"
25 typedef unsigned char cc_t;
26 typedef unsigned int speed_t;
27 typedef unsigned int tcflag_t;
33 #define TIOCGWINSZ 0x5413
41 // tcsetattr arguments
46 tcflag_t c_iflag; // input mode flags
47 tcflag_t c_oflag; // output mode flags
48 tcflag_t c_cflag; // control mode flags
49 tcflag_t c_lflag; // local mode flags
50 cc_t c_line; // line discipline
51 cc_t c_cc[NCCS]; // control characters
52 speed_t c_ispeed; // input speed
53 speed_t c_ospeed; // output speed
62 #define PATH_MAX MAX_PATH
65 #define STDIN_FILENO 0
67 extern int ioctl(int d, int request, ...);
68 extern int kill(pid_t pid, int sig);
69 extern int tcsetattr(int fd, int optional_actions,
70 const struct termios *termios_p);
71 extern int tcgetattr(int fildes, struct termios *termios_p);
77 #include <sys/ioctl.h>
85 #endif // lldb_Platform_h_