@0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish • 17 hours agoTheoretical physicists: Actually...sh.itjust.worksimagemessage-square29fedilinkarrow-up1258arrow-down12
arrow-up1256arrow-down1imageTheoretical physicists: Actually...sh.itjust.works@0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish • 17 hours agomessage-square29fedilink
minus-square@m_f@midwest.sociallinkfedilink16•14 hours 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-squareTimeSquirrellinkfedilink13•13 hours agoSo it’s basically doing nothing and lying about it. 😆
minus-squareTaldenNZlinkfedilinkEnglish9•12 hours 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-square@0x4E4F@sh.itjust.worksOPlinkfedilinkEnglish2•8 hours agoCould’ve at least say thank you…
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…