<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://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:open_fork</title>
        <description></description>
        <link>http://www.cs.put.poznan.pl/jkonczak/</link>
        <lastBuildDate>Wed, 13 May 2026 10:29:11 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://www.cs.put.poznan.pl/jkonczak/lib/tpl/dokuwiki/images/favicon.ico</url>
            <title>Jan Kończak</title>
            <link>http://www.cs.put.poznan.pl/jkonczak/</link>
        </image>
        <item>
            <title>os_cp:open_fork:solutions</title>
            <link>http://www.cs.put.poznan.pl/jkonczak/os_cp:open_fork:solutions?rev=1681249533&amp;do=diff</link>
            <description>#include &lt;unistd.h&gt;
#include &lt;fcntl.h&gt;
#include &lt;stdio.h&gt;
int main(int argc, char *argv[]){
    int fd = open(&quot;/tmp/z&quot;, O_RDONLY);
    if(fd == -1){
        perror(NULL);
        return 1;
    }
    char buffer[256];
    while(1){
        int length = read(fd, buffer, 256);
        if(length == -1){
            perror(NULL);
            return 1;
        }
        if(length == 0)
            break;
        write(STDOUT_FILENO, buffer, length);
    }
    close(fd);
    return 0;
}</description>
        <category>os_cp:open_fork</category>
            <pubDate>Tue, 11 Apr 2023 23:45:33 +0200</pubDate>
        </item>
    </channel>
</rss>
