Searched refs:FD_CLOEXEC (Results 1 – 5 of 5) sorted by relevance
161 #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ macro
256 err = get_close_on_exec(fd) ? FD_CLOEXEC : 0; in do_fcntl()260 set_close_on_exec(fd, arg & FD_CLOEXEC); in do_fcntl()
342 CATCH_EINTR(err = fcntl(fd, F_SETFD, FD_CLOEXEC)); in os_set_exec_close()
1349 fcntl(go_pipe[0], F_SETFD, FD_CLOEXEC); in perf_evlist__prepare_workload()1416 fcntl(go_pipe[1], F_SETFD, FD_CLOEXEC); in perf_evlist__prepare_workload()
431 - In order to avoid fd leaks on exec, the FD_CLOEXEC flag must be set