Przemyslaw, no, there is not mmap on OS/2. Several years ago I wrote a .dll to emulate it for the msql (miniSQL) OS/2 port and it worked ok, but was not the real thing :)
You can still find it on http://hobbes.nsmu.edu, but I think it would be better not to use it at all. Best regards. Maurilio. Przemyslaw Czerpak wrote: > On Thu, 18 Sep 2008, David Arturo Macias Corona wrote: > > Hi David, > >> Below are results of current Harbour under eComStation 1.2MR >> gcc 3.3.5 >> set C_USR=-DHB_FM_STATISTICS_OFF -DHB_FM_DL_ALLOC >> errors in dlmalloc.c >> In file included from ../../fm.c:117: >> ../../dlmalloc.c: In function `mmap_alloc': >> ../../dlmalloc.c:3120: error: `MAP_PRIVATE' undeclared (first use in this >> functi >> on) >> ../../dlmalloc.c:3120: error: (Each undeclared identifier is reported only >> once >> ../../dlmalloc.c:3120: error: for each function it appears in.) >> ../../dlmalloc.c: In function `sys_alloc': >> ../../dlmalloc.c:3417: error: `MAP_PRIVATE' undeclared (first use in this >> functi >> on) >> ../../dlmalloc.c: In function `release_unused_segments': >> ../../dlmalloc.c:3537: warning: implicit declaration of function `munmap' > > If GCC for OS2 does not give emulation layer for mmap functions then > this code will not work for you. It can be updated to use native OS2 > API but it should be done by real OS2 user who knows well this system > and some low level functions behavior and performance in different > situations. Now do not enable HB_FM_DL_ALLOC it in OS2 builds. > > BTW If possible please recompile Harbour (without HB_FM_DL_ALLOC of > course) and check speedtst.prg in MT mode. I would like to see the > speed difference after my last modification which enabled inlined > assembler version of atomic reference counters incrementation and > decrementation in OS2 builds. > > best regards, > Przemek > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour