Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6bb990f7
Commit
6bb990f7
authored
May 29, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
May 29, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop any file64 functions, try to use system supplied 64-bit mode by
using proper defines.
parent
0925d6ec
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
91 additions
and
362 deletions
+91
-362
configure
configure
+58
-142
configure.in
configure.in
+0
-40
file.c
files/file.c
+6
-8
acconfig.h
include/acconfig.h
+4
-6
config.h.in
include/config.h.in
+7
-15
port.h
include/wine/port.h
+1
-49
port.c
library/port.c
+0
-88
file.c
server/file.c
+13
-12
file.c
win32/file.c
+2
-2
No files found.
configure
View file @
6bb990f7
...
@@ -5887,7 +5887,6 @@ for ac_func in \
...
@@ -5887,7 +5887,6 @@ for ac_func in \
ecvt
\
ecvt
\
finite
\
finite
\
fpclass
\
fpclass
\
fstat64
\
ftruncate64
\
ftruncate64
\
getnetbyaddr
\
getnetbyaddr
\
getnetbyname
\
getnetbyname
\
...
@@ -5900,7 +5899,6 @@ for ac_func in \
...
@@ -5900,7 +5899,6 @@ for ac_func in \
inet_network
\
inet_network
\
lseek64
\
lseek64
\
lstat
\
lstat
\
lstat64
\
memmove
\
memmove
\
mmap
\
mmap
\
rfork
\
rfork
\
...
@@ -5908,7 +5906,6 @@ for ac_func in \
...
@@ -5908,7 +5906,6 @@ for ac_func in \
sendmsg
\
sendmsg
\
settimeofday
\
settimeofday
\
sigaltstack
\
sigaltstack
\
stat64
\
statfs
\
statfs
\
strcasecmp
\
strcasecmp
\
strerror
\
strerror
\
...
@@ -5922,12 +5919,12 @@ for ac_func in \
...
@@ -5922,12 +5919,12 @@ for ac_func in \
do
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:592
6
: checking for
$ac_func
"
>
&5
echo
"configure:592
3
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 59
31
"configure"
#line 59
28
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
which can conflict with char
$ac_func
(); below. */
...
@@ -5950,7 +5947,7 @@ $ac_func();
...
@@ -5950,7 +5947,7 @@ $ac_func();
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:595
4
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:595
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
eval
"ac_cv_func_
$ac_func
=yes"
else
else
...
@@ -6032,17 +6029,17 @@ for ac_hdr in \
...
@@ -6032,17 +6029,17 @@ for ac_hdr in \
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:603
6
: checking for
$ac_hdr
"
>
&5
echo
"configure:603
3
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 60
41
"configure"
#line 60
38
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:604
6
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:604
3
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -6069,12 +6066,12 @@ fi
...
@@ -6069,12 +6066,12 @@ fi
done
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:607
3
: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:607
0
: checking whether stat file-mode macros are broken"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stat_broken
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stat_broken
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 607
8
"configure"
#line 607
5
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
...
@@ -6127,12 +6124,12 @@ fi
...
@@ -6127,12 +6124,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:61
31
: checking for working const"
>
&5
echo
"configure:61
28
: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 613
6
"configure"
#line 613
3
"configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
...
@@ -6181,7 +6178,7 @@ ccp = (char const *const *) p;
...
@@ -6181,7 +6178,7 @@ ccp = (char const *const *) p;
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:618
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:618
2
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ac_cv_c_const
=
yes
ac_cv_c_const
=
yes
else
else
...
@@ -6202,21 +6199,21 @@ EOF
...
@@ -6202,21 +6199,21 @@ EOF
fi
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:620
6
: checking for inline"
>
&5
echo
"configure:620
3
: checking for inline"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
ac_cv_c_inline
=
no
ac_cv_c_inline
=
no
for
ac_kw
in
inline __inline__ __inline
;
do
for
ac_kw
in
inline __inline__ __inline
;
do
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 621
3
"configure"
#line 621
0
"configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
} int
$ac_kw
foo() {
} int
$ac_kw
foo() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:62
20
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:62
17
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
ac_cv_c_inline
=
$ac_kw
;
break
else
else
...
@@ -6242,12 +6239,12 @@ EOF
...
@@ -6242,12 +6239,12 @@ EOF
esac
esac
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:624
6
: checking for ANSI C header files"
>
&5
echo
"configure:624
3
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 62
51
"configure"
#line 62
48
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdarg.h>
...
@@ -6255,7 +6252,7 @@ else
...
@@ -6255,7 +6252,7 @@ else
#include <float.h>
#include <float.h>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:625
9
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:625
6
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -6272,7 +6269,7 @@ rm -f conftest*
...
@@ -6272,7 +6269,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 627
6
"configure"
#line 627
3
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <string.h>
#include <string.h>
EOF
EOF
...
@@ -6290,7 +6287,7 @@ fi
...
@@ -6290,7 +6287,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 629
4
"configure"
#line 629
1
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
EOF
EOF
...
@@ -6311,7 +6308,7 @@ if test "$cross_compiling" = yes; then
...
@@ -6311,7 +6308,7 @@ if test "$cross_compiling" = yes; then
:
:
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 631
5
"configure"
#line 631
2
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <ctype.h>
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
@@ -6322,7 +6319,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
...
@@ -6322,7 +6319,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
exit (0); }
EOF
EOF
if
{
(
eval echo
configure:632
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:632
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
then
:
:
else
else
...
@@ -6346,12 +6343,12 @@ EOF
...
@@ -6346,12 +6343,12 @@ EOF
fi
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:63
50
: checking for size_t"
>
&5
echo
"configure:63
47
: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 635
5
"configure"
#line 635
2
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
#if STDC_HEADERS
#if STDC_HEADERS
...
@@ -6379,7 +6376,7 @@ EOF
...
@@ -6379,7 +6376,7 @@ EOF
fi
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:638
3
: checking size of long long"
>
&5
echo
"configure:638
0
: checking size of long long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -6387,7 +6384,7 @@ else
...
@@ -6387,7 +6384,7 @@ else
ac_cv_sizeof_long_long
=
0
ac_cv_sizeof_long_long
=
0
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 63
91
"configure"
#line 63
88
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdio.h>
#include <stdio.h>
main()
main()
...
@@ -6398,7 +6395,7 @@ main()
...
@@ -6398,7 +6395,7 @@ main()
exit(0);
exit(0);
}
}
EOF
EOF
if
{
(
eval echo
configure:6
402
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:6
399
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
&&
(
./conftest
;
exit
)
2>/dev/null
then
then
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
else
else
...
@@ -6418,94 +6415,13 @@ EOF
...
@@ -6418,94 +6415,13 @@ EOF
echo
$ac_n
"checking "
for
off64_t
"""...
$ac_c
"
1>&6
echo
"configure:6423: checking "
for
off64_t
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_off64_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6428 "configure"
#include "confdefs.h"
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
int main() {
off64_t testoffset;
; return 0; }
EOF
if
{
(
eval echo
configure:6440:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_off64_t
=
"yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
wine_cv_off64_t
=
"no"
fi
rm
-f
conftest
*
fi
echo
"
$ac_t
""
$wine_cv_off64_t
"
1>&6
if
test
"
$wine_cv_off64_t
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_OFF64_T 1
EOF
fi
echo
$ac_n
"checking "
for
struct stat64
"""...
$ac_c
"
1>&6
echo
"configure:6463: checking "
for
struct stat64
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_struct_stat64
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 6468 "configure"
#include "confdefs.h"
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
int main() {
struct stat64 tst64;
; return 0; }
EOF
if
{
(
eval echo
configure:6481:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_struct_stat64
=
"yes"
else
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
wine_cv_struct_stat64
=
"no"
fi
rm
-f
conftest
*
fi
echo
"
$ac_t
""
$wine_cv_struct_stat64
"
1>&6
if
test
"
$wine_cv_struct_stat64
"
=
"yes"
then
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_STRUCT_STAT64 1
EOF
fi
echo
$ac_n
"checking "
whether linux/input.h is
for
real
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether linux/input.h is
for
real
"""...
$ac_c
"
1>&6
echo
"configure:6
504
: checking "
whether linux/input.h is
for
real
""
>
&5
echo
"configure:6
420
: checking "
whether linux/input.h is
for
real
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_input_h
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_input_h
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
509
"configure"
#line 6
425
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <linux/input.h>
#include <linux/input.h>
...
@@ -6518,7 +6434,7 @@ int main() {
...
@@ -6518,7 +6434,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
522
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
438
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_linux_input_h
=
yes
wine_cv_linux_input_h
=
yes
else
else
...
@@ -6542,12 +6458,12 @@ EOF
...
@@ -6542,12 +6458,12 @@ EOF
echo
$ac_n
"checking "
whether we can use re-entrant gethostbyname_r Linux style
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether we can use re-entrant gethostbyname_r Linux style
"""...
$ac_c
"
1>&6
echo
"configure:6
546
: checking "
whether we can use re-entrant gethostbyname_r Linux style
""
>
&5
echo
"configure:6
462
: checking "
whether we can use re-entrant gethostbyname_r Linux style
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_gethostbyname_r_6
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_gethostbyname_r_6
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
551
"configure"
#line 6
467
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <netdb.h>
#include <netdb.h>
...
@@ -6568,7 +6484,7 @@ int main() {
...
@@ -6568,7 +6484,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
572
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
488
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_linux_gethostbyname_r_6
=
yes
wine_cv_linux_gethostbyname_r_6
=
yes
else
else
...
@@ -6594,12 +6510,12 @@ EOF
...
@@ -6594,12 +6510,12 @@ EOF
if
test
"
$ac_cv_header_linux_joystick_h
"
=
"yes"
if
test
"
$ac_cv_header_linux_joystick_h
"
=
"yes"
then
then
echo
$ac_n
"checking "
whether linux/joystick.h uses the Linux 2.2+ API
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether linux/joystick.h uses the Linux 2.2+ API
"""...
$ac_c
"
1>&6
echo
"configure:65
98
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
echo
"configure:65
14
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_joystick_22_api
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_joystick_22_api
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
603
"configure"
#line 6
519
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/ioctl.h>
#include <sys/ioctl.h>
...
@@ -6614,7 +6530,7 @@ int main() {
...
@@ -6614,7 +6530,7 @@ int main() {
/*empty*/
/*empty*/
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
618
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
534
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_linux_joystick_22_api
=
yes
wine_cv_linux_joystick_22_api
=
yes
else
else
...
@@ -6641,12 +6557,12 @@ fi
...
@@ -6641,12 +6557,12 @@ fi
if
test
"
$ac_cv_header_sys_vfs_h
"
=
"yes"
if
test
"
$ac_cv_header_sys_vfs_h
"
=
"yes"
then
then
echo
$ac_n
"checking "
whether sys/vfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether sys/vfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:6
645
: checking "
whether sys/vfs.h defines statfs
""
>
&5
echo
"configure:6
561
: checking "
whether sys/vfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_vfs_has_statfs
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_vfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
650
"configure"
#line 6
566
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6663,7 +6579,7 @@ int main() {
...
@@ -6663,7 +6579,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
667
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
583
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
wine_cv_sys_vfs_has_statfs
=
yes
else
else
...
@@ -6690,12 +6606,12 @@ fi
...
@@ -6690,12 +6606,12 @@ fi
if
test
"
$ac_cv_header_sys_statfs_h
"
=
"yes"
if
test
"
$ac_cv_header_sys_statfs_h
"
=
"yes"
then
then
echo
$ac_n
"checking "
whether sys/statfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether sys/statfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:66
94
: checking "
whether sys/statfs.h defines statfs
""
>
&5
echo
"configure:66
10
: checking "
whether sys/statfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_statfs_has_statfs
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_statfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 66
99
"configure"
#line 66
15
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6710,7 +6626,7 @@ int main() {
...
@@ -6710,7 +6626,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
714
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
630
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
wine_cv_sys_statfs_has_statfs
=
yes
else
else
...
@@ -6737,12 +6653,12 @@ fi
...
@@ -6737,12 +6653,12 @@ fi
if
test
"
$ac_cv_header_sys_mount_h
"
=
"yes"
if
test
"
$ac_cv_header_sys_mount_h
"
=
"yes"
then
then
echo
$ac_n
"checking "
whether sys/mount.h defines statfs
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether sys/mount.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:6
741
: checking "
whether sys/mount.h defines statfs
""
>
&5
echo
"configure:6
657
: checking "
whether sys/mount.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_mount_has_statfs
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_mount_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
746
"configure"
#line 6
662
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6757,7 +6673,7 @@ int main() {
...
@@ -6757,7 +6673,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
761
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
677
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
wine_cv_sys_mount_has_statfs
=
yes
else
else
...
@@ -6783,7 +6699,7 @@ fi
...
@@ -6783,7 +6699,7 @@ fi
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
"configure:67
87
: checking "
for
statfs.f_bfree
""
>
&5
echo
"configure:67
03
: checking "
for
statfs.f_bfree
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bfree
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bfree
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -6792,7 +6708,7 @@ else
...
@@ -6792,7 +6708,7 @@ else
wine_cv_statfs_bfree
=
no
wine_cv_statfs_bfree
=
no
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 67
96
"configure"
#line 67
12
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6819,7 +6735,7 @@ int main() {
...
@@ -6819,7 +6735,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
823
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
739
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
wine_cv_statfs_bfree
=
yes
else
else
...
@@ -6843,7 +6759,7 @@ EOF
...
@@ -6843,7 +6759,7 @@ EOF
fi
fi
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
"configure:6
847
: checking "
for
statfs.f_bavail
""
>
&5
echo
"configure:6
763
: checking "
for
statfs.f_bavail
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bavail
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bavail
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -6852,7 +6768,7 @@ else
...
@@ -6852,7 +6768,7 @@ else
wine_cv_statfs_bavail
=
no
wine_cv_statfs_bavail
=
no
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
856
"configure"
#line 6
772
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -6879,7 +6795,7 @@ int main() {
...
@@ -6879,7 +6795,7 @@ int main() {
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
883
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
799
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
wine_cv_statfs_bavail
=
yes
else
else
...
@@ -6904,12 +6820,12 @@ fi
...
@@ -6904,12 +6820,12 @@ fi
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
"configure:6
908
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
echo
"configure:6
824
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_msg_accrights
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_msg_accrights
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
913
"configure"
#line 6
829
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
@@ -6917,7 +6833,7 @@ int main() {
...
@@ -6917,7 +6833,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
921
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
837
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
ac_cv_c_msg_accrights
=
"yes"
else
else
...
@@ -6940,12 +6856,12 @@ fi
...
@@ -6940,12 +6856,12 @@ fi
echo
$ac_n
"checking "
for
sun_len
in
struct sockaddr_un
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
for
sun_len
in
struct sockaddr_un
"""...
$ac_c
"
1>&6
echo
"configure:6
944
: checking "
for
sun_len
in
struct sockaddr_un
""
>
&5
echo
"configure:6
860
: checking "
for
sun_len
in
struct sockaddr_un
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_sun_len
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_sun_len
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 6
949
"configure"
#line 6
865
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
...
@@ -6954,7 +6870,7 @@ int main() {
...
@@ -6954,7 +6870,7 @@ int main() {
static struct sockaddr_un addr; addr.sun_len = 1
static struct sockaddr_un addr; addr.sun_len = 1
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:6
958
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:6
874
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
ac_cv_c_sun_len
=
"yes"
ac_cv_c_sun_len
=
"yes"
else
else
...
@@ -6977,12 +6893,12 @@ fi
...
@@ -6977,12 +6893,12 @@ fi
echo
$ac_n
"checking "
whether we need to define __i386__
"""...
$ac_c
"
1>&6
echo
$ac_n
"checking "
whether we need to define __i386__
"""...
$ac_c
"
1>&6
echo
"configure:6
981
: checking "
whether we need to define __i386__
""
>
&5
echo
"configure:6
897
: checking "
whether we need to define __i386__
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_cpp_def_i386
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_cpp_def_i386
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 69
86
"configure"
#line 69
02
"configure"
#include "confdefs.h"
#include "confdefs.h"
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
yes
yes
...
...
configure.in
View file @
6bb990f7
...
@@ -781,7 +781,6 @@ AC_CHECK_FUNCS(\
...
@@ -781,7 +781,6 @@ AC_CHECK_FUNCS(\
ecvt \
ecvt \
finite \
finite \
fpclass \
fpclass \
fstat64 \
ftruncate64 \
ftruncate64 \
getnetbyaddr \
getnetbyaddr \
getnetbyname \
getnetbyname \
...
@@ -794,7 +793,6 @@ AC_CHECK_FUNCS(\
...
@@ -794,7 +793,6 @@ AC_CHECK_FUNCS(\
inet_network \
inet_network \
lseek64 \
lseek64 \
lstat \
lstat \
lstat64 \
memmove \
memmove \
mmap \
mmap \
rfork \
rfork \
...
@@ -802,7 +800,6 @@ AC_CHECK_FUNCS(\
...
@@ -802,7 +800,6 @@ AC_CHECK_FUNCS(\
sendmsg \
sendmsg \
settimeofday \
settimeofday \
sigaltstack \
sigaltstack \
stat64 \
statfs \
statfs \
strcasecmp \
strcasecmp \
strerror \
strerror \
...
@@ -879,43 +876,6 @@ AC_C_INLINE()
...
@@ -879,43 +876,6 @@ AC_C_INLINE()
AC_TYPE_SIZE_T()
AC_TYPE_SIZE_T()
AC_CHECK_SIZEOF(long long,0)
AC_CHECK_SIZEOF(long long,0)
AC_CACHE_CHECK("for off64_t",
wine_cv_off64_t,
AC_TRY_COMPILE([
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
],[
off64_t testoffset;
],
wine_cv_off64_t="yes",
wine_cv_off64_t="no",
wine_cv_off64_t="yes"
)
)
if test "$wine_cv_off64_t" = "yes"
then
AC_DEFINE(HAVE_OFF64_T)
fi
AC_CACHE_CHECK("for struct stat64",
wine_cv_struct_stat64,
AC_TRY_COMPILE([
#define _LARGEFILE64_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
],[
struct stat64 tst64;
],
wine_cv_struct_stat64="yes",
wine_cv_struct_stat64="no",
wine_cv_struct_stat64="yes"
)
)
if test "$wine_cv_struct_stat64" = "yes"
then
AC_DEFINE(HAVE_STRUCT_STAT64)
fi
AC_CACHE_CHECK("whether linux/input.h is for real",
AC_CACHE_CHECK("whether linux/input.h is for real",
wine_cv_linux_input_h,
wine_cv_linux_input_h,
AC_TRY_COMPILE([
AC_TRY_COMPILE([
...
...
files/file.c
View file @
6bb990f7
...
@@ -491,7 +491,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
...
@@ -491,7 +491,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
*
*
* Fill a file information from a struct stat.
* Fill a file information from a struct stat.
*/
*/
static
void
FILE_FillInfo
(
struct
stat
64
*
st
,
BY_HANDLE_FILE_INFORMATION
*
info
)
static
void
FILE_FillInfo
(
struct
stat
*
st
,
BY_HANDLE_FILE_INFORMATION
*
info
)
{
{
if
(
S_ISDIR
(
st
->
st_mode
))
if
(
S_ISDIR
(
st
->
st_mode
))
info
->
dwFileAttributes
=
FILE_ATTRIBUTE_DIRECTORY
;
info
->
dwFileAttributes
=
FILE_ATTRIBUTE_DIRECTORY
;
...
@@ -524,9 +524,9 @@ static void FILE_FillInfo( struct stat64 *st, BY_HANDLE_FILE_INFORMATION *info )
...
@@ -524,9 +524,9 @@ static void FILE_FillInfo( struct stat64 *st, BY_HANDLE_FILE_INFORMATION *info )
*/
*/
BOOL
FILE_Stat
(
LPCSTR
unixName
,
BY_HANDLE_FILE_INFORMATION
*
info
)
BOOL
FILE_Stat
(
LPCSTR
unixName
,
BY_HANDLE_FILE_INFORMATION
*
info
)
{
{
struct
stat
64
st
;
struct
stat
st
;
if
(
lstat
64
(
unixName
,
&
st
)
==
-
1
)
if
(
lstat
(
unixName
,
&
st
)
==
-
1
)
{
{
FILE_SetDosError
();
FILE_SetDosError
();
return
FALSE
;
return
FALSE
;
...
@@ -536,7 +536,7 @@ BOOL FILE_Stat( LPCSTR unixName, BY_HANDLE_FILE_INFORMATION *info )
...
@@ -536,7 +536,7 @@ BOOL FILE_Stat( LPCSTR unixName, BY_HANDLE_FILE_INFORMATION *info )
{
{
/* do a "real" stat to find out
/* do a "real" stat to find out
about the type of the symlink destination */
about the type of the symlink destination */
if
(
stat
64
(
unixName
,
&
st
)
==
-
1
)
if
(
stat
(
unixName
,
&
st
)
==
-
1
)
{
{
FILE_SetDosError
();
FILE_SetDosError
();
return
FALSE
;
return
FALSE
;
...
@@ -2010,9 +2010,7 @@ BOOL WINAPI MoveFileExW( LPCWSTR fn1, LPCWSTR fn2, DWORD flag )
...
@@ -2010,9 +2010,7 @@ BOOL WINAPI MoveFileExW( LPCWSTR fn1, LPCWSTR fn2, DWORD flag )
BOOL
WINAPI
MoveFileA
(
LPCSTR
fn1
,
LPCSTR
fn2
)
BOOL
WINAPI
MoveFileA
(
LPCSTR
fn1
,
LPCSTR
fn2
)
{
{
DOS_FULL_NAME
full_name1
,
full_name2
;
DOS_FULL_NAME
full_name1
,
full_name2
;
/* Even though we do not need the size, stat will fail for large files,
struct
stat
fstat
;
* so we need to use stat64 here. */
struct
stat64
fstat
;
TRACE
(
"(%s,%s)
\n
"
,
fn1
,
fn2
);
TRACE
(
"(%s,%s)
\n
"
,
fn1
,
fn2
);
...
@@ -2033,7 +2031,7 @@ BOOL WINAPI MoveFileA( LPCSTR fn1, LPCSTR fn2 )
...
@@ -2033,7 +2031,7 @@ BOOL WINAPI MoveFileA( LPCSTR fn1, LPCSTR fn2 )
}
}
else
return
TRUE
;
else
return
TRUE
;
else
/*copy */
{
else
/*copy */
{
if
(
stat
64
(
full_name1
.
long_name
,
&
fstat
))
if
(
stat
(
full_name1
.
long_name
,
&
fstat
))
{
{
WARN
(
"Invalid source file %s
\n
"
,
WARN
(
"Invalid source file %s
\n
"
,
full_name1
.
long_name
);
full_name1
.
long_name
);
...
...
include/acconfig.h
View file @
6bb990f7
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
* defined in the 'configure' script.
* defined in the 'configure' script.
*/
*/
/* This is for glibc on Linux, it will turn on 64 bit file support at compile time */
#define _FILE_OFFSET_BITS 64
@
TOP
@
/* Define if .type asm directive must be inside a .def directive */
/* Define if .type asm directive must be inside a .def directive */
#undef NEED_TYPE_IN_DEF
#undef NEED_TYPE_IN_DEF
...
@@ -125,9 +129,3 @@
...
@@ -125,9 +129,3 @@
/* Define if FreeType 2 is installed */
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
#undef HAVE_FREETYPE
/* Define if we have 64 bit file offsets */
#undef HAVE_OFF64_T
/* Define if we have struct stat64 */
#undef HAVE_STRUCT_STAT64
include/config.h.in
View file @
6bb990f7
/* include/config.h.in. Generated automatically from configure.in by autoheader. */
/* include/config.h.in. Generated automatically from configure.in by autoheader. */
/*
* This file is used by 'autoheader' to generate the list of symbols
* defined in the 'configure' script.
*/
/* This is for glibc on Linux, it will turn on 64 bit file support at compile time */
#define _FILE_OFFSET_BITS 64
/* Define if using alloca.c. */
/* Define if using alloca.c. */
#undef C_ALLOCA
#undef C_ALLOCA
...
@@ -157,12 +164,6 @@
...
@@ -157,12 +164,6 @@
/* Define if FreeType 2 is installed */
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
#undef HAVE_FREETYPE
/* Define if we have 64 bit file offsets */
#undef HAVE_OFF64_T
/* Define if we have struct stat64 */
#undef HAVE_STRUCT_STAT64
/* The number of bytes in a long long. */
/* The number of bytes in a long long. */
#undef SIZEOF_LONG_LONG
#undef SIZEOF_LONG_LONG
...
@@ -190,9 +191,6 @@
...
@@ -190,9 +191,6 @@
/* Define if you have the fpclass function. */
/* Define if you have the fpclass function. */
#undef HAVE_FPCLASS
#undef HAVE_FPCLASS
/* Define if you have the fstat64 function. */
#undef HAVE_FSTAT64
/* Define if you have the ftruncate64 function. */
/* Define if you have the ftruncate64 function. */
#undef HAVE_FTRUNCATE64
#undef HAVE_FTRUNCATE64
...
@@ -235,9 +233,6 @@
...
@@ -235,9 +233,6 @@
/* Define if you have the lstat function. */
/* Define if you have the lstat function. */
#undef HAVE_LSTAT
#undef HAVE_LSTAT
/* Define if you have the lstat64 function. */
#undef HAVE_LSTAT64
/* Define if you have the memmove function. */
/* Define if you have the memmove function. */
#undef HAVE_MEMMOVE
#undef HAVE_MEMMOVE
...
@@ -262,9 +257,6 @@
...
@@ -262,9 +257,6 @@
/* Define if you have the sigaltstack function. */
/* Define if you have the sigaltstack function. */
#undef HAVE_SIGALTSTACK
#undef HAVE_SIGALTSTACK
/* Define if you have the stat64 function. */
#undef HAVE_STAT64
/* Define if you have the statfs function. */
/* Define if you have the statfs function. */
#undef HAVE_STATFS
#undef HAVE_STATFS
...
...
include/wine/port.h
View file @
6bb990f7
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
#ifndef __WINE_WINE_PORT_H
#ifndef __WINE_WINE_PORT_H
#define __WINE_WINE_PORT_H
#define __WINE_WINE_PORT_H
#define _LARGEFILE64_SOURCE
/* for glibc 64 bit file functions */
#include "config.h"
#include "config.h"
#include "winnt.h"
#include "winnt.h"
#include <fcntl.h>
#include <fcntl.h>
...
@@ -133,53 +131,7 @@ int lstat(const char *file_name, struct stat *buf);
...
@@ -133,53 +131,7 @@ int lstat(const char *file_name, struct stat *buf);
#define S_ISLNK(mod) (0)
#define S_ISLNK(mod) (0)
#endif
/* S_ISLNK */
#endif
/* S_ISLNK */
#ifndef HAVE_OFF64_T
/* So we open files in 64 bit access mode on Linux */
# if SIZEOF_LONG_LONG > 0
typedef
long
long
off64_t
;
# else
typedef
long
off64_t
;
# endif
#endif
#ifndef HAVE_STRUCT_STAT64
/* This does not convert all struct members to 64bit, only size. */
struct
stat64
{
dev_t
st_dev
;
/* device */
ino_t
st_ino
;
/* inode */
mode_t
st_mode
;
/* protection */
nlink_t
st_nlink
;
/* number of hard links */
uid_t
st_uid
;
/* user ID of owner */
gid_t
st_gid
;
/* group ID of owner */
dev_t
st_rdev
;
/* device type (if inode device) */
off64_t
st_size
;
/* total size, in bytes */
unsigned
long
st_blksize
;
/* blocksize for filesystem I/O */
unsigned
long
st_blocks
;
/* number of blocks allocated */
time_t
st_atime
;
/* time of last access */
time_t
st_mtime
;
/* time of last modification */
time_t
st_ctime
;
/* time of last change */
};
#endif
#ifndef HAVE_LSEEK64
extern
off64_t
lseek64
(
int
fildes
,
off64_t
offset
,
int
whence
);
#endif
#ifndef HAVE_STAT64
extern
int
stat64
(
const
char
*
file_name
,
struct
stat64
*
buf
);
#endif
#ifndef HAVE_LSTAT64
extern
int
lstat64
(
const
char
*
file_name
,
struct
stat64
*
buf
);
#endif
#ifndef HAVE_FSTAT64
extern
int
fstat64
(
int
fd
,
struct
stat64
*
buf
);
#endif
#ifndef HAVE_FTRUNCATE64
extern
int
ftruncate64
(
int
fd
,
off64_t
offset
);
#endif
#ifndef O_LARGEFILE
#ifndef O_LARGEFILE
# define O_LARGEFILE 0
# define O_LARGEFILE 0
#endif
#endif
...
...
library/port.c
View file @
6bb990f7
...
@@ -389,94 +389,6 @@ int lstat(const char *file_name, struct stat *buf)
...
@@ -389,94 +389,6 @@ int lstat(const char *file_name, struct stat *buf)
}
}
#endif
/* HAVE_LSTAT */
#endif
/* HAVE_LSTAT */
#if !defined(HAVE_STAT64) || !defined(HAVE_LSTAT64) || !defined(HAVE_FSTAT64)
static
void
_convert_stat_stat64
(
struct
stat64
*
stto
,
struct
stat
*
stfrom
)
{
stto
->
st_dev
=
stfrom
->
st_dev
;
stto
->
st_ino
=
stfrom
->
st_ino
;
stto
->
st_mode
=
stfrom
->
st_mode
;
stto
->
st_nlink
=
stfrom
->
st_nlink
;
stto
->
st_uid
=
stfrom
->
st_uid
;
stto
->
st_gid
=
stfrom
->
st_gid
;
stto
->
st_rdev
=
stfrom
->
st_rdev
;
stto
->
st_blksize
=
stfrom
->
st_blksize
;
stto
->
st_blocks
=
stfrom
->
st_blocks
;
stto
->
st_atime
=
stfrom
->
st_atime
;
stto
->
st_mtime
=
stfrom
->
st_mtime
;
stto
->
st_ctime
=
stfrom
->
st_ctime
;
stto
->
st_size
=
(
off64_t
)
stfrom
->
st_size
;
}
#endif
/* HAVE_STAT64 || HAVE_LSTAT64 || HAVE_FSTAT64 */
/***********************************************************************
* stat64
*/
#ifndef HAVE_STAT64
int
stat64
(
const
char
*
file_name
,
struct
stat64
*
buf
)
{
struct
stat
stbuf
;
int
res
=
stat
(
file_name
,
&
stbuf
);
_convert_stat_stat64
(
buf
,
&
stbuf
);
return
res
;
}
#endif
/* HAVE_STAT64 */
/***********************************************************************
* lstat64
*/
#ifndef HAVE_LSTAT64
int
lstat64
(
const
char
*
file_name
,
struct
stat64
*
buf
)
{
struct
stat
stbuf
;
int
res
=
lstat
(
file_name
,
&
stbuf
);
_convert_stat_stat64
(
buf
,
&
stbuf
);
return
res
;
}
#endif
/* HAVE_LSTAT64 */
/***********************************************************************
* fstat64
*/
#ifndef HAVE_FSTAT64
int
fstat64
(
int
fd
,
struct
stat64
*
buf
)
{
struct
stat
stbuf
;
int
res
=
fstat
(
fd
,
&
stbuf
);
_convert_stat_stat64
(
buf
,
&
stbuf
);
return
res
;
}
#endif
/* HAVE_FSTAT */
/***********************************************************************
* lseek64
*/
#ifndef HAVE_LSEEK64
off64_t
lseek64
(
int
fd
,
off64_t
where
,
int
whence
)
{
off_t
res
;
if
((
where
>=
0x8000000LL
)
||
(
where
<=
-
0x7fffffffLL
))
{
errno
=
EFBIG
;
/* FIXME: hack */
return
-
1
;
}
res
=
lseek
(
fd
,(
off_t
)
where
,
whence
);
return
(
off64_t
)
res
;
}
#endif
/* HAVE_LSEEK64 */
/***********************************************************************
* ftruncate64
*/
#ifndef HAVE_FTRUNCATE64
int
ftruncate64
(
int
fd
,
off64_t
where
)
{
if
((
where
>=
0x8000000LL
)
||
(
where
<=
-
0x7fffffffLL
))
{
errno
=
EFBIG
;
/* FIXME: hack */
return
-
1
;
}
return
ftruncate
(
fd
,(
off_t
)
where
);
}
#endif
/* HAVE_LSEEK64 */
/***********************************************************************
/***********************************************************************
* getrlimit
* getrlimit
*/
*/
...
...
server/file.c
View file @
6bb990f7
...
@@ -259,11 +259,11 @@ static int file_flush( struct object *obj )
...
@@ -259,11 +259,11 @@ static int file_flush( struct object *obj )
static
int
file_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
)
static
int
file_get_info
(
struct
object
*
obj
,
struct
get_file_info_request
*
req
)
{
{
struct
stat
64
st
;
struct
stat
st
;
struct
file
*
file
=
(
struct
file
*
)
obj
;
struct
file
*
file
=
(
struct
file
*
)
obj
;
assert
(
obj
->
ops
==
&
file_ops
);
assert
(
obj
->
ops
==
&
file_ops
);
if
(
fstat
64
(
file
->
obj
.
fd
,
&
st
)
==
-
1
)
if
(
fstat
(
file
->
obj
.
fd
,
&
st
)
==
-
1
)
{
{
file_set_error
();
file_set_error
();
return
0
;
return
0
;
...
@@ -343,12 +343,12 @@ struct file *get_file_obj( struct process *process, handle_t handle, unsigned in
...
@@ -343,12 +343,12 @@ struct file *get_file_obj( struct process *process, handle_t handle, unsigned in
static
int
set_file_pointer
(
handle_t
handle
,
unsigned
int
*
low
,
int
*
high
,
int
whence
)
static
int
set_file_pointer
(
handle_t
handle
,
unsigned
int
*
low
,
int
*
high
,
int
whence
)
{
{
struct
file
*
file
;
struct
file
*
file
;
off
64
_t
result
,
xto
;
off_t
result
,
xto
;
xto
=
*
low
+
((
off
64
_t
)
*
high
<<
32
);
xto
=
*
low
+
((
off_t
)
*
high
<<
32
);
if
(
!
(
file
=
get_file_obj
(
current
->
process
,
handle
,
0
)))
if
(
!
(
file
=
get_file_obj
(
current
->
process
,
handle
,
0
)))
return
0
;
return
0
;
if
((
result
=
lseek
64
(
file
->
obj
.
fd
,
xto
,
whence
))
==-
1
)
if
((
result
=
lseek
(
file
->
obj
.
fd
,
xto
,
whence
))
==-
1
)
{
{
/* Check for seek before start of file */
/* Check for seek before start of file */
...
@@ -370,17 +370,18 @@ static int set_file_pointer( handle_t handle, unsigned int *low, int *high, int
...
@@ -370,17 +370,18 @@ static int set_file_pointer( handle_t handle, unsigned int *low, int *high, int
static
int
truncate_file
(
handle_t
handle
)
static
int
truncate_file
(
handle_t
handle
)
{
{
struct
file
*
file
;
struct
file
*
file
;
off
64
_t
result
;
off_t
result
;
if
(
!
(
file
=
get_file_obj
(
current
->
process
,
handle
,
GENERIC_WRITE
)))
if
(
!
(
file
=
get_file_obj
(
current
->
process
,
handle
,
GENERIC_WRITE
)))
return
0
;
return
0
;
if
(((
result
=
lseek
64
(
file
->
obj
.
fd
,
0
,
SEEK_CUR
))
==
-
1
)
||
if
(((
result
=
lseek
(
file
->
obj
.
fd
,
0
,
SEEK_CUR
))
==
-
1
)
||
(
ftruncate
64
(
file
->
obj
.
fd
,
result
)
==
-
1
))
(
ftruncate
(
file
->
obj
.
fd
,
result
)
==
-
1
))
{
{
file_set_error
();
file_set_error
();
release_object
(
file
);
release_object
(
file
);
return
0
;
return
0
;
}
}
fprintf
(
stderr
,
"server:truncated to %Ld
\n
"
,
result
);
release_object
(
file
);
release_object
(
file
);
return
1
;
return
1
;
}
}
...
@@ -388,16 +389,16 @@ static int truncate_file( handle_t handle )
...
@@ -388,16 +389,16 @@ static int truncate_file( handle_t handle )
/* try to grow the file to the specified size */
/* try to grow the file to the specified size */
int
grow_file
(
struct
file
*
file
,
int
size_high
,
int
size_low
)
int
grow_file
(
struct
file
*
file
,
int
size_high
,
int
size_low
)
{
{
struct
stat
64
st
;
struct
stat
st
;
off
64_t
size
=
size_low
+
(((
off64
_t
)
size_high
)
<<
32
);
off
_t
size
=
size_low
+
(((
off
_t
)
size_high
)
<<
32
);
if
(
fstat
64
(
file
->
obj
.
fd
,
&
st
)
==
-
1
)
if
(
fstat
(
file
->
obj
.
fd
,
&
st
)
==
-
1
)
{
{
file_set_error
();
file_set_error
();
return
0
;
return
0
;
}
}
if
(
st
.
st_size
>=
size
)
return
1
;
/* already large enough */
if
(
st
.
st_size
>=
size
)
return
1
;
/* already large enough */
if
(
ftruncate
64
(
file
->
obj
.
fd
,
size
)
!=
-
1
)
return
1
;
if
(
ftruncate
(
file
->
obj
.
fd
,
size
)
!=
-
1
)
return
1
;
file_set_error
();
file_set_error
();
return
0
;
return
0
;
}
}
...
...
win32/file.c
View file @
6bb990f7
...
@@ -57,7 +57,7 @@ BOOL16 WINAPI SetFileAttributes16( LPCSTR lpFileName, DWORD attributes )
...
@@ -57,7 +57,7 @@ BOOL16 WINAPI SetFileAttributes16( LPCSTR lpFileName, DWORD attributes )
*/
*/
BOOL
WINAPI
SetFileAttributesA
(
LPCSTR
lpFileName
,
DWORD
attributes
)
BOOL
WINAPI
SetFileAttributesA
(
LPCSTR
lpFileName
,
DWORD
attributes
)
{
{
struct
stat
64
buf
;
struct
stat
buf
;
DOS_FULL_NAME
full_name
;
DOS_FULL_NAME
full_name
;
if
(
!
DOSFS_GetFullName
(
lpFileName
,
TRUE
,
&
full_name
))
if
(
!
DOSFS_GetFullName
(
lpFileName
,
TRUE
,
&
full_name
))
...
@@ -70,7 +70,7 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
...
@@ -70,7 +70,7 @@ BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD attributes)
FIXME
(
"(%s):%lx illegal combination with FILE_ATTRIBUTE_NORMAL.
\n
"
,
FIXME
(
"(%s):%lx illegal combination with FILE_ATTRIBUTE_NORMAL.
\n
"
,
lpFileName
,
attributes
);
lpFileName
,
attributes
);
}
}
if
(
stat
64
(
full_name
.
long_name
,
&
buf
)
==-
1
)
if
(
stat
(
full_name
.
long_name
,
&
buf
)
==-
1
)
{
{
FILE_SetDosError
();
FILE_SetDosError
();
return
FALSE
;
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment