mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 12:36:40 +02:00
28 lines
930 B
Diff
28 lines
930 B
Diff
diff --git a/sim_fio.c b/sim_fio.c
|
|
index c86d67b..e30a533 100644
|
|
--- a/sim_fio.c
|
|
+++ b/sim_fio.c
|
|
@@ -183,7 +183,7 @@ FILE *sim_fopen (const char *file, const char *mode)
|
|
return fopen (file, mode, "ALQ=32", "DEQ=4096",
|
|
"MBF=6", "MBC=127", "FOP=cbt,tef", "ROP=rah,wbh", "CTX=stm");
|
|
#elif (defined (__linux) || defined (__linux__) || defined (__hpux) || defined (_AIX)) && !defined (DONT_DO_LARGEFILE)
|
|
-return fopen64 (file, mode);
|
|
+return fopen (file, mode);
|
|
#else
|
|
return fopen (file, mode);
|
|
#endif
|
|
@@ -268,12 +268,12 @@ return (t_offset) _ftelli64 (st);
|
|
|
|
int sim_fseeko (FILE *st, t_offset xpos, int origin)
|
|
{
|
|
-return fseeko64 (st, (off64_t)xpos, origin);
|
|
+return fseeko (st, (off_t)xpos, origin);
|
|
}
|
|
|
|
t_offset sim_ftell (FILE *st)
|
|
{
|
|
-return (t_offset)(ftello64 (st));
|
|
+return (t_offset)(ftello (st));
|
|
}
|
|
|
|
#endif /* end Linux with LFS */
|