projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix invalid free of duplocale object when malloc has been replaced
[musl]
/
src
/
unistd
/
lseek.c
diff --git
a/src/unistd/lseek.c
b/src/unistd/lseek.c
index
63cea58
..
b4984f3
100644
(file)
--- a/
src/unistd/lseek.c
+++ b/
src/unistd/lseek.c
@@
-1,10
+1,9
@@
#include <unistd.h>
#include "syscall.h"
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
-off_t lseek(int fd, off_t offset, int whence)
+off_t
__
lseek(int fd, off_t offset, int whence)
{
{
-#ifdef
__NR
__llseek
+#ifdef
SYS
__llseek
off_t result;
return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
#else
off_t result;
return syscall(SYS__llseek, fd, offset>>32, offset, &result, whence) ? -1 : result;
#else
@@
-12,4
+11,5
@@
off_t lseek(int fd, off_t offset, int whence)
#endif
}
#endif
}
-LFS64(lseek);
+weak_alias(__lseek, lseek);
+weak_alias(__lseek, lseek64);