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-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
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-platform
Commits
1c181eee
Commit
1c181eee
authored
Apr 06, 2020
by
Mart Lubbers
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-nsTime-for-32-bit' into 'master'
Fix nsTime on 32-bit linux See merge request
!318
parents
b500c6d9
3ac1d092
Pipeline
#41143
passed with stage
in 1 minute and 48 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/libraries/OS-Posix/System/Time.icl
src/libraries/OS-Posix/System/Time.icl
+3
-3
No files found.
src/libraries/OS-Posix/System/Time.icl
View file @
1c181eee
...
...
@@ -173,12 +173,12 @@ sizeOfTm = IF_ANDROID 44 36
nsTime
::
!*
World
->
(!
Timespec
,
!*
World
)
nsTime
w
#
(
p
,
w
)
=
mallocSt
16
w
#
(
p
,
w
)
=
mallocSt
(
IF_INT_64_OR_32
16
12
)
w
#
(
r
,
w
)
=
clock_gettime
0
p
w
//For completeness sake
|
r
<>
0
=
abort
"clock_gettime error: everyone should have permission to open CLOCK_REALTIME?"
#
(
tv_sec
,
p
)
=
readIntP
p
0
#
(
tv_nsec
,
p
)
=
readIntP
p
8
#
(
tv_sec
,
p
)
=
IF_INT_64_OR_32
(
readIntP
p
0
)
(
readP
(\
p
->
readInt4Z
p
0
)
p
)
#
(
tv_nsec
,
p
)
=
readIntP
p
(
IF_INT_64_OR_32
8
4
)
=
({
Timespec
|
tv_sec
=
tv_sec
,
tv_nsec
=
tv_nsec
},
freeSt
p
w
)
timespecToStamp
::
!
Timespec
->
Timestamp
...
...
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