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
c054b5f8
Commit
c054b5f8
authored
Jun 06, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineserver: Use syscall instead of int $0x80.
parent
03a4c644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
15 deletions
+5
-15
ptrace.c
server/ptrace.c
+5
-15
No files found.
server/ptrace.c
View file @
c054b5f8
...
...
@@ -215,22 +215,12 @@ static inline int tkill( int tgid, int pid, int sig )
#ifdef __linux__
int
ret
=
-
ENOSYS
;
# ifdef __i386__
__asm__
(
"pushl %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx
\n\t
"
:
"=a"
(
ret
)
:
"0"
(
270
)
/*SYS_tgkill*/
,
"r"
(
tgid
),
"c"
(
pid
),
"d"
(
sig
)
);
if
(
ret
==
-
ENOSYS
)
__asm__
(
"pushl %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx
\n\t
"
:
"=a"
(
ret
)
:
"0"
(
238
)
/*SYS_tkill*/
,
"r"
(
pid
),
"c"
(
sig
)
);
ret
=
syscall
(
270
/*SYS_tgkill*/
,
tgid
,
pid
,
sig
);
if
(
ret
<
0
&&
errno
==
-
ENOSYS
)
ret
=
syscall
(
238
/*SYS_tkill*/
,
pid
,
sig
);
return
ret
;
# elif defined(__x86_64__)
__asm__
(
"syscall"
:
"=a"
(
ret
)
:
"0"
(
200
)
/*SYS_tkill*/
,
"D"
(
pid
),
"S"
(
sig
)
);
return
syscall
(
200
/*SYS_tkill*/
,
pid
,
sig
);
# endif
if
(
ret
>=
0
)
return
ret
;
errno
=
-
ret
;
...
...
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