#731: can't tell if an OS file is executable from parrot
--------------------+-------------------------------------------------------
 Reporter:  coke    |       Owner:             
     Type:  todo    |      Status:  new        
 Priority:  normal  |   Milestone:             
Component:  none    |     Version:             
 Severity:  medium  |    Keywords:  tcl blocker
     Lang:  tcl     |       Patch:             
 Platform:          |  
--------------------+-------------------------------------------------------

Comment(by coke):

 Not according to the documentation for the opcode, no.

 However, if I follow the source code, I eventually get to stat_common(),
 which makes it look like "STAT_PLATFORM_MODE" might work.

 This entry into the stat object that's returned doesn't seem to be
 documented anywhere, nor do the constants for stat seem to be pulled out
 somewhere where they can be used by name instead of magic number.

 While a consistent interface would be better (something that unified the
 information available via stat and the File (or other) PMCs), if we stick
 with stat, we need to provide the same docs/PIR macro support as we do for
 other constants.

 This should let get me something working with partcl, though. I'll post a
 link to the implementation later so folks can use it.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/731#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to