Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5da1eaf2
Commit
5da1eaf2
authored
Nov 29, 2012
by
Charles Davis
Committed by
Alexandre Julliard
Nov 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for BSD-style creation ("birth") time.
parent
ed5e0a6e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
1 deletion
+87
-1
configure
configure
+45
-0
configure.ac
configure.ac
+13
-1
file.c
dlls/ntdll/file.c
+14
-0
config.h.in
include/config.h.in
+15
-0
No files found.
configure
View file @
5da1eaf2
...
...
@@ -14177,6 +14177,51 @@ _ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct stat"
"st_birthtime"
"ac_cv_member_struct_stat_st_birthtime"
"
$ac_includes_default
"
if
test
"x
$ac_cv_member_struct_stat_st_birthtime
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct stat"
"st_birthtim"
"ac_cv_member_struct_stat_st_birthtim"
"
$ac_includes_default
"
if
test
"x
$ac_cv_member_struct_stat_st_birthtim
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct stat"
"st_birthtimespec"
"ac_cv_member_struct_stat_st_birthtimespec"
"
$ac_includes_default
"
if
test
"x
$ac_cv_member_struct_stat_st_birthtimespec
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct stat"
"__st_birthtime"
"ac_cv_member_struct_stat___st_birthtime"
"
$ac_includes_default
"
if
test
"x
$ac_cv_member_struct_stat___st_birthtime
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct stat"
"__st_birthtim"
"ac_cv_member_struct_stat___st_birthtim"
"
$ac_includes_default
"
if
test
"x
$ac_cv_member_struct_stat___st_birthtim
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct sockaddr_in6"
"sin6_scope_id"
"ac_cv_member_struct_sockaddr_in6_sin6_scope_id"
"#ifdef HAVE_SYS_TYPES_H
...
...
configure.ac
View file @
5da1eaf2
...
...
@@ -2269,7 +2269,19 @@ AC_CHECK_MEMBERS([struct option.name],,,
#endif])
dnl Check for stat.st_blocks and ns-resolved times
AC_CHECK_MEMBERS([struct stat.st_blocks,struct stat.st_mtim,struct stat.st_mtimespec,struct stat.st_ctim,struct stat.st_ctimespec,struct stat.st_atim,struct stat.st_atimespec])
AC_CHECK_MEMBERS([
struct stat.st_blocks,
struct stat.st_mtim,
struct stat.st_mtimespec,
struct stat.st_ctim,
struct stat.st_ctimespec,
struct stat.st_atim,
struct stat.st_atimespec,
struct stat.st_birthtime,
struct stat.st_birthtim,
struct stat.st_birthtimespec,
struct stat.__st_birthtime,
struct stat.__st_birthtim])
dnl Check for sin6_scope_id
AC_CHECK_MEMBERS([struct sockaddr_in6.sin6_scope_id],,,
...
...
dlls/ntdll/file.c
View file @
5da1eaf2
...
...
@@ -1648,7 +1648,21 @@ static inline void get_file_times( const struct stat *st, LARGE_INTEGER *mtime,
#elif defined(HAVE_STRUCT_STAT_ST_ATIMESPEC)
atime
->
QuadPart
+=
st
->
st_atimespec
.
tv_nsec
/
100
;
#endif
#ifdef HAVE_STRUCT_STAT_ST_BIRTHTIME
RtlSecondsSince1970ToTime
(
st
->
st_birthtime
,
creation
);
#ifdef HAVE_STRUCT_STAT_ST_BIRTHTIM
creation
->
QuadPart
+=
st
->
st_birthtim
.
tv_nsec
/
100
;
#elif defined(HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC)
creation
->
QuadPart
+=
st
->
st_birthtimespec
.
tv_nsec
/
100
;
#endif
#elif defined(HAVE_STRUCT_STAT___ST_BIRTHTIME)
RtlSecondsSince1970ToTime
(
st
->
__st_birthtime
,
creation
);
#ifdef HAVE_STRUCT_STAT___ST_BIRTHTIM
creation
->
QuadPart
+=
st
->
__st_birthtim
.
tv_nsec
/
100
;
#endif
#else
*
creation
=
*
mtime
;
#endif
}
/* fill in the file information that depends on the stat info */
...
...
include/config.h.in
View file @
5da1eaf2
...
...
@@ -860,6 +860,15 @@
/* Define to 1 if `st_atimespec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_ATIMESPEC
/* Define to 1 if `st_birthtim' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIM
/* Define to 1 if `st_birthtime' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIME
/* Define to 1 if `st_birthtimespec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC
/* Define to 1 if `st_blocks' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_BLOCKS
...
...
@@ -875,6 +884,12 @@
/* Define to 1 if `st_mtimespec' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_MTIMESPEC
/* Define to 1 if `__st_birthtim' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT___ST_BIRTHTIM
/* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
#undef HAVE_STRUCT_STAT___ST_BIRTHTIME
/* Define to 1 if `tcps_connattempt' is a member of `struct tcpstat'. */
#undef HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT
...
...
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