Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

getblock_riken.c File Reference

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <sys/stat.h>
#include <unistd.h>
#include "bbcpri.h"

Classes

union  semun

Defines

#define BARSIZE   50
#define SHMKEY   17001
#define SEMKEY   18001

Functions

void semaphore_p (void)
void semaphore_v (void)
void init_getdata__ ()
void close_getdata (void)
void open_rawdat__ (char name[132], int *fnamelen, int *flag)
void close_rawdat__ (void)
void statbar (void)
void clstatbar (void)
int get_buf (void)
void get_block__ (short ret[8192], int *flag)

Variables

stat filestat
double filesize
int blocksize
int cstep
int cnt
int step
int i
char com
unsigned short buf [8192]
FILE * datafile
int modeflag
int shmid
int semid
int sb = 0
unsigned int blocknum
unsigned int nblocknum
char * shmp
semun semunion
sembuf semb

Define Documentation

#define BARSIZE   50
 

#define SEMKEY   18001
 

#define SHMKEY   17001
 


Function Documentation

void close_getdata void   ) 
 

void close_rawdat__ void   ) 
 

void clstatbar void   ) 
 

void get_block__ short  ret[8192],
int *  flag
 

int get_buf void   ) 
 

void init_getdata__  ) 
 

void open_rawdat__ char  name[132],
int *  fnamelen,
int *  flag
 

void semaphore_p void   ) 
 

void semaphore_v void   ) 
 

void statbar void   ) 
 


Variable Documentation

unsigned int blocknum
 

int blocksize
 

unsigned short buf[8192]
 

int cnt
 

char com
 

int cstep
 

FILE* datafile
 

double filesize
 

struct stat filestat
 

int i
 

int modeflag
 

unsigned int nblocknum
 

int sb = 0
 

struct sembuf semb
 

int semid
 

union semun semunion
 

int shmid
 

char* shmp
 

int step
 


Generated on Mon Sep 8 01:09:45 2008 by  doxygen 1.3.9.1