public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
@ 2020-10-29 17:24 Andrew Fish
  2020-10-30  1:34 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Fish @ 2020-10-29 17:24 UTC (permalink / raw)
  To: edk2-devel-groups-io

[-- 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 --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 回复: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-29 17:24 Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX? Andrew Fish
@ 2020-10-30  1:34 ` gaoliming
  2020-10-30  1:37   ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: gaoliming @ 2020-10-30  1:34 UTC (permalink / raw)
  To: devel, afish

[-- Attachment #1: Type: text/plain, Size: 889 bytes --]

This macro is added to resolve the limitation on WINDOWS OS for the length
of entire file path can’t be larger than 255. It use the hard code 500,
because 500 is enough for most case. Do you meet with the problem that the
file path length exceeds 500?

 

Thanks

Liming

发件人: bounce+27952+66762+4905953+8761045@groups.io
<bounce+27952+66762+4905953+8761045@groups.io> 代表 Andrew Fish via
groups.io
发送时间: 2020年10月30日 1:24
收件人: edk2-devel-groups-io <devel@edk2.groups.io>
主题: [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. 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/Comm
onLib.h#L17

 

Thanks,

 

Andrew Fish




[-- Attachment #2: Type: text/html, Size: 4678 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  1:34 ` 回复: [edk2-devel] " gaoliming
@ 2020-10-30  1:37   ` Andrew Fish
  2020-10-30  2:25     ` 回复: " gaoliming
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Fish @ 2020-10-30  1:37 UTC (permalink / raw)
  To: gaoliming; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]



> On Oct 29, 2020, 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’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?
>

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

Thanks,

Andrew Fish

