projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support archs with no renameat syscall, only renameat2
[musl]
/
src
/
stdio
/
fgetpos.c
diff --git
a/src/stdio/fgetpos.c
b/src/stdio/fgetpos.c
index
5b663d1
..
50813d2
100644
(file)
--- a/
src/stdio/fgetpos.c
+++ b/
src/stdio/fgetpos.c
@@
-1,11
+1,11
@@
#include "stdio_impl.h"
#include "stdio_impl.h"
-int fgetpos(FILE *
f, fpos_t *
pos)
+int fgetpos(FILE *
restrict f, fpos_t *restrict
pos)
{
off_t off = __ftello(f);
if (off < 0) return -1;
{
off_t off = __ftello(f);
if (off < 0) return -1;
- *(
off_t
*)pos = off;
+ *(
long long
*)pos = off;
return 0;
}
return 0;
}
-
LFS64(fgetpos
);
+
weak_alias(fgetpos, fgetpos64
);