{"version":"1.0","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":["c"],"author_url":"https://blog.hatena.ne.jp/kakts/","blog_title":"kakts-log","url":"https://kakts.dev/entry/2023/11/09/002029","published":"2023-11-09 00:20:29","title":"stdio\u30d0\u30c3\u30d5\u30a1\u306e\u65b9\u5f0f\u306b\u3064\u3044\u3066","author_name":"kakts","description":"\u6982\u8981 fork()\u306b\u3088\u308b\u5b50\u30d7\u30ed\u30bb\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u304a\u3044\u3066\u3001printf\u306a\u3069\u306estdio\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001\u6a19\u6e96\u51fa\u529b\u304c\u7aef\u672b\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u5408\u3067\u51fa\u529b\u7d50\u679c\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u6319\u52d5\u306b\u3064\u3044\u3066\u6574\u7406\u3057\u307e\u3059\u3002 (\u53c2\u8003: LINUX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b925.4) fork()\u3068printf()\u3092\u5229\u7528\u3057\u305f\u4f8b \u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001fork()\u306e\u524d\u306bprintf\u3067\u6587\u5b57\u5217\u51fa\u529b\u3055\u305b\u3001\u305d\u306e\u5f8cfork()\u306b\u3088\u3063\u3066\u5b50\u30d7\u30ed\u30bb\u30b9\u3092\u4f5c\u6210\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f8b\u3068\u3057\u307e\u3059\u3002 #include \"tlpi_hdr.h\" #include <stdio.h> #include <unistd.h> int main(i\u2026","image_url":null,"type":"rich","width":"100%","height":"190","blog_url":"https://kakts.dev/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkakts.dev%2Fentry%2F2023%2F11%2F09%2F002029\" title=\"stdio\u30d0\u30c3\u30d5\u30a1\u306e\u65b9\u5f0f\u306b\u3064\u3044\u3066 - kakts-log\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}