Date: Sat, 1 Apr 1995 21:13:27 +0800 (CST) From: Brian Tao <taob@gate.sinica.edu.tw> To: FREEBSD-CURRENT-L <freebsd-current@FreeBSD.org> Subject: /usr/src/sys/sys/vnioctl.h Message-ID: <Pine.BSI.3.91.950401210622.1567d-100000@aries.ibms.sinica.edu.tw>
next in thread | raw e-mail | index | archive | help
First time compiling a -current kernel... hope I'm not missing something obvious. I want vnode support in the new kernel, but I get this when trying to compile /usr/src/sys/dev/vn/vn.c: ../../dev/vn/vn.c: In function `vnioctl': ../../dev/vn/vn.c:443: `VNIOCSET' undeclared (first use this function) ../../dev/vn/vn.c:443: (Each undeclared identifier is reported only once ../../dev/vn/vn.c:443: for each function it appears in.) ../../dev/vn/vn.c:492: `VNIOCCLR' undeclared (first use this function) ../../dev/vn/vn.c:510: warning: unreachable code at beginning of switch statement *** Error code 1 Looking in <sys/vnioctl.h>: /* * Before you can use a unit, it must be configured with VNIOCSET. * The configuration persists across opens and closes of the device; * an VNIOCCLR must be used to reset a configuration. An attempt to * VNIOCSET an already active unit will return EBUSY. */ #define VNIOCATTACH _IOWR('F', 0, struct vn_ioctl) /* attach file */ #define VNIOCDETACH _IOWR('F', 1, struct vn_ioctl) /* detach disk */ #define VNIOCGSET _IOWR('F', 2, u_long ) /* set global option */ #define VNIOCGCLEAR _IOWR('F', 3, u_long ) /* reset --//-- */ #define VNIOCUSET _IOWR('F', 4, u_long ) /* set unit option */ #define VNIOCUCLEAR _IOWR('F', 5, u_long ) /* reset --//-- */ The #defines for VNIOCSET and VNIOCCLR are nowhere to be found. -- Brian ("Though this be madness, yet there is method in't") Tao taob@gate.sinica.edu.tw <-- work ........ play --> taob@io.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.91.950401210622.1567d-100000>