public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sendfile64?
@ 2001-02-20  0:55 Felix von Leitner
  2001-02-20  1:51 ` sendfile64? Chris Wedgwood
  0 siblings, 1 reply; 9+ messages in thread
From: Felix von Leitner @ 2001-02-20  0:55 UTC (permalink / raw)
  To: linux-kernel

Why isn't there a sendfile64?

Felix

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

* Re: sendfile64?
  2001-02-20  0:55 sendfile64? Felix von Leitner
@ 2001-02-20  1:51 ` Chris Wedgwood
  2001-02-20 10:53   ` sendfile64? Jakub Jelinek
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Wedgwood @ 2001-02-20  1:51 UTC (permalink / raw)
  To: linux-kernel

    Why isn't there a sendfile64?

because nobody has implemented on -- arguably it's not needed; the
different between:

	sendfile64(...)

and

	while(blah){
		sendfile( ... 1G or so ...)
	}

probably won't be detectable anyhow. I see no reason why sendfile64
should be purely user-space (then again, I see no reason why not to
extend the kernel API as is, but last time I tested it is was busted
WRT signals so I would rather that be fixed before further
proliferation there).



  --cw

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

* Re: sendfile64?
  2001-02-20  1:51 ` sendfile64? Chris Wedgwood
@ 2001-02-20 10:53   ` Jakub Jelinek
  0 siblings, 0 replies; 9+ messages in thread
From: Jakub Jelinek @ 2001-02-20 10:53 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: linux-kernel

On Tue, Feb 20, 2001 at 02:51:24PM +1300, Chris Wedgwood wrote:
>     Why isn't there a sendfile64?
> 
> because nobody has implemented on -- arguably it's not needed; the
> different between:
> 
> 	sendfile64(...)
> 
> and
> 
> 	while(blah){
> 		sendfile( ... 1G or so ...)
> 	}
> 
> probably won't be detectable anyhow. I see no reason why sendfile64
> should be purely user-space (then again, I see no reason why not to
> extend the kernel API as is, but last time I tested it is was busted
> WRT signals so I would rather that be fixed before further
> proliferation there).

Wrong. sendfile takes a pointer to off_t, not loff_t, so you cannot replace
sendfile64 with multiple sendfile's if offset is non-NULL from userland.
It simply won't work properly on big files (no matter what size you transfer
at a time).

	Jakub

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

* sendfile64()?
@ 2002-05-31 15:53 Roy Sigurd Karlsbakk
  2002-05-31 16:28 ` sendfile64()? Mark Mielke
  2002-06-04 13:58 ` sendfile64()? Artur Frysiak
  0 siblings, 2 replies; 9+ messages in thread
From: Roy Sigurd Karlsbakk @ 2002-05-31 15:53 UTC (permalink / raw)
  To: linux-kernel

hi

where can i find sendfile64()? It doesn't seem to exist in any library 
anywhere ...

roy
-- 
Roy Sigurd Karlsbakk, Datavaktmester

Computers are like air conditioners.
They stop working when you open Windows.

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

* Re: sendfile64()?
  2002-05-31 15:53 sendfile64()? Roy Sigurd Karlsbakk
@ 2002-05-31 16:28 ` Mark Mielke
  2002-06-04 13:58 ` sendfile64()? Artur Frysiak
  1 sibling, 0 replies; 9+ messages in thread
From: Mark Mielke @ 2002-05-31 16:28 UTC (permalink / raw)
  To: Roy Sigurd Karlsbakk; +Cc: linux-kernel

On Fri, May 31, 2002 at 05:53:23PM +0200, Roy Sigurd Karlsbakk wrote:
> where can i find sendfile64()? It doesn't seem to exist in any library 
> anywhere ...

sys/sendfile.h (2.4.18):

    #ifdef __USE_FILE_OFFSET64
    # error "<sys/sendfile.h> cannot be used with _FILE_OFFSET_BITS=64"
    #endif

The real question, then, isn't where is it, but why isn't it?

Somebody else will have to answer this... sorry...
mark

-- 
mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


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

* Re: sendfile64()?
  2002-05-31 15:53 sendfile64()? Roy Sigurd Karlsbakk
  2002-05-31 16:28 ` sendfile64()? Mark Mielke
@ 2002-06-04 13:58 ` Artur Frysiak
  2002-06-04 14:24   ` sendfile64()? Matti Aarnio
  1 sibling, 1 reply; 9+ messages in thread
From: Artur Frysiak @ 2002-06-04 13:58 UTC (permalink / raw)
  To: linux-kernel

