D | socket_echo_select.c | 4 * SPDX-License-Identifier: Apache-2.0 21 /* Generic read()/write() is available in POSIX config, so use it. */ 22 #define READ(fd, buf, sz) read(fd, buf, sz) macro 23 #define WRITE(fd, buf, sz) write(fd, buf, sz) argument 32 /* Generic read()/write() are not defined, so use socket-specific recv(). */ 33 #define READ(fd, buf, sz) recv(fd, buf, sz, 0) macro 34 #define WRITE(fd, buf, sz) send(fd, buf, sz, 0) argument 38 /* For Zephyr, keep max number of fd's in sync with max poll() capacity */ 63 if (fl == -1) { in setblocking() 74 if (fl == -1) { in setblocking() [all …]
|