On Fri, 10 Aug 2007, S h i v wrote:

> On 8/10/07, Frank Hofmann <[EMAIL PROTECTED]> wrote:
>> On Fri, 10 Aug 2007, S h i v wrote:
>>
>>> Hi,
>>>
>>> A linux app that I want to build on SX using sunpro uses "struct
>>> dirent" that has non-standard gcc extensions (ex: d_type) that are not
>>> available in sunpro.
>>
>> Not gcc extensions. Linux and/or BSD specifics.
>>
>
> Why do you say so? I ask since these functions are part of the gnu c library.

No, the header you're referring to, and the readdir syscall behaviour 
you're referring to, are BSDish. I've already sent you the quote from 
the Linux/BSD kernel (! - not glibc) sources where dirent is defined in 
the way you wanted it.

That d_type is non-portable/BSDish is actually mentioned in the glibc 
manual:

http://www.gnu.org/software/libc/manual/html_node/Directory-Entries.html#Directory-Entries

That has nothing to do with gcc. It's about GNU/BSD libc behaviour.
For IEEE Std 1003.1 (POSIX / UNIX2003), it's the same as the Solaris 
manpage:

http://www.opengroup.org/onlinepubs/009695399/basedefs/dirent.h.html

The GNU Compiler Collection (GCC) and the GNU C Library (GLIBC) are not 
interrelated, they're totally independent projects. And the dirent.h 
behaviour that you seek is noted in the glibc manual as being 
system-specific.

FrankH.
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to