Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 4921
Line 1... Line 1...
1
/* Reentrant versions of isatty system call.  */
1
/* Reentrant versions of isatty system call.  */
Line 2... Line 2...
2
 
2
 
3
#include 
3
#include 
4
#include 
4
#include 
5
#include <_syslist.h>
-
 
Line 6... Line 5...
6
#include 
5
#include <_syslist.h>
7
 
6
 
Line 8... Line 7...
8
/* Some targets provides their own versions of these functions.  Those
7
/* Some targets provides their own versions of these functions.  Those
Line 53... Line 52...
53
     struct _reent *ptr;
52
     struct _reent *ptr;
54
     int fd;
53
     int fd;
55
{
54
{
56
  int ret;
55
  int ret;
Line -... Line 56...
-
 
56
 
-
 
57
  errno = 0;
57
 
58
  if ((ret = _isatty (fd)) == -1 && errno != 0)
58
  ptr->_errno = ENOTTY ;
59
    ptr->_errno = errno;
59
  return 0;
60
  return ret;
Line 60... Line 61...
60
}
61
}