ibcs2_dirent.h revision 11394
1254721Semaste/*	$NetBSD: ibcs2_dirent.h,v 1.2 1994/10/26 02:52:51 cgd Exp $	*/
2254721Semaste
3254721Semaste/*
4254721Semaste * Copyright (c) 1994 Scott Bartram
5254721Semaste * All rights reserved.
6254721Semaste *
7254721Semaste * Redistribution and use in source and binary forms, with or without
8254721Semaste * modification, are permitted provided that the following conditions
9254721Semaste * are met:
10254721Semaste * 1. Redistributions of source code must retain the above copyright
11254721Semaste *    notice, this list of conditions and the following disclaimer.
12254721Semaste * 2. Redistributions in binary form must reproduce the above copyright
13254721Semaste *    notice, this list of conditions and the following disclaimer in the
14254721Semaste *    documentation and/or other materials provided with the distribution.
15254721Semaste * 3. All advertising materials mentioning features or use of this software
16254721Semaste *    must display the following acknowledgement:
17254721Semaste *      This product includes software developed by Scott Bartram.
18254721Semaste * 4. The name of the author may not be used to endorse or promote products
19254721Semaste *    derived from this software without specific prior written permission
20254721Semaste *
21254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22254721Semaste * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23254721Semaste * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24254721Semaste * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25254721Semaste * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26254721Semaste * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27254721Semaste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28254721Semaste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29254721Semaste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30254721Semaste * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31254721Semaste */
32254721Semaste
33254721Semaste
34254721Semaste#ifndef _IBCS2_DIRENT_H
35254721Semaste#define _IBCS2_DIRENT_H 1
36254721Semaste
37254721Semaste#include <compat/ibcs2/ibcs2_types.h>
38254721Semaste
39254721Semaste#define IBCS2_MAXNAMLEN		512
40254721Semaste#define IBCS2_DIRBUF		1048
41254721Semaste
42254721Semastetypedef struct {
43254721Semaste	int	dd_fd;
44254721Semaste	int	dd_loc;
45254721Semaste	int	dd_size;
46254721Semaste	char	*dd_buf;
47254721Semaste} IBCS2_DIR;
48254721Semaste
49254721Semastestruct ibcs2_dirent {
50254721Semaste	ibcs2_ino_t	d_ino;
51254721Semaste	short		d_pad;
52254721Semaste	ibcs2_off_t	d_off;
53254721Semaste	u_short		d_reclen;
54254721Semaste	char		d_name[1];
55254721Semaste};
56254721Semaste
57254721Semaste#endif /* _IBCS2_DIRENT_H */
58254721Semaste