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_TOOLS_DRIVER_PLATFORM_H
10 #define LLDB_TOOLS_DRIVER_PLATFORM_H
19 #include "lldb/Host/windows/windows.h"
21 #include <sys/types.h>
27 typedef unsigned char cc_t
;
28 typedef unsigned int speed_t
;
29 typedef unsigned int tcflag_t
;
35 #define TIOCGWINSZ 0x5413
43 // tcsetattr arguments
48 tcflag_t c_iflag
; // input mode flags
49 tcflag_t c_oflag
; // output mode flags
50 tcflag_t c_cflag
; // control mode flags
51 tcflag_t c_lflag
; // local mode flags
52 cc_t c_line
; // line discipline
53 cc_t c_cc
[NCCS
]; // control characters
54 speed_t c_ispeed
; // input speed
55 speed_t c_ospeed
; // output speed
64 #define PATH_MAX MAX_PATH
67 #define STDIN_FILENO 0
69 extern int ioctl(int d
, int request
, ...);
70 extern int kill(pid_t pid
, int sig
);
71 extern int tcsetattr(int fd
, int optional_actions
,
72 const struct termios
*termios_p
);
73 extern int tcgetattr(int fildes
, struct termios
*termios_p
);
79 #include <sys/ioctl.h>
87 #endif // LLDB_TOOLS_DRIVER_PLATFORM_H