Hacker News new | ask | show | jobs
by ksherlock 4254 days ago
Please just call Fstat and check Stat_t.Mode & S_IFCHR
1 comments

Wow, that's a lot easier than the OS-dependent Syscall6 crap with termios from the "real" solutions I've seen.