1 /* 2 * Copyright (c) 1992 The Regents of the University of California 3 * Copyright (c) 1990, 1992 Jan-Simon Pendry 4 * All rights reserved. 5 * 6 * This code is derived from software donated to Berkeley by 7 * Jan-Simon Pendry. 8 * 9 * %sccs.include.redist.c% 10 * 11 * @(#)fdesc.h 1.1 (Berkeley) 06/03/92 12 * 13 * $Id: fdesc.h,v 1.5 1992/05/30 10:05:34 jsp Exp jsp $ 14 */ 15 16 #ifdef KERNEL 17 struct fdescmount { 18 struct vnode *f_root; /* Root node */ 19 }; 20 21 struct fdescnode { 22 unsigned f_fd; /* Fd to be dup'ed */ 23 /*int f_isroot;*/ /* Is this the root */ 24 }; 25 26 #define VFSTOFDESC(mp) ((struct fdescmount *)((mp)->mnt_data)) 27 #define VTOFDESC(vp) ((struct fdescnode *)(vp)->v_data) 28 29 #define MAXNAMLEN 255 30 31 struct readdir { 32 u_long d_ino; /* inode number of entry */ 33 u_short d_reclen; /* length of this record */ 34 u_short d_namlen; /* length of string in d_name */ 35 char d_name[MAXNAMLEN + 1]; /* name with length <= MAXNAMLEN */ 36 }; 37 extern int (**fdesc_vnodeop_p)(); 38 extern struct vfsops fdesc_vfsops; 39 #endif /* KERNEL */ 40