<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taizooo</author_name>
  <author_url>https://blog.hatena.ne.jp/taizooo/</author_url>
  <blog_title>copy and destroy</blog_title>
  <blog_url>https://copyanddestroy.hatenablog.com/</blog_url>
  <categories>
    <anon>日記の練習</anon>
    <anon>code</anon>
  </categories>
  <description>日記の練習です。『ふつうの Linux プログラミング』第5章「ストリームにかかわるシステムコール」の話5.4 ストリームの読み書き read(2) read(2) の話になったところで、なにが書かれているのか全然わからなくなりました。 void *buf とは？写経しとくか。 #include &lt;unistd.h&gt; ssize_t read(int fd, void *buf, size_t bufsize); 戻り値の形は ssize_t 、引数の形は size_t とあります。 これはどちらも sys/type.h で定義されているデータ型で、基本的な整数型の別名にすぎません。つまり i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcopyanddestroy.hatenablog.com%2Fentry%2F2025%2F02%2F21%2F184358&quot; title=&quot;read(2) / write(2) - copy and destroy&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-21 18:43:58</published>
  <title>read(2) / write(2)</title>
  <type>rich</type>
  <url>https://copyanddestroy.hatenablog.com/entry/2025/02/21/184358</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
