1 //===-- Platform.cpp --------------------------------------------*- 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 // this file is only relevant for Visual C++
20 ioctl (int d, int request, ...)
24 // request the console windows size
29 // locate the window size structure on stack
30 winsize *ws = va_arg(vl, winsize*);
31 // get screen buffer information
32 CONSOLE_SCREEN_BUFFER_INFO info;
33 if ( GetConsoleScreenBufferInfo( GetStdHandle( STD_OUTPUT_HANDLE ), &info ) == TRUE )
34 // fill in the columns
35 ws->ws_col = info.dwMaximumWindowSize.X;
41 assert( !"Not implemented!" );
47 kill (pid_t pid, int sig)
49 // is the app trying to kill itself
50 if ( pid == getpid( ) )
53 assert( !"Not implemented!" );
58 tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
60 assert( !"Not implemented!" );
65 tcgetattr (int fildes, struct termios *termios_p)
67 // assert( !"Not implemented!" );
68 // error return value (0=success)