From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 21 06:30:15 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B9316A4BF for ; Thu, 21 Aug 2003 06:30:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F49E43FA3 for ; Thu, 21 Aug 2003 06:30:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7LDUEUp033538 for ; Thu, 21 Aug 2003 06:30:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7LDUErP033537; Thu, 21 Aug 2003 06:30:14 -0700 (PDT) Resent-Date: Thu, 21 Aug 2003 06:30:14 -0700 (PDT) Resent-Message-Id: <200308211330.h7LDUErP033537@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Nilsson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A14BB16A4BF for ; Thu, 21 Aug 2003 06:26:43 -0700 (PDT) Received: from platon.gneto.com (as6-1-5.kr.m.bonet.se [217.215.84.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FF4E43FA3 for ; Thu, 21 Aug 2003 06:26:42 -0700 (PDT) (envelope-from martin@gneto.com) Received: by platon.gneto.com (Postfix, from userid 1202) id 81F074AC0; Thu, 21 Aug 2003 15:26:38 +0200 (CEST) Message-Id: <20030821132638.81F074AC0@platon.gneto.com> Date: Thu, 21 Aug 2003 15:26:38 +0200 (CEST) From: Martin Nilsson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/55835: Linux IPC emulation missing SETALL syscall X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 13:30:15 -0000 >Number: 55835 >Category: kern >Synopsis: Linux IPC emulation missing SETALL syscall >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Aug 21 06:30:14 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Martin Nilsson >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD platon.gneto.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Aug 12 11:25:17 CEST 2003 martin@platon.gneto.com:/usr/obj/ext/FreeBSD/RELENG_4/sys/PLATON i386 >Description: This patch implements the missing SETALL syscall in linux_ipc.c With this patch I'm able to run the Linux version of the PervasiveSQL 2000 database Pervasive.SQL-7.94.251.005-2000i.i386.rpm Pervasive V8 requires further work. Can somebody please check if it really is this easy to implement the LINUX_SETALL call! Work on this sponsored by: Harrys Bilskrot AB (www.harrysbilskrot.se) >How-To-Repeat: >Fix: Patch is against todays RELENG_4 this part of the code doesn't seem to be changed in CURRENT --- sys/compat/linux/linux_ipc.c.orig Mon Nov 5 20:08:22 2001 +++ sys/compat/linux/linux_ipc.c Thu Aug 21 15:13:54 2003 @@ -291,9 +291,10 @@ return error; p->p_retval[0] = seminfo.semmni; return 0; /* No need for __semctl call */ - case LINUX_GETALL: - /* FALLTHROUGH */ case LINUX_SETALL: + bsd_args.cmd = SETALL; + break; + case LINUX_GETALL: /* FALLTHROUGH */ default: uprintf("linux: 'ipc' typ=%d not implemented\n", args->cmd); >Release-Note: >Audit-Trail: >Unformatted: