aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/bsd/direct.h
blob: d663bbb1164855bb321c00e2834b87f1958ebd53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef	MAXNAMLEN
#define	MAXNAMLEN	255
#endif

struct direct
  {
    unsigned int d_fileno;	/* 32 bits.  */
    unsigned short int d_reclen; /* 16 bits.  */
    unsigned short int d_namlen; /* 16 bits.  */
    char d_name[MAXNAMLEN + 1];
  };

#define D_NAMLEN(d) ((d)->d_namlen)