Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <libc/stubs.h>
  3. #include <unistd.h>
  4.  
  5. static char dev_con[] = "con";
  6.  
  7. /* ARGSUSED */
  8. char *
  9. ttyname(int fildes)
  10. {
  11.   if (isatty(fildes))
  12.     return dev_con;
  13.   else
  14.     return 0;
  15. }    
  16.