From owner-cvs-all Sun Mar 28 2:42:28 1999 Delivered-To: cvs-all@freebsd.org Received: from helios.dnttm.ru (dnttm-gw.rssi.ru [193.232.0.205]) by hub.freebsd.org (Postfix) with ESMTP id 8F48C14C2C; Sun, 28 Mar 1999 02:42:10 -0800 (PST) (envelope-from dima@tejblum.dnttm.rssi.ru) Received: (from uucp@localhost) by helios.dnttm.ru (8.9.1/8.9.1/IP-3) with UUCP id OAA22174; Sun, 28 Mar 1999 14:39:27 +0400 Received: from tejblum.dnttm.rssi.ru (localhost [127.0.0.1]) by tejblum.dnttm.rssi.ru (8.9.3/8.9.1) with ESMTP id OAA01005; Sun, 28 Mar 1999 14:38:10 +0400 (MSD) (envelope-from dima@tejblum.dnttm.rssi.ru) Message-Id: <199903281038.OAA01005@tejblum.dnttm.rssi.ru> X-Mailer: exmh version 2.0gamma 1/27/96 To: Alan Cox Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern init_sysent.c sys_generic.c syscalls.c syscalls.master src/sys/sys syscall-hide.h syscall.h syscall.mk sysproto.h In-reply-to: Your message of "Sat, 27 Mar 1999 18:23:27 MDT." <19990327182327.A56429@nonpc.cs.rice.edu> Mime-Version: 1.0 Content-Type: text/plain Date: Sun, 28 Mar 1999 14:38:10 +0400 From: Dmitrij Tejblum Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Alan Cox wrote: > On Sun, Mar 28, 1999 at 03:38:23AM +0400, Dmitrij Tejblum wrote: > > Alan Cox wrote: > > > alc 1999/03/27 13:17:00 PST > > > > > > Added pread and pwrite. These functions are defined by the X/Open > > > Threads Extension. (Note: We use the same syscall numbers as NetBSD.) > > > > Then why our interface to these syscalls differs from the NetBSD one? > > Ours complies with the standard. See Tor Egge's explanation. You are confusing the syscall interface with the libc interface. (I still don't actually understand why the padding is necessary (it apparently isn't necessary on i386)). Anyway, reusing NetBSD syscalls numbers for stuff with different interface make us hopelessly incomopatible with NetBSD, so it is a sabotage. Anyhow, you have enough free syscall numbers to play with. > > And what the functions do with offset == -1? > It will currently behave like an ordinary read or write. Ah, thank you! (How silly is me, I should have seen it myself! ;-)) So, I assume, this behavior complies with the standard? Or what? Dima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message