Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 1999 18:27:04 -0700
From:      Jason Thorpe <thorpej@nas.nasa.gov>
To:        John Milford <jwm@CSUA.Berkeley.EDU>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: read() and pread() syscalls 
Message-ID:  <199904120127.SAA25072@lestat.nas.nasa.gov>

next in thread | raw e-mail | index | archive | help
On Sun, 11 Apr 1999 18:10:45 -0700 
 John Milford <jwm@CSUA.Berkeley.EDU> wrote:

 > 	Yeah, I sort let that slip by me.  However the concept of
 > emulating read() with readv() and pread() with preadv() does seem
 > valid.  I originally was looking at emulating read() with readv()
 > from userspace, but when pread showed up it looked like a better
 > match, unfortuantely I didn't look close enough.  It would appear that
 > there is no efficiency trade off in a read() to readv() user space
 > conversion since the kernel essentially does the convertion internally
 > anyway.

...and since you must provide the old syscall stubs for binary compatibility,
and the read() interface is much easier for some things to deal with (e.g.
assembly language), "what's the point"?

Just share as much of the in-kernel code as you can.

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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