@[email protected] to Programmer [email protected] • 4 months agoultimate storage hacksh.itjust.worksimagemessage-square90fedilinkarrow-up1889
arrow-up1889imageultimate storage hacksh.itjust.works@[email protected] to Programmer [email protected] • 4 months agomessage-square90fedilink
minus-squareBrahvim BhaktvatsallinkfedilinkisiZulu1•edit-24 months ago…Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?
minus-square@[email protected]linkfedilink2•4 months 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•4 months 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.