Lines Matching +full:com +full:- +full:offset
3 * https://git.uclibc.org/uClibc/tree/utils/mmap-windows.c
12 * CreateFileMapping: http://msdn.microsoft.com/en-us/library/aa366537(VS.85).aspx
13 * CloseHandle: http://msdn.microsoft.com/en-us/library/ms724211(VS.85).aspx
14 * MapViewOfFile: http://msdn.microsoft.com/en-us/library/aa366761(VS.85).aspx
15 * UnmapViewOfFile: http://msdn.microsoft.com/en-us/library/aa366882(VS.85).aspx
28 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset)
32 if (fd == -1) {
33 if (!(flags & MAP_ANON) || offset)
52 off_t end = length + offset;
54 if (fd == -1)
71 void *ret = MapViewOfFile(h, dwDesiredAccess, DWORD_HI(offset), DWORD_LO(offset), length);
83 /* ruh-ro, we leaked handle from CreateFileMapping() ... */
90 return -1; /* Not supported. */
98 return -1;
102 return -1;
108 * return -1;
119 return -1; /* Not supported. */
122 return -1;
139 // In non-blocking mode, return an error if the file is locked.
141 return -1; // EWOULDBLOCK
146 return -1;
150 return -1;
160 return -1;
174 return -1;
178 return -1;