gettermmode.cpp 1.18 KB
Newer Older
1
/*******************************************************************************
2

3
	Copyright(C) Jonas 'Sortie' Termansen 2012.
4 5 6 7 8 9 10 11 12 13

	This file is part of LibMaxsi.

	LibMaxsi is free software: you can redistribute it and/or modify it under
	the terms of the GNU Lesser General Public License as published by the Free
	Software Foundation, either version 3 of the License, or (at your option)
	any later version.

	LibMaxsi is distributed in the hope that it will be useful, but WITHOUT ANY
	WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 15
	FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
	details.
16 17 18 19

	You should have received a copy of the GNU Lesser General Public License
	along with LibMaxsi. If not, see <http://www.gnu.org/licenses/>.

20 21
	gettermmode.cpp
	Gets the terminal modes.
22

23
*******************************************************************************/
24

25 26
#include <libmaxsi/platform.h>
#include <libmaxsi/syscall.h>
27 28
#include <sys/termmode.h>

29 30 31 32 33
namespace Maxsi {

DEFN_SYSCALL2(int, sys_gettermmode, SYSCALL_GETTERMMODE, int, unsigned*);

extern "C" int gettermmode(int fd, unsigned* mode)
34
{
35
	return sys_gettermmode(fd, mode);
36
}
37 38

} // namespace Maxsi