aboutsummaryrefslogtreecommitdiff
path: root/core/sys
diff options
context:
space:
mode:
authorblob1807 <12388588+blob1807@users.noreply.github.com>2024-02-21 00:43:27 +1000
committerblob1807 <12388588+blob1807@users.noreply.github.com>2024-02-21 00:43:27 +1000
commit004cd4933d2d80cd3416edc3feae585baff3a68b (patch)
treeddbb077c955089f02a02ef6640ad1e1b72713576 /core/sys
parent14ee2181cbf270863d0aa7e1be36814c1ded1354 (diff)
parentb43c1f2b5bf4f092fe4407f33f8fe563321518a7 (diff)
Merge branch 'master' of https://github.com/blob1807/Odin
Diffstat (limited to 'core/sys')
-rw-r--r--core/sys/linux/bits.odin4
-rw-r--r--core/sys/unix/pthread_darwin.odin18
2 files changed, 11 insertions, 11 deletions
diff --git a/core/sys/linux/bits.odin b/core/sys/linux/bits.odin
index 8b7de5d5e..ad519e1cd 100644
--- a/core/sys/linux/bits.odin
+++ b/core/sys/linux/bits.odin
@@ -944,8 +944,8 @@ Socket_Type :: enum {
Bits for Socket_FD_Flags
*/
Socket_FD_Flags_Bits :: enum {
- NONBLOCK = 14,
- CLOEXEC = 25,
+ NONBLOCK = 11,
+ CLOEXEC = 19,
}
/*
diff --git a/core/sys/unix/pthread_darwin.odin b/core/sys/unix/pthread_darwin.odin
index 358b5d2fd..378fa9309 100644
--- a/core/sys/unix/pthread_darwin.odin
+++ b/core/sys/unix/pthread_darwin.odin
@@ -17,42 +17,42 @@ PTHREAD_RWLOCKATTR_SIZE :: 16
pthread_t :: distinct u64
-pthread_attr_t :: struct #align(16) {
+pthread_attr_t :: struct {
sig: c.long,
_: [PTHREAD_ATTR_SIZE] c.char,
}
-pthread_cond_t :: struct #align(16) {
+pthread_cond_t :: struct {
sig: c.long,
_: [PTHREAD_COND_SIZE] c.char,
}
-pthread_condattr_t :: struct #align(16) {
+pthread_condattr_t :: struct {
sig: c.long,
_: [PTHREAD_CONDATTR_SIZE] c.char,
}
-pthread_mutex_t :: struct #align(16) {
+pthread_mutex_t :: struct {
sig: c.long,
_: [PTHREAD_MUTEX_SIZE] c.char,
}
-pthread_mutexattr_t :: struct #align(16) {
+pthread_mutexattr_t :: struct {
sig: c.long,
_: [PTHREAD_MUTEXATTR_SIZE] c.char,
}
-pthread_once_t :: struct #align(16) {
+pthread_once_t :: struct {
sig: c.long,
_: [PTHREAD_ONCE_SIZE] c.char,
}
-pthread_rwlock_t :: struct #align(16) {
+pthread_rwlock_t :: struct {
sig: c.long,
_: [PTHREAD_RWLOCK_SIZE] c.char,
}
-pthread_rwlockattr_t :: struct #align(16) {
+pthread_rwlockattr_t :: struct {
sig: c.long,
_: [PTHREAD_RWLOCKATTR_SIZE] c.char,
}
@@ -93,4 +93,4 @@ foreign pthread {
pthread_setcancelstate :: proc (state: c.int, old_state: ^c.int) -> c.int ---
pthread_setcanceltype :: proc (type: c.int, old_type: ^c.int) -> c.int ---
pthread_cancel :: proc (thread: pthread_t) -> c.int ---
-} \ No newline at end of file
+}