Back to discussionComment by shuss[-]shuss7 years ago1 reply#OpenBSD and FreeBSD do have sendfile(), but args are different compared to the interface presented by Linux. It should be trivial to write a wrapper, though:https://man.openbsd.org/FreeBSD-11.1/sendfile.2 https://linux.die.net/man/2/sendfile[-]cyberpunk7 years ago2 replies#That manpage is an import from freebsd, not part of base -- As far as I can see on my system it's not there:OpenBSD: $ man 2 sendfile man: No entry for sendfile in section 2 of the manual. $ grep -rni sendfile /usr/include | wc -l 0 FreeBSD: # grep -rni sendfile /usr/include | wc -l 30 edit: typo[-]dallbee7 years ago1 reply#On Openbsd you have sosplice, which can be used much like sendfile.cyberpunk7 years ago#Oh neat, I had no idea that existed. Will have a play, thanks for the tip!shuss7 years ago#OK, noted. Thanks for sharing.
shuss7 years ago1 reply#OpenBSD and FreeBSD do have sendfile(), but args are different compared to the interface presented by Linux. It should be trivial to write a wrapper, though:https://man.openbsd.org/FreeBSD-11.1/sendfile.2 https://linux.die.net/man/2/sendfile
cyberpunk7 years ago2 replies#That manpage is an import from freebsd, not part of base -- As far as I can see on my system it's not there:OpenBSD: $ man 2 sendfile man: No entry for sendfile in section 2 of the manual. $ grep -rni sendfile /usr/include | wc -l 0 FreeBSD: # grep -rni sendfile /usr/include | wc -l 30 edit: typo
https://man.openbsd.org/FreeBSD-11.1/sendfile.2 https://linux.die.net/man/2/sendfile
OpenBSD:
FreeBSD: edit: typo