einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 2 days agoultimate storage hacksh.itjust.worksexternal-linkmessage-square82fedilinkarrow-up1879arrow-down122
arrow-up1857arrow-down1external-linkultimate storage hacksh.itjust.workseinfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 2 days agomessage-square82fedilink
minus-squareBrahvim Bhaktvatsal@lemmy.kde.sociallinkfedilinkisiZuluarrow-up1·edit-219 hours ago…Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?
minus-squarebarsoap@lemm.eelinkfedilinkarrow-up1·14 hours 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.