From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp03.apple.com (ma1-aaemail-dr-lapp03.apple.com [17.171.2.72]) by mx.groups.io with SMTP id smtpd.web08.7153.1604021846932012466 for ; Thu, 29 Oct 2020 18:37:27 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=o3Jkw+M+; spf=pass (domain: apple.com, ip: 17.171.2.72, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp03.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp03.apple.com (8.16.0.42/8.16.0.42) with SMTP id 09U1SOAo059219; Thu, 29 Oct 2020 18:37:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=jJ/itQ9VkIr0d+YXpxFeJFnK4/KalEM27w8o8N6rxMo=; b=o3Jkw+M+JbLDhy8juK39tfHa7IhxdHNazHUA9YriVUeBbY7Qdr6FE8MTZDwdAWECgGKz AQmtAYXcYrIPTl3qfPQuoDIv3tb15LZIR/eGM4JTrOU8v2o1j20nEfEYj7Ql2adhAszx 22qvx7OimqWtyuu7M5XgzOMrcbwau9WWfldqYd6IIsEsnF5MYi7+AaJD1UGw3xcGHz4n ck+6ofl9ToUmUAJJNs3d1OADEMVehggwWIB9LQ85mtRRDXWmDNBQNG46U1/Q8FuQQPeg CpFMwODKhk01T4a4cZ3lT3/B2HfJYrzE7p0JT6Ud4VPoU3mrikCBiSdC5fO+1ZmPU9op 4Q== Received: from rn-mailsvcp-mta-lapp03.rno.apple.com (rn-mailsvcp-mta-lapp03.rno.apple.com [10.225.203.151]) by ma1-aaemail-dr-lapp03.apple.com with ESMTP id 34ck8wwkxe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 29 Oct 2020 18:37:19 -0700 Received: from rn-mailsvcp-mmp-lapp03.rno.apple.com (rn-mailsvcp-mmp-lapp03.rno.apple.com [17.179.253.16]) by rn-mailsvcp-mta-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPS id <0QIZ00Y9YR664440@rn-mailsvcp-mta-lapp03.rno.apple.com>; Thu, 29 Oct 2020 18:37:18 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp03.rno.apple.com by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) id <0QIZ00P00R29B900@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Thu, 29 Oct 2020 18:37:18 -0700 (PDT) X-Va-A: X-Va-T-CD: 36e7a95c5a6048d9c36308b131fa87c1 X-Va-E-CD: df66502e155e8c18bafc524ebbb8b71a X-Va-R-CD: 731b2809dde838f438dabc6fde0477d4 X-Va-CD: 0 X-Va-ID: 92acb017-d5b3-49b4-803c-310219c31ac4 X-V-A: X-V-T-CD: 36e7a95c5a6048d9c36308b131fa87c1 X-V-E-CD: df66502e155e8c18bafc524ebbb8b71a X-V-R-CD: 731b2809dde838f438dabc6fde0477d4 X-V-CD: 0 X-V-ID: c3a8408f-8fcd-47f3-bda4-4acf764348cf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-10-29_12:2020-10-29,2020-10-29 signatures=0 Received: from [17.235.35.78] (unknown [17.235.35.78]) by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPSA id <0QIZ00GCMR62G000@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Thu, 29 Oct 2020 18:37:15 -0700 (PDT) From: "Andrew Fish" Message-id: <8807A0D5-BEDB-45CB-A344-051A9274354D@apple.com> MIME-version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.1\)) Subject: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX? Date: Thu, 29 Oct 2020 18:37:13 -0700 In-reply-to: <004d01d6ae5c$e1228b10$a367a130$@byosoft.com.cn> Cc: devel@edk2.groups.io To: gaoliming References: <86A23533-E614-4B71-BA87-6BFF8338E0FA@apple.com> <004d01d6ae5c$e1228b10$a367a130$@byosoft.com.cn> X-Mailer: Apple Mail (2.3654.20.0.2.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-10-29_12:2020-10-29,2020-10-29 signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_6B2FB784-B3BD-4DCA-AA46-A29BCA5918BC" --Apple-Mail=_6B2FB784-B3BD-4DCA-AA46-A29BCA5918BC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 29, 2020, at 6:34 PM, gaoliming wrote: >=20 > This macro is added to resolve the limitation on WINDOWS OS for the leng= th of entire file path can=E2=80=99t be larger than 255. It use the hard co= de 500, because 500 is enough for most case. Do you meet with the problem t= hat the file path length exceeds 500? > Yes locally we have changed it to PATH_MAX to fix a build break we hit. Do= es Windows support PATH_MAX? Thanks, Andrew Fish > Thanks > Liming > =E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+66762+4905953+8761045@groups.i= o =E4=BB=A3=E8=A1=A8 Andrew = Fish via groups.io > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B410=E6=9C=8830=E6=97= =A5 1:24 > =E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io > =E4=B8=BB=E9=A2=98: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_= MAX? > > Does anyone know why MAX_LONG_FILE_PATH [1] is hard coded to 500 vs. usi= ng 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/Com= mon/CommonLib.h#L17 > > Thanks, > > Andrew Fish >=20 --Apple-Mail=_6B2FB784-B3BD-4DCA-AA46-A29BCA5918BC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Oct 29, 2= 020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn> wrote:

This macro is added to resolve the limitation on WINDOWS = OS for the length of entire file path can=E2=80=99t be larger than 255. It = use the hard code 500, because 500 is enough for most case. Do you meet wit= h the problem that the file path length exceeds 500?<= /span>
 

Yes locally we ha= ve changed it to PATH_MAX to fix a build break we hit. Does Windows support= PATH_MAX?

Thanks,

Andrew Fish

Thanks
Liming<= /div>
=E5=8F=91=E4=BB=B6=E4=BA=BA:=  bounce+27952+667= 62+4905953+8761045@groups.io <bounce+27952+66762+4905953+8761045@gro= ups.io> =E4=BB=A3=E8= =A1=A8 Andrew Fish via = groups.io
= =E5=8F=91= =E9=80=81=E6=97=B6=E9=97=B4:=  2020=E5=B9=B410<= /span>=E6=9C=8830=E6=97=A5 1= :24
=E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io <devel@edk2.groups.io>=E4=B8=BB=E9=A2=98: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs.= PATH_MAX?
 <= /div>
Does an= yone know why MAX_LONG_FILE_PATH [1] is hard coded to 500 vs. using th= e systems PATH_MAX?
 = ;
On Linux I think PATH_MAX is 4KiB and on macOS it is 1KiB.
 
 
 
Thanks,
 
Andrew Fish

--Apple-Mail=_6B2FB784-B3BD-4DCA-AA46-A29BCA5918BC--