From owner-freebsd-emulation@FreeBSD.ORG Mon May 20 13:00:35 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 A1C6B823 for ; Mon, 20 May 2013 13:00:35 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) by mx1.freebsd.org (Postfix) with ESMTP id 23FF678E for ; Mon, 20 May 2013 13:00:34 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id ea20so2452039lab.40 for ; Mon, 20 May 2013 06:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=DkjTJc+zwUYsmdUJqT2pjQBjLWfAVUFdA/BE+j2s1hw=; b=ebvXNMwSahlCgwQypDNbOmLzfR+1a0AG2mXrMa07hHyi/AbL22PtlvBIWadqq7Vkcg ioJjyUG+f/KvkunhkCA9xLyphFcZlnhEG1WRMdvXMYrF6zOJuUW69SR53kwflcBP0Q/x UECm5Gve3VuHhjmN7UpwIpsxJXsmqJUQMr475EMrebxLsf0By97UfeAtEt8GeRcOZT5U 9htj5jQfQVE+y6wKnfdOmVCK6KraVxVvQIAIQ+Qt4qyfzp49+1xq8g6Jgdl9Wvn4z7Yo Hvni2uN9wm/88vuOrsGq4K3FThdWgTlY+QOF/WX6i6BSPPQSI5INYPKfPhlEzXoAVa9H rbgA== X-Received: by 10.112.4.134 with SMTP id k6mr21264231lbk.24.1369054833946; Mon, 20 May 2013 06:00:33 -0700 (PDT) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru. [78.107.232.239]) by mx.google.com with ESMTPSA id g10sm5357242lag.10.2013.05.20.06.00.31 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 06:00:32 -0700 (PDT) Sender: Dmitry Chagin Received: from dchagin.static.corbina.net (localhost [127.0.0.1]) by dchagin.static.corbina.net (8.14.7/8.14.6) with ESMTP id r4KD0Urg003398; Mon, 20 May 2013 17:00:30 +0400 (MSK) (envelope-from dchagin@dchagin.static.corbina.net) Received: (from dchagin@localhost) by dchagin.static.corbina.net (8.14.7/8.14.6/Submit) id r4KD0UwK003397; Mon, 20 May 2013 17:00:30 +0400 (MSK) (envelope-from dchagin) Date: Mon, 20 May 2013 17:00:30 +0400 From: Chagin Dmitry To: Adam Vande More Subject: Re: Lin?ux?u?la?tor problem Message-ID: <20130520130030.GA3370@dchagin.static.corbina.net> References: <20130519193536.GA7805@dchagin.static.corbina.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: Mon, 20 May 2013 13:00:35 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 19, 2013 at 06:37:39PM -0500, Adam Vande More wrote: > On Sun, May 19, 2013 at 2:35 PM, Chagin Dmitry wrot= e: > > please, try with: > > > > diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_s= ocket.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 =3D args->protocol; > > socket_flags =3D args->type & ~LINUX_SOCK_TYPE_MASK; > > if (socket_flags & ~(LINUX_SOCK_CLOEXEC | LINUX_SOCK_NONBLOCK)) > > > > > > and show result. >=20 > It gave the output: >=20 > socket 2, 10, 768 >=20 ie, type =3D 10 =3D SOCK_PACKET. deprecated even in Linux. unfortunately, we have never had this type of socket ( >=20 > -- > Adam Vande More --=20 Have fun! chd --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlGaHm4ACgkQ0t2Tb3OO/O2wZQCdGiXsBYqrNsG/tqXOjUEF8iPs K9kAnRxuCuJd+5p74EjwtGGpUED1CSwb =zKP7 -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--