einfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 11 months agoultimate storage hacksh.itjust.worksexternal-linkmessage-square79linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkultimate storage hacksh.itjust.workseinfach_orangensaft@sh.itjust.works to Programmer Humor@programming.dev · 11 months agomessage-square79linkfedilink
minus-squareBrahvim@lemmy.kde.sociallinkfedilinkisiZuluarrow-up0·edit-211 months ago…Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?
minus-squarebarsoap@lemm.eelinkfedilinkarrow-up0·11 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.
…Just asking, just asking: Why is the default
FILENAME_MAXon 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.