Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ksherlock
11y ago
0 comments
Save
Share
Please just call Fstat and check Stat_t.Mode & S_IFCHR
0 comments
1 comments · 1 top-level
top
newest
oldest
burke
11y ago
Wow, that's a lot easier than the OS-dependent Syscall6 crap with termios from the "real" solutions I've seen.
j
/
k
navigate · click thread line to collapse