kevin wrote:
> In /usr/include/sys/dirent.h I see this:
>
> /*
>  * File-system independent directory entry.
>  */
> typedef struct dirent {
>       ino_t                  d_ino;           /* "inode number" of entry */
>       off_t                          d_off;           /* offset of disk 
> directory entry */
>       unsigned short       d_reclen;          /* length of this record */
>       char                           d_name[1];       /* name of file */
> } dirent_t;
>
> Why the *name of file* d_name[1] have only one char?
>   

Google for "struct hack".

-- 
Ian.

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to