GDB (xrefs)
|
Go to the source code of this file.
Functions | |
void | notice_open_fds (void) |
void | mark_fd_no_cloexec (int fd) |
void | unmark_fd_no_cloexec (int fd) |
void | close_most_fds (void) |
int | gdb_open_cloexec (const char *filename, int flags, unsigned long mode) |
FILE * | gdb_fopen_cloexec (const char *filename, const char *opentype) |
int | gdb_socketpair_cloexec (int namespace, int style, int protocol, int filedes[2]) |
int | gdb_socket_cloexec (int namespace, int style, int protocol) |
int | gdb_pipe_cloexec (int filedes[2]) |
void close_most_fds | ( | void | ) |
Definition at line 231 of file filestuff.c.
References do_close(), and fdwalk().
Referenced by fork_inferior(), pipe_open(), and shell_escape().
FILE* gdb_fopen_cloexec | ( | const char * | filename, |
const char * | opentype | ||
) |
Definition at line 311 of file filestuff.c.
References maybe_mark_cloexec(), and O_CLOEXEC.
Referenced by auto_load_objfile_script_1(), command_from_pid(), commandline_from_pid(), fopen_with_cleanup(), gdb_fopen(), linux_common_core_of_thread(), linux_nat_thread_name(), linux_proc_get_int(), linux_proc_pending_signals(), linux_proc_pid_has_state(), linux_xfer_osdata_modules(), linux_xfer_osdata_msg(), linux_xfer_osdata_sem(), linux_xfer_osdata_shm(), print_sockets(), remote_file_get(), remote_file_put(), tfile_start(), write_psymtabs_to_index(), and xml_fetch_content_from_file().
int gdb_open_cloexec | ( | const char * | filename, |
int | flags, | ||
unsigned long | mode | ||
) |
Definition at line 298 of file filestuff.c.
References maybe_mark_cloexec(), and O_CLOEXEC.
Referenced by core_open(), find_and_open_source(), gdb_bfd_open(), hardwire_open(), inf_child_fileio_open(), linux_proc_xfer_partial(), linux_proc_xfer_spu(), openp(), procfs_xfer_auxv(), remote_fileio_func_open(), solib_find(), and tfile_open().
int gdb_pipe_cloexec | ( | int | filedes[2] | ) |
Definition at line 387 of file filestuff.c.
References _, gdb_assert_not_reached, mark_cloexec(), maybe_mark_cloexec(), and O_CLOEXEC.
Referenced by linux_async_pipe(), and tui_initialize_io().
int gdb_socket_cloexec | ( | int | namespace, |
int | style, | ||
int | protocol | ||
) |
Referenced by gdb_connect_sync_socket(), and net_open().
Referenced by gdb_pipe(), and pipe_open().
void mark_fd_no_cloexec | ( | int | fd | ) |
Definition at line 183 of file filestuff.c.
Referenced by darwin_pre_ptrace().
void notice_open_fds | ( | void | ) |
void unmark_fd_no_cloexec | ( | int | fd | ) |
Definition at line 191 of file filestuff.c.
References _, gdb_assert_not_reached, VEC_iterate, and VEC_unordered_remove.
Referenced by darwin_ptrace_him().