#include "common/h/headers.h"#include <sys/procfs.h>Go to the source code of this file.
Defines | |
| #define | DMGL_PARAMS (1 << 0) |
| #define | DMGL_ANSI (1 << 1) |
| #define | DMGL_GNU (1 << 9) |
| #define | DMGL_GNU_V3 (1 << 14) |
| #define | DMGL_AUTO (1 << 8) |
Functions | |
| int | gethostname (char *, int) |
| int | getrusage (int, struct rusage *) |
| int | listen (int, int) |
| int | rexec (char **ahost, int inport, char *user, char *passwd, char *cmd, int *fd2p) |
| int | socket (int, int, int) |
| int | socketpair (int, int, int, int sv[2]) |
| int | pipe (int fd[2]) |
| int | vfork () |
| int | fork () |
| int | strcasecmp (const char *s1, const char *s2) |
| int | strncasecmp (const char *s1, const char *s2, long unsigned int n) |
| void | P_abort () |
| int | P_close (int FILEDES) |
| int | P_dup2 (int OLD, int NEW) |
| int | P_execvp (const char *FILENAME, char *const ARGV[]) |
| int | P_execve (const char *FILENAME, char *const ARGV[], char *const ENVP[]) |
| void | P__exit (int STATUS) |
| int | P_fcntl (int filedes, int command, int arg2) |
| FILE * | P_fdopen (int FILEDES, const char *OPENTYPE) |
| FILE * | P_fopen (const char *FILENAME, const char *OPENTYPE) |
| int | P_fstat (int FILEDES, struct stat *BUF) |
| pid_t | P_getpid () |
| int | P_kill (pid_t PID, int SIGNUM) |
| off_t | P_lseek (int FILEDES, off_t OFFSET, int WHENCE) |
| int | P_open (const char *FILENAME, int FLAGS, mode_t MODE) |
| int | P_pclose (FILE *STREAM) |
| FILE * | P_popen (const char *COMMAND, const char *MODE) |
| size_t | P_read (int FILEDES, void *BUFFER, size_t SIZE) |
| int | P_uname (struct utsname *unm) |
| pid_t | P_wait (int *status_ptr) |
| pid_t | P_waitpid (pid_t pid, int *statusp, int options) |
| size_t | P_write (int FILEDES, const void *BUFFER, size_t SIZE) |
| int | P_chdir (const char *path) |
| int | P_putenv (char *str) |
| int | P_shmget (key_t thekey, int size, int flags) |
| void * | P_shmat (int shmid, void *addr, int flags) |
| int | P_shmdt (void *addr) |
| int | P_shmctl (int shmid, int cmd, struct shmid_ds *buf) |
| void | P_exit (int STATUS) |
| int | P_fflush (FILE *stream) |
| char * | P_fgets (char *S, int COUNT, FILE *STREAM) |
| void * | P_malloc (size_t SIZE) |
| void * | P_memcpy (void *A1, const void *A2, size_t SIZE) |
| void * | P_memset (void *BLOCK, int C, unsigned SIZE) |
| void | P_perror (const char *MESSAGE) |
| P_sig_handler | P_signal (int SIGNUM, P_sig_handler ACTION) |
| char * | P_strcat (char *TO, const char *FROM) |
| char * | P_strchr (const char *S, int C) |
| int | P_strcmp (const char *S1, const char *S2) |
| char * | P_strcpy (char *TO, const char *FROM) |
| char * | P_strdup (const char *FROM) |
| size_t | P_strlen (const char *S) |
| char * | P_strncat (char *TO, const char *FROM, size_t SIZE) |
| int | P_strncmp (const char *S1, const char *S2, size_t SIZE) |
| char * | P_strncpy (char *TO, const char *FROM, size_t SIZE) |
| char * | P_strrchr (const char *STRING, int C) |
| char * | P_strstr (const char *HAYSTACK, const char *NEEDLE) |
| double | P_strtod (const char *STRING, char **TAILPTR) |
| char * | P_strtok (char *NEWSTRING, const char *DELIMITERS) |
| long int | P_strtol (const char *STRING, char **TAILPTR, int BASE) |
| unsigned long int | P_strtoul (const char *STRING, char **TAILPTR, int BASE) |
| int | P_accept (int SOCK, struct sockaddr *ADDR, size_t *LENGTH_PTR) |
| int | P_bind (int socket, struct sockaddr *addr, size_t len) |
| int | P_connect (int socket, struct sockaddr *addr, size_t len) |
| struct hostent * | P_gethostbyname (const char *NAME) |
| int | P_gethostname (char *name, size_t size) |
| int | P_getrusage (int i, struct rusage *r) |
| struct servent * | P_getservbyname (const char *NAME, const char *PROTO) |
| int | P_getsockname (int SOCKET, struct sockaddr *ADDR, size_t *LENGTH_PTR) |
| int | P_listen (int socket, unsigned int n) |
| caddr_t | P_mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t off) |
| int | P_munmap (caddr_t ca, int i) |
| int | P_select (int wid, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tm) |
| int | P_socket (int NAMESPACE, int STYLE, int PROTOCOL) |
| int | P_socketpair (int NAMESPACE, int style, int protocol, int filedes[2]) |
| int | P_pipe (int fd[2]) |
| int | P_strcasecmp (const char *s1, const char *s2) |
| int | P_strncasecmp (const char *S1, const char *S2, size_t N) |
| int | P_rexec (char **ahost, u_short inport, char *user, char *passwd, char *cmd, int *fd2p) |
| void | P_endservent (void) |
| void | P_xdr_destroy (XDR *xdrs) |
| bool_t | P_xdr_u_char (XDR *x, u_char *u) |
| bool_t | P_xdr_int (XDR *x, int *i) |
| bool_t | P_xdr_double (XDR *x, double *d) |
| bool_t | P_xdr_u_int (XDR *x, u_int *u) |
| bool_t | P_xdr_float (XDR *x, float *f) |
| bool_t | P_xdr_char (XDR *x, char *c) |
| bool_t | P_xdr_string (XDR *x, char **c, const u_int maxsize) |
| bool_t | P_xdrrec_endofrecord (XDR *x, int now) |
| bool_t | P_xdrrec_skiprecord (XDR *x) |
| void | P_xdrrec_create (XDR *x, const u_int send_sz, const u_int rec_sz, const caddr_t handle, xdr_rd_func readit, xdr_wr_func writeit) |
| unsigned long long | PDYN_div1000 (unsigned long long in) |
| unsigned long long | PDYN_divMillion (unsigned long long in) |
| unsigned long long | PDYN_mulMillion (unsigned long long in) |
| void | dedemangle (const char *demangled, char *dedemangled) |
| char * | P_cplus_demangle (const char *symbol, bool nativeCompiler, bool includeTypes) |
| #define DMGL_ANSI (1 << 1) |
Definition at line 331 of file osfKludges.C.
| #define DMGL_AUTO (1 << 8) |
Definition at line 334 of file osfKludges.C.
| #define DMGL_GNU (1 << 9) |
Definition at line 332 of file osfKludges.C.
| #define DMGL_GNU_V3 (1 << 14) |
Definition at line 333 of file osfKludges.C.
Referenced by P_cplus_demangle().
| #define DMGL_PARAMS (1 << 0) |
Definition at line 330 of file osfKludges.C.
| void dedemangle | ( | const char * | demangled, | |
| char * | dedemangled | |||
| ) |
| int fork | ( | ) |
| int gethostname | ( | char * | , | |
| int | ||||
| ) |
Referenced by P_gethostname().
| int getrusage | ( | int | , | |
| struct rusage * | ||||
| ) |
| int listen | ( | int | , | |
| int | ||||
| ) |
| void P__exit | ( | int | STATUS | ) | [inline] |
Definition at line 70 of file osfKludges.C.
| void P_abort | ( | void | ) | [inline] |
Definition at line 60 of file osfKludges.C.
| int P_accept | ( | int | SOCK, | |
| struct sockaddr * | ADDR, | |||
| size_t * | LENGTH_PTR | |||
| ) | [inline] |
Definition at line 146 of file osfKludges.C.
| int P_bind | ( | int | socket, | |
| struct sockaddr * | addr, | |||
| size_t | len | |||
| ) | [inline] |
Definition at line 154 of file osfKludges.C.
| int P_chdir | ( | const char * | path | ) | [inline] |
Definition at line 98 of file osfKludges.C.
| int P_close | ( | int | FILEDES | ) | [inline] |
Definition at line 61 of file osfKludges.C.
Referenced by Dyninst::ProcessReaderProc::done(), and Dyninst::AddressTranslateAIX::refresh().
| int P_connect | ( | int | socket, | |
| struct sockaddr * | addr, | |||
| size_t | len | |||
| ) | [inline] |
Definition at line 159 of file osfKludges.C.
| char* P_cplus_demangle | ( | const char * | symbol, | |
| bool | nativeCompiler, | |||
| bool | includeTypes | |||
| ) | [inline] |
Definition at line 337 of file osfKludges.C.
References cplus_demangle(), DMGL_ANSI, DMGL_GNU_V3, and DMGL_PARAMS.
Referenced by Dyninst::SymtabAPI::DwarfWalker::addFuncToContainer(), Dyninst::SymtabAPI::Symtab::buildDemangledName(), Dyninst::SymtabAPI::Symtab::demangleSymbol(), Dyninst::SymElf::getDemangledName(), mangledNameMatchKLUDGE(), parseCPlusPlusInfo(), Dyninst::SymtabAPI::parseStabString(), and vectorNameMatchKLUDGE().
| int P_dup2 | ( | int | OLD, | |
| int | NEW | |||
| ) | [inline] |
Definition at line 62 of file osfKludges.C.
| void P_endservent | ( | void | ) | [inline] |
Definition at line 215 of file osfKludges.C.
| int P_execve | ( | const char * | FILENAME, | |
| char *const | ARGV[], | |||
| char *const | ENVP[] | |||
| ) | [inline] |
Definition at line 67 of file osfKludges.C.
| int P_execvp | ( | const char * | FILENAME, | |
| char *const | ARGV[] | |||
| ) | [inline] |
Definition at line 65 of file osfKludges.C.
| void P_exit | ( | int | STATUS | ) | [inline] |
Definition at line 109 of file osfKludges.C.
| int P_fcntl | ( | int | filedes, | |
| int | command, | |||
| int | arg2 | |||
| ) | [inline] |
Definition at line 71 of file osfKludges.C.
| FILE* P_fdopen | ( | int | FILEDES, | |
| const char * | OPENTYPE | |||
| ) | [inline] |
Definition at line 73 of file osfKludges.C.
| int P_fflush | ( | FILE * | stream | ) | [inline] |
Definition at line 110 of file osfKludges.C.
| char* P_fgets | ( | char * | S, | |
| int | COUNT, | |||
| FILE * | STREAM | |||
| ) | [inline] |
Definition at line 111 of file osfKludges.C.
| FILE* P_fopen | ( | const char * | FILENAME, | |
| const char * | OPENTYPE | |||
| ) | [inline] |
Definition at line 75 of file osfKludges.C.
Referenced by findProcLWPs().
| int P_fstat | ( | int | FILEDES, | |
| struct stat * | BUF | |||
| ) | [inline] |
Definition at line 77 of file osfKludges.C.
| struct hostent* P_gethostbyname | ( | const char * | NAME | ) | [read] |
Definition at line 162 of file osfKludges.C.
| int P_gethostname | ( | char * | name, | |
| size_t | size | |||
| ) |
Definition at line 166 of file osfKludges.C.
References gethostname().
| pid_t P_getpid | ( | void | ) | [inline] |
Definition at line 78 of file osfKludges.C.
| int P_getrusage | ( | int | i, | |
| struct rusage * | r | |||
| ) |
Definition at line 169 of file osfKludges.C.
References getrusage().
| struct servent* P_getservbyname | ( | const char * | NAME, | |
| const char * | PROTO | |||
| ) | [read] |
Definition at line 171 of file osfKludges.C.
| int P_getsockname | ( | int | SOCKET, | |
| struct sockaddr * | ADDR, | |||
| size_t * | LENGTH_PTR | |||
| ) | [inline] |
Definition at line 174 of file osfKludges.C.
| int P_kill | ( | pid_t | PID, | |
| int | SIGNUM | |||
| ) | [inline] |
Definition at line 79 of file osfKludges.C.
| int P_listen | ( | int | socket, | |
| unsigned int | n | |||
| ) | [inline] |
Definition at line 185 of file osfKludges.C.
References listen().
| off_t P_lseek | ( | int | FILEDES, | |
| off_t | OFFSET, | |||
| int | WHENCE | |||
| ) | [inline] |
Definition at line 80 of file osfKludges.C.
| void* P_malloc | ( | size_t | SIZE | ) | [inline] |
Definition at line 112 of file osfKludges.C.
| void* P_memcpy | ( | void * | A1, | |
| const void * | A2, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 113 of file osfKludges.C.
| void* P_memset | ( | void * | BLOCK, | |
| int | C, | |||
| unsigned | SIZE | |||
| ) |
Definition at line 115 of file osfKludges.C.
| caddr_t P_mmap | ( | caddr_t | addr, | |
| size_t | len, | |||
| int | prot, | |||
| int | flags, | |||
| int | fd, | |||
| off_t | off | |||
| ) | [inline] |
Definition at line 188 of file osfKludges.C.
| int P_munmap | ( | caddr_t | ca, | |
| int | i | |||
| ) | [inline] |
Definition at line 192 of file osfKludges.C.
| int P_open | ( | const char * | FILENAME, | |
| int | FLAGS, | |||
| mode_t | MODE | |||
| ) | [inline] |
Definition at line 86 of file osfKludges.C.
Referenced by Dyninst::open_map_fd(), P_copy(), and Dyninst::ProcessReaderProc::start().
| int P_pclose | ( | FILE * | STREAM | ) | [inline] |
Definition at line 88 of file osfKludges.C.
| void P_perror | ( | const char * | MESSAGE | ) | [inline] |
Definition at line 117 of file osfKludges.C.
| int P_pipe | ( | int | fd[2] | ) | [inline] |
Definition at line 203 of file osfKludges.C.
References pipe().
| FILE* P_popen | ( | const char * | COMMAND, | |
| const char * | MODE | |||
| ) | [inline] |
Definition at line 89 of file osfKludges.C.
| int P_putenv | ( | char * | str | ) | [inline] |
Definition at line 100 of file osfKludges.C.
| size_t P_read | ( | int | FILEDES, | |
| void * | BUFFER, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 90 of file osfKludges.C.
| int P_rexec | ( | char ** | ahost, | |
| u_short | inport, | |||
| char * | user, | |||
| char * | passwd, | |||
| char * | cmd, | |||
| int * | fd2p | |||
| ) | [inline] |
Definition at line 211 of file osfKludges.C.
References rexec().
| int P_select | ( | int | wid, | |
| fd_set * | rd, | |||
| fd_set * | wr, | |||
| fd_set * | ex, | |||
| struct timeval * | tm | |||
| ) | [inline] |
Definition at line 194 of file osfKludges.C.
| void* P_shmat | ( | int | shmid, | |
| void * | addr, | |||
| int | flags | |||
| ) | [inline] |
Definition at line 104 of file osfKludges.C.
| int P_shmctl | ( | int | shmid, | |
| int | cmd, | |||
| struct shmid_ds * | buf | |||
| ) | [inline] |
Definition at line 106 of file osfKludges.C.
| int P_shmdt | ( | void * | addr | ) | [inline] |
Definition at line 105 of file osfKludges.C.
| int P_shmget | ( | key_t | thekey, | |
| int | size, | |||
| int | flags | |||
| ) | [inline] |
Definition at line 103 of file osfKludges.C.
| P_sig_handler P_signal | ( | int | SIGNUM, | |
| P_sig_handler | ACTION | |||
| ) | [inline] |
Definition at line 118 of file osfKludges.C.
| int P_socket | ( | int | NAMESPACE, | |
| int | STYLE, | |||
| int | PROTOCOL | |||
| ) | [inline] |
Definition at line 197 of file osfKludges.C.
References socket().
| int P_socketpair | ( | int | NAMESPACE, | |
| int | style, | |||
| int | protocol, | |||
| int | filedes[2] | |||
| ) | [inline] |
Definition at line 200 of file osfKludges.C.
References socketpair().
| int P_strcasecmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline] |
Definition at line 205 of file osfKludges.C.
References strcasecmp().
| char* P_strcat | ( | char * | TO, | |
| const char * | FROM | |||
| ) | [inline] |
Definition at line 120 of file osfKludges.C.
| char* P_strchr | ( | const char * | S, | |
| int | C | |||
| ) | [inline] |
Definition at line 121 of file osfKludges.C.
Referenced by Object::load_object().
| int P_strcmp | ( | const char * | S1, | |
| const char * | S2 | |||
| ) | [inline] |
Definition at line 122 of file osfKludges.C.
Referenced by Object::load_object(), and Dyninst::SymtabAPI::Object::loaded_elf().
| char* P_strcpy | ( | char * | TO, | |
| const char * | FROM | |||
| ) | [inline] |
Definition at line 123 of file osfKludges.C.
| char* P_strdup | ( | const char * | FROM | ) | [inline] |
Definition at line 124 of file osfKludges.C.
Referenced by Dyninst::SymtabAPI::Symtab::buildDemangledName(), cplus_demangle(), and getUDTType().
| size_t P_strlen | ( | const char * | S | ) | [inline] |
Definition at line 125 of file osfKludges.C.
Referenced by P_getopt().
| int P_strncasecmp | ( | const char * | S1, | |
| const char * | S2, | |||
| size_t | N | |||
| ) | [inline] |
Definition at line 208 of file osfKludges.C.
References strncasecmp().
| char* P_strncat | ( | char * | TO, | |
| const char * | FROM, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 126 of file osfKludges.C.
| int P_strncmp | ( | const char * | S1, | |
| const char * | S2, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 128 of file osfKludges.C.
Referenced by Object::load_object().
| char* P_strncpy | ( | char * | TO, | |
| const char * | FROM, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 130 of file osfKludges.C.
| char* P_strrchr | ( | const char * | STRING, | |
| int | C | |||
| ) | [inline] |
Definition at line 132 of file osfKludges.C.
Referenced by extract_pathname_tail().
| char* P_strstr | ( | const char * | HAYSTACK, | |
| const char * | NEEDLE | |||
| ) | [inline] |
Definition at line 133 of file osfKludges.C.
| double P_strtod | ( | const char * | STRING, | |
| char ** | TAILPTR | |||
| ) | [inline] |
Definition at line 135 of file osfKludges.C.
| char* P_strtok | ( | char * | NEWSTRING, | |
| const char * | DELIMITERS | |||
| ) | [inline] |
Definition at line 137 of file osfKludges.C.
| long int P_strtol | ( | const char * | STRING, | |
| char ** | TAILPTR, | |||
| int | BASE | |||
| ) | [inline] |
Definition at line 139 of file osfKludges.C.
| unsigned long int P_strtoul | ( | const char * | STRING, | |
| char ** | TAILPTR, | |||
| int | BASE | |||
| ) | [inline] |
Definition at line 141 of file osfKludges.C.
| int P_uname | ( | struct utsname * | unm | ) | [inline] |
Definition at line 92 of file osfKludges.C.
| pid_t P_wait | ( | int * | status_ptr | ) | [inline] |
Definition at line 93 of file osfKludges.C.
Definition at line 94 of file osfKludges.C.
| size_t P_write | ( | int | FILEDES, | |
| const void * | BUFFER, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 96 of file osfKludges.C.
| bool_t P_xdr_char | ( | XDR * | x, | |
| char * | c | |||
| ) | [inline] |
Definition at line 223 of file osfKludges.C.
| void P_xdr_destroy | ( | XDR * | xdrs | ) | [inline] |
Definition at line 217 of file osfKludges.C.
| bool_t P_xdr_double | ( | XDR * | x, | |
| double * | d | |||
| ) | [inline] |
Definition at line 220 of file osfKludges.C.
| bool_t P_xdr_float | ( | XDR * | x, | |
| float * | f | |||
| ) | [inline] |
Definition at line 222 of file osfKludges.C.
| bool_t P_xdr_int | ( | XDR * | x, | |
| int * | i | |||
| ) | [inline] |
Definition at line 219 of file osfKludges.C.
| bool_t P_xdr_string | ( | XDR * | x, | |
| char ** | c, | |||
| const u_int | maxsize | |||
| ) | [inline] |
Definition at line 224 of file osfKludges.C.
| bool_t P_xdr_u_char | ( | XDR * | x, | |
| u_char * | u | |||
| ) | [inline] |
Definition at line 218 of file osfKludges.C.
| bool_t P_xdr_u_int | ( | XDR * | x, | |
| u_int * | u | |||
| ) | [inline] |
Definition at line 221 of file osfKludges.C.
| void P_xdrrec_create | ( | XDR * | x, | |
| const u_int | send_sz, | |||
| const u_int | rec_sz, | |||
| const caddr_t | handle, | |||
| xdr_rd_func | readit, | |||
| xdr_wr_func | writeit | |||
| ) | [inline] |
Definition at line 228 of file osfKludges.C.
| bool_t P_xdrrec_endofrecord | ( | XDR * | x, | |
| int | now | |||
| ) | [inline] |
Definition at line 226 of file osfKludges.C.
References xdrrec_endofrecord().
| bool_t P_xdrrec_skiprecord | ( | XDR * | x | ) | [inline] |
Definition at line 227 of file osfKludges.C.
| unsigned long long PDYN_div1000 | ( | unsigned long long | in | ) |
Definition at line 236 of file osfKludges.C.
| unsigned long long PDYN_divMillion | ( | unsigned long long | in | ) |
Definition at line 270 of file osfKludges.C.
| unsigned long long PDYN_mulMillion | ( | unsigned long long | in | ) |
Definition at line 302 of file osfKludges.C.
| int pipe | ( | int | fd[2] | ) |
| int rexec | ( | char ** | ahost, | |
| int | inport, | |||
| char * | user, | |||
| char * | passwd, | |||
| char * | cmd, | |||
| int * | fd2p | |||
| ) |
| int socket | ( | int | , | |
| int | , | |||
| int | ||||
| ) |
| int socketpair | ( | int | , | |
| int | , | |||
| int | , | |||
| int | sv[2] | |||
| ) |
| int strcasecmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
Referenced by P_strcasecmp().
| int strncasecmp | ( | const char * | s1, | |
| const char * | s2, | |||
| long unsigned int | n | |||
| ) |
Referenced by P_strncasecmp().
| int vfork | ( | ) |
1.6.1