~sircmpwn/hare-dev

hare: io+freebsd::fd_copy: return errors::unsupported v1 APPLIED

Ember Sawady: 1
 io+freebsd::fd_copy: return errors::unsupported

 1 files changed, 1 insertions(+), 5 deletions(-)
#1003001 alpine.yml success
#1003002 freebsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/41697/mbox | git am -3
Learn more about email & git

[PATCH hare] io+freebsd::fd_copy: return errors::unsupported Export this patch

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

Signed-off-by: Ember Sawady <ecs@d2evs.net>
---
module3 uses io::copy
 io/+freebsd/file.ha | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/io/+freebsd/file.ha b/io/+freebsd/file.ha
index ead2c97a..64049502 100644
--- 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;
-- 
2.41.0
hare/patches: SUCCESS in 1m39s

[io+freebsd::fd_copy: return errors::unsupported][0] from [Ember Sawady][1]

[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/41697
[1]: mailto:ecs@d2evs.net

✓ #1003002 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/1003002
✓ #1003001 SUCCESS hare/patches/alpine.yml  https://builds.sr.ht/~sircmpwn/job/1003001
Thanks!

To gitsrht:~sircmpwn/hare
   d8bd0b28..da9256b2  master -> master