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