Searched refs:safe_close (Results 1 - 25 of 112) sorted by relevance

12345

/systemd/src/import/
H A Dimport-common.c104 pipefd[1] = safe_close(pipefd[1]);
112 pipefd[0] = safe_close(pipefd[0]);
126 null_fd = safe_close(null_fd);
144 pipefd[0] = safe_close(pipefd[0]);
178 pipefd[0] = safe_close(pipefd[0]);
186 pipefd[1] = safe_close(pipefd[1]);
200 null_fd = safe_close(null_fd);
218 pipefd[1] = safe_close(pipefd[1]);
/systemd/src/shared/
H A Dspawn-polkit-agent.c63 safe_close(pipe_fd[1]);
71 safe_close(pipe_fd[0]);
H A Dwatchdog.c163 watchdog_fd = safe_close(watchdog_fd);
/systemd/src/core/
H A Daudit-fd.c58 safe_close(audit_fd);
H A Dmachine-id-setup.c132 safe_close(fd);
168 safe_close(fd);
270 fd = safe_close(fd);
338 fd = safe_close(fd);
364 fd = safe_close(fd);
/systemd/src/journal/
H A Dtest-mmap-cache.c74 safe_close(x);
75 safe_close(y);
76 safe_close(z);
H A Dcat.c144 safe_close(fd);
H A Djournald-console.c114 safe_close(fd);
/systemd/src/basic/
H A Drm-rf.c52 safe_close(fd);
64 safe_close(fd);
71 safe_close(fd);
123 safe_close(subdir_fd);
127 safe_close(subdir_fd);
141 safe_close(subdir_fd);
150 safe_close(subdir_fd);
H A Dfd-util.h34 int safe_close(int fd);
44 safe_close(*fd);
H A Dbarrier.c147 b->me = safe_close(b->me);
148 b->them = safe_close(b->them);
179 b->pipe[1] = safe_close(b->pipe[1]);
181 b->pipe[0] = safe_close(b->pipe[0]);
H A Dfd-util.c56 int safe_close(int fd) { function
63 * fd = safe_close(fd);
86 p[0] = p[1] = safe_close(p[0]);
90 p[0] = safe_close(p[0]);
91 p[1] = safe_close(p[1]);
100 safe_close(fds[i]);
119 /* Same as safe_close(), but for fclose() */
H A Dlockfile-util.c88 fd = safe_close(fd);
151 f->fd = safe_close(f->fd);
H A Daudit-util.c99 safe_close(fd);
H A Dterminal-util.c348 safe_close(fd);
353 safe_close(fd);
494 fd = safe_close(fd);
497 safe_close(notify);
502 safe_close(fd);
503 safe_close(notify);
597 fd = safe_close(fd);
825 safe_close(fd);
1059 pair[0] = safe_close(pair[0]);
1078 pair[1] = safe_close(pai
[all...]
/systemd/src/login/
H A Dtest-inhibit.c103 safe_close(fd1);
107 safe_close(fd2);
/systemd/src/resolve/
H A Dresolved-llmnr.c31 m->llmnr_ipv4_udp_fd = safe_close(m->llmnr_ipv4_udp_fd);
34 m->llmnr_ipv6_udp_fd = safe_close(m->llmnr_ipv6_udp_fd);
37 m->llmnr_ipv4_tcp_fd = safe_close(m->llmnr_ipv4_tcp_fd);
40 m->llmnr_ipv6_tcp_fd = safe_close(m->llmnr_ipv6_tcp_fd);
199 m->llmnr_ipv4_udp_fd = safe_close(m->llmnr_ipv4_udp_fd);
278 m->llmnr_ipv6_udp_fd = safe_close(m->llmnr_ipv6_udp_fd);
323 safe_close(cfd);
401 m->llmnr_ipv4_tcp_fd = safe_close(m->llmnr_ipv4_tcp_fd);
474 m->llmnr_ipv6_tcp_fd = safe_close(m->llmnr_ipv6_tcp_fd);
H A Dresolved-mdns.c32 m->mdns_ipv4_fd = safe_close(m->mdns_ipv4_fd);
35 m->mdns_ipv6_fd = safe_close(m->mdns_ipv6_fd);
208 m->mdns_ipv4_fd = safe_close(m->mdns_ipv4_fd);
285 m->mdns_ipv6_fd = safe_close(m->mdns_ipv6_fd);
/systemd/src/test/
H A Dtest-capability.c102 safe_close(sock);
111 safe_close(sock);
119 safe_close(sock);
/systemd/src/libsystemd/sd-bus/
H A Dbus-container.c71 pair[0] = safe_close(pair[0]);
111 pair[1] = safe_close(pair[1]);
193 pair[0] = safe_close(pair[0]);
236 pair[1] = safe_close(pair[1]);
H A Dtest-bus-kernel.c144 pipe_fds[1] = safe_close(pipe_fds[1]);
149 pipe_fds[0] = safe_close(pipe_fds[0]);
/systemd/src/nspawn/
H A Dnspawn-setuid.c56 safe_close(pipe_fds[0]);
58 safe_close(pipe_fds[1]);
71 safe_close(nullfd);
82 pipe_fds[1] = safe_close(pipe_fds[1]);
/systemd/src/bootchart/
H A Dstore.c140 vmstat = safe_close(vmstat);
200 e_fd = safe_close(e_fd);
265 ps->sched = safe_close(ps->sched);
376 ps->sched = safe_close(ps->sched);
416 safe_close(taskfd);
536 ps->sched = safe_close(ps->sched);
537 ps->schedstat = safe_close(ps->schedstat);
/systemd/src/fsck/
H A Dfsck.c189 safe_close(fd);
268 safe_close(fd);
406 progress_pipe[0] = safe_close(progress_pipe[0]);
412 progress_pipe[1] = safe_close(progress_pipe[1]);
447 progress_pipe[1] = safe_close(progress_pipe[1]);
/systemd/src/libudev/
H A Dlibudev-queue.c111 safe_close(udev_queue->fd);

Completed in 3602 milliseconds

12345