aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_openbsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/defs_openbsd.go')
-rw-r--r--src/runtime/defs_openbsd.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/runtime/defs_openbsd.go b/src/runtime/defs_openbsd.go
index 53e9d59a3c..ff7e21c71e 100644
--- a/src/runtime/defs_openbsd.go
+++ b/src/runtime/defs_openbsd.go
@@ -54,6 +54,13 @@ const (
SA_RESTART = C.SA_RESTART
SA_ONSTACK = C.SA_ONSTACK
+ PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
+
+ F_SETFD = C.F_SETFD
+ F_GETFL = C.F_GETFL
+ F_SETFL = C.F_SETFL
+ FD_CLOEXEC = C.FD_CLOEXEC
+
SIGHUP = C.SIGHUP
SIGINT = C.SIGINT
SIGQUIT = C.SIGQUIT
@@ -129,3 +136,10 @@ type Timeval C.struct_timeval
type Itimerval C.struct_itimerval
type KeventT C.struct_kevent
+
+type Pthread C.pthread_t
+type PthreadAttr C.pthread_attr_t
+type PthreadCond C.pthread_cond_t
+type PthreadCondAttr C.pthread_condattr_t
+type PthreadMutex C.pthread_mutex_t
+type PthreadMutexAttr C.pthread_mutexattr_t