Define the old_linux_dirent structure.

Signed-off-by: Zeng Linggang <[email protected]>
---
 include/lapi/readdir.h | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 include/lapi/readdir.h

diff --git a/include/lapi/readdir.h b/include/lapi/readdir.h
new file mode 100644
index 0000000..65746af
--- /dev/null
+++ b/include/lapi/readdir.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2014 Fujitsu Ltd.
+ * Author: Zeng Linggang <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of version 2 of the GNU General Public License as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it would be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef READDIR_H
+#define READDIR_H
+
+#include <limits.h>
+
+struct old_linux_dirent {
+       long  d_ino;                    /* inode number */
+       off_t d_off;                    /* offset to this old_linux_dirent */
+       unsigned short d_reclen;        /* length of this d_name */
+       char  d_name[NAME_MAX+1];       /* filename (null-terminated) */
+};
+
+#endif /* READDIR_H */
-- 
1.8.4.2




------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to