From owner-freebsd-emulation Mon Dec 18 2:10:25 2000 From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 18 02:10:19 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from assaris.sics.se (h122n4fls32o892.telia.com [213.64.47.122]) by hub.freebsd.org (Postfix) with ESMTP id 65F6B37B400; Mon, 18 Dec 2000 02:10:18 -0800 (PST) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id LAA69605; Mon, 18 Dec 2000 11:10:28 +0100 (CET) (envelope-from assar) Sender: assar@assaris.sics.se From: assar@freebsd.org To: "Renaud Waldura" , marcel@freebsd.org Cc: Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 References: <01a901c067b1$8ced2d00$0402010a@biohz.net> <3A3C0199.8DED329B@cup.hp.com> <000901c067c8$d406a7e0$0402010a@biohz.net> Date: 18 Dec 2000 11:10:21 +0100 In-Reply-To: "Renaud Waldura"'s message of "Sat, 16 Dec 2000 17:29:40 -0800" Message-ID: <5l3dfmm44y.fsf@assaris.sics.se> Lines: 29 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --=-=-= "Renaud Waldura" writes: > 51543 q3ded CALL gettimeofday(0xbfbfba48,0xbfbfba50) > 51543 q3ded RET gettimeofday 0 > 51543 q3ded CALL linux_newselect(0x1,0xbfbfb9d8,0,0,0xbfbfb9d0) > 51543 q3ded RET linux_newselect 0 > 51543 q3ded CALL linux_socketcall(0xc,0xbfbfb9e8) > 51543 q3ded RET linux_socketcall -1 errno 11 Resource deadlock avoided Note first that the translation of errno 11 is wrong, on Linux errno 11 is EAGAIN. (marcel: should we add a table of Linux error codes to linux_kdump? ) So I assume that what's happening here is that select says that the fd is ready to be read from but then recvmsg returns EWOULDBLOCK (aka EAGAIN). The only way I can see that currently happening is if MSG_WAITALL for some reason is set, now wait a moment, MSG_* do not have the same values on Linux. Could you try the following patch and tell us how it goes? I'm afraid it's against -current. If it doesn't apply with small amounts of force to -stable, bug me and I can redo it. Marcel: does this look ok? /assar --=-=-= Content-Disposition: attachment; filename=cld Index: sys/compat/linux/linux_socket.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_socket.c,v retrieving revision 1.24 diff -u -w -r1.24 linux_socket.c --- sys/compat/linux/linux_socket.c 2000/12/03 01:30:31 1.24 +++ sys/compat/linux/linux_socket.c 2000/12/18 10:04:51 @@ -50,6 +50,7 @@ #include #include #include +#include #ifndef __alpha__ static int @@ -142,6 +143,46 @@ return (-1); } +static int +linux_to_bsd_msg_flags(int flags) +{ + int ret_flags = 0; + + if (flags & LINUX_MSG_OOB) + ret_flags |= MSG_OOB; + if (flags & LINUX_MSG_PEEK) + ret_flags |= MSG_PEEK; + if (flags & LINUX_MSG_DONTROUTE) + ret_flags |= MSG_DONTROUTE; + if (flags & LINUX_MSG_CTRUNC) + ret_flags |= MSG_CTRUNC; + if (flags & LINUX_MSG_TRUNC) + ret_flags |= MSG_TRUNC; + if (flags & LINUX_MSG_DONTWAIT) + ret_flags |= MSG_DONTWAIT; + if (flags & LINUX_MSG_EOR) + ret_flags |= MSG_EOR; + if (flags & LINUX_MSG_WAITALL) + ret_flags |= MSG_WAITALL; +#if 0 /* not handled */ + if (flags & LINUX_MSG_PROXY) + ; + if (flags & LINUX_MSG_FIN) + ; + if (flags & LINUX_MSG_SYN) + ; + if (flags & LINUX_MSG_CONFIRM) + ; + if (flags & LINUX_MSG_RST) + ; + if (flags & LINUX_MSG_ERRQUEUE) + ; + if (flags & LINUX_MSG_NOSIGNAL) + ; +#endif + return ret_flags; +} + /* Return 0 if IP_HDRINCL is set for the given socket. */ static int linux_check_hdrincl(struct proc *p, int s) @@ -701,12 +742,38 @@ bsd_args.s = linux_args.s; bsd_args.buf = linux_args.buf; bsd_args.len = linux_args.len; - bsd_args.flags = linux_args.flags; + bsd_args.flags = linux_to_bsd_msg_flags(linux_args.flags); bsd_args.from = linux_args.from; bsd_args.fromlenaddr = linux_args.fromlen; return (orecvfrom(p, &bsd_args)); } +struct linux_recvmsg_args { + int s; + struct msghdr *msg; + int flags; +}; + +static int +linux_recvmsg(struct proc *p, struct linux_recvmsg_args *args) +{ + struct linux_recvmsg_args linux_args; + struct recvmsg_args /* { + int s; + struct msghdr *msg; + int flags; + } */ bsd_args; + int error; + + if ((error = copyin(args, &linux_args, sizeof(linux_args)))) + return (error); + + bsd_args.s = linux_args.s; + bsd_args.msg = linux_args.msg; + bsd_args.flags = linux_to_bsd_msg_flags(linux_args.flags); + return (recvmsg(p, &bsd_args)); +} + struct linux_shutdown_args { int s; int how; @@ -905,7 +972,7 @@ return (sendmsg(p, args->args)); } while (0); case LINUX_RECVMSG: - return (recvmsg(p, args->args)); + return (linux_recvmsg(p, args->args)); } uprintf("LINUX: 'socket' typ=%d not implemented\n", args->what); --- /dev/null Mon Dec 18 10:41:33 2000 +++ sys/compat/linux/linux_socket.h Mon Dec 18 09:52:18 2000 @@ -0,0 +1,52 @@ +/*- + * Copyright (c) 2000 Assar Westerlund + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer + * in this position and unchanged. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software withough specific prior written permission + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _LINUX_SOCKET_H_ +#define _LINUX_SOCKET_H_ + +/* msg flags in recvfrom/recvmsg */ + +#define LINUX_MSG_OOB 0x01 +#define LINUX_MSG_PEEK 0x02 +#define LINUX_MSG_DONTROUTE 0x04 +#define LINUX_MSG_CTRUNC 0x08 +#define LINUX_MSG_PROXY 0x10 +#define LINUX_MSG_TRUNC 0x20 +#define LINUX_MSG_DONTWAIT 0x40 +#define LINUX_MSG_EOR 0x80 +#define LINUX_MSG_WAITALL 0x100 +#define LINUX_MSG_FIN 0x200 +#define LINUX_MSG_SYN 0x400 +#define LINUX_MSG_CONFIRM 0x800 +#define LINUX_MSG_RST 0x1000 +#define LINUX_MSG_ERRQUEUE 0x2000 +#define LINUX_MSG_NOSIGNAL 0x4000 + +#endif /* _LINUX_SOCKET_H_ */ --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 18 10:24: 2 2000 From owner-freebsd-emulation@FreeBSD.ORG Mon Dec 18 10:23:59 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from palrel3.hp.com (palrel3.hp.com [156.153.255.226]) by hub.freebsd.org (Postfix) with ESMTP id 3CB6F37B400; Mon, 18 Dec 2000 10:23:59 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel3.hp.com (Postfix) with ESMTP id E076D488D; Mon, 18 Dec 2000 10:23:54 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id KAA29620; Mon, 18 Dec 2000 10:23:54 -0800 (PST) Sender: marcel@cup.hp.com Message-ID: <3A3E563A.9198ABAC@cup.hp.com> Date: Mon, 18 Dec 2000 10:23:54 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: assar@freebsd.org Cc: Renaud Waldura , marcel@freebsd.org, emulation@freebsd.org Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 References: <01a901c067b1$8ced2d00$0402010a@biohz.net> <3A3C0199.8DED329B@cup.hp.com> <000901c067c8$d406a7e0$0402010a@biohz.net> <5l3dfmm44y.fsf@assaris.sics.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org assar@freebsd.org wrote: > > > 51543 q3ded CALL linux_socketcall(0xc,0xbfbfb9e8) > > 51543 q3ded RET linux_socketcall -1 errno 11 Resource deadlock avoided > > Note first that the translation of errno 11 is wrong, on Linux errno > 11 is EAGAIN. > > (marcel: should we add a table of Linux error codes to linux_kdump? ) Probably. I've been playing with the thought of adding support for our different emulators to the native kdump. > Could you try the following patch and tell us how it goes? I'm afraid > it's against -current. If it doesn't apply with small amounts of > force to -stable, bug me and I can redo it. Marcel: does this look ok? Modulo some style nits, yes. Style nits: o include linux_socket before linux_util (sorting) o Use tabs after #define Make sure it at least builds ok on Alpha (do a cross-build if you don't have an Alpha). Other than that, feel free to check it in... -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 0:33:36 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 00:33:32 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-107.dsl.snfc21.pacbell.net [63.202.177.107]) by hub.freebsd.org (Postfix) with ESMTP id 0514337B404 for ; Tue, 19 Dec 2000 00:33:32 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id eBJ8hqQ11067; Tue, 19 Dec 2000 00:43:52 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012190843.eBJ8hqQ11067@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Jeremiah Gowdy" Cc: emulation@FreeBSD.ORG Subject: Re: DOS Emulation KLD In-reply-to: Your message of "Mon, 18 Dec 2000 21:14:45 PST." <001601c0697a$9abb8100$aa240018@cx443070b> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Dec 2000 00:43:52 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (I've taken the liberty of moving this thread to the -emulation list, since that's the best place to be discussing this topic.) > > > What's wrong with doscmd ? I hadn't noticed this one used BSD > filesystems > > > in addition to image files. That was my #1 issue with some of the other > > > emulators. > > > > It needs a lot of TLC; there are plenty of places where it could be > > usefully extended as well. > > > > One might also consider abandoning it entirely and making plex86 work, if > > one was really interested in that sort of thing. > > Thanks for the information. I have alot of DOS programming experience, and > although little BSD programming experience, I have read quite a bit and > attended a 4.x KLD authoring conference at ToorCon. Since I understand low > level DOS implementation (I've worked with the FreeDOS project too), I'm > taking a look at doscmd and I'm going to try to contribute to this project. Cool! Careful though, or you'll end up as its maintainer. 8) > It seems delightfully simple in its design. I see some of the rough edges > you're talking about, but I believe you're right, it's nothing a little TLC > can't take care of. I'm glad to hear that. For better or worse, I spent quite a bit of time working on doscmd some years back, and I might be able to help you if you get stuck. I can certainly dig out a few of the ideas that I thought ought to be implemented, if you find yourself looking for new things to add. 8) Regards, Mike -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 3:41:48 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 03:41:46 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mail1.rdc2.bc.home.com (mail1.rdc2.bc.home.com [24.2.10.84]) by hub.freebsd.org (Postfix) with ESMTP id CF47537B698 for ; Tue, 19 Dec 2000 03:41:46 -0800 (PST) Received: from godlike ([24.69.237.141]) by mail1.rdc2.bc.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001219114146.JIEU21446.mail1.rdc2.bc.home.com@godlike> for ; Tue, 19 Dec 2000 03:41:46 -0800 Message-ID: <001401c06c0c$3d9a3ea0$8ded4518@kldt1.bc.wave.home.com> From: "Mike Batchelor" To: Subject: LINUX SVGALIB.. can linux_base-6.1 emulate that? Date: Fri, 22 Dec 2000 03:42:19 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hey guys, I figure this is the mailing list to be mailing about this. I've heard so many good things about linux emulation under FreeBSD (4.2-RELEASE is what i have) and I am wondering, can it emulate Linux's SVGALIB games? It has the libraries and all (libvga.so.1) but when i try running some Linux games (ie QuakeWorld) it just can't find the library. the path of the directory is in the /compat/linux/etc/ld.so.conf (or whatever it is) so I don't know what the problem is. Thanks guys! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 8:41:56 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 08:41:54 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from femail2.sdc1.sfba.home.com (femail2.sdc1.sfba.home.com [24.0.95.82]) by hub.freebsd.org (Postfix) with ESMTP id F28C337B400; Tue, 19 Dec 2000 08:41:53 -0800 (PST) Received: from cx443070b ([24.0.36.170]) by femail2.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20001219164137.QXAA17656.femail2.sdc1.sfba.home.com@cx443070b>; Tue, 19 Dec 2000 08:41:37 -0800 Message-ID: <001101c069da$e95654b0$aa240018@cx443070b> From: "Jeremiah Gowdy" To: "Mike Smith" Cc: References: <200012190843.eBJ8hqQ11067@mass.osd.bsdi.com> Subject: Re: DOS Emulation KLD Date: Tue, 19 Dec 2000 08:44:09 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Thanks for the information. I have alot of DOS programming experience, and > > although little BSD programming experience, I have read quite a bit and > > attended a 4.x KLD authoring conference at ToorCon. Since I understand low > > level DOS implementation (I've worked with the FreeDOS project too), I'm > > taking a look at doscmd and I'm going to try to contribute to this project. > > Cool! Careful though, or you'll end up as its maintainer. 8) That wouldn't bother me a bit. :) I've been trying to bring my BSD programming skills up to par so I can contribute to the project, but haven't yet found an area in which I would really be of use. However, as I said, DOS programming is something I excel at, having been programming in DOS since I was 11 years old. Once I knock off this stupid Borland Builder NTP project for my boss, I'm going to contact the current maintainers. > I'm glad to hear that. For better or worse, I spent quite a bit of time > working on doscmd some years back, and I might be able to help you if you > get stuck. I can certainly dig out a few of the ideas that I thought > ought to be implemented, if you find yourself looking for new things to > add. 8) Cool. Go ahead and give me any improvement ideas, and if they're within my capabilities, I'll implement them. Thanks again. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 10:58:14 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 10:58:10 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mail.rdc1.kt.home.ne.jp (ha2.rdc1.kt.home.ne.jp [203.165.9.243]) by hub.freebsd.org (Postfix) with ESMTP id DD7A837B400; Tue, 19 Dec 2000 10:58:09 -0800 (PST) Received: from daemon.local.idaemons.org ([203.165.161.10]) by mail.rdc1.kt.home.ne.jp (InterMail vM.4.01.02.00 201-229-116) with ESMTP id <20001219185808.ENYG10418.mail.rdc1.kt.home.ne.jp@daemon.local.idaemons.org>; Tue, 19 Dec 2000 10:58:08 -0800 Received: by daemon.local.idaemons.org (8.11.1/3.7W) id eBJIw2g76036; Wed, 20 Dec 2000 03:58:02 +0900 (JST) Date: Wed, 20 Dec 2000 03:58:02 +0900 Message-ID: <86bsu8b5mt.wl@archon.local.idaemons.org> From: "Akinori MUSHA" To: Maxim Sobolev Cc: ports@FreeBSD.org, emulation@FreeBSD.org, takawata@FreeBSD.org Subject: Re: Porting Plex86 to FreeBSD In-Reply-To: <3A3F9A19.5F1803ED@FreeBSD.org> References: <3A3F9A19.5F1803ED@FreeBSD.org> User-Agent: Wanderlust/2.5.4 (Smooth) SEMI/1.14.0 (Iburihashi) FLIM/1.14.0 (Ninokuchi) APEL/10.2 MULE XEmacs/21.1 (patch 12) (Channel Islands) (i386--freebsd) Organization: Associated I. Daemons X-PGP-Public-Key: finger knu@FreeBSD.org X-PGP-Fingerprint: 081D 099C 1705 861D 4B70 B04A 920B EFC7 9FD9 E1EE MIME-Version: 1.0 (generated by SEMI 1.14.0 - "Iburihashi") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At Tue, 19 Dec 2000 19:25:45 +0200, sobomax wrote: > I have a plan to start porting Plex86 (GPL'ed vmware clone available at > www.plex86.org) for FreeBSD, so if anybody has any work already done or want to > collaborate please let me know. Recently this thing was ported over to NetBSD, > so I think we have a good chances to succeed with it in reasonable amount of > time. > > I there are any porters willing to join me I would propose to create > appropriate project at SourceForge to use their cvs repo for collaboration. Contact takawata-san (now Cc'd). I heard he'd done some early porting work on it. He perhaps does not have much interest in it anymore, but will at least give you some hint. P.S. You'd better have sent the mail also to emulation lists (now Cc'd), since those talents in porting something like Plex86 must be there. -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "We're only at home when we're on the run, on the wing, on the fly" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 14:50:52 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 14:50:49 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from ebola.biohz.net (ebola.biohz.net [206.80.1.35]) by hub.freebsd.org (Postfix) with ESMTP id BC83A37B404 for ; Tue, 19 Dec 2000 14:50:45 -0800 (PST) Received: from flu (localhost [127.0.0.1]) by ebola.biohz.net (Postfix) with SMTP id 5F6F63A3FC for ; Tue, 19 Dec 2000 14:50:44 -0800 (PST) Message-ID: <001f01c06a0e$1edf2200$0402010a@biohz.net> From: "Renaud Waldura" To: References: <01a901c067b1$8ced2d00$0402010a@biohz.net> <3A3C0199.8DED329B@cup.hp.com> <000901c067c8$d406a7e0$0402010a@biohz.net> <5l3dfmm44y.fsf@assaris.sics.se> Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 Date: Tue, 19 Dec 2000 14:50:43 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Assar: thanks for the patch, it applied cleanly against 4.2-RELEASE. As for my problem, it isn't quite solved yet... I recompiled the linux module with DEBUG on, and here is what I get: 01 Linux-emul(90534): newselect(1, 0xbfbfb9f0, 0, 0, 0xbfbfb9e8) 02 Linux-emul(90534): incoming timeout (0/0) 03 Linux-emul(90534): real select returns 0 04 Linux-emul(90534): outgoing timeout (0/0) 05 Linux-emul(90534): newselect_out -> 0 06 Linux-emul(90534): linux_socketcall(what=12, args=0xbfbfba00) 07 Linux-emul(90534): linux_recvfrom(fd=4, buf=0x8220c40, len=16384, flags=0, from=0xbfbfba40, fromlen=0xbfbfba3c) 08 Linux-emul(90534): linux_recvfrom() returns 35 This is how I interpret the trace: 01: newselect(number of FDs == 1 FD set ready for reading == some address FD set ready for writing == NULL FD set ready for OOB == NULL timeout == some address ) Q3ded listens an an open socket, with a timeout. 02-05: the timeout is 0: it's a poll, and select() returns with no error. 06-08: calls linux_recvfrom(), which returns EAGAIN. Now, the funny thing is, the exact same thing happens on Linux. Here is the strace output: 01 gettimeofday({977090705, 46700}, {420, 0}) = 0 02 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) 03 recvfrom(4, 0x8220c40, 16384, 0, 0xbfffba10, 0xbfffba0c) = -1 EAGAIN (Resource temporarily unavailable) Pretty much equivalent to the FreeBSD trace... Unfortunately q3ded on Linux works like a charm, and it doesn't on FreeBSD. So, I'm still looking. Any ideas? --Renaud ----- Original Message ----- From: To: "Renaud Waldura" ; Cc: Sent: Monday, December 18, 2000 2:10 AM Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 > "Renaud Waldura" writes: > > > 51543 q3ded CALL gettimeofday(0xbfbfba48,0xbfbfba50) > > 51543 q3ded RET gettimeofday 0 > > 51543 q3ded CALL linux_newselect(0x1,0xbfbfb9d8,0,0,0xbfbfb9d0) > > 51543 q3ded RET linux_newselect 0 > > 51543 q3ded CALL linux_socketcall(0xc,0xbfbfb9e8) > > 51543 q3ded RET linux_socketcall -1 errno 11 Resource deadlock avoided > > Note first that the translation of errno 11 is wrong, on Linux errno > 11 is EAGAIN. > > (marcel: should we add a table of Linux error codes to linux_kdump? ) > > So I assume that what's happening here is that select says that the fd > is ready to be read from but then recvmsg returns EWOULDBLOCK (aka > EAGAIN). > > The only way I can see that currently happening is if MSG_WAITALL for > some reason is set, now wait a moment, MSG_* do not have the same > values on Linux. > > Could you try the following patch and tell us how it goes? I'm afraid > it's against -current. If it doesn't apply with small amounts of > force to -stable, bug me and I can redo it. Marcel: does this look ok? > > /assar > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 15: 5: 3 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 15:05:00 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-107.dsl.snfc21.pacbell.net [63.202.177.107]) by hub.freebsd.org (Postfix) with ESMTP id EE19B37B404 for ; Tue, 19 Dec 2000 15:04:59 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id eBJNFIQ13895; Tue, 19 Dec 2000 15:15:19 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012192315.eBJNFIQ13895@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Jeremiah Gowdy" Cc: emulation@FreeBSD.ORG Subject: Re: DOS Emulation KLD In-reply-to: Your message of "Tue, 19 Dec 2000 08:44:09 PST." <001101c069da$e95654b0$aa240018@cx443070b> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Dec 2000 15:15:18 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Cool! Careful though, or you'll end up as its maintainer. 8) > > That wouldn't bother me a bit. :) I've been trying to bring my BSD > programming skills up to par so I can contribute to the project, but haven't > yet found an area in which I would really be of use. However, as I said, > DOS programming is something I excel at, having been programming in DOS > since I was 11 years old. Once I knock off this stupid Borland Builder NTP > project for my boss, I'm going to contact the current maintainers. You just have. 8) Actually, several people have sort of nibbled around the edges of doscmd for a while; you should check the commit logs and poll to see if any of them still have uncommitted changes lying around. > > I'm glad to hear that. For better or worse, I spent quite a bit of time > > working on doscmd some years back, and I might be able to help you if you > > get stuck. I can certainly dig out a few of the ideas that I thought > > ought to be implemented, if you find yourself looking for new things to > > add. 8) > > Cool. Go ahead and give me any improvement ideas, and if they're within my > capabilities, I'll implement them. Sure. - You should be able to do fullscreen mode in a terminal window using curses. I did this for pcemu, and it was a bit slow but otherwise OK. Getting the keyboard translations right is a bit hard. - X mode should support at least 640x480x16 graphics, as well as other text modes. This will involve expanding the video BIOS emulation. - The DOS emulation for standalone mode could probably be improved a lot. - I recall that path translation in standalone mode was very nonintuitive. I'm not sure what could be done to improve this. If I come up with any more, I'll try to pass them on. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 15:15:16 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 15:15:13 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from sherline.net (sherline.net [216.120.87.2]) by hub.freebsd.org (Postfix) with SMTP id 857CC37B402 for ; Tue, 19 Dec 2000 15:15:13 -0800 (PST) Received: (qmail 1637 invoked from network); 19 Dec 2000 23:14:14 -0000 Received: from server.sherline.net (HELO server) (216.120.87.3) by sherline.net with SMTP; 19 Dec 2000 23:14:14 -0000 Message-ID: <002101c06a0e$b5c92a80$035778d8@server> From: "Jeremiah Gowdy" To: "Mike Smith" Cc: References: <200012192315.eBJNFIQ13895@mass.osd.bsdi.com> Subject: Re: DOS Emulation KLD Date: Tue, 19 Dec 2000 14:54:57 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > Cool! Careful though, or you'll end up as its maintainer. 8) > > > > That wouldn't bother me a bit. :) I've been trying to bring my BSD > > programming skills up to par so I can contribute to the project, but haven't > > yet found an area in which I would really be of use. However, as I said, > > DOS programming is something I excel at, having been programming in DOS > > since I was 11 years old. Once I knock off this stupid Borland Builder NTP > > project for my boss, I'm going to contact the current maintainers. > > You just have. 8) Actually, several people have sort of nibbled around > the edges of doscmd for a while; you should check the commit logs and > poll to see if any of them still have uncommitted changes lying around. heh. This reminds me of the time when I was in #gnutella, and I said, GnOTella SUCKS ! And this guy asked me why I thought it sucked, and I went off for like 10 minutes on why it sucked. And he said he would fix it as soon as possible, and I realized I was ranting to the author :) > - The DOS emulation for standalone mode could probably be improved a lot. This is probably the area in which I could be the most useful. I've still yet to get my MSDOS 5.0 disk to boot, and it keeps saying unimplemented interrupts. I believe I will start on implementing as many interrupts as I can (that seem useful). > - I recall that path translation in standalone mode was very > nonintuitive. I'm not sure what could be done to improve this. I found that it doesn't handle capital filenames very well. I tried running SNAP.EXE and it said it couldn't find the file. I renamed to snap.exe and it (tried) to run it. I'm going to print out the source, break out some DOS Interrupt books and see what I can come up with. If you can think of any interrupts you would suggest to be implemented first, let me know. I'm going to address the ones I'm getting from DOS's bootdisks 5 and 6. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 15:37:42 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 15:37:41 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-107.dsl.snfc21.pacbell.net [63.202.177.107]) by hub.freebsd.org (Postfix) with ESMTP id 54FEC37B400 for ; Tue, 19 Dec 2000 15:37:40 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.1/8.11.1) with ESMTP id eBJNlxQ14139; Tue, 19 Dec 2000 15:48:00 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012192348.eBJNlxQ14139@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Jeremiah Gowdy" Cc: emulation@FreeBSD.ORG Subject: Re: DOS Emulation KLD In-reply-to: Your message of "Tue, 19 Dec 2000 14:54:57 PST." <002101c06a0e$b5c92a80$035778d8@server> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Dec 2000 15:47:59 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > - The DOS emulation for standalone mode could probably be improved a lot. > > This is probably the area in which I could be the most useful. I've still > yet to get my MSDOS 5.0 disk to boot, and it keeps saying unimplemented > interrupts. I believe I will start on implementing as many interrupts as I > can (that seem useful). Ok, we have a disconnect here. "standalone" mode is where doscmd emulates DOS itself, "boot" mode is where you try to boot DOS. > > - I recall that path translation in standalone mode was very > > nonintuitive. I'm not sure what could be done to improve this. > > I found that it doesn't handle capital filenames very well. I tried running > SNAP.EXE and it said it couldn't find the file. I renamed to snap.exe and > it (tried) to run it. Yes; there's a lot of room here for extra intelligence. > I'm going to print out the source, break out some DOS Interrupt books and > see what I can come up with. If you can think of any interrupts you would > suggest to be implemented first, let me know. I'm going to address the ones > I'm getting from DOS's bootdisks 5 and 6. That'd be a good start. The hardware emulation for the keyboard/mouse controller is also a common stumbling block (later DOS versions' kbd.sys hang trying to talk directly to the keyboard controller). -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Dec 19 18:31: 2 2000 From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 19 18:31:00 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from assaris.sics.se (h122n4fls32o892.telia.com [213.64.47.122]) by hub.freebsd.org (Postfix) with ESMTP id E11A337B400 for ; Tue, 19 Dec 2000 18:30:50 -0800 (PST) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id DAA84534; Wed, 20 Dec 2000 03:29:26 +0100 (CET) (envelope-from assar) Sender: assar@assaris.sics.se To: "Renaud Waldura" Cc: Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 References: <01a901c067b1$8ced2d00$0402010a@biohz.net> <3A3C0199.8DED329B@cup.hp.com> <000901c067c8$d406a7e0$0402010a@biohz.net> <5l3dfmm44y.fsf@assaris.sics.se> <001f01c06a0e$1edf2200$0402010a@biohz.net> From: Assar Westerlund Date: 20 Dec 2000 03:29:26 +0100 In-Reply-To: "Renaud Waldura"'s message of "Tue, 19 Dec 2000 14:50:43 -0800" Message-ID: <5l7l4vbzax.fsf@assaris.sics.se> Lines: 22 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Renaud Waldura" writes: > Now, the funny thing is, the exact same thing happens on Linux. Here is the > strace output: > > 01 gettimeofday({977090705, 46700}, {420, 0}) = 0 > 02 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) > 03 recvfrom(4, 0x8220c40, 16384, 0, 0xbfffba10, 0xbfffba0c) = -1 EAGAIN > (Resource temporarily unavailable) > > Pretty much equivalent to the FreeBSD trace... Unfortunately q3ded on Linux > works like a charm, and it doesn't on FreeBSD. So, I'm still looking. Any > ideas? I think your analysis is correct. To get any idea on what might be wrong, I think you need to catch more tracing output. Could you try strace:ing and ktrace:ing the whole execution of q3ded on linux and freebsd, and make both of these and the DEBUG-output available somewhere (ftp or http) instead of posting it to the list? Thanks. /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Dec 20 8:57: 4 2000 From owner-freebsd-emulation@FreeBSD.ORG Wed Dec 20 08:57:00 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from xram.ru (unknown [212.45.6.38]) by hub.freebsd.org (Postfix) with ESMTP id 9443437B698 for ; Wed, 20 Dec 2000 08:56:55 -0800 (PST) Received: from xram.ru ([127.0.0.1]) by xram.ru with Microsoft SMTPSVC(5.0.2172.1); Wed, 20 Dec 2000 19:55:31 +0300 From: "www.xram.ru" To: Subject: =?Windows-1251?Q?=CF=EE=E7=E4=F0=E0=E2=EB=FF=E5=EC=20?= =?Windows-1251?Q?=F1=20=CD=EE=E2=FB=EC=20=C3=EE=E4=EE=EC!?= Date: Wed, 20 Dec 2000 19:55:31 Московское время (зима) MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: xram.ru Message-ID: X-OriginalArrivalTime: 20 Dec 2000 16:55:31.0440 (UTC) FILETIME=[A9A0A700:01C06AA5] Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Сердечно поздравляем Вас с Новым Годом!! Желаем Вам на Новый год всех радостей на свете, Здоровья на сто лет вперед и Вам, и Вашим детям! Пусть радость в будущем году Вам будет чудным даром, А слезы, скуку и беду оставьте лучше в старом! :)) ------------------------------------------------------------- Все готовятся к встрече Нового Года. Готовят подарки своим друзьям, любимым, близким и детям. Но порой люди забывают, что в каждой семье есть дети и разница лишь в том, что в одних семьях - дети, согретые заботой благополучных родителей - здоровы и счастливы, в других - инвалиды, больные и сироты. Вот уже полтора года мы помогаем облегчить обездоленным детям их нелегкую судьбу. Мы проводим благотворительный марафон "Гражданская позиция" в поддержку детей-инвалидов, больных и сирот. За эти полтора года благодаря Вашей помощи удалось многого достичь. Многим детям собраны средства на лечение, на продукты питания и теплую одежду. За это от имени всех детей говорим Вам ОГРОМНОЕ ЧЕЛОВЕЧЕСКОЕ СПАСИБО!! Мы рады, что люди осознают свою величайшую значимость в судьбе обездоленных детей! Мы просим Вас в канун Нового Года не забывать творить великие дела - любить ближних, помогать обездоленным. Мы призываем Вас сделать детям встречу Нового 2001 Года настоящим праздником, ведь праздников в их жизни бывает не так много! Мы призываем Вас помочь обездоленным детям и внести благотворительные взносы в марафон "Гражданская позиция"! Перечисление благотворительных средств и добровольных пожертвований можно осуществить по следующим реквизитам: ------------------------------------------------------------- Получатель: | ООО "РИА Пресс-Центр" ИНН получателя: | 7716166144 Наименование банка: | Москворецкое отд. 5284 МБ АК СБ РФ БИК: | 044525342 корр.счет: | 30101810600000000342 расчетный счет: | 40702810538310102549 Основание платежа: | Благотворительный взнос ------------------------------------------------------------- Подробности о благотворительном марафоне "Гражданская позиция" можно узнать по адресу http://kids.xram.ru, по электронной почте help-kids@mail.ru или по телефону (095) 202-8756 ------------------------------------------------------------- Давайте, и дастся Вам... Ибо какою мерою мерите, такою же отмерится и Вам (Евангелие от Луки 6:38) Благословение Божие да пребудет на всех Вас! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Dec 22 3:48:28 2000 From owner-freebsd-emulation@FreeBSD.ORG Fri Dec 22 03:48:26 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from candy.anet.ee (ns.anet.ee [212.49.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 69CF637B402 for ; Fri, 22 Dec 2000 03:48:24 -0800 (PST) Received: from widespace.ee (widespace2.anet.ee [212.49.2.21] (may be forged)) by candy.anet.ee (8.9.3/8.9.3) with ESMTP id NAA03766 for ; Fri, 22 Dec 2000 13:48:22 +0200 (GMT) Message-ID: <3A433F1B.8F60BFF4@widespace.ee> Date: Fri, 22 Dec 2000 13:46:35 +0200 From: Igor Malinin X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@FreeBSD.ORG Subject: Linux emulator: missed libpam.so.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Some linux program gives error: error in loading shared libraries: libpam.so.0: ELF file ABI version invalid. Does anybody know where to find libpam.so.0 ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message