summaryrefslogtreecommitdiff
path: root/include/sys/dir.h
blob: 1c2cea7dfe79a8f005cdd3228c0049c2b2ce3036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifdef _SYS_DIRENT_H
#error "Can't include both sys/dir.h and sys/dirent.h"
#define _SYS_DIR_H
#endif

#ifndef _SYS_DIR_H
#define _SYS_DIR_H

#include <dirent.h>

#define direct	dirent

#undef DIRSIZ
#define DIRSIZ(dp)	((sizeof (struct direct) - (MAXNAMLEN+1)) + \
			 (((dp)->d_namlen+1 + 3) &~ 3))

#endif