MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fd_cloexec

Function fd_cloexec

src/daemon/service.c:330–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328#include <unistd.h>
329
330static bool fd_cloexec(int fd) {
331 int flags = fcntl(fd, F_GETFD);
332 return flags >= 0 && (flags & FD_CLOEXEC || fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0);
333}
334
335static bool fd_regular_current_user(int fd, struct stat *status_out) {
336 struct stat status;

Callers 4

posix_log_path_openFunction · 0.85
posix_lock_file_openFunction · 0.85
posix_log_file_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected