GDBserver
Enumerations | Functions | Variables
linux-namespaces.h File Reference

Go to the source code of this file.

Enumerations

enum  linux_ns_type {
  LINUX_NS_IPC, LINUX_NS_MNT, LINUX_NS_NET, LINUX_NS_PID,
  LINUX_NS_USER, LINUX_NS_UTS, NUM_LINUX_NS_TYPES
}
 

Functions

int linux_ns_same (pid_t pid, enum linux_ns_type type)
 
int linux_mntns_open_cloexec (pid_t pid, const char *filename, int flags, mode_t mode)
 
int linux_mntns_unlink (pid_t pid, const char *filename)
 
ssize_t linux_mntns_readlink (pid_t pid, const char *filename, char *buf, size_t bufsiz)
 

Variables

int debug_linux_namespaces
 

Enumeration Type Documentation

Enumerator
LINUX_NS_IPC 
LINUX_NS_MNT 
LINUX_NS_NET 
LINUX_NS_PID 
LINUX_NS_USER 
LINUX_NS_UTS 
NUM_LINUX_NS_TYPES 

Definition at line 29 of file linux-namespaces.h.

Function Documentation

int linux_mntns_open_cloexec ( pid_t  pid,
const char *  filename,
int  flags,
mode_t  mode 
)
ssize_t linux_mntns_readlink ( pid_t  pid,
const char *  filename,
char *  buf,
size_t  bufsiz 
)
int linux_mntns_unlink ( pid_t  pid,
const char *  filename 
)
int linux_ns_same ( pid_t  pid,
enum linux_ns_type  type 
)

Variable Documentation

int debug_linux_namespaces

Definition at line 33 of file linux-namespaces.c.

Referenced by linux_mntns_get_helper(), mnsh_recv_message(), and mnsh_send_message().