[perl #42312] src/pmc/os.pmc: bad use of stat(2) and lstat(2)

Rolf Grossmann rg at progtech.net
Sun Apr 19 17:37:05 UTC 2009


Vasily Chekalkin via RT wrote:
> On Thu Apr 05 07:50:05 2007, nahoo wrote:
>   
>> in src/pmc/os.pmc after retrieving the information of a file with stat
>> or lstat
>> all the fields are stored in an array of integers. However, the
>> element st_rdev
>> is a long int (linux and solaris at least). Then the statements like
>>
>>            VTABLE_set_integer_keyed_int(interp, array, 6,
>>                                          info.st_rdev)
> Currently Parrot's INTVAL is typedef for long. Can someone reproduce
> initial failure on Solaris? (And close ticket if problem solved).
>   
I forgot to cc parrot-dev. I've verified that the problem doesn't exist 
anymore and got moritz to close the ticket.

Here's what I wrote in the ticket:

You are correct, the described problem does not exist anymore. The test
still has a problem on solaris, though, which (as indicated by the skip
marker) is noted in TT #457. So this ticket can indeed be closed (just
not by me for lack of permissions).

RG.



More information about the parrot-dev mailing list