Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/sys add a struct for the 4.3BSD struct direct



details:   https://anonhg.NetBSD.org/src/rev/c23b74219025
branches:  trunk
changeset: 793125:c23b74219025
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 28 01:29:35 2014 +0000

description:
add a struct for the 4.3BSD struct direct

diffstat:

 sys/compat/sys/dirent.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 70d8363f83cf -r c23b74219025 sys/compat/sys/dirent.h
--- a/sys/compat/sys/dirent.h   Tue Jan 28 01:29:04 2014 +0000
+++ b/sys/compat/sys/dirent.h   Tue Jan 28 01:29:35 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dirent.h,v 1.2 2005/12/11 12:20:29 christos Exp $      */
+/*     $NetBSD: dirent.h,v 1.3 2014/01/28 01:29:35 christos Exp $      */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -34,6 +34,13 @@
 #ifndef _COMPAT_SYS_DIRENT_H_
 #define _COMPAT_SYS_DIRENT_H_
 
+struct dirent43 {
+       u_int32_t d_fileno;             /* file number of entry */
+       u_int16_t d_reclen;             /* length of this record */
+       u_int16_t d_namlen;             /* length of string in d_name */
+       char    d_name[255 + 1];        /* name must be no longer than this */
+};
+
 struct dirent12 {
        u_int32_t d_fileno;             /* file number of entry */
        u_int16_t d_reclen;             /* length of this record */



Home | Main Index | Thread Index | Old Index