Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SHM_INFO and SHM_STAT



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.