Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
::mlock() ::munlock() functions when running on Interix v3.5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Thu Apr 04, 2013 5:08 am    Post subject: ::mlock() ::munlock() functions when running on Interix v3.5 Reply with quote

I am attempting to build a unix based application on Gentoo Prefix running on Interix v3.5 on Windows XP pro SP3. The build is failing due to the functions ::mlock() and ::munlock() being undefined. These functions originate from mman.h, however, to my understanding Interix v3.5 does not provide these functions.

The alternative, it seems, is to use windows.h memory functions such as vLock. But when building within gentoo, It doesn't look like I have access to those either, it being a unix environment.

Does anyone have experience trying to work around such issues? Any suggestions as to how to proceed?
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2383
Location: Wisconsin (USA)

PostPosted: Fri Apr 05, 2013 10:42 pm    Post subject: Reply with quote

Probably they are implemented as windows kernel calls at some level. Would it be possible to write wrapper functions using inline assembly (or a more convenient mechanism if possible) to do direct kernel calls to accomplish them?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum