{"version":"1.0","type":"rich","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://xuhuang.hatenadiary.org/entry/20070820/1187621595","width":"100%","title":" 3.1 \u6a19\u6e96\u5165\u529b\u304c\u30b7\u30fc\u30af\u53ef\u80fd\u304b\u3069\u3046\u304b\u8abf\u3079\u308b","categories":["UNIX\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"description":"#include #include \"ourhdr.h\" int main(void) { off_t res; /* \u73fe\u5728\u306e\u4f4d\u7f6e\u304b\u30890\u30d0\u30a4\u30c8\u30b7\u30fc\u30af\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30ab\u30ec\u30f3\u30c8\u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3002 * lseek()\u306f\u30d1\u30a4\u30d7\u3084FIFO\u3092\u53c2\u7167\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306b\u5bfe\u3057\u3066\u306f-1\u3092\u8fd4\u3057 * \u3066errno\u3092\u8a2d\u5b9a\u3059\u308b\u3002 */ res = lseek(STDIN_FILENO, 0, SEEK_CUR); if (res == -1) { /* \u53c2\u7167\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u30b7\u30fc\u30af\u51fa\u6765\u306a\u3044 */ printf(\"cannot seek\\n\"); } else { printf(\"seek OK: offset\u2026","blog_title":"\uff23\u521d\u5fc3\u8005\u304cLinux\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u65e5\u8a18","author_name":"XuHuang","published":"2007-08-20 23:53:15","image_url":null,"author_url":"https://blog.hatena.ne.jp/XuHuang/","blog_url":"https://xuhuang.hatenadiary.org/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuhuang.hatenadiary.org%2Fentry%2F20070820%2F1187621595\" title=\" 3.1 \u6a19\u6e96\u5165\u529b\u304c\u30b7\u30fc\u30af\u53ef\u80fd\u304b\u3069\u3046\u304b\u8abf\u3079\u308b - \uff23\u521d\u5fc3\u8005\u304cLinux\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}