mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
71308351a8
Original commit message from CVS: Several new files from Steve Lhomme's MSVC patch (bug #141317): * win32/GStreamer.vcproj: * win32/Makefile: * win32/config.h: * win32/dirent.c: (_topendir), (_treaddir), (_tclosedir), (_trewinddir), (_ttelldir), (_tseekdir): * win32/dirent.h: * win32/gst-inspect.vcproj: * win32/gst-launch.vcproj: * win32/gst-register.vcproj: * win32/gstbytestream.vcproj: * win32/gstelements.vcproj: * win32/gstoptimalscheduler.vcproj: * win32/gstspider.vcproj: * win32/gtchar.h: * win32/mman.c: (mmap), (mprotect), (msync), (munmap): * win32/mman.h: * win32/mman.inl: * win32/msvc71.sln:
61 lines
1.4 KiB
C
61 lines
1.4 KiB
C
/* $Id$
|
|
|
|
* ============================================================================
|
|
*
|
|
* = LIBRARY
|
|
* pace
|
|
*
|
|
* = FILENAME
|
|
* pace/win32/mman.h
|
|
*
|
|
* = AUTHOR
|
|
* Luther Baker
|
|
*
|
|
* ============================================================================ */
|
|
|
|
#ifndef PACE_SYS_MMAN_H_WIN32
|
|
#define PACE_SYS_MMAN_H_WIN32
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
#if defined (PACE_HAS_CPLUSPLUS)
|
|
extern "C" {
|
|
#endif /* PACE_HAS_CPLUSPLUS */
|
|
|
|
# define MAP_PRIVATE 1
|
|
# define MAP_SHARED 2
|
|
# define MAP_FIXED 4
|
|
# if !defined (MAP_FAILED)
|
|
# undef MAP_FAILED
|
|
# define MAP_FAILED ((void *) -1)
|
|
# endif
|
|
|
|
|
|
# define PROT_READ PAGE_READONLY
|
|
# define PROT_WRITE PAGE_WRITEONLY
|
|
|
|
# define PACE_MAP_FAILED MAP_FAILED
|
|
# define PACE_MAP_FIXED MAP_FIXED
|
|
# define PACE_MAP_PRIVATE MAP_PRIVATE
|
|
# define PACE_MAP_SHARED MAP_SHARED
|
|
# define PACE_MCL_CURRENT MCL_CURRENT
|
|
# define PACE_MS_ASYNC MS_ASYNC
|
|
# define PACE_MS_INVALIDATE
|
|
# define PACE_MS_SYNC MS_SYNC
|
|
# define PACE_PROT_EXEC PROT_EXEC
|
|
# define PACE_PROT_NONE PROT_NONE
|
|
# define PACE_PROT_READ PROT_READ
|
|
# define PACE_PROT_WRITE PROT_WRITE
|
|
|
|
void * mmap (void * addr, size_t len, int prot, int flags,
|
|
HANDLE fildes, long off);
|
|
int mprotect (void * addr, size_t len, int prot);
|
|
int msync (void * addr, size_t len, int flags);
|
|
int munmap (void * addr, size_t len);
|
|
|
|
#if defined (PACE_HAS_CPLUSPLUS)
|
|
}
|
|
#endif /* PACE_HAS_CPLUSPLUS */
|
|
|
|
#endif /* PACE_SYS_MMAN_H */
|