@einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev • 22 days agoultimate storage hacksh.itjust.worksimagemessage-square81fedilinkarrow-up1879arrow-down10
arrow-up1879arrow-down1imageultimate storage hacksh.itjust.works@einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev • 22 days agomessage-square81fedilink
minus-squareBrahvim BhaktvatsallinkfedilinkisiZulu1•edit-221 days ago…Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?
minus-square@barsoap@lemm.eelinkfedilink2•20 days agoBecause PATH_MAX is? Also because it’s a 4k page. FILENAME_MAX is not safe to use for buffer allocations btw it could be INT_MAX.
minus-squareBrahvim BhaktvatsallinkfedilinkisiZulu1•19 days agoThanks! Got an answer and not 200 downvotes. This is why I love Lemm-Lemm.
…Just asking, just asking: Why is the default
FILENAME_MAX
on Linux/glibc4096
?Because PATH_MAX is? Also because it’s a 4k page.
FILENAME_MAX is not safe to use for buffer allocations btw it could be INT_MAX.
Thanks! Got an answer and not 200 downvotes. This is why I love Lemm-Lemm.