1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

C言語 strerrorのエラー文言一覧

Last updated at Posted at 2021-01-12

エラー文言

strerror関数が用意しているエラー文言の一覧です。
deeplの翻訳もつけました。

自分でエラーを実装するときに参考にしました。
errnoのmanでもいろいろ確認できます。

一覧

エラー文言 翻訳
Undefined error: 0 未定義のエラーです。0
Operation not permitted 操作不可
No such file or directory そのようなファイルやディレクトリはありません
No such process そのようなプロセスはありません。
Interrupted system call システムコールの中断
Input/output error 入出力エラー
Device not configured デバイスが設定されていない
Argument list too long 引数リストが長すぎる
Exec format error 実行フォーマットエラー
Bad file descriptor 不正なファイルディスクリプタ
No child processes 子プロセスなし
Resource deadlock avoided リソースのデッドロックを回避
Cannot allocate memory メモリを割り当てられない
Permission denied 許可拒否
Bad address 不良アドレス
Block device required ブロック装置が必要
Resource busy リソースの忙しさ
File exists ファイルが存在する
Cross-device link クロスデバイスリンク
Operation not supported by device デバイスがサポートしていない動作
Not a directory ディレクトリではない
Is a directory ディレクトリは
Invalid argument 無効な引数
Too many open files in system システムで開いているファイルが多すぎる
Too many open files 開いているファイルが多すぎる
Inappropriate ioctl for device デバイスに不適切な ioctl
Text file busy テキストファイルがビジー状態
File too large ファイルが大きすぎる
No space left on device デバイス上に空きスペースがありません
Illegal seek 違法シーク
Read-only file system 読み取り専用ファイルシステム
Too many links リンクが多すぎる
Broken pipe 壊れたパイプ
Numerical argument out of domain ドメイン外の数値引数
Result too large 結果が大きすぎる
Resource temporarily unavailable リソースが一時的に利用できない
Operation now in progress 運用中
Operation already in progress 作業はすでに進行中
Socket operation on non-socket 非ソケットでのソケット操作
Destination address required 宛先アドレスが必要です。
Message too long メッセージが長すぎる
Protocol wrong type for socket ソケットのプロトコルのタイプが間違っている
Protocol not available プロトコルが利用できない
Protocol not supported サポートされていないプロトコル
Socket type not supported ソケットタイプはサポートされていません。
Operation not supported 操作はサポートされていません。
Protocol family not supported サポートされていないプロトコルファミリ
Address family not supported by protocol family プロトコルファミリでサポートされていないアドレスファミリ
Address already in use 既に使用されているアドレス
Can't assign requested address 要求されたアドレスを割り当てることができません
Network is down ネットワークがダウンしています
Network is unreachable ネットワークに接続できない
Network dropped connection on reset リセット時にネットワークの接続が切断された
Software caused connection abort ソフトウェアが原因で接続が中断した
Connection reset by peer ピアによる接続のリセット
No buffer space available 利用可能なバッファスペースがない
Socket is already connected ソケットが接続済み
Socket is not connected ソケットが接続されていない
Can't send after socket shutdown ソケットシャットダウン後に送信できない
Too many references: can't splice 参照先が多すぎる: スプライスできない
Operation timed out 操作のタイムアウト
Connection refused 接続拒否
Too many levels of symbolic links シンボリックリンクのレベルが高すぎる
File name too long ファイル名が長すぎる
Host is down ホストがダウンしています
No route to host ホストへのルートがない
Directory not empty ディレクトリが空ではない
Too many processes プロセスが多すぎる
Too many users ユーザーが多すぎる
Disc quota exceeded ディスクノルマ超過
Stale NFS file handle 古い NFS ファイルハンドル
Too many levels of remote in path パスのリモートのレベルが高すぎる
RPC struct is bad RPC 構造体が悪い
RPC version wrong RPC のバージョンが間違っている
RPC prog. not avail RPCプログは利用できません。
Program version wrong プログラムのバージョンが間違っている
Bad procedure for program プログラムの悪い手順
No locks available ロックなし
Function not implemented 実装されていない関数
Inappropriate file type or format 不適切なファイルタイプまたはフォーマット
Authentication error 認証エラー
Need authenticator 認証機能が必要
Device power is off デバイスの電源がオフになっている
Device error デバイスエラー
Value too large to be stored in data type 値が大きすぎてデータ型に格納できません。
Bad executable (or shared library) 不正な実行可能ファイル (または共有ライブラリ)
Bad CPU type in executable 実行ファイルのCPUタイプが悪い
Shared library version mismatch 共有ライブラリのバージョンの不一致
Malformed Mach-o file 不良マッチョファイル
Operation canceled 作戦中止
Identifier removed 識別子の削除
No message of desired type 希望するタイプのメッセージがない
Illegal byte sequence 不正なバイト列
Attribute not found 属性が見つかりません
Bad message 悪いメッセージ
EMULTIHOP (Reserved) EMULTIHOP (予約済み)
No message available on STREAM STREAMで利用可能なメッセージはありません
ENOLINK (Reserved) ENOLINK (予約)
No STREAM resources STREAMのリソースはありません。
Not a STREAM ストリームではない
Protocol error プロトコルエラー
STREAM ioctl timeout STREAM ioctl タイムアウト
Operation not supported on socket ソケットでの操作はサポートされていません。
Policy not found ポリシーが見つからない
State not recoverable 回収不可能な状態
Previous owner died 前の所有者が死亡
Interface output queue is full インタフェース出力キューが一杯になった

エラー文言を確認するコード

# include <stdio.h>
# include <stdlib.h>
# include <string.h>

int main(void)
{
    for (int i = 0; i < 108; i++ )
        fprintf(stderr, "%s\n", strerror(i));

    return EXIT_SUCCESS;
}

参考

C言語関数辞典 - strerror

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?