scrcpy/app/src/util
Romain Vimont b90c89766b Set CLOEXEC flag on sockets
If SOCK_CLOEXEC exists, then set the flag on socket creation.

Otherwise, use fcntl() (or SetHandleInformation() on Windows) to set the
flag afterwards.

This avoids the sockets to be inherited in child processes.

Refs #2783 <https://github.com/Genymobile/scrcpy/pull/2783>
2021-11-26 09:40:39 +01:00
..
acksync.c Add acksync helper to wait for acks 2021-11-23 21:15:05 +01:00
acksync.h Wait SET_CLIPBOARD ack before Ctrl+v via HID 2021-11-24 09:41:21 +01:00
buffer_util.h Fix undefined left shift 2021-01-24 15:31:21 +01:00
cbuf.h Define feature test macros in common.h 2021-01-17 14:08:48 +01:00
file.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
file.h Improve file API 2021-11-12 22:44:37 +01:00
intr.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
intr.h Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
log.c Expose function to get the current log level 2021-06-20 16:04:18 +02:00
log.h Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
net.c Set CLOEXEC flag on sockets 2021-11-26 09:40:39 +01:00
net.h Add function to parse IPv4 addresses 2021-11-21 22:37:37 +01:00
net_intr.c Rename SC_INVALID_SOCKET to SC_SOCKET_NONE 2021-11-14 01:22:22 +01:00
net_intr.h Add interruptor utilities 2021-11-13 22:54:18 +01:00
process.c Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
process.h Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
process_intr.c Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
process_intr.h Check process success locally for adb commands 2021-11-25 22:22:34 +01:00
queue.h Rename queue to sc_queue 2021-07-14 00:35:10 +02:00
str.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
str.h Generalize string trunctation util function 2021-11-18 18:48:16 +01:00
strbuf.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
strbuf.h Add string buffer util 2021-11-11 14:55:52 +01:00
term.c Add util function to get terminal size 2021-11-11 15:22:39 +01:00
term.h Add util function to get terminal size 2021-11-11 15:22:39 +01:00
thread.c Add OutOfMemory log helper 2021-11-24 22:06:49 +01:00
thread.h Replace delay by deadline in timedwait() 2021-07-14 14:22:32 +02:00
tick.c Wrap tick API 2021-07-14 14:22:32 +02:00
tick.h Add missing include "common.h" 2021-11-06 19:26:29 +01:00