111394Sswallace/* $NetBSD: ibcs2_dirent.h,v 1.2 1994/10/26 02:52:51 cgd Exp $ */ 2139799Simp/* $FreeBSD$ */ 311394Sswallace 4139799Simp/*- 511394Sswallace * Copyright (c) 1994 Scott Bartram 611394Sswallace * All rights reserved. 711394Sswallace * 811394Sswallace * Redistribution and use in source and binary forms, with or without 911394Sswallace * modification, are permitted provided that the following conditions 1011394Sswallace * are met: 1111394Sswallace * 1. Redistributions of source code must retain the above copyright 1211394Sswallace * notice, this list of conditions and the following disclaimer. 1311394Sswallace * 2. Redistributions in binary form must reproduce the above copyright 1411394Sswallace * notice, this list of conditions and the following disclaimer in the 1511394Sswallace * documentation and/or other materials provided with the distribution. 1611394Sswallace * 3. All advertising materials mentioning features or use of this software 1711394Sswallace * must display the following acknowledgement: 1811394Sswallace * This product includes software developed by Scott Bartram. 1911394Sswallace * 4. The name of the author may not be used to endorse or promote products 2011394Sswallace * derived from this software without specific prior written permission 2111394Sswallace * 2211394Sswallace * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2311394Sswallace * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2411394Sswallace * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2511394Sswallace * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2611394Sswallace * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2711394Sswallace * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2811394Sswallace * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2911394Sswallace * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3011394Sswallace * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 3111394Sswallace * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3211394Sswallace */ 3311394Sswallace 3411394Sswallace 3511394Sswallace#ifndef _IBCS2_DIRENT_H 3611394Sswallace#define _IBCS2_DIRENT_H 1 3711394Sswallace 3811397Sswallace#include <i386/ibcs2/ibcs2_types.h> 3911394Sswallace 4011394Sswallace#define IBCS2_MAXNAMLEN 512 4111394Sswallace#define IBCS2_DIRBUF 1048 4211394Sswallace 4311394Sswallacetypedef struct { 4411394Sswallace int dd_fd; 4511394Sswallace int dd_loc; 4611394Sswallace int dd_size; 4711394Sswallace char *dd_buf; 4811394Sswallace} IBCS2_DIR; 4911394Sswallace 5011394Sswallacestruct ibcs2_dirent { 5111394Sswallace ibcs2_ino_t d_ino; 5211394Sswallace short d_pad; 5311394Sswallace ibcs2_off_t d_off; 5411394Sswallace u_short d_reclen; 5511394Sswallace char d_name[1]; 5611394Sswallace}; 5711394Sswallace 5811394Sswallace#endif /* _IBCS2_DIRENT_H */ 59