Skip to content

Conversation

@brad0
Copy link

@brad0 brad0 commented May 18, 2024

No indirect syscalls are allowed. The futex() function which issues
a direct syscall is required.

https://man.openbsd.org/futex

No indirect syscalls are allowed. The futex() function which issues
a direct syscall is required.
@Lastique
Copy link
Member

Lastique commented May 18, 2024 via email

@brad0
Copy link
Author

brad0 commented May 18, 2024

On May 18, 2024 10:58:31 AM Brad Smith @.***> wrote: No indirect syscalls are allowed. The futex() function which issues a direct syscall is required.
Could you provide more details? What do you mean by "not allowed"? Does invoking the syscall directly not work? What is the error? Also, is the futex wrapper function universally available on OpenBSD?

As in support for syscall(2) has been removed.

openbsd/src@cafeb89

Yes, it is.

@Lastique
Copy link
Member

Lastique commented May 18, 2024

Also, is the futex wrapper function universally available on OpenBSD?

Yes, it is.

No, it's not. Apparently, futex only appeared in OpenBSD 6.2. The current code tests that by means of testing whether the syscall number is defined.

@Lastique
Copy link
Member

Can you test if 6ee3138 works on OpenBSD?

@brad0
Copy link
Author

brad0 commented May 19, 2024

Can you test if 6ee3138 works on OpenBSD?

That looks fine and builds on -current.

@Lastique Lastique closed this in 6ee3138 May 19, 2024
@brad0 brad0 deleted the boost_atomic_futex_openbsd branch May 19, 2024 07:22
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.

2 participants