From owner-freebsd-emulation@FreeBSD.ORG Sun May 19 19:35:47 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 ACE849A1 for ; Sun, 19 May 2013 19:35:47 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4BA6D1 for ; Sun, 19 May 2013 19:35:46 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id r11so1808132lbv.24 for ; Sun, 19 May 2013 12:35:39 -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=HvcdxNcRrOwdhi/MVc2E6ojevTi7saKwr40kdQYNuuU=; b=Ytg256/lhpnjiODwx+Rj+gcwjZGpQfHFBvxcR2Nva6VaUyOyJfwE8JC/bvaYLROqnl T3yfaF4ubxqqJKHX3eqpYeqYs1qxA3TNwPKmBLyDS6rhcicY1xtHdbIDo8SIeQMVGodm iPaLXmp4s9XU54SNN4fd4DxUXjb0UKO5Wc/cttu0AxjJltsGH7MXLmVxWUBpQO8OUtMq i31JuKCKK5iqIOAQP2/+GuV9EhDACQGeSBvC1/JIN97EKZdZr35GZUZZ0aW8/JVPV95Y yswVh2/7gIXEaqx+dJ23UPCXzcS2f4Fu+4XSX/hJKvhqXW0B3lUCI0HYUuGukjxjSf+v +Lcg== X-Received: by 10.152.5.37 with SMTP id p5mr27138886lap.13.1368992139670; Sun, 19 May 2013 12:35:39 -0700 (PDT) Received: from dchagin.static.corbina.net (dchagin.static.corbina.ru. [78.107.232.239]) by mx.google.com with ESMTPSA id g4sm8576510lbe.0.2013.05.19.12.35.37 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 19 May 2013 12:35:38 -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 r4JJZaOi007859; Sun, 19 May 2013 23:35:36 +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 r4JJZa8M007858; Sun, 19 May 2013 23:35:36 +0400 (MSK) (envelope-from dchagin) Date: Sun, 19 May 2013 23:35:36 +0400 From: Chagin Dmitry To: Adam Vande More Subject: Re: Lin?ux?u?la?tor problem Message-ID: <20130519193536.GA7805@dchagin.static.corbina.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" 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: Sun, 19 May 2013 19:35:47 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2013 at 03:42:17PM -0500, Adam Vande More wrote: > I'm trying to get an ancient Linux app called IMS System > Administration Utility V2.02 (07-Dec-90) going. >=20 > Unfortunately, it fails here: >=20 > 910 sysval NAMI "/compat/linux/secfile" > 910 sysval NAMI "/compat/linux" > 910 sysval NAMI "/compat/linux/secfile" > 910 sysval RET linux_access 0 > 910 sysval CALL linux_socketcall(0x1,0xbfbfdc5c) > 910 sysval RET linux_socketcall -1 errno 22 Invalid argument the problem is here ^^^^^^^^^^^^^^^^^^^ please, try with: diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socke= t.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_arg= s *args) } */ bsd_args; int retval_socket, socket_flags; =20 + 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. > 910 sysval CALL linux_ioctl(0xffffffff,0x8927,0xbfbfdc80) > 910 sysval RET linux_ioctl -1 errno 9 Bad file descriptor > 910 sysval CALL close(0xffffffff) > 910 sysval RET close -1 errno 9 Bad file descriptor > 910 sysval CALL linux_open(0x808be70,0,0x1) > 910 sysval NAMI "/compat/linux/dev/tty" > 910 sysval NAMI "/dev/tty" > 910 sysval RET linux_open 3 >=20 > Does anyone have insight into this problem? I did create > /dev/tty...perhaps there is some incompatibility? >=20 > -- > Adam Vande More > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.o= rg" --=20 Have fun! chd --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlGZKYcACgkQ0t2Tb3OO/O3xvACeOWbhtQwR+zEDWGpyHQmA/T5o bOUAn1Ks3QN3FXmWVpezXo4bLky+KWx3 =KULU -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--