Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 1999 14:38:10 +0400
From:      Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
To:        Alan Cox <alc@cs.rice.edu>
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 
Message-ID:  <199903281038.OAA01005@tejblum.dnttm.rssi.ru>
In-Reply-To: Your message of "Sat, 27 Mar 1999 18:23:27 MDT." <19990327182327.A56429@nonpc.cs.rice.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903281038.OAA01005>