diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-03 22:30:44 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-08-14 01:44:37 +0200 |
| commit | 67ea7bb65a891fe1bc1384199239d82af0032c7b (patch) | |
| tree | 4dc55b72ab301391272effcfdcbbb9338f2a4c1b /core/sys | |
| parent | 175f5b0bb19e276816405996bbe574a46a6d3b55 (diff) | |
posix: address some freebsd feedback
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/posix/fcntl.odin | 6 | ||||
| -rw-r--r-- | core/sys/posix/sys_socket.odin | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/core/sys/posix/fcntl.odin b/core/sys/posix/fcntl.odin index 436104613..e98086eb3 100644 --- a/core/sys/posix/fcntl.odin +++ b/core/sys/posix/fcntl.odin @@ -254,15 +254,15 @@ when ODIN_OS == .Darwin { O_NONBLOCK :: 0x0004 O_SYNC :: 0x0080 _O_RSYNC :: 0 - O_RSYNC :: O_Flags{} + O_RSYNC :: O_Flags{} // NOTE: not defined in headers O_EXEC :: 0x00040000 O_RDONLY :: 0 O_RDWR :: 0x0002 O_WRONLY :: 0x0001 - _O_SEARCH :: O_EXEC|O_DIRECTORY - O_SEARCH :: O_Flags{ .EXEC, .DIRECTORY } + _O_SEARCH :: O_EXEC + O_SEARCH :: O_Flags{ .EXEC } AT_FDCWD: FD: -100 diff --git a/core/sys/posix/sys_socket.odin b/core/sys/posix/sys_socket.odin index e82101367..36c3c1467 100644 --- a/core/sys/posix/sys_socket.odin +++ b/core/sys/posix/sys_socket.odin @@ -437,10 +437,14 @@ when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .NetBSD || ODIN_OS SO_SNDLOWAT :: 0x1003 SO_TYPE :: 0x1008 - when ODIN_OS == .Darwin || ODIN_OS == .FreeBSD { + when ODIN_OS == .Darwin { SO_LINGER :: 0x1080 SO_RCVTIMEO :: 0x1006 SO_SNDTIMEO :: 0x1005 + } else when ODIN_OS == .FreeBSD { + SO_LINGER :: 0x0080 + SO_RCVTIMEO :: 0x1006 + SO_SNDTIMEO :: 0x1005 } else when ODIN_OS == .NetBSD { SO_LINGER :: 0x0080 SO_RCVTIMEO :: 0x100c |