andrey
e89ae88f3a
fix(PICAN): align socket handling with PIEthernet patterns
- Sentinel: sock = 0 → sock = -1 (0 is stdin, valid fd)
- openDevice(): close socket on ioctl/bind failure (resource leak)
- openDevice(): set O_NONBLOCK via fcntl after socket()
- openDevice(): check setsockopt() return value
- closeDevice(): call shutdown() before close(), reset sock to -1
- readDevice() / writeDevice(): guard against sock == -1
- Add missing #include <fcntl.h>
2026-08-05 17:39:35 +03:00
..
2026-03-12 14:46:57 +03:00
2026-03-20 16:31:30 +03:00
2026-03-12 14:46:57 +03:00
2026-05-27 16:37:04 +03:00
2022-12-14 14:13:52 +03:00
2026-03-20 16:31:30 +03:00
2026-03-28 20:17:58 +03:00
2026-08-05 12:59:36 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 19:21:03 +03:00
2026-03-12 19:21:03 +03:00
2026-05-26 21:38:00 +03:00
2026-05-26 21:31:58 +03:00
2026-03-12 14:46:57 +03:00
2026-08-05 17:39:35 +03:00
2026-03-20 16:31:30 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2026-06-04 11:18:28 +03:00
2026-05-29 09:56:29 +03:00
2026-03-26 16:50:55 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2026-08-05 12:02:35 +03:00
2026-03-20 16:31:30 +03:00
2026-08-05 12:01:36 +03:00
2026-08-05 17:39:34 +03:00
2026-03-25 10:59:32 +03:00
2026-05-08 16:17:56 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00
2026-03-12 14:46:57 +03:00