home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 263,277 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Craig A. Berry   
   Re: Unix stat on VMS   
   07 Sep 25 18:46:12   
   
   From: arne@vajhoej.dk   
      
   On 9/7/2025 5:33 PM, Craig A. Berry wrote:   
   >>> Waldek Hebisch  wrote:   
   >>>> And fundamental thing: Posix promises that two files are in   
   >>>> fact the same file if and only if both 'st_dev' field and   
   >>>> 'st_ino' fields match.  And libgfortran depends on this.   
   >>>> Does it hold on VMS?   
   > If st_ino is an integral type, then I think the answer is yes.  If it's   
   > the array type, then it probably depends on who's doing the comparisons.   
   > If you pass the stat structure to existing code that does the   
   > comparison, it may or may not handle the array correctly.   
      
   I believe it contains FID.   
      
   Same disk and same FID must mean same file.   
      
   Different file must mean either different disk or different FID.   
      
   So either 3 comparisons of int16_t or one comparison of int64_t   
   should do it. Assuming that the last 16 bit of the int64_t always   
   has same value (like 0).   
      
   Arne   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca