Home
last modified time | relevance | path

Searched refs:safe_close (Results 1 – 18 of 18) sorted by relevance

/third_party/eudev/src/shared/
Dterminal-util.c77 safe_close(fd); in open_terminal()
82 safe_close(fd); in open_terminal()
Dlog.c65 safe_close(console_fd); in log_close_console()
87 kmsg_fd = safe_close(kmsg_fd); in log_close_kmsg()
103 syslog_fd = safe_close(syslog_fd); in log_close_syslog()
147 safe_close(syslog_fd); in log_open_syslog()
Dutil.h89 int safe_close(int fd);
290 safe_close(*fd); in closep()
Dutil.c210 int safe_close(int fd) { in safe_close() function
240 safe_close(fds[i]); in close_many()
/third_party/glib/glib/tests/
Dspawn-singlethread.c174 safe_close (int fd) in safe_close() function
260 safe_close (test_pipe[0][0]); in test_spawn_async_with_fds()
261 safe_close (test_pipe[1][1]); in test_spawn_async_with_fds()
263 safe_close (test_pipe[2][1]); in test_spawn_async_with_fds()
305 safe_close (test_pipe[0][1]); in test_spawn_async_with_fds()
306 safe_close (test_pipe[1][0]); in test_spawn_async_with_fds()
308 safe_close (test_pipe[2][0]); in test_spawn_async_with_fds()
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create_common.c162 safe_close(filename, lineno, NULL, fd); in check_mfd_fail_new()
289 safe_close(filename, lineno, NULL, fd); in check_mfd_fail_open()
415 safe_close(filename, lineno, NULL, fd2); in check_mfd_shrinkable()
/third_party/ltp/lib/
Dtst_netdevice.c59 safe_close(file, lineno, NULL, sock); in tst_netdev_index_by_name()
85 safe_close(file, lineno, NULL, sock); in tst_netdev_set_state()
95 safe_close(file, lineno, NULL, sock); in tst_netdev_set_state()
Dtst_safe_io_uring.c81 ret = safe_close(file, lineno, NULL, uring->fd); in safe_io_uring_close()
Dtst_rtnetlink.c58 safe_close(file, lineno, NULL, ctx->socket); in tst_rtnl_destroy_context()
Dsafe_net.c522 ret = safe_close(file, lineno, cleanup_fn, sock); in tst_get_unused_port()
Dsafe_macros.c62 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() function
/third_party/eudev/src/libudev/
Dlibudev-queue.c113 safe_close(udev_queue->fd); in udev_queue_unref()
/third_party/glib/glib/
Dgspawn.c159 static gint safe_close (gint fd);
276 safe_close (*fd); in close_and_invalidate()
1300 safe_close (gint fd) in safe_close() function
1317 (void) safe_close (fd); in close_func()
1412 safe_close (dir_fd); in safe_fdwalk()
/third_party/ltp/include/
Dsafe_macros_fn.h33 int safe_close(const char *file, const int lineno,
Dtst_safe_macros.h34 safe_close(__FILE__, __LINE__, NULL, (fd)); \
/third_party/eudev/src/udev/
Dudevd.c329 fd_lock = safe_close(fd_lock); in worker_spawn()
353 safe_close(fd_lock); in worker_spawn()
412 safe_close(fd_signal); in worker_spawn()
413 safe_close(fd_ep); in worker_spawn()
Dudev-event.c428 safe_close(fd_stdout); in spawn_exec()
432 safe_close(fd_stderr); in spawn_exec()
/third_party/ltp/include/old/
Dsafe_macros.h30 int ret = safe_close(__FILE__, __LINE__, (cleanup_fn), (fd)); \