diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-05 00:28:57 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-05 03:05:43 -0400 |
| commit | 61e770d94398b65c3fe4f47898e248a691181dfd (patch) | |
| tree | e3122c1a5d536e05804d2cfa6c9e54d68eb78a1c /core/sys | |
| parent | 2b63684ccfd45882fd4f37c054d2ca7437c39c66 (diff) | |
Clean up some FreeBSD `core:net` code
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/freebsd/syscalls.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/freebsd/syscalls.odin b/core/sys/freebsd/syscalls.odin index 78628a5e7..506a43bba 100644 --- a/core/sys/freebsd/syscalls.odin +++ b/core/sys/freebsd/syscalls.odin @@ -58,7 +58,7 @@ close :: proc "contextless" (fd: Fd) -> Errno { // // The getpid() function appeared in Version 7 AT&T UNIX. getpid :: proc "contextless" () -> pid_t { - // always succeeds + // This always succeeds. result, _ := intrinsics.syscall_bsd(SYS_getpid) return cast(pid_t)result } @@ -468,7 +468,7 @@ accept4_T :: proc "contextless" (s: Fd, sockaddr: ^$T, flags: Socket_Flags = {}) where intrinsics.type_is_subtype_of(T, Socket_Address_Header) { - // sockaddr must contain a valid pointer, or this will segfault because + // `sockaddr` must contain a valid pointer, or this will segfault because // we're telling the syscall that there's memory available to write to. addrlen: u32 = size_of(T) |