{"provider_name":"Hatena Blog","image_url":null,"height":"190","title":"libc\u306a\u3057\u3067exit (2)","author_name":"n7shi","blog_title":"\u4e03\u8a8c\u306e\u958b\u767a\u65e5\u8a18","blog_url":"https://7shi.hateblo.jp/","categories":["MINIX"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2F7shi.hateblo.jp%2Fentry%2F20100202%2F1265129437\" title=\"libc\u306a\u3057\u3067exit (2) - \u4e03\u8a8c\u306e\u958b\u767a\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>","author_url":"https://blog.hatena.ne.jp/n7shi/","description":"id:n7shi:20100201\u306e\u7d9a\u304d\u3067\u3059\u3002\u30a4\u30f3\u30e9\u30a4\u30f3\u30a2\u30bb\u30f3\u30d6\u30e9\u3092Intel\u5f62\u5f0f\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002 void start() { int m[] = { 0, 1/*EXIT*/, 42, 0, 0, 0, 0, 0, 0 }; asm(\"mov eax, 0; mov ecx, 3; int 0x21\" :: \"b\"(m)); } # gcc -masm=intel -nostdinc -nostdlib exit.c # ./a.out; echo $? 42","provider_url":"https://hatena.blog","type":"rich","width":"100%","url":"https://7shi.hateblo.jp/entry/20100202/1265129437","published":"2010-02-02 01:50:37","version":"1.0"}