<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://www.cs.put.poznan.pl/jkonczak/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Jan Kończak os_cp:semaphores</title>
        <description></description>
        <link>https://www.cs.put.poznan.pl/jkonczak/</link>
        <lastBuildDate>Wed, 13 May 2026 18:56:48 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>https://www.cs.put.poznan.pl/jkonczak/lib/tpl/dokuwiki/images/favicon.ico</url>
            <title>Jan Kończak</title>
            <link>https://www.cs.put.poznan.pl/jkonczak/</link>
        </image>
        <item>
            <title>os_cp:semaphores:solutions</title>
            <link>https://www.cs.put.poznan.pl/jkonczak/os_cp:semaphores:solutions?rev=1694783930&amp;do=diff</link>
            <description>#include &lt;fcntl.h&gt;
#include &lt;semaphore.h&gt;
#include &lt;stdio.h&gt;

int main() {
  sem_t *mySemaphore = sem_open(&quot;/mySemaphore&quot;, O_CREAT | O_EXCL, 0666, 0);
  if (mySemaphore == SEM_FAILED) {
    perror(&quot;Creating the semaphore failed&quot;);
    return 1;
  }
  sem_wait(mySemaphore);
  return 0;
}</description>
        <category>os_cp:semaphores</category>
            <pubDate>Fri, 15 Sep 2023 15:18:50 +0200</pubDate>
        </item>
    </channel>
</rss>
