Skip to content

Commit b5ec75b

Browse files
rpkakalexrp
authored andcommitted
make freebsd copy_file_range return type signed
1 parent b54bdac commit b5ec75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/c/freebsd.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ comptime {
2929
pub extern "c" fn ptrace(request: c_int, pid: pid_t, addr: caddr_t, data: c_int) c_int;
3030

3131
pub extern "c" fn kinfo_getfile(pid: pid_t, cntp: *c_int) ?[*]kinfo_file;
32-
pub extern "c" fn copy_file_range(fd_in: fd_t, off_in: ?*off_t, fd_out: fd_t, off_out: ?*off_t, len: usize, flags: u32) usize;
32+
pub extern "c" fn copy_file_range(fd_in: fd_t, off_in: ?*off_t, fd_out: fd_t, off_out: ?*off_t, len: usize, flags: u32) isize;
3333

3434
pub extern "c" fn sendfile(
3535
in_fd: fd_t,

0 commit comments

Comments
 (0)