[libc] Fix typo in lseek syscall number macro.

Differential Revision: https://reviews.llvm.org/D133022
This commit is contained in:
Dong-hee Na 2022-08-31 17:29:55 +00:00 committed by Siva Chandra Reddy
parent 8ff2d6af69
commit e75cce76ab
2 changed files with 3 additions and 3 deletions

View File

@ -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."

View File

@ -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