• Brahvim
    link
    fedilink
    isiZulu
    arrow-up
    1
    ·
    9 months ago

    …Just asking, just asking: Why is the default FILENAME_MAX on Linux/glibc 4096?

    • barsoap@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      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.

      • Brahvim
        link
        fedilink
        isiZulu
        arrow-up
        1
        ·
        8 months ago

        Thanks! Got an answer and not 200 downvotes. This is why I love Lemm-Lemm.