3 ms·
ncfd = open("/dev/nyancat", O_RDONLY); while (...) { sendfile(sockfd, ncfd, ...); }
by jwilk 9y ago
ncfd = open("/dev/nyancat", O_RDONLY);
while (...) {
sendfile(sockfd, ncfd, ...);
}
- nobodyorother 9y agoNo way you can open the nyancat device as read-only. Clearly, it only opens as O_ORLY.