/* * Copyright (c) 1992 The Regents of the University of California * Copyright (c) 1990, 1992 Jan-Simon Pendry * All rights reserved. * * This code is derived from software donated to Berkeley by * Jan-Simon Pendry. * * %sccs.include.redist.c% * * @(#)fdesc.h 1.1 (Berkeley) 06/03/92 * * $Id: fdesc.h,v 1.5 1992/05/30 10:05:34 jsp Exp jsp $ */ #ifdef KERNEL struct fdescmount { struct vnode *f_root; /* Root node */ }; struct fdescnode { unsigned f_fd; /* Fd to be dup'ed */ /*int f_isroot;*/ /* Is this the root */ }; #define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data)) #define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data) #define MAXNAMLEN 255 struct readdir { u_long d_ino; /* inode number of entry */ u_short d_reclen; /* length of this record */ u_short d_namlen; /* length of string in d_name */ char d_name[MAXNAMLEN + 1]; /* name with length <= MAXNAMLEN */ }; extern int (**fdesc_vnodeop_p)(); extern struct vfsops fdesc_vfsops; #endif /* KERNEL */