> Thanks
> Liming
> 发件人: bounce+27952+66762+4905953+8761045@groups.io <bounce+27952+66762+4905953+8761045@groups.io> 代表 Andrew Fish via groups.io
> 发送时间: 2020年10月30日 1:24
> 收件人: edk2-devel-groups-io <devel@edk2.groups.io>
> 主题: [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. 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: 7053 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 回复: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  1:37   ` Andrew Fish
@ 2020-10-30  2:25     ` gaoliming
  2020-10-30  2:27       ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: gaoliming @ 2020-10-30  2:25 UTC (permalink / raw)
  To: devel, afish

[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]

Andrew:

 Windows defines _MAX_PATH macro. But, its value is 260. It is not enough. To fix your issue, MAX_LONG_FILE_PATH can be updated as below. 

 

#ifdef PATH_MAX

#define MAX_LONG_FILE_PATH PATH_MAX

#else

#define MAX_LONG_FILE_PATH 500

#endif

 

Thanks

Liming

发件人: bounce+27952+66793+4905953+8761045@groups.io <bounce+27952+66793+4905953+8761045@groups.io> 代表 Andrew Fish via groups.io
发送时间: 2020年10月30日 9:37
收件人: gaoliming <gaoliming@byosoft.com.cn>
抄送: devel@edk2.groups.io
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

 





On Oct 29, 2020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

This macro is added to resolve the limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?

 

 

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

 

Thanks,

 

Andrew Fish





Thanks

Liming

发件人: bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io>  <bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io> 
发送时间: 2020年10月30日 1:24
收件人: edk2-devel-groups-io <devel@edk2.groups.io <mailto:devel@edk2.groups.io> >
主题: [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. 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

 

Thanks,

 

Andrew Fish

 




[-- Attachment #2: Type: text/html, Size: 10969 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  2:25     ` 回复: " gaoliming
@ 2020-10-30  2:27       ` Andrew Fish
  2020-10-30  2:53         ` 回复: " gaoliming
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Fish @ 2020-10-30  2:27 UTC (permalink / raw)
  To: devel, gaoliming

[-- Attachment #1: Type: text/plain, Size: 2410 bytes --]



> On Oct 29, 2020, at 7:25 PM, gaoliming <gaoliming@byosoft.com.cn> wrote:
> 
> Andrew:
>  Windows defines _MAX_PATH macro. But, its value is 260. It is not enough. To fix your issue, MAX_LONG_FILE_PATH can be updated as below. 
>

OK I’ll file a BZ. It may also require adding an include?

Thanks,

Andrew Fish

> #ifdef PATH_MAX
> #define MAX_LONG_FILE_PATH PATH_MAX
> #else
> #define MAX_LONG_FILE_PATH 500
> #endif
>
> Thanks
> Liming
> 发件人: bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io> <bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io>> 代表 Andrew Fish via groups.io <http://groups.io/>
> 发送时间: 2020年10月30日 9:37
> 收件人: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>>
> 抄送: devel@edk2.groups.io <mailto:devel@edk2.groups.io>
> 主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
>
>
> 
> 
> On Oct 29, 2020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>> wrote:
>
> This macro is added to resolve the limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?
>
>
> Yes locally we have changed it to PATH_MAX to fix a build break we hit. Does Windows support PATH_MAX?
>
> Thanks,
>
> Andrew Fish
> 
> 
> Thanks
> Liming
> 发件人: bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io> <bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io>> 代表 Andrew Fish via groups.io <http://groups.io/>
> 发送时间: 2020年10月30日 1:24
> 收件人: edk2-devel-groups-io <devel@edk2.groups.io <mailto:devel@edk2.groups.io>>
> 主题: [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. 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: 16518 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 回复: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  2:27       ` Andrew Fish
@ 2020-10-30  2:53         ` gaoliming
  2020-10-30  2:54           ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: gaoliming @ 2020-10-30  2:53 UTC (permalink / raw)
  To: devel, afish

[-- Attachment #1: Type: text/plain, Size: 2871 bytes --]

Yes. #include <limits.h> is required for PATH_MAX

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

 

 

发件人: bounce+27952+66797+4905953+8761045@groups.io <bounce+27952+66797+4905953+8761045@groups.io> 代表 Andrew Fish via groups.io
发送时间: 2020年10月30日 10:28
收件人: devel@edk2.groups.io; gaoliming@byosoft.com.cn
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

 





On Oct 29, 2020, at 7:25 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

Andrew:

 Windows defines _MAX_PATH macro. But, its value is 260. It is not enough. To fix your issue, MAX_LONG_FILE_PATH can be updated as below. 

 

 

OK I’ll file a BZ. It may also require adding an include?

 

Thanks,

 

Andrew Fish





#ifdef PATH_MAX

#define MAX_LONG_FILE_PATH PATH_MAX

#else

#define MAX_LONG_FILE_PATH 500

#endif

 

Thanks

Liming

发件人: bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io>  <bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io/> 
发送时间: 2020年10月30日 9:37
收件人: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> >
抄送: devel@edk2.groups.io <mailto:devel@edk2.groups.io> 
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

 






On Oct 29, 2020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

This macro is added to resolve the limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?

 

 

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

 

Thanks,

 

Andrew Fish






Thanks

Liming

发件人: bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io>  <bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io/> 
发送时间: 2020年10月30日 1:24
收件人: edk2-devel-groups-io <devel@edk2.groups.io <mailto:devel@edk2.groups.io> >
主题: [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. 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

 

Thanks,

 

Andrew Fish

 

 




[-- Attachment #2: Type: text/html, Size: 16070 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  2:53         ` 回复: " gaoliming
@ 2020-10-30  2:54           ` Andrew Fish
  2020-10-30  3:10             ` 回复: " gaoliming
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Fish @ 2020-10-30  2:54 UTC (permalink / raw)
  To: gaoliming; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 3413 bytes --]

Does that work on Windows? 

Thanks,

Andrew Fish

> On Oct 29, 2020, at 7:53 PM, gaoliming <gaoliming@byosoft.com.cn> wrote:
> 
> Yes. #include <limits.h> is required for PATH_MAX
> https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html>
>
>
> 发件人: bounce+27952+66797+4905953+8761045@groups.io <mailto:bounce+27952+66797+4905953+8761045@groups.io> <bounce+27952+66797+4905953+8761045@groups.io <mailto:bounce+27952+66797+4905953+8761045@groups.io>> 代表 Andrew Fish via groups.io <http://groups.io/>
> 发送时间: 2020年10月30日 10:28
> 收件人: devel@edk2.groups.io <mailto:devel@edk2.groups.io>; gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>
> 主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
>
>
> 
> 
>> On Oct 29, 2020, at 7:25 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>> wrote:
>>
>> Andrew:
>>  Windows defines _MAX_PATH macro. But, its value is 260. It is not enough. To fix your issue, MAX_LONG_FILE_PATH can be updated as below. 
>>
>
> OK I’ll file a BZ. It may also require adding an include?
>
> Thanks,
>
> Andrew Fish
> 
> 
>> #ifdef PATH_MAX
>> #define MAX_LONG_FILE_PATH PATH_MAX
>> #else
>> #define MAX_LONG_FILE_PATH 500
>> #endif
>>
>> Thanks
>> Liming
>> 发件人: bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io> <bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io>> 代表 Andrew Fish via groups.io <http://groups.io/>
>> 发送时间: 2020年10月30日 9:37
>> 收件人: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>>
>> 抄送: devel@edk2.groups.io <mailto:devel@edk2.groups.io>
>> 主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
>>
>>
>> 
>> 
>> 
>>> On Oct 29, 2020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn>> wrote:
>>>
>>> This macro is added to resolve the limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?
>>>
>>
>> Yes locally we have changed it to PATH_MAX to fix a build break we hit. Does Windows support PATH_MAX?
>>
>> Thanks,
>>
>> Andrew Fish
>> 
>> 
>> 
>>> Thanks
>>> Liming
>>> 发件人: bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io> <bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io>> 代表 Andrew Fish via groups.io <http://groups.io/>
>>> 发送时间: 2020年10月30日 1:24
>>> 收件人: edk2-devel-groups-io <devel@edk2.groups.io <mailto:devel@edk2.groups.io>>
>>> 主题: [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. 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: 24027 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* 回复: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?
  2020-10-30  2:54           ` Andrew Fish
@ 2020-10-30  3:10             ` gaoliming
  0 siblings, 0 replies; 8+ messages in thread
From: gaoliming @ 2020-10-30  3:10 UTC (permalink / raw)
  To: 'Andrew Fish'; +Cc: devel

[-- Attachment #1: Type: text/plain, Size: 3671 bytes --]

No. It doesn’t work on Windows. So, need to include it on non Windows OS. 

 

#ifndef _WIN32

#include <limits.h>

#endif

 

Thanks

Liming

发件人: Andrew Fish <afish@apple.com> 
发送时间: 2020年10月30日 10:55
收件人: gaoliming <gaoliming@byosoft.com.cn>
抄送: devel@edk2.groups.io
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

Does that work on Windows? 

 

Thanks,

 

Andrew Fish





On Oct 29, 2020, at 7:53 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

Yes. #include <limits.h> is required for PATH_MAX

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

 

 

发件人: bounce+27952+66797+4905953+8761045@groups.io <mailto:bounce+27952+66797+4905953+8761045@groups.io>  <bounce+27952+66797+4905953+8761045@groups.io <mailto:bounce+27952+66797+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io/> 
发送时间: 2020年10月30日 10:28
收件人: devel@edk2.groups.io <mailto:devel@edk2.groups.io> ; gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> 
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

 






On Oct 29, 2020, at 7:25 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

Andrew:

 Windows defines _MAX_PATH macro. But, its value is 260. It is not enough. To fix your issue, MAX_LONG_FILE_PATH can be updated as below. 

 

 

OK I’ll file a BZ. It may also require adding an include?

 

Thanks,

 

Andrew Fish






#ifdef PATH_MAX

#define MAX_LONG_FILE_PATH PATH_MAX

#else

#define MAX_LONG_FILE_PATH 500

#endif

 

Thanks

Liming

发件人: bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io>  <bounce+27952+66793+4905953+8761045@groups.io <mailto:bounce+27952+66793+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io/> 
发送时间: 2020年10月30日 9:37
收件人: gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> >
抄送: devel@edk2.groups.io <mailto:devel@edk2.groups.io> 
主题: Re: [edk2-devel] Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX?

 

 







On Oct 29, 2020, at 6:34 PM, gaoliming <gaoliming@byosoft.com.cn <mailto:gaoliming@byosoft.com.cn> > wrote:

 

This macro is added to resolve the limitation on WINDOWS OS for the length of entire file path can’t be larger than 255. It use the hard code 500, because 500 is enough for most case. Do you meet with the problem that the file path length exceeds 500?

 

 

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

 

Thanks,

 

Andrew Fish







Thanks

Liming

发件人: bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io>  <bounce+27952+66762+4905953+8761045@groups.io <mailto:bounce+27952+66762+4905953+8761045@groups.io> > 代表 Andrew Fish via groups.io <http://groups.io/> 
发送时间: 2020年10月30日 1:24
收件人: edk2-devel-groups-io <devel@edk2.groups.io <mailto:devel@edk2.groups.io> >
主题: [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. 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

 

Thanks,

 

Andrew Fish

 

 



 


[-- Attachment #2: Type: text/html, Size: 20912 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-30  3:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-29 17:24 Why is MAX_LONG_FILE_PATH 500 vs. PATH_MAX? Andrew Fish
2020-10-30  1:34 ` 回复: [edk2-devel] " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox