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
606c88a3
Commit
606c88a3
authored
Jan 21, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use the __NR_ names for Linux system calls.
parent
99c1b557
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
critsection.c
dlls/ntdll/critsection.c
+2
-2
directory.c
dlls/ntdll/directory.c
+2
-2
server.c
dlls/ntdll/server.c
+1
-1
No files found.
dlls/ntdll/critsection.c
View file @
606c88a3
...
...
@@ -66,12 +66,12 @@ static int wake_op = 129; /*FUTEX_WAKE|FUTEX_PRIVATE_FLAG*/
static
inline
int
futex_wait
(
int
*
addr
,
int
val
,
struct
timespec
*
timeout
)
{
return
syscall
(
SYS
_futex
,
addr
,
wait_op
,
val
,
timeout
,
0
,
0
);
return
syscall
(
__NR
_futex
,
addr
,
wait_op
,
val
,
timeout
,
0
,
0
);
}
static
inline
int
futex_wake
(
int
*
addr
,
int
val
)
{
return
syscall
(
SYS
_futex
,
addr
,
wake_op
,
val
,
NULL
,
0
,
0
);
return
syscall
(
__NR
_futex
,
addr
,
wake_op
,
val
,
NULL
,
0
,
0
);
}
static
inline
int
use_futexes
(
void
)
...
...
dlls/ntdll/directory.c
View file @
606c88a3
...
...
@@ -109,7 +109,7 @@ typedef struct
# define O_DIRECTORY 0200000
/* must be directory */
#endif
#ifdef
SYS
_getdents64
#ifdef
__NR
_getdents64
typedef
struct
{
ULONG64
d_ino
;
...
...
@@ -121,7 +121,7 @@ typedef struct
static
inline
int
getdents64
(
int
fd
,
char
*
de
,
unsigned
int
size
)
{
return
syscall
(
SYS
_getdents64
,
fd
,
de
,
size
);
return
syscall
(
__NR
_getdents64
,
fd
,
de
,
size
);
}
#define USE_GETDENTS
#endif
...
...
dlls/ntdll/server.c
View file @
606c88a3
...
...
@@ -962,7 +962,7 @@ static int get_unix_tid(void)
#ifdef HAVE_PTHREAD_GETTHREADID_NP
ret
=
pthread_getthreadid_np
();
#elif defined(linux)
ret
=
syscall
(
SYS
_gettid
);
ret
=
syscall
(
__NR
_gettid
);
#elif defined(__sun)
ret
=
pthread_self
();
#elif defined(__APPLE__)
...
...
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