{"blog_url":"https://copyanddestroy.hatenablog.com/","url":"https://copyanddestroy.hatenablog.com/entry/2025/02/25/172747","version":"1.0","height":"190","title":"open(2) / close(2)","provider_name":"Hatena Blog","author_name":"taizooo","width":"100%","description":"\u65e5\u8a18\u306e\u7df4\u7fd2\u3067\u3059\u3002\u300e\u3075\u3064\u3046\u306e Linux \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u300f\u7b2c5\u7ae0\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u304b\u304b\u308f\u308b\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u300d\u306e\u8a715.5 \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f open(2) #include <sys/typs.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *path, int flags); int open(const char *path, int flags, mode_t mode); open() \u306f\u3001\u7b2c1\u5f15\u6570 path \u306e\u30d1\u30b9\u3067\u793a\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u306a\u304c\u308b\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u6307\u3059\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcopyanddestroy.hatenablog.com%2Fentry%2F2025%2F02%2F25%2F172747\" title=\"open(2) / close(2) - copy and destroy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/taizooo/","published":"2025-02-25 17:27:47","blog_title":"copy and destroy","categories":["code","\u65e5\u8a18\u306e\u7df4\u7fd2"],"image_url":null,"type":"rich","provider_url":"https://hatena.blog"}