forked from OSchip/llvm-project
[libc] Fix typo in lseek syscall number macro.
Differential Revision: https://reviews.llvm.org/D133022
This commit is contained in:
parent
8ff2d6af69
commit
e75cce76ab
|
@ -77,7 +77,7 @@ int seek_func(File *f, long offset, int whence) {
|
|||
long ret = __llvm_libc::syscall(SYS_lseek, lf->get_fd(), offset, whence);
|
||||
#elif defined(SYS__llseek)
|
||||
long result;
|
||||
long ret = __llvm_libc::syscall(SYS__lseek, lf->get_fd(), offset >> 32,
|
||||
long ret = __llvm_libc::syscall(SYS__llseek, lf->get_fd(), offset >> 32,
|
||||
offset, &result, whence);
|
||||
#else
|
||||
#error "lseek and _llseek syscalls not available to perform a seek operation."
|
||||
|
|
|
@ -23,8 +23,8 @@ LLVM_LIBC_FUNCTION(off_t, lseek, (int fd, off_t offset, int whence)) {
|
|||
long ret = __llvm_libc::syscall(SYS_lseek, fd, offset, whence);
|
||||
result = ret;
|
||||
#elif defined(SYS__llseek)
|
||||
long ret = __llvm_libc::syscall(SYS__lseek, fd, offset >> 32, offset, &result,
|
||||
whence);
|
||||
long ret = __llvm_libc::syscall(SYS__llseek, fd, offset >> 32, offset,
|
||||
&result, whence);
|
||||
#else
|
||||
#error "lseek and _llseek syscalls not available."
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue