3 ms·
Please just call Fstat and check Stat_t.Mode & S_IFCHR
by ksherlock 12y ago
Please just call Fstat and check Stat_t.Mode & S_IFCHR
- burke 12y agoWow, that's a lot easier than the OS-dependent Syscall6 crap with termios from the "real" solutions I've seen.