Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
map_datapool_.c File Reference
#include <fcntl.h>
#include <sys/mman.h>
#include <stdio.h>
#include <limits.h>
#include <sys/types.h>
#include <unistd.h>
#include <alloca.h>
Include dependency graph for map_datapool_.c:

Go to the source code of this file.

Defines

#define MAX_DP   100

Functions

void f77_map_datapool_ (const char *dpname, char *dp_address, int dp_length)
void f77_map_datapool_pad_ (const char *dpname, char *dp_address, int dp_length, int pagesize)
void f77_unmap_datapool_ ()

Variables

static int * count_ptr [MAX_DP]
static char fn_save [MAX_DP][PATH_MAX]
static int ndp = 0
static char * cpath
static struct flock flk
static int ltype
int errno
int DEBUG_MAP_LOCALDATA = 0

Define Documentation

#define MAX_DP   100

Definition at line 69 of file map_datapool_.c.


Function Documentation

void f77_map_datapool_ ( const char *  dpname,
char *  dp_address,
int  dp_length 
)

Definition at line 89 of file map_datapool_.c.

References close, count_ptr, cpath, DEBUG_MAP_LOCALDATA, fd, fn_save, fprintf(), getenv(), ndp, open, strcpy, and sysconf.

Here is the call graph for this function:

void f77_map_datapool_pad_ ( const char *  dpname,
char *  dp_address,
int  dp_length,
int  pagesize 
)

Definition at line 169 of file map_datapool_.c.

References close, count_ptr, cpath, DEBUG_MAP_LOCALDATA, fd, fn_save, fprintf(), getenv(), ndp, open, and strcpy.

Here is the call graph for this function:

Definition at line 242 of file map_datapool_.c.

References count_ptr, fn_save, ndp, and unlink.


Variable Documentation

int* count_ptr[MAX_DP] [static]

Definition at line 70 of file map_datapool_.c.

Referenced by f77_map_datapool_(), f77_map_datapool_pad_(), and f77_unmap_datapool_().

char* cpath [static]

Definition at line 74 of file map_datapool_.c.

Referenced by f77_map_datapool_(), and f77_map_datapool_pad_().

Definition at line 79 of file map_datapool_.c.

Referenced by f77_map_datapool_(), and f77_map_datapool_pad_().

int errno
struct flock flk [static]

Definition at line 75 of file map_datapool_.c.

char fn_save[MAX_DP][PATH_MAX] [static]

Definition at line 71 of file map_datapool_.c.

Referenced by f77_map_datapool_(), f77_map_datapool_pad_(), and f77_unmap_datapool_().

int ltype [static]

Definition at line 76 of file map_datapool_.c.

int ndp = 0 [static]

Definition at line 72 of file map_datapool_.c.

Referenced by f77_map_datapool_(), f77_map_datapool_pad_(), and f77_unmap_datapool_().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines