osprey-gcc/gcc/config/pa/pa-host.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include <sys/mman.h>
#include <unistd.h>
#include "hosthooks.h"
#include "hosthooks-def.h"

Include dependency graph for pa-host.c:

Go to the source code of this file.

Defines

#define MAP_FAILED   (void *)-1L
#define HOST_HOOKS_GT_PCH_GET_ADDRESS   pa_gt_pch_get_address
#define HOST_HOOKS_GT_PCH_USE_ADDRESS   pa_gt_pch_use_address
#define TRY_EMPTY_VM_SPACE   0

Functions/Subroutines

static voidpa_gt_pch_get_address (size_t, int)
static int pa_gt_pch_use_address (void *, size_t, int, size_t)

Variables

struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER


Define Documentation

#define HOST_HOOKS_GT_PCH_GET_ADDRESS   pa_gt_pch_get_address

Definition at line 37 of file pa-host.c.

#define HOST_HOOKS_GT_PCH_USE_ADDRESS   pa_gt_pch_use_address

Definition at line 39 of file pa-host.c.

#define MAP_FAILED   (void *)-1L

#define TRY_EMPTY_VM_SPACE   0

Definition at line 48 of file pa-host.c.


Function Documentation

static void * pa_gt_pch_get_address ( size_t  size,
int  fd 
) [static]

Definition at line 56 of file pa-host.c.

References addr(), MAP_FAILED, mmap(), munmap(), NULL, and TRY_EMPTY_VM_SPACE.

static int pa_gt_pch_use_address ( void base,
size_t  size,
int  fd,
size_t  offset 
) [static]

Definition at line 88 of file pa-host.c.

References addr(), lseek, MAP_FAILED, MIN, mmap(), munmap(), read, SEEK_SET, and ssize_t.


Variable Documentation

struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER

Definition at line 136 of file pa-host.c.


Generated on Wed Apr 8 14:20:32 2009 for Open64 by  doxygen 1.5.6