2006-12-13から1日間の記事一覧

追記

「/usr/include/asm-generic/errno.h」などの中に書かれている。また、MySQLサーバーに付いてくる perror コマンドを使えば、簡単にエラーの内容が分かる。 # perror 11 OS error code 11: Resource temporarily unavailable

errno の値の一覧

C

gdbでデバッグする際に、errno.h の各値がわからなかったので、以下のプログラムでリストしてみた。 #include <stdio.h> #include <errno.h> main(){ printf("E2BIG:%d\n", E2BIG); printf("EACCES:%d\n", EACCES); printf("EADDRINUSE:%d\n", EADDRINUSE); printf("EADDRNOTAV</errno.h></stdio.h>…