summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/direct.h
blob: dc1d77beed8f73e59218b75733da240aaa7c6007 (plain)
1
2
3
4
5
6
7
8
9
10
struct direct
  {
    unsigned short int d_fileno;
    char d_name[14];
  };

#define D_NAMLEN(d) \
  ((d)->d_name[13] == '\0' ? strlen ((d)->d_name) : 14)

#define D_RECLEN(d) (sizeof (*(d)))