From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Sat, 11 Jul 2009 22:27:58 +0200 From: cinap_lenrek@gmx.de In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-ibcppaxjriotiprscamlebszmd" Subject: Re: [9fans] mozilla on linuxemu3 gives "ulimit not implemented" Topicbox-Message-UUID: 1bc7acba-ead5-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-ibcppaxjriotiprscamlebszmd Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit no, the syscall just returns -EIMPL because its not implemented... you can run linuxemu with -d option wich will log all syscalls and other debugging to strerr, or when something crashes attach acid to the broken process with the linuxemu.acid file and run utrace(Current()) and look if we hit unimplemented syscalls. but sys_ulimit() should be pretty harmless. you can implement that syscall if you want. i should make a small tutorial about how to add syscalls... 1. find out what the parameters of the syscall is (linuxassembly.org, lxr...) 2. add your syscall function prototype in fns.h like: int sys_mysyscall(int arg1, void *arg2); if structs are passed use void * and declare the struct near your implementation and cast the void* in it. for some complicated syscalls you can access the registers where arguments are passed in linux with current->ureg->reg but it should be avoided. the automatic convertion of syscalls to plan9 function passing allows the later implementation of for example a bsd syscall emulator. (bsd uses the traditional stack based argument passing) 3. add your syscalll to the linuxcalltab file like this: 123 2 mysyscall sys_mysyscall the first column is the syscall number, the 2nd is the number of arguments for the syscall function. the comes just a name and the last one is the function that will be called. 4. implement your function somewhere -- cinap --upas-ibcppaxjriotiprscamlebszmd Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-bounces+cinap_lenrek=gmx.de@9fans.net> X-Flags: 0000 Delivered-To: GMX delivery to cinap_lenrek@gmx.de Received: (qmail invoked by alias); 11 Jul 2009 18:22:12 -0000 Received: from gouda.swtch.com (EHLO gouda.swtch.com) [67.207.142.3] by mx0.gmx.net (mx071) with SMTP; 11 Jul 2009 20:22:12 +0200 Received: from localhost ([127.0.0.1] helo=gouda.swtch.com) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from <9fans-bounces@9fans.net>) id 1MPh7l-00036E-2w; Sat, 11 Jul 2009 18:16:37 +0000 Received: from www.9netics.com ([64.91.109.37] helo=9netics.com) by gouda.swtch.com with esmtp (Exim 4.69) (envelope-from <9nut@9netics.com>) id 1MPh7i-000369-Li for 9fans@9fans.net; Sat, 11 Jul 2009 18:16:34 +0000 Message-ID: To: 9fans@9fans.net Date: Sat, 11 Jul 2009 11:16:31 -0700 From: Skip Tavakkolian <9nut@9netics.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] mozilla on linuxemu3 gives "ulimit not implemented" X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.10 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces+cinap_lenrek=gmx.de@9fans.net X-GMX-Antivirus: 0 (no virus found) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: bO9tfkZhTiEtJowmxGRw7mJ1ZUVSRJcZ i don't have the exact message; the machine is remote and currently powered off. is it my setup? --upas-ibcppaxjriotiprscamlebszmd--