site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tugraz.at; s=mailrelay; t=1206987820; bh=t4NZPhrz2vdIkZmuufo+/5SbDkyZqqWIi3MtX u61vsk=; h=Message-Id:From:To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer; b=nO +33RSET0Zdmqaag/cVBrvjEWAjIuM4fBB8ZjhE/acg5ym00YCk7Y6m3nZTDTrpCBVGB HbO95Dvb6vOYdcKiQMmKb7oZGgR47qscJuEd7G9U49HojSB7gW7xoOS21GDjy59IZs0 s+iUG141x2xfOdlTptHwyMnkyKD7N/hKTPw= 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); } [...] Best wishes, Christof _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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). is there a workaround? Can anybody tell me how to access this information? This email sent to site_archiver@lists.apple.com
participants (1)
-
Christof Rath