Re: [Oorexx-devel] MAXIMUM_FILENAME_LENGTH and more

2019-03-07 Thread Enrico Sorichetti via Oorexx-devel
You are the expert on that! I just cloned the logic already implemented for maxpathlength Enrico PS. For my education I will try to implement both of them as methods of the .File class In my sandbox > On 7 Mar 2019, at 23:27, Rick McGuire wrote: > > Would really work better as a class

Re: [Oorexx-devel] MAXIMUM_FILENAME_LENGTH and more

2019-03-07 Thread Rick McGuire
Would really work better as a class method of the .File class rather than on RexxInfo. That's where we tend to put file system related stuff. Rick On Thu, Mar 7, 2019 at 5:22 PM Enrico Sorichetti via Oorexx-devel < oorexx-devel@lists.sourceforge.net> wrote: > Here is the patch to > fix the

Re: [Oorexx-devel] MAXIMUM_FILENAME_LENGTH and more

2019-03-07 Thread Enrico Sorichetti via Oorexx-devel
Here is the patch to fix the MAXIMUM_FILENAME_LENGTH glitch Implement .RexxInfo~getMaxFileNameLength [enrico@enrico-imac tests]$rexx -e "say .rexxinfo~maxfilenamelength" 255 [enrico@enrico-imac tests]$rexx -e "say .rexxinfo~maxpathlength" 1024 [enrico@enrico-imac tests]$ Index:

[Oorexx-devel] MAXIMUM_FILENAME_LENGTH and more

2019-03-07 Thread Enrico Sorichetti via Oorexx-devel
POINT ONE The logic to determine the MAXIMUM_FILENAME_LENGTH is broken the relevant code form the rexx sources #include #include #if defined(PATH_MAX) # define MAXIMUM_PATH_LENGTH PATH_MAX + 1 #elif defined(_POSIX_PATH_MAX) # define MAXIMUM_PATH_LENGTH _POSIX_PATH_MAX + 1 #else # define