Co-authored-by: Maciej Walczak <14938807+xackus@users.noreply.github.com>
This commit is contained in:
Andrew Kelley 2021-05-01 18:07:26 -04:00 committed by GitHub
parent 06b2fee05e
commit d788181a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
);
}
} else {
// Some architectures (eg. 64bit SPARC) pwrite is called pread64.
// Some architectures (eg. 64bit SPARC) pwrite is called pwrite64.
const S = if (!@hasField(SYS, "pwrite") and @hasField(SYS, "pwrite64")) .pwrite64 else .pwrite;
return syscall4(
S,