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:
Axel Dörfler
2003-05-03 14:36:24 +00:00
parent be3d86f793
commit a0c16735c9
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -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;
}