Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jwilk
9y ago
0 comments
Save
Share
ncfd = open("/dev/nyancat", O_RDONLY); while (...) { sendfile(sockfd, ncfd, ...); }
0 comments
1 comments · 1 top-level
top
newest
oldest
nobodyorother
9y ago
No way you can open the nyancat device as read-only. Clearly, it only opens as O_ORLY.
j
/
k
navigate · click thread line to collapse