| 662 | } |
| 663 | |
| 664 | static int |
| 665 | linux2freebsd_socket_flags(int flags) |
| 666 | { |
| 667 | if (flags & LINUX_SOCK_NONBLOCK) { |
| 668 | flags &= ~LINUX_SOCK_NONBLOCK; |
| 669 | flags |= SOCK_NONBLOCK; |
| 670 | } |
| 671 | if (flags & LINUX_SOCK_CLOEXEC) { |
| 672 | flags &= ~LINUX_SOCK_CLOEXEC; |
| 673 | flags |= SOCK_CLOEXEC; |
| 674 | } |
| 675 | return flags; |
| 676 | } |
| 677 | |
| 678 | static void |
| 679 | linux2freebsd_sockaddr(const struct linux_sockaddr *linux, |
no outgoing calls
no test coverage detected