Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
42317e64
Commit
42317e64
authored
Jul 04, 2022
by
Dmitry Chagin
Browse files
linux(4): Implement __vdso_time
PR: 240769 MFC after: 3 days
parent
d8596171
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/compat/linux/linux_vdso_gtod.inc
View file @
42317e64
...
...
@@ -372,7 +372,14 @@ __vdso_getcpu(uint32_t *cpu, uint32_t *node, void *cache)
int
__vdso_time
(
long
*
tm
)
{
struct
timeval
tv
;
int
error
;
return
(
__vdso_time_fallback
(
tm
));
error
=
freebsd_gettimeofday
(
&
tv
,
NULL
);
if
(
error
!=
0
)
return
(
__vdso_time_fallback
(
tm
));
if
(
tm
!=
NULL
)
*
tm
=
tv
.
tv_sec
;
return
(
tv
.
tv_sec
);
}
#endif
HardenedBSD Services
@hardenedbsd-services
mentioned in commit
f8da8634
·
Jul 11, 2022
mentioned in commit
f8da8634
mentioned in commit f8da86347070ce4b6c39a8d6ba2df53e49ec4f84
Toggle commit list
Write
Preview
Supports
Markdown
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