1*8720Sroot /* vfs_xxx.c 4.1 82/10/20 */ 2*8720Sroot 3*8720Sroot #include "../h/param.h" 4*8720Sroot #include "../h/systm.h" 5*8720Sroot #include "../h/inode.h" 6*8720Sroot #include "../h/fs.h" 7*8720Sroot #include "../h/mount.h" 8*8720Sroot #include "../h/dir.h" 9*8720Sroot #include "../h/user.h" 10*8720Sroot #include "../h/buf.h" 11*8720Sroot #include "../h/conf.h" 12*8720Sroot 13*8720Sroot /* 14*8720Sroot * Return the next character fromt the 15*8720Sroot * kernel string pointed at by dirp. 16*8720Sroot */ 17*8720Sroot schar() 18*8720Sroot { 19*8720Sroot return (*u.u_dirp++ & 0377); 20*8720Sroot } 21*8720Sroot 22*8720Sroot /* 23*8720Sroot * Return the next character from the 24*8720Sroot * user string pointed at by dirp. 25*8720Sroot */ 26*8720Sroot uchar() 27*8720Sroot { 28*8720Sroot register c; 29*8720Sroot 30*8720Sroot c = fubyte(u.u_dirp++); 31*8720Sroot if (c == -1) { 32*8720Sroot u.u_error = EFAULT; 33*8720Sroot c = 0; 34*8720Sroot } 35*8720Sroot return (c); 36*8720Sroot } 37