aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/sendfile.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-443/+0
| | | | | | | | | Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* libc: Fix most issues reported by mandocGordon Bergling2020-12-191-4/+4
| | | | | | | | | | | | | | - varios "new sentence, new line" warnings - varios "sections out of conventional order" warnings - varios "unusual Xr order" warnings - varios "missing section argument" warnings - varios "no blank before trailing delimiter" warnings - varios "normalizing date format" warnings MFC after: 1 month Notes: svn path=/head/; revision=368817
* Document EINTEGRITY errors for many system calls.John Baldwin2020-03-301-1/+4
| | | | | | | | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168 Notes: svn path=/head/; revision=359465
* sendfile() does currently not support SCTP sockets.Michael Tuexen2020-03-131-0/+9
| | | | | | | | | | | Therefore, fail the call. Reviewed by: markj@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24059 Notes: svn path=/head/; revision=358965
* Imaginary cat jumped my keyboard!Gleb Smirnoff2019-02-151-1/+0
| | | | Notes: svn path=/head/; revision=344190
* For 32-bit machines rollback the default number of vnode pager pbufsGleb Smirnoff2019-02-151-4/+22
| | | | | | | | | | | | back to the lever before r343030. For 64-bit machines reduce it slightly, too. Together with r343030 I bumped the limit up to the value we use at Netflix to serve 100 Gbit/s of sendfile traffic, and it probably isn't a good default. Provide a loader tunable to change vnode pager pbufs count. Document it. Notes: svn path=/head/; revision=344188
* Document that `sendfile` will return an invalid value for `sbytes` if ↵Enji Cooper2019-01-251-2/+13
| | | | | | | | | | | | | | | | | | | | provided an invalid address This is meant to clarify the fact that the system call will not fail with -1/EFAULT, as one might expect, when reading the sendfile(2) manpage today. While here, pet the mandoc linter, when dealing with the section that describes valid values for `flags`. PR: 232210 MFC after: 2 weeks Approved by: emaste (mentor) Reviewed by: glebius, 0mp Differential Revision: https://reviews.freebsd.org/D18949 Notes: svn path=/head/; revision=343444
* Document that sendfile(2) can return ENOTCAPABLEAllan Jude2018-10-131-1/+7
| | | | | | | | | PR: 232207 Submitted by: Enji Cooper <yaneurabeya@gmail.com> Approved by: re (rgrimes) Notes: svn path=/head/; revision=339343
* Add a space between a section number and a following comma.Mark Johnston2018-03-151-5/+5
| | | | | | | | | Fix some nits from igor while here. MFC after: 3 days Notes: svn path=/head/; revision=331016
* Fix a few more speelling errorsEitan Adler2017-12-281-1/+1
| | | | | | | | | Reviewed by: bjk Reviewed by: jilles (incl formal "accept") Differential Revision: https://reviews.freebsd.org/D13650 Notes: svn path=/head/; revision=327259
* Add flag SF_USER_READAHEAD to sendfile(2). When specified, the syscall won'tGleb Smirnoff2016-11-171-11/+33
| | | | | | | | | do any speculations about readahead, and use exactly the amount of readahead specified by user. E.g. setting SF_FLAGS(0, SF_USER_READAHEAD) will guarantee that no readahead at all will be performed. Notes: svn path=/head/; revision=308784
* New sendfile(2) syscall. A joint effort of NGINX and Netflix from 2013 andGleb Smirnoff2016-01-081-32/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | up to now. The new sendfile is the code that Netflix uses to send their multiple tens of gigabits of data per second. The new implementation features asynchronous I/O, when I/O operations are launched, but not awaited to be complete. An explanation of why such behavior is beneficial compared to old one is going to be too long for a commit message, so we will skip it here. Additional features of new syscall are extra flags, which provide an application more control over data sent. The SF_NOCACHE flag tells kernel that data shouldn't be cached after it was sent. The SF_READAHEAD() macro allows to specify readahead size in pages. The new syscalls is a drop in replacement. No modifications are required to applications. One can take nginx binary for stable/10 and run it successfully on head. Although SF_NODISKIO lost its original sense, as now sendfile doesn't block, and now means something completely different (tm), using the new sendfile the old way is absolutely safe. Celebrates: Netflix global launch! Sponsored by: Nginx, Inc. Sponsored by: Netflix Relnotes: yes Notes: svn path=/head/; revision=293439
* use .Mt to mark up email addresses consistently (part4)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267774
* Document that sendfile(2) can fail with ENOBUFS.Kevin Lo2012-11-141-0/+2
| | | | | | | Reviewed by: glebius Notes: svn path=/head/; revision=243015
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Further fix grammar.Konstantin Belousov2010-01-071-1/+1
| | | | | | | | Suggested by: alc MFC after: 3 days Notes: svn path=/head/; revision=201760
* Fix a typo and bump date for the previous commit.Christian Brueffer2010-01-071-2/+2
| | | | Notes: svn path=/head/; revision=201759
* Give some information on SF_MNOWAIT flag.Konstantin Belousov2010-01-071-2/+10
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=201743
* Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufsPoul-Henning Kamp2008-02-031-1/+14
| | | | | | | | | | | referencing the files VM pages are returned from the network stack, making changes to the file safe. This flag does not guarantee that the data has been transmitted to the other end. Notes: svn path=/head/; revision=175941
* Note that, thanks to the work by Alan Cox et al, some arch'esYaroslav Tykhiy2006-11-241-2/+19
| | | | | | | | | | | | don't need sendfile() buffers any more. The report on the work referenced can be found at http://usenix.org/events/usenix05/tech/general/elmeleegy.html MFC after: 1 week Notes: svn path=/head/; revision=164584
* -mdoc sweep.Ruslan Ermilov2005-11-171-1/+1
| | | | Notes: svn path=/head/; revision=152551
* Document the fact that sendfile(2) can EOPNOTSUPP if the underlyingJoseph Koshy2005-10-311-0/+5
| | | | | | | | | filesystem for the file being transferred doesn't support UIO_NOCOPY. Reported by: Niki Denev <nike_d@cytexbg.com> Notes: svn path=/head/; revision=151896
* Sort error list.Joseph Koshy2005-10-311-21/+22
| | | | Notes: svn path=/head/; revision=151895
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-111-2/+7
| | | | Notes: svn path=/head/; revision=140081
* Since sendfile(2) works on regular files only,Yaroslav Tykhiy2004-10-181-1/+1
| | | | | | | | | | which have no negative offsets, "negative" and "invalid" are equivalent WRT the offset argument. Suggested by: bde Notes: svn path=/head/; revision=136660
* Improve mdoc(7) markup.Yaroslav Tykhiy2004-10-161-3/+9
| | | | Notes: svn path=/head/; revision=136590
* Give details on what will happen if the `offset' argumentYaroslav Tykhiy2004-10-161-2/+6
| | | | | | | | | | | | to sendfile(2) falls beyond the end of file. Touch .Dd. PR: bin/72649 (in the audit trail) MFC after: 1 week Notes: svn path=/head/; revision=136589
* Markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-301-16/+34
| | | | Notes: svn path=/head/; revision=131365
* Spelling fixes.Mike Pritchard2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130865
* Document the SF_NODISKIO flag, and fix a small typo.Mike Silbersack2004-02-081-2/+10
| | | | Notes: svn path=/head/; revision=125587
* Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.Maxim Konovalov2003-12-291-0/+9
| | | | | | | Reviewed by: silby Notes: svn path=/head/; revision=123968
* Fixed a bug in sendfile(2) where the sent data would be corrupted dueDavid Greenman2003-12-011-2/+6
| | | | | | | | | | | | | to sendfile(2) being erroneously automatically restarted after a signal is delivered. Fixed by converting ERESTART to EINTR prior to exiting. Updated manual page to indicate the potential EINTR error, its cause and consequences. Approved by: re@freebsd.org Notes: svn path=/head/; revision=123094
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-12/+14
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Update sendfile.2 to include a TUNING section that documents theSean Chittenden2003-03-121-0/+38
| | | | | | | | | | various tunables that are applicable to sendfile(2). Update tuning.7 to mention a reference to sendfile.2. Approved by: keramida Notes: svn path=/head/; revision=112134
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+15
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-1/+7
| | | | | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe. Notes: svn path=/head/; revision=108028
* Remove the internal implementation details of wrapping syscalls,Ruslan Ermilov2001-10-261-27/+0
| | | | | | | | | which do not match the reality anyway. Approved by: deischen, bde Notes: svn path=/head/; revision=85555
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-3/+3
| | | | Notes: svn path=/head/; revision=84306
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-091-5/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* Spelling.Stephen McKay2001-02-041-1/+1
| | | | Notes: svn path=/head/; revision=71978
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-1/+3
| | | | Notes: svn path=/head/; revision=68716
* Remove a superfluous `.Pp' occuring directly afterChris Costello2000-05-191-1/+0
| | | | | | | `.Sh IMPLEMENTATION NOTES'. Notes: svn path=/head/; revision=60695
* Add a note under IMPLEMENTATION NOTES about the behavior of sendfile()Chris Costello2000-05-191-0/+27
| | | | | | | in the threaded library. Notes: svn path=/head/; revision=60694
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-4/+8
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Various man page cleanup:Mike Pritchard1999-08-151-5/+8
| | | | | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=49828
* Correct HISTORY section, according to CVS logs.Sheldon Hearn1999-07-261-2/+3
| | | | | | | | PR: 12810 Submitted by: Alex Perel <veers@disturbed.net> Notes: svn path=/head/; revision=49108
* Added info about non-blocking support.David Greenman1998-11-061-1/+15
| | | | Notes: svn path=/head/; revision=40972