Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Socketdir, monotonic and Hurd #282

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

wferi
Copy link
Contributor

@wferi wferi commented Dec 20, 2017

Hi,

Here is a preview of what I'm currently playing with. Sparked by Hurd compatibility issues, but applies generally. Another direction (not represented here) will be cutting down the warnings to a manageable level at least.
Comments, directions, suggestions welcome!

Regards,
Feri.

_POSIX_MONOTONIC_CLOCK is defined as 0 on Linux, calling for a runtime
check.  After that we fall back to CLOCK_REALTIME if needed.  In this
commit for clock_getres only, which failed on Hurd glibc until 2.24-18
because of an omission: other functions already had an internal fallback
to CLOCK_REALTIME.  CLOCK_REALTIME is guaranteed to work by POSIX.1-2001;
CLOCK_MONOTONIC is only guaranteed to be a known clockid_t.

Signed-off-by: Ferenc Wágner <[email protected]>
Signed-off-by: Ferenc Wágner <[email protected]>
It could also take over the role of the force-filesystem-sockets file.

Signed-off-by: Ferenc Wágner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant