From: "Andrew Fish" <afish@apple.com>
To: edk2-devel-groups-io <devel@edk2.groups.io>
Subject: Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
Date: Thu, 29 Oct 2020 10:24:03 -0700 [thread overview]
Message-ID: <86A23533-E614-4B71-BA87-6BFF8338E0FA@apple.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
Does anyone know why MAX_LONG_FILE_PATH [1] is hard coded to 500 vs. using the systems PATH_MAX?
On Linux I think PATH_MAX is 4KiB and on macOS it is 1KiB.
[1] https://github.com/tianocore/edk2/blob/master/BaseTools/Source/C/Common/CommonLib.h#L17 <https://github.com/tianocore/edk2/blob/master/BaseTools/Source/C/Common/CommonLib.h#L17>
Thanks,
Andrew Fish
[-- Attachment #2: Type: text/html, Size: 861 bytes --]
next reply other threads:[~2020-10-29 17:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-29 17:24 Andrew Fish [this message]
2020-10-30 1:34 ` 回复: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX? gaoliming
2020-10-30 1:37 ` Andrew Fish
2020-10-30 2:25 ` 回复: " gaoliming
2020-10-30 2:27 ` Andrew Fish
2020-10-30 2:53 ` 回复: " gaoliming
2020-10-30 2:54 ` Andrew Fish
2020-10-30 3:10 ` 回复: " gaoliming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86A23533-E614-4B71-BA87-6BFF8338E0FA@apple.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox