zephyr/lib
Jukka Rissanen 04d8b7c595 net: sockets: Cleanup socket properly if POSIX API is enabled
The sock_obj_core_dealloc() was not called if close() is called
instead of zsock_close(). This happens if POSIX API is enabled.

Fix this by calling zvfs_close() from zsock_close() and then
pass the socket number to zsock_close_ctx() so that the cleanup
can be done properly.

Reported-by: Andreas Ålgård <aal@ixys.no>
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-11-08 15:56:39 -06:00
..
acpi lib: acpi: update shell and test app with the modifed resource struct 2024-02-15 12:28:55 +01:00
cpp lib c/cpp: Move .ctor .init_array handling from C++ to kernel 2024-06-25 19:14:37 -04:00
crc lib: crc: add `crc8_rohc` for CRC-8/ROHC variant calculation 2024-10-09 09:48:00 +02:00
hash lib: hash: use new c++ Kconfig symbols 2023-07-26 14:53:51 +02:00
heap lib: added blanks between operators 2024-06-13 20:28:23 -04:00
libc cmake: libc: minimal: Avoid linking against other libc implementations 2024-10-30 14:29:37 -05:00
mem_blocks lib: mem_block: move to own folder 2023-12-13 17:27:54 -05:00
net_buf net: buf: increase log level of timeout ignore 2024-10-10 14:59:16 -04:00
open-amp openamp: resource table: fixes resource table for ram_console section 2024-11-08 15:55:11 -06:00
os net: sockets: Cleanup socket properly if POSIX API is enabled 2024-11-08 15:56:39 -06:00
posix posix: kconfig: remove select y from non-user-selectable help 2024-10-14 13:01:51 +02:00
runtime llvm: Add support for selecting runtime library 2023-08-03 19:35:11 +02:00
smf lib: smf: use `while (true)` in `get_child_of` for better clarity 2024-07-01 16:08:05 -04:00
utils json: support parsing and serializing 'uint64_t' 2024-10-05 14:04:48 -04:00
CMakeLists.txt lib: net_buf: move the network buffer implementation to lib 2024-09-07 11:19:05 -05:00
Kconfig lib: net_buf: move the network buffer implementation to lib 2024-09-07 11:19:05 -05:00