summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_dirent.h
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-10-28 03:39:31 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-10-28 03:39:31 +0000
commitfb0e880601a674837feb396dd34ea76f09ce9f89 (patch)
tree7dc1d2b69234f52c74a38385b8f6f9eee6fd75fe /sys/compat/linux/linux_dirent.h
parent6b50a28cb283d9ba12a9a06cab9232f5146b8a3d (diff)
getdents64 support, based on FreeBSD.
thanks to jpmk@fibertel.com.ar for providing a testbed; jasoni ok.
Diffstat (limited to 'sys/compat/linux/linux_dirent.h')
-rw-r--r--sys/compat/linux/linux_dirent.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_dirent.h b/sys/compat/linux/linux_dirent.h
index 5eeec661746..04e1aeaa97d 100644
--- a/sys/compat/linux/linux_dirent.h
+++ b/sys/compat/linux/linux_dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_dirent.h,v 1.2 1996/04/17 05:23:43 mickey Exp $ */
+/* $OpenBSD: linux_dirent.h,v 1.3 2002/10/28 03:39:30 fgsch Exp $ */
/* $NetBSD: linux_dirent.h,v 1.3 1995/10/07 06:26:59 mycroft Exp $ */
/*
@@ -44,6 +44,14 @@ struct linux_dirent {
char d_name[LINUX_MAXNAMLEN + 1];
};
+struct linux_dirent64 {
+ linux_ino64_t d_ino;
+ linux_off64_t d_off;
+ u_short d_reclen;
+ u_char d_type;
+ char d_name[LINUX_MAXNAMLEN + 1];
+};
+
#define LINUX_NAMEOFF(dp) ((char *)&(dp)->d_name - (char *)dp)
#define LINUX_RECLEN(de,namlen) ALIGN((LINUX_NAMEOFF(de) + (namlen) + 1))