Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-ide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-ide
Commits
b5ef96ca
Commit
b5ef96ca
authored
Jun 27, 2018
by
John van Groningen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sign extend the result of wait_pid
parent
40dce80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Unix/PmCleanSystem.icl
Unix/PmCleanSystem.icl
+6
-3
No files found.
Unix/PmCleanSystem.icl
View file @
b5ef96ca
...
...
@@ -417,7 +417,8 @@ Link linker winfun path
#
(
w_pid
,
status
)
=
wait_pid
linker_pid
0
|
w_pid
<>
-1
&&
w_pid
<>
linker_pid
=
abort
"waitpid failed"
#
result
=
(
status
bitand
0xff00
)
>>
8
#
result
=
status
>>
8
;
#
result
=
(
result
bitand
127
)
-
(
result
bitand
128
);
// 8 bit sign extend
#
wtermsig
=
status
bitand
0x7f
|
wtermsig
<>
0
=
abort
"linker exited abnormally"
...
...
@@ -448,8 +449,9 @@ Link linker winfun path
#
(
w_pid
,
status
)
=
wait_pid
ld_pid
0
|
w_pid
<>
-1
&&
w_pid
<>
ld_pid
=
abort
"waitpid failed"
#
result
=
(
status
bitand
0xff00
)
>>
8
#
wtermsig
=
status
bitand
0x7f
#
result
=
status
>>
8
;
#
result
=
(
result
bitand
127
)
-
(
result
bitand
128
);
// 8 bit sign extend
|
wtermsig
<>
0
=
abort
"ld exited abnormally"
#
link_ok
=
result
>=
0
...
...
@@ -493,7 +495,8 @@ Link linker winfun path
#
(
w_pid
,
status
)
=
wait_pid
linker_pid
0
|
w_pid
<>
-1
&&
w_pid
<>
linker_pid
=
abort
"waitpid failed"
#
result
=
(
status
bitand
0xff00
)
>>
8
#
result
=
status
>>
8
;
#
result
=
(
result
bitand
127
)
-
(
result
bitand
128
);
// 8 bit sign extend
#
wtermsig
=
status
bitand
0x7f
|
wtermsig
<>
0
=
abort
"linker exited abnormally"
...
...
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