hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit f0abc8189191d6101a6f1b2b090d3d56561fd8be
parent 3ab2d595610b8c4d6a43423fb2566e272ae534ec
Author: Ember Sawady <ecs@d2evs.net>
Date:   Wed,  7 Jun 2023 06:30:15 +0000

io+freebsd::fd_copy: return errors::unsupported

FreeBSD sendfile(2) only supports sending regular files to sockets.

Signed-off-by: Ember Sawady <ecs@d2evs.net>

Diffstat:
Mio/+freebsd/file.ha | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/io/+freebsd/file.ha b/io/+freebsd/file.ha @@ -62,8 +62,4 @@ fn fd_seek( }; }; -def SENDFILE_MAX: size = 2147479552z; - -fn fd_copy(to: file, from: file) (size | error) = { - abort(); // TODO: FreeBSD -}; +fn fd_copy(to: file, from: file) (size | error) = errors::unsupported;