Added a temporary isatty() implementation (just checks for the fd number for now).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3144 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,6 +17,7 @@ KernelMergeObject posix_unistd.o :
|
||||
<$(SOURCE_GRIST)>open.c
|
||||
<$(SOURCE_GRIST)>read.c
|
||||
<$(SOURCE_GRIST)>sleep.c
|
||||
<$(SOURCE_GRIST)>terminal.c
|
||||
<$(SOURCE_GRIST)>truncate.c
|
||||
<$(SOURCE_GRIST)>usergroup.c
|
||||
<$(SOURCE_GRIST)>usleep.c
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int
|
||||
isatty(int file)
|
||||
{
|
||||
// ToDo: please fix me!
|
||||
return file < 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user