.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" References consulted:
.\" Linux libc source code
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH STRTOL 3 2010\-09\-20 GNU "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1999 AKAMATSU, Kazuo
+.\" all rights reserved.
+.\" Translated Thu Jan 9 21:00:00 JST 1999
+.\" by AKAMATSU, Kazuo
+.\" Updated Sun Apr 8 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated Sat Mar 23 JST 2002 by Kentaro Shirakata <argrath@ub32.org>
+.\" Updated & Modified 2006-07-20,
+.\" Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.36
+.\" Updated 2012-05-04, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
+.TH STRTOL 3 2014\-03\-18 GNU "Linux Programmer's Manual"
.SH 名前
strtol, strtoll, strtoq \- 文字列を long int に変換する
.SH 書式
結果の値が範囲外である。
.LP
実装によっては、変換が行われなかった場合 (数字がなく、0 を返した場合)、 \fIerrno\fP に \fBEINVAL\fP が設定される場合がある。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+関数 \fBstrtol\fP(), \fBstrtoll\fP(), \fBstrtoq\fP() は、例外付きのスレッドセーフである。実行中に
+\fBsetlocale\fP(3) を呼び出してロケールを変更しない限り、マルチスレッドアプリケーションで安全に使用することができる。
.SH 準拠
\fBstrtol\fP() は SVr4, 4.3BSD, C89, C99 と POSIX.1\-2001 に準拠している。 \fBstrtoll\fP()
は C99 と POSIX.1\-2001 に準拠している。
\fBLLONG_MAX\fP, \fBLLONG_MIN\fP) が返る可能性があるので、 プログラムは関数を呼び出す前に \fIerrno\fP を 0
に設定し、呼び出し後に \fIerrno\fP が 0 以外の値かどうかを確認しエラーが発生したかどうかを判断する 必要がある。
-"C" 以外のロケールの場合、その他の文字列も受け付けられるかもしれない。 (例えば、現在のロケールの 1000
-毎の区切り文字がサポートされているかもしれない。)
+POSIX.1\-2001 では、 "C" と "POSIX"
+以外のロケールでは、これらの関数は、他の実装時に定義される数字を示す文字列を受け付けるとされている。
.LP
BSD には、
.sp
.fi
.SH 関連項目
\fBatof\fP(3), \fBatoi\fP(3), \fBatol\fP(3), \fBstrtod\fP(3), \fBstrtoul\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。