Has anyone else noticed that st_mode returned by stat() and it's  
siblings evaluates to false for S_ISNATIVE when a *LIB or *FILE  
object is the target?
Both *LIB and *FILE objects evaluate to true for S_ISDIR which makes  
sense given they are containers for other objects and thus, at least  
conceptually, directory objects.
However, I would have thought that they are both also native objects.  
That is "things what are" in QSYS.LIB rather than in other file systems.
Seems to me that S_ISNATIVE should evaluate to true for any QSYS.LIB  
object. Given that each type evaluated by the various S_ISxxxx macros  
is actually a separate bit in the mode it seems reasonable that the  
native bit could be set in addition to the directory bit thus  
allowing both S_ISDIR and S_ISNATIVE to evaluate to true for *LIB and  
*FILE objects.
Of course, objects not in QSYS.LIB would not have the native bit set  
(even though they are MI objects).
What am I missing?
Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         OS/400, i5/OS Technical Specialists
   
http://www.flybynight.com.au/
   Phone: +61 2 6657 8251   Mobile: +61 0411 091 400        /"\
   Fax:   +61 2 6657 8251                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------
 
As an Amazon Associate we earn from qualifying purchases.
	
 
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.