On Fri, May 31, 2002 at 05:53:23PM +0200, Roy Sigurd Karlsbakk wrote:
> hi
> 
> where can i find sendfile64()? It doesn't seem to exist in any library 
> anywhere ...

glibc from CVS ?

Regards
-- 
Artur Frysiak
http://www.pld.org.pl/

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

* Re: sendfile64()?
  2002-06-04 13:58 ` sendfile64()? Artur Frysiak
@ 2002-06-04 14:24   ` Matti Aarnio
  2002-06-04 16:36     ` sendfile64()? Ingo Oeser
  0 siblings, 1 reply; 9+ messages in thread
From: Matti Aarnio @ 2002-06-04 14:24 UTC (permalink / raw)
  To: linux-kernel

On Tue, Jun 04, 2002 at 03:58:06PM +0200, Artur Frysiak wrote:
> On Fri, May 31, 2002 at 05:53:23PM +0200, Roy Sigurd Karlsbakk wrote:
> > hi
> > 
> > where can i find sendfile64()? It doesn't seem to exist in any library 
> > anywhere ...
> 
> glibc from CVS ?

  It does not exist in (32 bit) kernel, mostly because it doesn't
  make much sense..    Implementing it should be trivial, once
  somebody can show real meaningfull use for it.

> Regards
> Artur Frysiak
> http://www.pld.org.pl/

/Matti Aarnio

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

* Re: sendfile64()?
  2002-06-04 14:24   ` sendfile64()? Matti Aarnio
@ 2002-06-04 16:36     ` Ingo Oeser
  2002-06-04 17:31       ` sendfile64()? Benjamin LaHaise
  0 siblings, 1 reply; 9+ messages in thread
From: Ingo Oeser @ 2002-06-04 16:36 UTC (permalink / raw)
  To: Matti Aarnio; +Cc: linux-kernel

On Tue, Jun 04, 2002 at 05:24:41PM +0300, Matti Aarnio wrote:
>   It does not exist in (32 bit) kernel, mostly because it doesn't
>   make much sense..    Implementing it should be trivial, once
>   somebody can show real meaningfull use for it.

Copy over hard disk images, serving video files (not streams!),
serving database blobs etc.

Doing this only involving pagecache is not beneficial at all?

I'm not an expert in this area, but this would be my preferred
way to implement the above.

Regards

Ingo Oeser
-- 
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth

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

* Re: sendfile64()?
  2002-06-04 16:36     ` sendfile64()? Ingo Oeser
@ 2002-06-04 17:31       ` Benjamin LaHaise
  0 siblings, 0 replies; 9+ messages in thread
From: Benjamin LaHaise @ 2002-06-04 17:31 UTC (permalink / raw)
  To: Ingo Oeser; +Cc: Matti Aarnio, linux-kernel

sendfile64 is in 2.5.  A backport to 2.4 has also been ported; we 
just need to convince Marcelo to accept it for 2.4.20.

		-ben

On Tue, Jun 04, 2002 at 06:36:06PM +0200, Ingo Oeser wrote:
> On Tue, Jun 04, 2002 at 05:24:41PM +0300, Matti Aarnio wrote:
> >   It does not exist in (32 bit) kernel, mostly because it doesn't
> >   make much sense..    Implementing it should be trivial, once
> >   somebody can show real meaningfull use for it.
> 
> Copy over hard disk images, serving video files (not streams!),
> serving database blobs etc.
> 
> Doing this only involving pagecache is not beneficial at all?
> 
> I'm not an expert in this area, but this would be my preferred
> way to implement the above.
> 
> Regards
> 
> Ingo Oeser
> -- 
> Science is what we can tell a computer. Art is everything else. --- D.E.Knuth
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
"You will be reincarnated as a toad; and you will be much happier."

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

end of thread, other threads:[~2002-06-04 17:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-20  0:55 sendfile64? Felix von Leitner
2001-02-20  1:51 ` sendfile64? Chris Wedgwood
2001-02-20 10:53   ` sendfile64? Jakub Jelinek
  -- strict thread matches above, loose matches on Subject: below --
2002-05-31 15:53 sendfile64()? Roy Sigurd Karlsbakk
2002-05-31 16:28 ` sendfile64()? Mark Mielke
2002-06-04 13:58 ` sendfile64()? Artur Frysiak
2002-06-04 14:24   ` sendfile64()? Matti Aarnio
2002-06-04 16:36     ` sendfile64()? Ingo Oeser
2002-06-04 17:31       ` sendfile64()? Benjamin LaHaise

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