/* FIXME: always open absolute path (need to fix filename according to current\r
directory) */\r
\r
+ /* FIXME: how to emulate shm_open ? Just OpenFileMapping ? */\r
+#if 0\r
if (shared)\r
- /* FIXME: shm_open is maybe not really that */\r
handle = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ,\r
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY,\r
NULL);\r
else\r
- handle = CreateFile(filename, GENERIC_READ, 0,\r
+#endif\r
+ handle = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ,\r
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_READONLY,\r
NULL);\r
\r
- if (handle == INVALID_HANDLE_VALUE) return NULL;\r
+ if (handle == INVALID_HANDLE_VALUE)\r
+ return NULL;\r
\r
fm = CreateFileMapping(handle, NULL, PAGE_READONLY, 0, 0, NULL);\r
if (!fm)\r