sionescu / iolib

Common Lisp I/O library
http://common-lisp.net/project/iolib/
MIT License
141 stars 31 forks source link

Add fd-tty-p for isatty() #9

Closed jasom closed 10 years ago

sionescu commented 10 years ago
  1. Please use the standard macro indentation for defsyscall, e.g. like the one preceding your addition
  2. Also add a check to GET-FILE-KIND in src/os/os-unix.lisp that if the file mode is S-IFCHR and it's a TTY then :TTY gets returned as second value
jasom commented 10 years ago

Fixed the indentation. Would need to do delving into device major/minor numbers to change get-file-kind.