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,263 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Waldek Hebisch    |
|    Re: Unix stat on VMS    |
|    07 Sep 25 11:29:35    |
      From: arne@vajhoej.dk              On 9/7/2025 11:03 AM, Waldek Hebisch wrote:       > As I wrote I am trying to compile gcc-15 cross-compiler targeting       > VMS. I now have trouble with libgfortran. Namely libgfortran       > tries to use Posix compatiblity to perform some file operations.       > I have trouble with st_ino filed in 'struct stat'. Code below       > ilustrates the problem. I am getting warning from VMS C compiler:       >       > mp->st_ino = sb.st_ino;       > ....^       > %CC-W-CVTDIFTYPES, In this statement, "sb.st_ino" of type "pointer to       unsigned s       > hort", is being converted to "unsigned short".       >       >       > mp->st_ino = sb.st_ino;       > .................^       > %CC-W-MAYLOSEDATA, In this statement, "sb.st_ino" has a larger data size       than "u       > nsigned short". Assignment can result in data loss.       >       > While this is only a warning in VMS C, such thing may indicate serious       > problem. Also, I tried to print 'sizeof(sb.st_ino)' and       > 'sizeof(unsigned short *)'. The results are 6 and 4 respecitvely.       > So size of type reported above does not match with size of 'sb.st_ino'.              > #include |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca