! Fixed the root Makefile
[lightOS.git] / lib / curses / termios.c
blob807efc6d4352c6bae381b2e50d959bd06374ed88
1 /*
2 lightOS libunix
3 Copyright (C) 2007-2008 Jörg Pfähler
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 #include <termios.h>
20 #include <libOS/LIBUNIX_glue.h>
22 // TODO
23 #include <libOS/LIBC_glue.h>
24 #include <stdlib.h>
26 int tcgetattr(int fildes, struct termios *termios_p)
28 _LIBOS_WARNING("libunix", "not implemented");
30 // Get the FILE structure
31 FILE *File = _LIBUNIX_get_file(fildes);
32 if (File == NULL)
34 // TODO: set errno
35 return -1;
38 return 0;
40 int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p)
42 _LIBOS_WARNING("libunix", "not implemented");
44 // Get the FILE structure
45 FILE *File = _LIBUNIX_get_file(fildes);
46 if (File == NULL)
48 // TODO: set errno
49 return -1;
52 return 0;