Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dlang#3605 from ibara/openbsd-pthread_np
Fix Issue 22454 - OpenBSD: Add prototypes for pthread_np.h
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* D header file for OpenBSD pthread_np.h. | ||
* | ||
* Copyright: Copyright © 2021, The D Language Foundation | ||
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. | ||
* Authors: Brian Callahan | ||
*/ | ||
module core.sys.openbsd.pthread_np; | ||
|
||
version (OpenBSD): | ||
extern (C): | ||
nothrow: | ||
@nogc: | ||
|
||
public import core.sys.posix.sys.types; | ||
import core.sys.posix.signal : stack_t; | ||
|
||
int pthread_mutexattr_getkind_np(pthread_mutexattr_t); | ||
int pthread_mutexattr_setkind_np(pthread_mutexattr_t*, int); | ||
void pthread_get_name_np(pthread_t, char*, size_t); | ||
void pthread_set_name_np(pthread_t, const(char)*); | ||
int pthread_stackseg_np(pthread_t, stack_t*); | ||
int pthread_main_np(); |