SHM_INFO and SHM_STAT
SHM_INFO and SHM_STAT
- Subject: SHM_INFO and SHM_STAT
- From: Christof Rath <email@hidden>
- Date: Mon, 31 Mar 2008 20:23:37 +0200
Hey there,
I try to compile a robot framework that is written for Linux. My
problem is, that it uses shmctl() commands that aren't defined in
shm.h (like on linux systems).
The four commands in use: SHM_INFO, SHM_STAT, SHM_LOCK and SHM_UNLOCK
a code fragment:
[...]
struct shmid_ds shm_info;
max_id = shmctl( 0, SHM_INFO, &shm_info );
if (max_id >= 0) {
for ( int i = 0; (_memptr == NULL) && (i <= max_id); ++i ) {
shm_id = shmctl( i, SHM_STAT, &shm_segment );
if ( shm_id < 0 ) continue;
[...]
or:
[...]
if (swapable) {
shmctl(__shared_mem_id, SHM_UNLOCK, NULL);
} else {
shmctl(__shared_mem_id, SHM_LOCK, NULL);
}
[...]
is there a workaround? Can anybody tell me how to access this
information?
Best wishes,
Christof
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden