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