From owner-freebsd-emulation@FreeBSD.ORG Sun May 19 23:46:00 2013 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BACA950B; Sun, 19 May 2013 23:46:00 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-da0-x233.google.com (mail-da0-x233.google.com [IPv6:2607:f8b0:400e:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id 95890E87; Sun, 19 May 2013 23:46:00 +0000 (UTC) Received: by mail-da0-f51.google.com with SMTP id h15so3515017dan.10 for ; Sun, 19 May 2013 16:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+2mMW3OU25K8ulppH4wx/ECg2lKPcR2slmBjGmKFTYc=; b=OJh+p0+Tk9hUrokBogGqh/Gc0Z5AhRr9nGZA1xroSW2+OOyl9U+YQ92xzDlIMwj6wh 1kqViv30RNDEHANANzbntalmX12Rek223Sy5dcOZuokKh9xGLlZLxHrsxMUikUABr5BE yE2GHROANUYLeYg4A5yjF+Sf3EKxOQYzrk0kby97zC+TkUPlvqqRyy8Mjlu4CMPcACqi yP7x2XhxxR8d1T9rfWJvD7Eipw8zoRiIHkRLPUEnTInNW3VAHKcNpgTGYUlIX4uco9ZG EsNWo6swo+VVr1sNj3QhOBj1xYTjKvTJ0NpVJzcJflHAP23yOf5jyMBhUeXEuKKIw4FD JM5g== MIME-Version: 1.0 X-Received: by 10.66.26.143 with SMTP id l15mr58080387pag.207.1369006659885; Sun, 19 May 2013 16:37:39 -0700 (PDT) Received: by 10.70.31.195 with HTTP; Sun, 19 May 2013 16:37:39 -0700 (PDT) In-Reply-To: <20130519193536.GA7805@dchagin.static.corbina.net> References: <20130519193536.GA7805@dchagin.static.corbina.net> Date: Sun, 19 May 2013 18:37:39 -0500 Message-ID: Subject: Re: Lin?ux?u?la?tor problem From: Adam Vande More To: Chagin Dmitry Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-emulation@freebsd.org" X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 May 2013 23:46:00 -0000 On Sun, May 19, 2013 at 2:35 PM, Chagin Dmitry wrote: > please, try with: > > diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c > index a66a62d..cae7d71 100644 > --- a/sys/compat/linux/linux_socket.c > +++ b/sys/compat/linux/linux_socket.c > @@ -645,6 +645,9 @@ linux_socket(struct thread *td, struct linux_socket_args *args) > } */ bsd_args; > int retval_socket, socket_flags; > > + uprintf("socket %d, %d, %d", args->domain, args->type, > + args->protocol); > + > bsd_args.protocol = args->protocol; > socket_flags = args->type & ~LINUX_SOCK_TYPE_MASK; > if (socket_flags & ~(LINUX_SOCK_CLOEXEC | LINUX_SOCK_NONBLOCK)) > > > and show result. It gave the output: socket 2, 10, 768 -- Adam Vande More