public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Change sendfile header
@ 2003-01-30  3:03 Bill Davidsen
  2003-01-30  4:46 ` Ulrich Drepper
  2003-01-30  8:34 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: Bill Davidsen @ 2003-01-30  3:03 UTC (permalink / raw)
  To: Linux-Kernel Mailing List

I suggest that the header holding the prototype for sendfile should not be
in unistd.h because:

1 - sendfile is not in SuS, an is extremely non-standard
2 - there is a sendfile in BSD and it's totally different
3 - there is no man page for sendfile in Solaris, but there is a
    definition in one of the libraries which is not Linux compatible
4 - just putting the "not portable" warning in the man page to counteract
    the impression given by the <unistd.h> is not enough, programmers
    usually only read the man page  to get the args right.

Since Linux sendfile is totally applicable only to Linux, it would seem
that a better name for the header file, like linux/sendfile.h, would be
better. This has the advantage of not breaking executables, and requiring
use of a header file which makes it much harder to overlook the
portability issue.

-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-31 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30  3:03 [RFC] Change sendfile header Bill Davidsen
2003-01-30  4:46 ` Ulrich Drepper
2003-01-30  8:34 ` Christoph Hellwig
2003-01-31 18:08   ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox