OSDN Git Service

Update drafts for LDP v3.76
[linuxjm/LDP_man-pages.git] / draft / man3 / memcmp.3
index a00c5f0..ee9389b 100644 (file)
@@ -58,7 +58,7 @@ char\fP として解釈される)。
 0 でない値の場合、 \fIs1\fP と \fIs2\fP で値が異なった最初のバイトの値の差で符号は決定される (バイトは \fIunsigned char\fP
 で解釈される)。
 
-If \fIn\fP is zero, the return value is zero.
+\fIn\fP が 0 の場合、返り値は 0 となる。
 .SH 属性
 .SS "マルチスレッディング (pthreads(7) 参照)"
 \fBmemcmp\fP() 関数はスレッドセーフである。
@@ -66,9 +66,8 @@ If \fIn\fP is zero, the return value is zero.
 SVr4, 4.3BSD, C89, C99, POSIX.1\-2001.
 .SH 注意
 .PP
-Do not use \fBmemcmp\fP()  to compare security critical data, such as
-cryptographic secrets, because the required CPU time depends on the amount
-of equal bytes.
+暗号化された秘密などセキュリティ的に重要なデータの比較には \fBmemcmp\fP() を使用しないこと。 必要な CPU
+時間は値が等しいバイトの量に依存するからである。
 .SH 関連項目
 \fBbcmp\fP(3), \fBstrcasecmp\fP(3), \fBstrcmp\fP(3), \fBstrcoll\fP(3),
 \fBstrncasecmp\fP(3), \fBstrncmp\fP(3), \fBwmemcmp\fP(3)