[PATCH v2] pread_write.c: added cancellation for all architectures

Peter Mazinger ps.m at gmx.net
Tue May 17 19:39:08 UTC 2011


-------- Original-Nachricht --------
> Datum: Tue, 17 May 2011 10:16:10 -0400
> Von: Rich Felker <dalias at aerifal.cx>
> An: uclibc at uclibc.org
> Betreff: Re: [PATCH v2] pread_write.c: added cancellation for all architectures

> On Mon, May 16, 2011 at 05:56:00PM -0700, Maksim Rayskiy wrote:
> > On Mon, May 16, 2011 at 4:06 PM, Peter Mazinger <ps.m at gmx.net> wrote:
> > >
> > > If we remove fallback codes generally, that should not be a
> one-man-decision, see how list reacts, maybe we can agree upon some rule
> > >
> > I was referring to pread/pwrite fallback functions only, not in
> > general. I can submit the new patch, but like I said - all the
> > architectures I can compile/test (mips and arm) are not using the
> > fallback case.
> > I understand that you cannot test it once the fallback is removed, but
> > the code should at least compile and link properly.
> > 
> > Are you aware of any code that relies on _fake_ implementation? Maybe
> > the functions have been simply added for completeness...
> 
> They exist to provide the broken/fake emulated implementation on
> ancient kernels, not obscure archs. Whether pread/pwrite exist is
> purely a function of the kernel version, not the arch.

Well, how would we go, if we would want to support more than linux? Other unixes would provide other syscalls, so in your interpretation we would have another "visible" function set. On the other side *libc tries to provide a set of functions that are available independently of the fact what kernel is running below it.
At least this is how I understand it. POSIX is requiring functions, if we do not have them as syscalls available (as it is the case for most of required functions), we implement them in C (we might say, as long as kernel does not provide it, we need to implement a "fallback" version)

Peter 
> 
> Rich
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the uClibc mailing list