Mail Archives: djgpp/1996/11/06/10:43:59
From: | Wojciech Borkowski <borkowsk AT ulmus DOT bot DOT astrouw DOT edu DOT pl>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | mmap function
|
Date: | Wed, 06 Nov 1996 15:43:50 +0100
|
Organization: | Uniwersytet Warszawski
|
Lines: | 51
|
Message-ID: | <3280A426.41C6@ulmus.bot.astrouw.edu.pl>
|
NNTP-Posting-Host: | ulmus.bot.astrouw.edu.pl
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi All!
I made C++ library that use IRIX(unix?) mmap funtion (and his family:
munmap etc).
I port it to DJGPP without this but it is not as effective as I
expected. Have anybody a implementation of mmap for DJGPP?
There is a head of man page:
NAME
mmap - map pages of memory
SYNOPSIS
#include <sys/types.h>
#include <sys/mman.h>
void *mmap(void *addr, size_t len, int prot, int flags, int fd,
off_t
off);
DESCRIPTION
The function mmap establishes a mapping between a process's address
space
and a virtual memory object. The format of the call is as follows:
pa = mmap(addr, len, prot, flags, fd, off);
mmap establishes a mapping between the process's address space at
an
address pa for len bytes to the memory object represented by the
file
descriptor fd at offset off for len bytes. The value of pa is an
implementation-dependent function of the parameter addr and values
of
flags, further described below. A successful mmap call returns pa
as its
result. The address ranges covered by [pa, pa + len) and [off, off
+
len) must be legitimate for the possible (not necessarily current)
address space of a process and the object in question,
respectively.
Sorry about my english
Thanks for any helps.
--
********************************************************************
* Wojciech Borkowski *
* Zaklad Systematyki i Geografii Roslin Uniwersytetu Warszawskiego *
* & Instytut Studiow Spolecznych Uniwersytetu Warszawskiego *
* WWW: http://www.bot.astrouw.edu.pl/~borkowsk/Borkowsk.html *
* MAIL: borkowsk AT ulmus DOT bot DOT astrouw DOT edu DOT pl *
********************************************************************
- Raw text -