Gnash  0.8.11dev
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 "amf.h"
#include "lcshm.h"

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. More...
 
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

§ dump_ctrl()

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 _.

§ dump_shm()

void dump_shm ( bool  convert,
bool  out 
)

§ getopt()

int getopt ( int  ,
char *const *  ,
const char *   
)

§ list_lcs()

key_t list_lcs ( )

Referenced by dump_shm().

§ main()

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

Variable Documentation

§ DEFAULT_SHM_SIZE

const int DEFAULT_SHM_SIZE = 64528

§ DUMPSHM_VERSION

const char* DUMPSHM_VERSION = "0.5"

§ LINELEN

const int LINELEN = 80

§ LOOPCNT

const unsigned int LOOPCNT = 5

§ optarg

char* optarg

§ optind

int optind

§ PIDEND

const int PIDEND = 23000

§ PIDSTART

const int PIDSTART = 20000

§ SHM_INFO

const int SHM_INFO = 14

Referenced by dump_shm().

§ SHM_STAT

const int SHM_STAT = 13

Referenced by dump_shm().