Tim Potter
0dd2e07ea5
Cast to fix warning on Solaris sendfile - check buildfarm output
...
to see if this works! Bug #706 .
(This used to be commit 67ab91825db9b81b8b4f35e86a7eede0c7df5621)
2003-11-02 13:59:37 +00:00
Gerald Carter
48f6ede4b4
merging [un]signed declaration
...
(This used to be commit 15be89e72fee97106db1bd06d18060c21bbf78e1)
2003-01-24 16:34:54 +00:00
Jeremy Allison
88e481ec13
Fix Solaris sendfile detection. Add small fixes to sendfile code.
...
Jeremy.
(This used to be commit 7ba5636897ea57669c62d22bb399bcfe5e3a9907)
2002-10-01 05:54:40 +00:00
Jeremy Allison
4d2d5c4ace
Added Solaris sendfile patch + configure tests from Pierre Belanger <belanger@yahoo.com>.
...
Jeremy.
(This used to be commit 9c17faefa5cb0ed450578ae5bbcca44e3058bc9b)
2002-09-30 21:17:18 +00:00
Jeremy Allison
f6bdffbf8d
Don't zero out numwritten before using.... Found by Pierre Belanger belanger@pobox.com
...
Jeremy.
(This used to be commit 495e6e3287152a7ec218a38b3133f7ae16d5a8d1)
2002-09-30 05:24:12 +00:00
Jeremy Allison
515c1d42ee
Merge back Richard's FreeBSD sendfile fixes.
...
Jeremy.
(This used to be commit f4845b0213aec58e0f489eba5653aa7b3855610f)
2002-09-21 08:53:05 +00:00
Jeremy Allison
994638f577
HPUX sendfile is now detected correctly.
...
Jeremy.
(This used to be commit 91e41ebe97c143f413e2a5614b20f3db4642490f)
2002-09-18 20:07:56 +00:00
Jeremy Allison
9bab1d0c1a
Actually use sendfile if selected.
...
Jeremy.
(This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
2002-09-17 19:48:19 +00:00
Jeremy Allison
f74086ccf0
Attempt to make broken Linux sendfile work.... Still in progress.
...
Jeremy.
(This used to be commit f956a4d29d0d88cd92fac0f0c9f636fc152afe0a)
2002-09-17 01:00:03 +00:00
Jeremy Allison
3f02393bfd
Use HAVE_SENDFILE64, not SENDFILE64.
...
Jeremy.
(This used to be commit 7e2f9769c9a7ee5d11267a8a8864371fc0aa8f50)
2002-09-14 01:38:55 +00:00
Jeremy Allison
febd3f929b
Added fix for broken Linux (no sendfile64). When offset + count > 2GB
...
then return ENOSYS and let the upper layer handle it.
Jeremy
(This used to be commit 872dfd87cda585c33c3823b06580cb301567a9b9)
2002-09-14 00:34:46 +00:00
Jeremy Allison
6cf499ecff
Fixed up FreeBSD sendfile code - only Solaris left then I can add the
...
configure tests...
Jeremy.
(This used to be commit 9dad88e1d4d09f61da87dab2633c6e989a9dd77f)
2002-09-12 18:18:35 +00:00
Jeremy Allison
8c5f577c6f
HPUX takes offset, not pointer to offset.
...
Jeremy.
(This used to be commit d7024e8cb94a20cba789deb2c5b70221f6cca4fd)
2002-09-12 06:26:06 +00:00
Jeremy Allison
fdb8c4dfe1
Fixup sendfile to match HPUX semantics with signal interrups. This was
...
fiddly.... :-(.
Jeremy.
(This used to be commit 2b33a500a8ad13acdd7e4f593aba65229dc8dd96)
2002-09-12 06:24:41 +00:00
Jeremy Allison
4f613ac61e
First cut at portable sendfile code. Only used in readX at the moment
...
and doesn't actually call sendfile. Needs to be vectored through the
VFS and tested on all supported platforms (Solaris/HPUX/FreeBSD/Linux).
Linux doesn't actually work (2.4.19 kernel) at the moment because it
doesn't have a 64-bit clean sendfile.
Jeremy.
(This used to be commit fd772ca7b16cd86e0d50c7ed8d537c202976a6d2)
2002-09-12 02:12:52 +00:00