summaryrefslogtreecommitdiffstats
path: root/source3/lib/sendfile.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-121-4/+4
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* Fix bug noticed by Volker - if sendfile returns zero thenJeremy Allison2009-01-131-4/+12
| | | | | we might have to handle a short send by filling with zeros. Jeremy.
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* Fix various build warningsZach Loafman2008-07-221-1/+2
| | | | | | This fixes various build warnings on our platform. I'm sure I haven't caught them all, but it's a start. (This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r14393: Fix a couple of AIX warnings.Jeremy Allison2007-10-101-1/+0
| | | | | Jeremy. (This used to be commit 8444c997bd3e18b1d04ebe85f06c8c6e34d7373f)
* r4296: Patch from William Jojo <jojowil@hvcc.edu> to fix HPUX sendfile and addJeremy Allison2007-10-101-1/+57
| | | | | | configure.in tests and code for sendfile on AIX. Jeremy. (This used to be commit f08aceb9882fb1df1e1e28179f87ac5c3d5afa45)
* r3944: Fix the problem we get on Linux where sendfile fails, but we've ↵Jeremy Allison2007-10-101-2/+26
| | | | | | | | | | | | already sent the header using send(). As our implementation of sendfile can't return EINTR (it restarts in that case) use an errno of EINTR to signal the linux sendfile fail after header case. When that happens send the rest of the data and then turn off sendfile. Sendfile should be safe to enable on all systems now (even though it may not help in all performance cases). Jeremy. (This used to be commit 78236382f7ffe08d7924907be49493779521837f)
* Cast to fix warning on Solaris sendfile - check buildfarm outputTim Potter2003-11-021-1/+1
| | | | | to see if this works! Bug #706. (This used to be commit 67ab91825db9b81b8b4f35e86a7eede0c7df5621)
* merging [un]signed declarationGerald Carter2003-01-241-1/+1
| | | | (This used to be commit 15be89e72fee97106db1bd06d18060c21bbf78e1)
* Fix Solaris sendfile detection. Add small fixes to sendfile code.Jeremy Allison2002-10-011-3/+2
| | | | | Jeremy. (This used to be commit 7ba5636897ea57669c62d22bb399bcfe5e3a9907)
* Added Solaris sendfile patch + configure tests from Pierre Belanger ↵Jeremy Allison2002-09-301-3/+84
| | | | | | | <belanger@yahoo.com>. Jeremy. (This used to be commit 9c17faefa5cb0ed450578ae5bbcca44e3058bc9b)
* Don't zero out numwritten before using.... Found by Pierre Belanger ↵Jeremy Allison2002-09-301-2/+2
| | | | | | | belanger@pobox.com Jeremy. (This used to be commit 495e6e3287152a7ec218a38b3133f7ae16d5a8d1)
* Merge back Richard's FreeBSD sendfile fixes.Jeremy Allison2002-09-211-5/+5
| | | | | Jeremy. (This used to be commit f4845b0213aec58e0f489eba5653aa7b3855610f)
* HPUX sendfile is now detected correctly.Jeremy Allison2002-09-181-1/+2
| | | | | Jeremy. (This used to be commit 91e41ebe97c143f413e2a5614b20f3db4642490f)
* Actually use sendfile if selected.Jeremy Allison2002-09-171-2/+2
| | | | | Jeremy. (This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
* Attempt to make broken Linux sendfile work.... Still in progress.Jeremy Allison2002-09-171-7/+17
| | | | | Jeremy. (This used to be commit f956a4d29d0d88cd92fac0f0c9f636fc152afe0a)
* Use HAVE_SENDFILE64, not SENDFILE64.Jeremy Allison2002-09-141-2/+5
| | | | | Jeremy. (This used to be commit 7e2f9769c9a7ee5d11267a8a8864371fc0aa8f50)
* Added fix for broken Linux (no sendfile64). When offset + count > 2GBJeremy Allison2002-09-141-0/+57
| | | | | | then return ENOSYS and let the upper layer handle it. Jeremy (This used to be commit 872dfd87cda585c33c3823b06580cb301567a9b9)
* Fixed up FreeBSD sendfile code - only Solaris left then I can add theJeremy Allison2002-09-121-22/+55
| | | | | | configure tests... Jeremy. (This used to be commit 9dad88e1d4d09f61da87dab2633c6e989a9dd77f)
* HPUX takes offset, not pointer to offset.Jeremy Allison2002-09-121-2/+2
| | | | | Jeremy. (This used to be commit d7024e8cb94a20cba789deb2c5b70221f6cca4fd)
* Fixup sendfile to match HPUX semantics with signal interrups. This wasJeremy Allison2002-09-121-12/+52
| | | | | | fiddly.... :-(. Jeremy. (This used to be commit 2b33a500a8ad13acdd7e4f593aba65229dc8dd96)
* First cut at portable sendfile code. Only used in readX at the momentJeremy Allison2002-09-121-0/+158
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)