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
61770be5
Commit
61770be5
authored
Oct 29, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add an futimens syscall wrapper for Android.
parent
8b11533d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
file.c
dlls/ntdll/file.c
+12
-0
No files found.
dlls/ntdll/file.c
View file @
61770be5
...
...
@@ -36,6 +36,9 @@
#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h>
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
...
...
@@ -1654,6 +1657,15 @@ NTSTATUS WINAPI NtSetVolumeInformationFile(
return
0
;
}
#if defined(__ANDROID__) && !defined(HAVE_FUTIMENS)
static
int
futimens
(
int
fd
,
const
struct
timespec
spec
[
2
]
)
{
return
syscall
(
__NR_utimensat
,
fd
,
NULL
,
spec
,
0
);
}
#define UTIME_OMIT ((1 << 30) - 2)
#define HAVE_FUTIMENS
#endif
/* __ANDROID__ */
static
NTSTATUS
set_file_times
(
int
fd
,
const
LARGE_INTEGER
*
mtime
,
const
LARGE_INTEGER
*
atime
)
{
NTSTATUS
status
=
STATUS_SUCCESS
;
...
...
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