<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Shell on _ov4 Press</title>
    <link>https://ov4.org/tags/shell/</link>
    <description>Recent content in Shell on _ov4 Press</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 08 Aug 2026 22:25:29 +0800</lastBuildDate>
    <atom:link href="https://ov4.org/tags/shell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CSAPP Shell Lab</title>
      <link>https://ov4.org/posts/2026/08/08/csapp-shell-lab/</link>
      <pubDate>Sat, 08 Aug 2026 22:25:29 +0800</pubDate>
      <guid>https://ov4.org/posts/2026/08/08/csapp-shell-lab/</guid>
      <description>&lt;p&gt;Repo: &lt;a href=&#34;https://github.com/ovfor4/tiny-shell&#34;&gt;ovfor4/tiny-shell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;An advanced version &lt;a href=&#34;https://github.com/ovfor4/ccshell&#34;&gt;ovfor4/ccshell&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Not a good idea to paste every line of code on the website if you have a github account&lt;/p&gt;
&lt;p&gt;Some useful notes here, not cheating:&lt;/p&gt;


&lt;p&gt;&lt;details &gt;
  &lt;summary markdown=&#34;span&#34;&gt;Notes&lt;/summary&gt;
  &lt;p&gt;pid_t getpid(void);
returns PID of current process&lt;/p&gt;
&lt;p&gt;pid_t getppid(void);
returns PID of parent process&lt;/p&gt;
&lt;p&gt;void exit(int status);
terminates with status code
called once, never returns&lt;/p&gt;
&lt;p&gt;pid_t fork(void);
returns 0 to child process, and child PID to parent process
called once, returns twice&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
