[MPlayer-dev-eng] Re: [PATCH] osd menu fielsel.c

Gábor Lénárt lgb at lgb.hu
Thu Nov 21 12:19:54 CET 2002


On Thu, Nov 21, 2002 at 02:15:06PM +0300, Sergey Pinaev wrote:
> GL> Maybe ;-) However I even don't now that struct dirent has got member
> GL> d_type on EVERY systems (ie: is it part of any standard?) or not ... If no,
>        According to POSIX, the dirent structure contains a  field
>        char  d_name[]  of unspecified size, with at most NAME_MAX
>        characters preceding the terminating null character.   Use
>        of  other  fields  will  harm the portability of your pro-
>        grams.  POSIX-2001 also documents the field ino_t d_ino as
>        an XSI extension.

That's right, it's what I said. However my question was: "is d_type part
of the structure on every systems?". That part of man page only said that
struct members other than d_name[] are not recommended to use, but it does
not say that which ones have besides d_name
- Gábor (larta'H)



More information about the MPlayer-dev-eng mailing list