@einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev • 12 days agoultimate storage hacksh.itjust.worksimagemessage-square77fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageultimate storage hacksh.itjust.works@einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev • 12 days agomessage-square77fedilink
minus-squareBrahvim BhaktvatsallinkfedilinkisiZulu0•edit-211 days ago…Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?
minus-square@barsoap@lemm.eelinkfedilink0•11 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.
…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.