From 6067b80c95ee1e027001e08b4cc899664f1ca436 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 8 Dec 2014 17:39:24 +0100 Subject: minor adaption for ncurses --- packages/ncurses-5.9/README | 1 + userspace/sys/sys.c | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ncurses-5.9/README b/packages/ncurses-5.9/README index 955b60a..a723682 100644 --- a/packages/ncurses-5.9/README +++ b/packages/ncurses-5.9/README @@ -3,4 +3,5 @@ 3. exchange config.sub (just add foolos) and add +x 4. put termios.h in sysroot/usr/include/sys 5. ./configure --host=i686-foolos --without-tests --with-fallbacks=xterm +(or $ ./configure --host=i686-foolos --without-tests --with-fallbacks=xterm --with-debug CFLAGS="-gstabs -O0" CXXFLAGS="-gstabs -O0" 6. make diff --git a/userspace/sys/sys.c b/userspace/sys/sys.c index fa96ba4..25dff7b 100644 --- a/userspace/sys/sys.c +++ b/userspace/sys/sys.c @@ -117,10 +117,13 @@ int chdir (const char *pathname) return -1; } +// TODO; check if this is allright for not-real serial line!? +// http://www.chemie.fu-berlin.de/chemnet/use/info/libc/libc_12.html#SEC242 +// here they write something about padding may be affected? experiment. speed_t cfgetospeed(const struct termios *termios_p) { - printf("UNIMPL: cfgetospeed\n"); - return 1; +// printf("UNIMPL: cfgetospeed\n"); + return 9600; } char *ttyname(int fd) -- cgit v1.2.3