Newbie Question - File Mapping.
- From: <sasank kuntimaddi wipro com>
- To: <gnome-list gnome org>
- Subject: Newbie Question - File Mapping.
- Date: Tue, 10 Feb 2009 17:54:10 +0530
Hi,
I have an
application that uses the following Windows APIs.
LPVOID WINAPI
MapViewOfFile(
__in HANDLE hFileMappingObject,
__in DWORD dwDesiredAccess,
__in DWORD
dwFileOffsetHigh,
__in DWORD dwFileOffsetLow,
__in SIZE_T dwNumberOfBytesToMap
);
HANDLE
CreateFileMapping(
HANDLE hFile,
LPSECURITY_ATTRIBUTES
lpFileMappingAttributes,
DWORD flProtect,
DWORD
dwMaximumSizeHigh,
DWORD dwMaximumSizeLow,
LPCTSTR lpName
);
I need to reprogram
this application to run on Linux. Is mmap function a good replacement for
the above two API calls. If not please suggest an alternative
method.
Thanks and
Regards
Sasank K
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]