Skip to content
Open
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
4 changes: 2 additions & 2 deletions wolfcrypt/src/wc_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -5178,7 +5178,7 @@ char* wolfSSL_strnstr(const char* s1, const char* s2, size_t n)
#endif /* not SINGLE_THREADED */

#if (defined(__unix__) || defined(__APPLE__)) && \
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR)
!defined(WOLFSSL_KERNEL_MODE) && !defined(WOLFSSL_ZEPHYR)

Comment thread
philljj marked this conversation as resolved.
#include <fcntl.h>
#include <errno.h>
Expand Down Expand Up @@ -5247,7 +5247,7 @@ int wc_accept_cloexec(int sockfd, void* addr, void* addrlen)
return fd;
}

#endif /* (__unix__ || __APPLE__) && !WOLFSSL_LINUXKM && !WOLFSSL_ZEPHYR */
#endif /* (__unix__ || __APPLE__) && !WOLFSSL_KERNEL_MODE && !WOLFSSL_ZEPHYR */

#if defined(WOLFSSL_LINUXKM) && defined(CONFIG_ARM64) && \
defined(WC_SYM_RELOC_TABLES)
Expand Down
6 changes: 3 additions & 3 deletions wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -1864,15 +1864,15 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
#endif

#if (defined(__unix__) || defined(__APPLE__)) && \
!defined(WOLFSSL_LINUXKM) && !defined(WOLFSSL_ZEPHYR)
!defined(WOLFSSL_KERNEL_MODE) && !defined(WOLFSSL_ZEPHYR)
WOLFSSL_LOCAL void wc_set_cloexec(int fd);
Comment thread
philljj marked this conversation as resolved.
WOLFSSL_LOCAL int wc_open_cloexec(const char* path, int flags);
WOLFSSL_LOCAL int wc_socket_cloexec(int domain, int type, int protocol);
WOLFSSL_LOCAL int wc_accept_cloexec(int sockfd, void* addr, void* addrlen);
#else
/* Platforms without POSIX close-on-exec semantics (Windows, OS/2 OW,
* Linux kernel module, Zephyr, etc.): pass through to plain syscalls
* where the underlying headers are available in the caller. */
* FreeBSD/Linux kernel module, Zephyr, etc.): pass through to plain
* syscalls where the underlying headers are available in the caller. */
#define wc_set_cloexec(fd) ((void)(fd))
#define wc_open_cloexec(path, flags) open((path), (flags))
#define wc_socket_cloexec(domain, type, protocol) \
Expand Down
Loading