proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / emulation / svr4 / svr4_sockio.c
index 8e682bc..661622c 100644 (file)
@@ -26,7 +26,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * 
  * $FreeBSD: src/sys/svr4/svr4_sockio.c,v 1.7 1999/12/08 12:00:48 newton Exp $
- * $DragonFly: src/sys/emulation/svr4/Attic/svr4_sockio.c,v 1.2 2003/06/17 04:28:57 dillon Exp $
+ * $DragonFly: src/sys/emulation/svr4/Attic/svr4_sockio.c,v 1.3 2003/06/25 03:56:10 dillon Exp $
  */
 
 #include <sys/param.h>
@@ -37,7 +37,7 @@
 #include <sys/sockio.h>
 #include <sys/socket.h>
 #include <net/if.h>
-
+#include <sys/file2.h>
 
 #include <svr4/svr4.h>
 #include <svr4/svr4_util.h>
@@ -71,9 +71,9 @@ bsd_to_svr4_flags(bf)
 }
 
 int
-svr4_sock_ioctl(fp, p, retval, fd, cmd, data)
+svr4_sock_ioctl(fp, td, retval, fd, cmd, data)
        struct file *fp;
-       struct proc *p;
+       struct thread *td;
        register_t *retval;
        int fd;
        u_long cmd;
@@ -127,7 +127,7 @@ svr4_sock_ioctl(fp, p, retval, fd, cmd, data)
                        (void) strncpy(br.ifr_name, sr.svr4_ifr_name,
                            sizeof(br.ifr_name));
                        if ((error = fo_ioctl(fp, SIOCGIFFLAGS, 
-                                           (caddr_t) &br, p)) != 0) {
+                                           (caddr_t) &br, td)) != 0) {
                                DPRINTF(("SIOCGIFFLAGS (%s) %s: error %d\n", 
                                         br.ifr_name, sr.svr4_ifr_name, error));
                                return error;
@@ -151,7 +151,7 @@ svr4_sock_ioctl(fp, p, retval, fd, cmd, data)
                                sc.svr4_ifc_len));
 
                        if ((error = fo_ioctl(fp, OSIOCGIFCONF,
-                                           (caddr_t) &sc, p)) != 0)
+                                           (caddr_t) &sc, td)) != 0)
                                return error;
 
                        DPRINTF(("SIOCGIFCONF\n"));