#include <assert.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <errno.h>#include <fcntl.h>#include <netinet/in.h>#include <netdb.h>#include <sys/types.h>#include <sys/mman.h>#include <sys/time.h>#include <unistd.h>#include <sys/file.h>#include <sys/socket.h>#include <sys/errno.h>#include <sys/wait.h>#include <signal.h>#include <sys/ptrace.h>#include <sys/resource.h>#include <stdarg.h>#include <time.h>#include <sys/utsname.h>#include <sys/stat.h>#include <sys/un.h>#include <sys/syscall.h>#include <rpc/types.h>#include <rpc/xdr.h>#include <sys/ipc.h>#include <sys/shm.h>Go to the source code of this file.
Defines | |
| #define | _freebsd_headers_h |
| #define | PDSOCKET_ERROR (-1) |
| #define | DMGL_PARAMS (1 << 0) |
| #define | DMGL_ANSI (1 << 1) |
| #define | DMGL_ARM (1 << 11) |
Typedefs | |
| typedef int | PDSOCKET |
| typedef int(* | P_xdrproc_t )(XDR *,...) |
| typedef void(* | P_sig_handler )(int) |
Functions | |
| int | P_getopt (int argc, char *argv[], const char *optstring) |
| void | P_abort (void) |
| 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_copy (const char *from, const char *to) |
| int | P_system (const char *string) |
| 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 *un) |
| pid_t | P_wait (int *status_ptr) |
| int | 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_getpagesize () |
| 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, size_t 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) |
| const char * | P_strchr (const char *P_STRING, int C) |
| char * | P_strchr (char *P_STRING, int C) |
| int | P_strcmp (const char *S1, const char *S2) |
| char * | P_strcpy (char *TO, const char *FROM) |
| char * | P_strdup (const char *S) |
| 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) |
| const char * | P_strrchr (const char *P_STRING, int C) |
| char * | P_strrchr (char *P_STRING, int C) |
| const char * | P_strstr (const char *HAYSTACK, const char *NEEDLE) |
| char * | P_strstr (char *HAYSTACK, const char *NEEDLE) |
| double | P_strtod (const char *P_STRING, char **TAILPTR) |
| char * | P_strtok (char *NEWP_STRING, const char *DELIMITERS) |
| long int | P_strtol (const char *P_STRING, char **TAILPTR, int BASE) |
| unsigned long int | P_strtoul (const char *P_STRING, char **TAILPTR, int BASE) |
| int | P_accept (int SOCK, struct sockaddr *ADDR, socklen_t *LENGTH_PTR) |
| int | P_bind (int socket, struct sockaddr *addr, socklen_t len) |
| int | P_connect (int socket, struct sockaddr *addr, socklen_t len) |
| struct hostent * | P_gethostbyname (const char *NAME) |
| struct servent * | P_getservbyname (const char *NAME, const char *PROTO) |
| int | P_getsockname (int SOCKET, struct sockaddr *ADDR, socklen_t *LENGTH_PTR) |
| int | P_getsockopt (int s, int level, int optname, void *optval, int *optlen) |
| int | P_setsockopt (int s, int level, int optname, void *optval, int optlen) |
| 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 addr, int i) |
| int | P_socket (int NAMESPACE, int STYLE, int PROTOCOL) |
| int | P_socketpair (int namesp, int style, int protocol, int filedes[2]) |
| int | P_pipe (int fds[2]) |
| int | P_strcasecmp (const char *s1, const char *s2) |
| int | P_strncasecmp (const char *S1, const char *S2, size_t N) |
| void | P_endservent (void) |
| ssize_t | P_recv (int s, void *buf, int len, int flags) |
| long int | P_ptrace (int req, pid_t pid, Address addr, Address data, int=-1) |
| int | P_select (int wid, fd_set *rd, fd_set *wr, fd_set *ex, struct timeval *tm) |
| char * | cplus_demangle (char *, int) |
| void | dedemangle (char *demangled, char *dedemangled) |
| char * | P_cplus_demangle (const char *symbol, bool nativeCompiler, bool includeTypes=false) |
| void | P_xdr_destroy (XDR *x) |
| bool_t | P_xdr_u_char (XDR *x, u_char *uc) |
| 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 **h, const u_int maxsize) |
| bool_t | P_xdrrec_endofrecord (XDR *x, int now) |
| bool_t | P_xdrrec_skiprecord (XDR *x) |
| bool_t | P_xdrrec_eof (XDR *x) |
| int | P_mkdir (const char *pathname, mode_t mode) |
| int | P_unlink (const char *pathname) |
| #define _freebsd_headers_h |
Definition at line 33 of file freebsdHeaders.h.
| #define DMGL_ANSI (1 << 1) |
Definition at line 247 of file freebsdHeaders.h.
| #define DMGL_ARM (1 << 11) |
Definition at line 249 of file freebsdHeaders.h.
| #define DMGL_PARAMS (1 << 0) |
Definition at line 246 of file freebsdHeaders.h.
| #define PDSOCKET_ERROR (-1) |
Definition at line 65 of file freebsdHeaders.h.
| typedef void(* P_sig_handler)(int) |
Definition at line 144 of file freebsdHeaders.h.
| typedef int(* P_xdrproc_t)(XDR *,...) |
Definition at line 67 of file freebsdHeaders.h.
| typedef int PDSOCKET |
Definition at line 66 of file freebsdHeaders.h.
| char* cplus_demangle | ( | char * | , | |
| int | ||||
| ) |
| void dedemangle | ( | char * | demangled, | |
| char * | dedemangled | |||
| ) |
Definition at line 44 of file string-regex.C.
| void P__exit | ( | int | STATUS | ) | [inline] |
Definition at line 85 of file freebsdHeaders.h.
| void P_abort | ( | void | ) | [inline] |
Definition at line 74 of file freebsdHeaders.h.
| int P_accept | ( | int | SOCK, | |
| struct sockaddr * | ADDR, | |||
| socklen_t * | LENGTH_PTR | |||
| ) | [inline] |
Definition at line 182 of file freebsdHeaders.h.
| int P_bind | ( | int | socket, | |
| struct sockaddr * | addr, | |||
| socklen_t | len | |||
| ) | [inline] |
Definition at line 184 of file freebsdHeaders.h.
| int P_chdir | ( | const char * | path | ) | [inline] |
Definition at line 116 of file freebsdHeaders.h.
| int P_close | ( | int | FILEDES | ) | [inline] |
Definition at line 75 of file freebsdHeaders.h.
| int P_connect | ( | int | socket, | |
| struct sockaddr * | addr, | |||
| socklen_t | len | |||
| ) | [inline] |
Definition at line 186 of file freebsdHeaders.h.
| int P_copy | ( | const char * | from, | |
| const char * | to | |||
| ) |
Definition at line 55 of file linuxKludges.C.
| char* P_cplus_demangle | ( | const char * | symbol, | |
| bool | nativeCompiler, | |||
| bool | includeTypes = false | |||
| ) | [inline] |
Definition at line 220 of file ntHeaders.h.
| int P_dup2 | ( | int | OLD, | |
| int | NEW | |||
| ) | [inline] |
Definition at line 78 of file freebsdHeaders.h.
| void P_endservent | ( | void | ) | [inline] |
Definition at line 223 of file freebsdHeaders.h.
| int P_execve | ( | const char * | FILENAME, | |
| char *const | ARGV[], | |||
| char *const | ENVP[] | |||
| ) | [inline] |
Definition at line 81 of file freebsdHeaders.h.
| int P_execvp | ( | const char * | FILENAME, | |
| char *const | ARGV[] | |||
| ) | [inline] |
Definition at line 79 of file freebsdHeaders.h.
| void P_exit | ( | int | STATUS | ) | [inline] |
Definition at line 134 of file freebsdHeaders.h.
| int P_fcntl | ( | int | FILEDES, | |
| int | COMMAND, | |||
| int | ARG2 | |||
| ) | [inline] |
Definition at line 86 of file freebsdHeaders.h.
| FILE* P_fdopen | ( | int | FILEDES, | |
| const char * | OPENTYPE | |||
| ) | [inline] |
Definition at line 88 of file freebsdHeaders.h.
| int P_fflush | ( | FILE * | stream | ) | [inline] |
Definition at line 135 of file freebsdHeaders.h.
| char* P_fgets | ( | char * | S, | |
| int | COUNT, | |||
| FILE * | STREAM | |||
| ) | [inline] |
Definition at line 136 of file freebsdHeaders.h.
| FILE* P_fopen | ( | const char * | FILENAME, | |
| const char * | OPENTYPE | |||
| ) | [inline] |
Definition at line 90 of file freebsdHeaders.h.
| int P_fstat | ( | int | FILEDES, | |
| struct stat * | BUF | |||
| ) | [inline] |
Definition at line 95 of file freebsdHeaders.h.
| struct hostent* P_gethostbyname | ( | const char * | NAME | ) | [read] |
Definition at line 188 of file freebsdHeaders.h.
| int P_getopt | ( | int | argc, | |
| char * | argv[], | |||
| const char * | optstring | |||
| ) | [inline] |
Definition at line 74 of file solarisHeaders.h.
| int P_getpagesize | ( | ) | [inline] |
Definition at line 118 of file freebsdHeaders.h.
| pid_t P_getpid | ( | void | ) | [inline] |
Definition at line 96 of file freebsdHeaders.h.
| struct servent* P_getservbyname | ( | const char * | NAME, | |
| const char * | PROTO | |||
| ) | [read] |
Definition at line 194 of file freebsdHeaders.h.
| int P_getsockname | ( | int | SOCKET, | |
| struct sockaddr * | ADDR, | |||
| socklen_t * | LENGTH_PTR | |||
| ) | [inline] |
Definition at line 196 of file freebsdHeaders.h.
| int P_getsockopt | ( | int | s, | |
| int | level, | |||
| int | optname, | |||
| void * | optval, | |||
| int * | optlen | |||
| ) | [inline] |
Definition at line 198 of file freebsdHeaders.h.
| int P_kill | ( | pid_t | PID, | |
| int | SIGNUM | |||
| ) | [inline] |
Definition at line 97 of file freebsdHeaders.h.
| int P_listen | ( | int | socket, | |
| unsigned int | n | |||
| ) | [inline] |
Definition at line 207 of file freebsdHeaders.h.
| off_t P_lseek | ( | int | FILEDES, | |
| off_t | OFFSET, | |||
| int | WHENCE | |||
| ) | [inline] |
Definition at line 98 of file freebsdHeaders.h.
| void* P_malloc | ( | size_t | SIZE | ) | [inline] |
Definition at line 138 of file freebsdHeaders.h.
| void* P_memcpy | ( | void * | A1, | |
| const void * | A2, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 139 of file freebsdHeaders.h.
| void* P_memset | ( | void * | BLOCK, | |
| int | C, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 141 of file freebsdHeaders.h.
| int P_mkdir | ( | const char * | pathname, | |
| mode_t | mode | |||
| ) | [inline] |
Definition at line 281 of file freebsdHeaders.h.
| caddr_t P_mmap | ( | caddr_t | addr, | |
| size_t | len, | |||
| int | prot, | |||
| int | flags, | |||
| int | fd, | |||
| off_t | off | |||
| ) | [inline] |
Definition at line 208 of file freebsdHeaders.h.
| int P_munmap | ( | caddr_t | addr, | |
| int | i | |||
| ) | [inline] |
Definition at line 211 of file freebsdHeaders.h.
| int P_open | ( | const char * | FILENAME, | |
| int | FLAGS, | |||
| mode_t | MODE | |||
| ) | [inline] |
Definition at line 100 of file freebsdHeaders.h.
| int P_pclose | ( | FILE * | STREAM | ) | [inline] |
Definition at line 105 of file freebsdHeaders.h.
| void P_perror | ( | const char * | MESSAGE | ) | [inline] |
Definition at line 143 of file freebsdHeaders.h.
| int P_pipe | ( | int | fds[2] | ) | [inline] |
Definition at line 216 of file freebsdHeaders.h.
| FILE* P_popen | ( | const char * | COMMAND, | |
| const char * | MODE | |||
| ) | [inline] |
Definition at line 106 of file freebsdHeaders.h.
Definition at line 229 of file freebsdHeaders.h.
References ptrace().
| int P_putenv | ( | char * | str | ) | [inline] |
Definition at line 117 of file freebsdHeaders.h.
| size_t P_read | ( | int | FILEDES, | |
| void * | BUFFER, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 108 of file freebsdHeaders.h.
| ssize_t P_recv | ( | int | s, | |
| void * | buf, | |||
| int | len, | |||
| int | flags | |||
| ) | [inline] |
Definition at line 225 of file freebsdHeaders.h.
| int P_select | ( | int | wid, | |
| fd_set * | rd, | |||
| fd_set * | wr, | |||
| fd_set * | ex, | |||
| struct timeval * | tm | |||
| ) | [inline] |
Definition at line 233 of file freebsdHeaders.h.
| int P_setsockopt | ( | int | s, | |
| int | level, | |||
| int | optname, | |||
| void * | optval, | |||
| int | optlen | |||
| ) | [inline] |
Definition at line 201 of file freebsdHeaders.h.
| void* P_shmat | ( | int | shmid, | |
| void * | addr, | |||
| int | flags | |||
| ) | [inline] |
Definition at line 125 of file freebsdHeaders.h.
| int P_shmctl | ( | int | shmid, | |
| int | cmd, | |||
| struct shmid_ds * | buf | |||
| ) | [inline] |
Definition at line 129 of file freebsdHeaders.h.
| int P_shmdt | ( | void * | addr | ) | [inline] |
Definition at line 128 of file freebsdHeaders.h.
| int P_shmget | ( | key_t | theKey, | |
| int | size, | |||
| int | flags | |||
| ) | [inline] |
Definition at line 122 of file freebsdHeaders.h.
| P_sig_handler P_signal | ( | int | SIGNUM, | |
| P_sig_handler | ACTION | |||
| ) | [inline] |
Definition at line 145 of file freebsdHeaders.h.
| int P_socket | ( | int | NAMESPACE, | |
| int | STYLE, | |||
| int | PROTOCOL | |||
| ) | [inline] |
Definition at line 212 of file freebsdHeaders.h.
| int P_socketpair | ( | int | namesp, | |
| int | style, | |||
| int | protocol, | |||
| int | filedes[2] | |||
| ) | [inline] |
Definition at line 214 of file freebsdHeaders.h.
| int P_strcasecmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) | [inline] |
Definition at line 217 of file freebsdHeaders.h.
| char* P_strcat | ( | char * | TO, | |
| const char * | FROM | |||
| ) | [inline] |
Definition at line 147 of file freebsdHeaders.h.
| char* P_strchr | ( | char * | P_STRING, | |
| int | C | |||
| ) | [inline] |
Definition at line 151 of file freebsdHeaders.h.
| const char* P_strchr | ( | const char * | P_STRING, | |
| int | C | |||
| ) | [inline] |
Definition at line 150 of file freebsdHeaders.h.
| int P_strcmp | ( | const char * | S1, | |
| const char * | S2 | |||
| ) | [inline] |
Definition at line 153 of file freebsdHeaders.h.
| char* P_strcpy | ( | char * | TO, | |
| const char * | FROM | |||
| ) | [inline] |
Definition at line 155 of file freebsdHeaders.h.
| char* P_strdup | ( | const char * | S | ) | [inline] |
Definition at line 157 of file freebsdHeaders.h.
| size_t P_strlen | ( | const char * | S | ) | [inline] |
Definition at line 158 of file freebsdHeaders.h.
| int P_strncasecmp | ( | const char * | S1, | |
| const char * | S2, | |||
| size_t | N | |||
| ) | [inline] |
Definition at line 219 of file freebsdHeaders.h.
| char* P_strncat | ( | char * | TO, | |
| const char * | FROM, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 159 of file freebsdHeaders.h.
| int P_strncmp | ( | const char * | S1, | |
| const char * | S2, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 161 of file freebsdHeaders.h.
| char* P_strncpy | ( | char * | TO, | |
| const char * | FROM, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 163 of file freebsdHeaders.h.
| char* P_strrchr | ( | char * | P_STRING, | |
| int | C | |||
| ) | [inline] |
Definition at line 167 of file freebsdHeaders.h.
| const char* P_strrchr | ( | const char * | P_STRING, | |
| int | C | |||
| ) | [inline] |
Definition at line 166 of file freebsdHeaders.h.
| char* P_strstr | ( | char * | HAYSTACK, | |
| const char * | NEEDLE | |||
| ) | [inline] |
Definition at line 170 of file freebsdHeaders.h.
| const char* P_strstr | ( | const char * | HAYSTACK, | |
| const char * | NEEDLE | |||
| ) | [inline] |
Definition at line 169 of file freebsdHeaders.h.
| double P_strtod | ( | const char * | P_STRING, | |
| char ** | TAILPTR | |||
| ) | [inline] |
Definition at line 172 of file freebsdHeaders.h.
| char* P_strtok | ( | char * | NEWP_STRING, | |
| const char * | DELIMITERS | |||
| ) | [inline] |
Definition at line 174 of file freebsdHeaders.h.
| long int P_strtol | ( | const char * | P_STRING, | |
| char ** | TAILPTR, | |||
| int | BASE | |||
| ) | [inline] |
Definition at line 176 of file freebsdHeaders.h.
| unsigned long int P_strtoul | ( | const char * | P_STRING, | |
| char ** | TAILPTR, | |||
| int | BASE | |||
| ) | [inline] |
Definition at line 178 of file freebsdHeaders.h.
| int P_system | ( | const char * | string | ) |
| int P_uname | ( | struct utsname * | un | ) | [inline] |
Definition at line 110 of file freebsdHeaders.h.
| int P_unlink | ( | const char * | pathname | ) | [inline] |
Definition at line 284 of file freebsdHeaders.h.
| pid_t P_wait | ( | int * | status_ptr | ) | [inline] |
Definition at line 111 of file freebsdHeaders.h.
| int P_waitpid | ( | pid_t | pid, | |
| int * | statusp, | |||
| int | options | |||
| ) | [inline] |
Definition at line 112 of file freebsdHeaders.h.
| size_t P_write | ( | int | FILEDES, | |
| const void * | BUFFER, | |||
| size_t | SIZE | |||
| ) | [inline] |
Definition at line 114 of file freebsdHeaders.h.
| bool_t P_xdr_char | ( | XDR * | x, | |
| char * | c | |||
| ) | [inline] |
Definition at line 265 of file freebsdHeaders.h.
| void P_xdr_destroy | ( | XDR * | x | ) | [inline] |
Definition at line 256 of file freebsdHeaders.h.
| bool_t P_xdr_double | ( | XDR * | x, | |
| double * | d | |||
| ) | [inline] |
Definition at line 259 of file freebsdHeaders.h.
| bool_t P_xdr_float | ( | XDR * | x, | |
| float * | f | |||
| ) | [inline] |
Definition at line 263 of file freebsdHeaders.h.
| bool_t P_xdr_int | ( | XDR * | x, | |
| int * | i | |||
| ) | [inline] |
Definition at line 258 of file freebsdHeaders.h.
| bool_t P_xdr_string | ( | XDR * | x, | |
| char ** | h, | |||
| const u_int | maxsize | |||
| ) | [inline] |
Definition at line 267 of file freebsdHeaders.h.
| bool_t P_xdr_u_char | ( | XDR * | x, | |
| u_char * | uc | |||
| ) | [inline] |
Definition at line 257 of file freebsdHeaders.h.
| bool_t P_xdr_u_int | ( | XDR * | x, | |
| u_int * | u | |||
| ) | [inline] |
Definition at line 261 of file freebsdHeaders.h.
| bool_t P_xdrrec_endofrecord | ( | XDR * | x, | |
| int | now | |||
| ) | [inline] |
Definition at line 277 of file freebsdHeaders.h.
| bool_t P_xdrrec_eof | ( | XDR * | x | ) | [inline] |
Definition at line 280 of file freebsdHeaders.h.
| bool_t P_xdrrec_skiprecord | ( | XDR * | x | ) | [inline] |
Definition at line 279 of file freebsdHeaders.h.
1.6.1