diff options
Diffstat (limited to 'sysdeps/unix/bsd/direct.h')
-rw-r--r-- | sysdeps/unix/bsd/direct.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/unix/bsd/direct.h b/sysdeps/unix/bsd/direct.h new file mode 100644 index 0000000000..d663bbb116 --- /dev/null +++ b/sysdeps/unix/bsd/direct.h @@ -0,0 +1,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) |