sendfile(2) SF_NOPUSH flag proposal

Terry Lambert tlambert2 at mindspring.com
Tue May 27 23:05:02 PDT 2003


Igor Sysoev wrote:
> > I don't think overhead is the issue, at this point: say we agree
> > with you on overhead, for your particular application, and we are
> > not against you solving your overhead problem: why exactly does
> > the API have to change to fix the root cause of the problem?
> 
> I do not propose the change of the API, I propose the source and binary
> compatible addition.

The "Subject:" line says you want to add a flag.  This is
binary backward compatible, but it is not binary portable,
and it is not source portable to systems that use your flag.

What happens when you want to recompile or run your code
that uses the new flag on NetBSD, Darwin, MacOS X, etc.?

I'll tell you what happens: you get a compilation error
with an undefined variable.

-- Terry


More information about the freebsd-arch mailing list