Functions | Variables

dumpshm.cpp File Reference

#include "GnashSystemIOHeaders.h"
#include <cstdarg>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <cerrno>
#include <dirent.h>
#include <sys/mman.h>
#include <sys/shm.h>
#include <sys/ipc.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <map>
#include <sstream>
#include <cstdio>
#include "log.h"
#include "rc.h"
#include "shm.h"
#include "gnash.h"
#include "amf.h"
#include "lcshm.h"
Include dependency graph for dumpshm.cpp:

Functions

int getopt (int, char *const *, const char *)
void dump_ctrl (void *inmem)
 Dumps the internal data of the found ShmControl block. We do our own dumping, rather than letting ShmControl::dump() do it, cause that's for debugging, and this is for user display purposes.
void dump_shm (bool convert, bool out)
key_t list_lcs ()
int main (int argc, char *argv[])

Variables

int optind
char * optarg
const int PIDSTART = 20000
const int PIDEND = 23000
const int LINELEN = 80
const unsigned int LOOPCNT = 5
const int DEFAULT_SHM_SIZE = 64528
const int SHM_STAT = 13
const int SHM_INFO = 14
const char * DUMPSHM_VERSION = "0.5"

Function Documentation

void dump_ctrl ( void *  ptr  ) 

Dumps the internal data of the found ShmControl block. We do our own dumping, rather than letting ShmControl::dump() do it, cause that's for debugging, and this is for user display purposes.

References _.

void dump_shm ( bool  convert,
bool  out 
)
int getopt ( int  ,
char *const *  ,
const char *   
)
key_t list_lcs (  ) 

Referenced by dump_shm(), and main().

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

const int DEFAULT_SHM_SIZE = 64528

Referenced by main().

const char* DUMPSHM_VERSION = "0.5"

Referenced by main().

const int LINELEN = 80
const unsigned int LOOPCNT = 5
char* optarg
int optind
const int PIDEND = 23000
const int PIDSTART = 20000
const int SHM_INFO = 14
const int SHM_STAT = 13