{"height":"190","version":"1.0","categories":["C\u8a00\u8a9e"],"title":" ls\u3092\u5b9f\u884c\u3057\u3066\u51fa\u529b\u3092\u5f97\u308b","type":"rich","url":"https://so-wh.at/entry/20090127/p1","author_url":"https://blog.hatena.ne.jp/winebarrel/","provider_url":"https://hatena.blog","blog_url":"https://so-wh.at/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20090127%2Fp1\" title=\" ls\u3092\u5b9f\u884c\u3057\u3066\u51fa\u529b\u3092\u5f97\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"winebarrel","image_url":null,"provider_name":"Hatena Blog","published":"2009-01-27 00:00:00","description":"#include <stdio.h> #include <errno.h> #include <unistd.h> #define BUFFER_SIZE 512 static void ls() { int pfd[2]; pid_t pid; if (pipe(pfd) == -1) { perror(\"pipe\"); exit(1); } pid = fork(); if (pid > 0) { // \u89aa\u30d7\u30ed\u30bb\u30b9 char buf[BUFFER_SIZE + 1]; int n, status; // \u66f8\u304d\u8fbc\u307f\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3092\u30af\u30ed\u30fc\u30ba close(pfd[1]); // \u5b50\u30d7\u2026","blog_title":"so what","width":"100%"}