• Brahvim Bhaktvatsal
    link
    isiZulu
    1
    edit-2
    1 month ago

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

    • @[email protected]
      cake
      link
      fedilink
      21 month 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 Bhaktvatsal
        link
        isiZulu
        11 month ago

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

OSZAR »