0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 28 days agoTheoretical physicists: Actually...sh.itjust.worksimagemessage-square32fedilinkarrow-up1349arrow-down12
arrow-up1347arrow-down1imageTheoretical physicists: Actually...sh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 28 days agomessage-square32fedilink
minus-squarem_f@midwest.sociallinkfedilinkarrow-up20·28 days agoI was also curious, here’s a good answer: https://unix.stackexchange.com/questions/670199/how-is-dev-null-implemented The implementation is: static ssize_t write_null(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { return count; }
minus-squareTimeSquirrel@kbin.melroy.orglinkfedilinkarrow-up16·28 days agoSo it’s basically doing nothing and lying about it. 😆
minus-squareTaldenNZ@lemmy.nzlinkfedilinkEnglisharrow-up17·28 days ago“I accepted all of the bytes you gave me. I didn’t do anything with them, but I accept you gave them to me”.
minus-square0x4E4F@sh.itjust.worksOPlinkfedilinkEnglisharrow-up4·28 days agoCould’ve at least say thank you…
minus-squareTaldenNZ@lemmy.nzlinkfedilinkEnglisharrow-up2·27 days agoIt’s open source. If manners are an important feature to you perhaps look into contributing… :)
minus-square0x4E4F@sh.itjust.worksOPlinkfedilinkEnglisharrow-up2·26 days agoYeah, that could actually be fun to be honest, lol 😂. But I just know the PR would be rejected, lol 😂.
I was also curious, here’s a good answer:
https://unix.stackexchange.com/questions/670199/how-is-dev-null-implemented
The implementation is:
static ssize_t write_null(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { return count; }
So it’s basically doing nothing and lying about it. 😆
“I accepted all of the bytes you gave me. I didn’t do anything with them, but I accept you gave them to me”.
Could’ve at least say thank you…
It’s open source. If manners are an important feature to you perhaps look into contributing… :)
Yeah, that could actually be fun to be honest, lol 😂. But I just know the PR would be rejected, lol 😂.