Annotation of coherent/b/lib/libc/ndir/sysdirnt.h.unx, revision 1.1.1.1

1.1       root        1: /*
                      2:        <sys/dirent.h> -- file system independent directory entry (SVR3)
                      3: 
                      4:        last edit:      25-Apr-1987     D A Gwyn
                      5: 
                      6:        prerequisite:   <sys/types.h>
                      7: */
                      8: 
                      9: 
                     10: struct dirent                          /* data from getdents()/readdir() */
                     11:        {
                     12:        long            d_ino;          /* inode number of entry */
                     13:        off_t           d_off;          /* offset of disk directory entry */
                     14:        unsigned short  d_reclen;       /* length of this record */
                     15:        char            d_name[1];      /* name of file */      /* non-POSIX */
                     16:        };
                     17: 
                     18: /* The following nonportable ugliness could have been avoided by defining
                     19:    DIRENTSIZ and DIRENTBASESIZ to also have (struct dirent *) arguments. */
                     20: #define        DIRENTBASESIZ           (((struct dirent *)0)->d_name \
                     21:                                - (char *)&((struct dirent *)0)->d_ino)
                     22: #define        DIRENTSIZ( namlen )     ((DIRENTBASESIZ + sizeof(long) + (namlen)) \
                     23:                                / sizeof(long) * sizeof(long))
                     24: 
                     25: /* DAG -- the following was moved from <dirent.h>, which was the wrong place */
                     26: 
                     27: #define        MAXNAMLEN       512             /* maximum filename length */
                     28: 
                     29: 
                     30: #ifndef NAME_MAX
                     31: #define        NAME_MAX        (MAXNAMLEN - 1) /* DAG -- added for POSIX */
                     32: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.