Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: LibC definition for sys/socket.h (*-linux-gnu targets) #13242

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lib_c/i386-linux-gnu/c/sys/socket.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ lib LibC
fun getsockname(fd : Int, addr : Sockaddr*, len : SocklenT*) : Int
fun getsockopt(fd : Int, level : Int, optname : Int, optval : Void*, optlen : SocklenT*) : Int
fun listen(fd : Int, n : Int) : Int
fun recv(fd : Int, buf : Void*, n : Int, flags : Int) : SSizeT
fun recvfrom(fd : Int, buf : Void*, n : Int, flags : Int, addr : Sockaddr*, addr_len : SocklenT*) : SSizeT
fun send(fd : Int, buf : Void*, n : Int, flags : Int) : SSizeT
fun sendto(fd : Int, buf : Void*, n : Int, flags : Int, addr : Sockaddr*, addr_len : SocklenT) : SSizeT
fun recv(fd : Int, buf : Void*, n : SizeT, flags : Int) : SSizeT
fun recvfrom(fd : Int, buf : Void*, n : SizeT, flags : Int, addr : Sockaddr*, addr_len : SocklenT*) : SSizeT
fun send(fd : Int, buf : Void*, n : SizeT, flags : Int) : SSizeT
fun sendto(fd : Int, buf : Void*, n : SizeT, flags : Int, addr : Sockaddr*, addr_len : SocklenT) : SSizeT
fun setsockopt(fd : Int, level : Int, optname : Int, optval : Void*, optlen : SocklenT) : Int
fun shutdown(fd : Int, how : Int) : Int
fun socket(domain : Int, type : Int, protocol : Int) : Int
Expand Down
8 changes: 4 additions & 4 deletions src/lib_c/x86_64-linux-gnu/c/sys/socket.cr
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ lib LibC
fun getsockname(fd : Int, addr : Sockaddr*, len : SocklenT*) : Int
fun getsockopt(fd : Int, level : Int, optname : Int, optval : Void*, optlen : SocklenT*) : Int
fun listen(fd : Int, n : Int) : Int
fun recv(fd : Int, buf : Void*, n : Int, flags : Int) : SSizeT
fun recvfrom(fd : Int, buf : Void*, n : Int, flags : Int, addr : Sockaddr*, addr_len : SocklenT*) : SSizeT
fun send(fd : Int, buf : Void*, n : Int, flags : Int) : SSizeT
fun sendto(fd : Int, buf : Void*, n : Int, flags : Int, addr : Sockaddr*, addr_len : SocklenT) : SSizeT
fun recv(fd : Int, buf : Void*, n : SizeT, flags : Int) : SSizeT
fun recvfrom(fd : Int, buf : Void*, n : SizeT, flags : Int, addr : Sockaddr*, addr_len : SocklenT*) : SSizeT
fun send(fd : Int, buf : Void*, n : SizeT, flags : Int) : SSizeT
fun sendto(fd : Int, buf : Void*, n : SizeT, flags : Int, addr : Sockaddr*, addr_len : SocklenT) : SSizeT
fun setsockopt(fd : Int, level : Int, optname : Int, optval : Void*, optlen : SocklenT) : Int
fun shutdown(fd : Int, how : Int) : Int
fun socket(domain : Int, type : Int, protocol : Int) : Int
Expand Down