Direct _ioctl to libc plugin interface

Removed dummy implementation of '_ioctl'. This function is called
internally within the libc, i.e., by 'tcgetattr'. For running
libreadline in Noux, we need to hook into those ioctl operations via
the libc plugin interface.
This commit is contained in:
Norman Feske 2011-12-26 20:08:58 +01:00
parent 20213e2c76
commit d09c7e699e
3 changed files with 5 additions and 21 deletions

View File

@ -10,7 +10,7 @@ LIBS += timed_semaphore cxx
# Back end
#
SRC_CC = atexit.cc dummies.cc rlimit.cc sysctl.cc readlink.cc munmap.cc \
issetugid.cc errno.cc gai_strerror.cc ioctl.cc clock_gettime.cc \
issetugid.cc errno.cc gai_strerror.cc clock_gettime.cc \
gettimeofday.cc malloc.cc progname.cc fd_alloc.cc file_operations.cc \
plugin.cc plugin_registry.cc select.cc exit.cc environ.cc

View File

@ -226,6 +226,10 @@ extern "C" int ioctl(int libc_fd, int request, char *argp) {
FD_FUNC_WRAPPER(ioctl, libc_fd, request, argp); }
extern "C" int _ioctl(int libc_fd, int request, char *argp) {
FD_FUNC_WRAPPER(ioctl, libc_fd, request, argp); }
extern "C" int listen(int libc_fd, int backlog) {
FD_FUNC_WRAPPER(listen, libc_fd, backlog); }

View File

@ -1,20 +0,0 @@
/*
* \brief C-library back end
* \author Norman Feske
* \date 2008-11-11
*/
/*
* Copyright (C) 2008-2011 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#include "libc_debug.h"
extern "C" void _ioctl()
{
raw_write_str("_ioctl called, not yet implemented!\n");
}