C and C++


LANG.PREPROC.INCL.SIGNAL_H : <signal.h>の使用

要旨

標準ヘッダファイルの <signal.h> がインクルードされています。

プロパティ

クラス名 Use of <signal.h>
日本語クラス名 <signal.h>の使用
クラス分類 スタイル (style)
ニーモニック LANG.PREPROC.INCL.SIGNAL_H
カテゴリー
MisraC2023 MisraC2023:21.5 The standard header file <signal.h> shall not be used
Misra2012 Misra2012:21.5 The standard header file <signal.h> shall not be used
Misra2004 Misra2004:20.8 The signal handling facilities of <signal.h> shall not be used
AUTOSARC++14 AUTOSARC++14:A1-1-1 All code shall conform to ISO/IEC 14882:2014 - Programming Language C++ and shall not use deprecated features.
  AUTOSARC++14:A18-0-1 The C library facilities shall only be accessed through C++ library headers.
MisraC++2008 MisraC++2008:18-0-1 The C library shall not be used.
MisraC++2023 MisraC++2023:4.1.2 Deprecated features should not be used
CWE CWE:676 Use of Potentially Dangerous Function
  CWE:758 Reliance on Undefined, Unspecified, or Implementation-Defined Behavior
JSF++ JSF++:21 The signal handling facilities of <signal.h> shall not be used.
対応言語 C および C++ で利用可能です。
有効/無効設定 このワーニングクラスのチェックはデフォルトで無効になっています。チェックを有効にするにはプロジェクト設定ファイル (configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += allow class="Use of <signal.h>"

/* 'Use of <signal.h>' warning issued on following line */
#include <signal.h>

/* including with "" is ok: no warning */
#include "signal.h"

関連のある設定ファイルパラメータ

設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。