OSDN Git Service

(split) LDP: Update drafts based on LDP v3.40.
[linuxjm/LDP_man-pages.git] / draft / man3 / abs.3
index b1819c9..18166ef 100644 (file)
 .\" Modified Sat Jul 24 21:45:37 1993, Rik Faith (faith@cs.unc.edu)
 .\" Modified Sat Dec 16 15:02:59 2000, Joseph S. Myers
 .\"
-.\" Japanese Version Copyright (c) 1996 Kentaro OGAWA
-.\"         all rights reserved.
-.\" Translated Sat, 13 Jul 1996 22:44:04 +0900
-.\"         by Kentaro OGAWA <k_ogawa@oyna.cc.muroran-it.ac.jp>
-.\" Updated Mon 29 Jan 2001 17:18:34 JST by Kentaro Shirakata <argrath@ub32.org>
+.\"*******************************************************************
 .\"
-.TH ABS 3  2010-09-20 "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-.\"O abs, labs, llabs, imaxabs \- compute the absolute value of an integer
-abs, labs, llabs, imaxabs \- À°¿ô¤ÎÀäÂÐÃͤò·×»»¤¹¤ë
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH ABS 3 2010\-09\-20 GNU "Linux Programmer's Manual"
+.SH 名前
+abs, labs, llabs, imaxabs \- 整数の絶対値を計算する
+.SH 書式
 .nf
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
 .sp
-.BI "int abs(int " j );
+\fBint abs(int \fP\fIj\fP\fB);\fP
 .br
-.BI "long int labs(long int " j );
+\fBlong int labs(long int \fP\fIj\fP\fB);\fP
 .br
-.BI "long long int llabs(long long int " j );
+\fBlong long int llabs(long long int \fP\fIj\fP\fB);\fP
 .sp
-.B #include <inttypes.h>
+\fB#include <inttypes.h>\fP
 .sp
-.BI "intmax_t imaxabs(intmax_t " j );
+\fBintmax_t imaxabs(intmax_t \fP\fIj\fP\fB);\fP
 .fi
 .sp
 .in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-.BR llabs ():
+\fBllabs\fP():
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
 .br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
+.RE
 .ad
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR abs ()
-.\"O function computes the absolute value of the integer
-.\"O argument \fIj\fP.
-.\"O The
-.\"O .BR labs (),
-.\"O .BR llabs ()
-.\"O and
-.\"O .BR imaxabs ()
-.\"O functions compute the absolute value of the argument \fIj\fP of the
-.\"O appropriate integer type for the function.
-.BR abs ()
-´Ø¿ô¤Ï¡¢À°¿ô¤Î°ú¿ô \fIj\fP ¤ÎÀäÂÐÃͤò·×»»¤¹¤ë¡£
-.BR labs (),
-.BR llabs (),
-.BR imaxabs ()
-´Ø¿ô¤Ï¡¢
-¤½¤ì¤¾¤ì¤Î´Ø¿ô¤Î·¿¤Ë±þ¤¸¤¿°ú¿ô \fIj\fP ¤ÎÀäÂÐÃͤò·×»»¤¹¤ë¡£
-.SH ÊÖ¤êÃÍ
-.\"O Returns the absolute value of the integer argument, of the appropriate
-.\"O integer type for the function.
-¤½¤ì¤¾¤ì¤Î´Ø¿ô¤Î·¿¤Ë±þ¤¸¤¿À°¿ô¤Î°ú¿ô¤ÎÀäÂÐÃͤòÊÖ¤¹¡£
-.SH ½àµò
-.\"O SVr4, POSIX.1-2001, 4.3BSD, C99.
-.\"O .\" POSIX.1 (1996 edition) only requires the
-.\"O .\" .BR abs ()
-.\"O .\" function.
-.\"O C89 only
-.\"O includes the
-.\"O .BR abs ()
-.\"O and
-.\"O .BR labs ()
-.\"O functions; the functions
-.\"O .BR llabs ()
-.\"O and
-.\"O .BR imaxabs ()
-.\"O were added in C99.
-SVr4, POSIX.1-2001, 4.3BSD, C99.
-.\" POSIX.1 (1996 Ç¯ÈÇ) ¤Ï
+.SH 説明
+\fBabs\fP()  関数は、整数の引数 \fIj\fP の絶対値を計算する。 \fBlabs\fP(), \fBllabs\fP(), \fBimaxabs\fP()
+関数は、 それぞれの関数の型に応じた引数 \fIj\fP の絶対値を計算する。
+.SH 返り値
+それぞれの関数の型に応じた整数の引数の絶対値を返す。
+.SH 準拠
+.\" POSIX.1 (1996 edition) only requires the
 .\" .BR abs ()
-.\" ´Ø¿ô¤Î¤ß¤òÍ׵ᤷ¤Æ¤¤¤ë¡£
-C89 ¤Ï
-.BR abs ()
-´Ø¿ô¤È
-.BR labs ()
-´Ø¿ô¤Î¤ß¤ò´Þ¤ó¤Ç¤¤¤ë¡£
-.BR llabs ()
-´Ø¿ô¤È
-.BR imaxabs ()
-´Ø¿ô¤Ï C99 ¤ÇÄɲ䵤줿¡£
-.SH Ãí°Õ
-.\"O Trying to take the absolute value of the most negative integer
-.\"O is not defined.
-ºÇÂç¤ÎÉéÀ°¿ô¤ÎÀäÂÐÃͤϡ¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
+.\" function.
+SVr4, POSIX.1\-2001, 4.3BSD, C99.  C89 は \fBabs\fP()  関数と \fBlabs\fP()  関数のみを含んでいる。
+\fBllabs\fP()  関数と \fBimaxabs\fP()  関数は C99 で追加された。
+.SH 注意
+最大の負整数の絶対値は、定義されていない。
 .PP
-.\"O The
-.\"O .BR llabs ()
-.\"O function is included in glibc since version 2.0, but
-.\"O is not in libc5 or libc4.
-.\"O The
-.\"O .BR imaxabs ()
-.\"O function is included in
-.\"O glibc since version 2.1.1.
-.BR llabs ()
-´Ø¿ô¤Ï¥Ð¡¼¥¸¥ç¥ó 2.0 ¤«¤é glibc ¤Ë´Þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤¬¡¢
-libc5 ¤ä libc4 ¤Ë¤Ï¤Ê¤¤¡£
-.BR imaxabs ()
-´Ø¿ô¤Ï ¥Ð¡¼¥¸¥ç¥ó 2.1.1 ¤«¤é glibc ¤Ë´Þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£
+\fBllabs\fP()  関数はバージョン 2.0 から glibc に含まれるようになったが、 libc5 や libc4 にはない。
+\fBimaxabs\fP()  関数は バージョン 2.1.1 から glibc に含まれるようになった。
 .PP
-.\"O For
-.\"O .BR llabs ()
-.\"O to be declared, it may be necessary to define
-.\"O \fB_ISOC99_SOURCE\fP or \fB_ISOC9X_SOURCE\fP (depending on the
-.\"O version of glibc) before including any standard headers.
-.BR llabs ()
-¤¬Àë¸À¤µ¤ì¤ë¤¿¤á¤Ë¤Ï¡¢É¸½à¥Ø¥Ã¥À¤ò include ¤¹¤ëÁ°¤Ë
-\fB_ISOC99_SOURCE\fP ¤« \fB_ISOC9X_SOURCE\fP(¤É¤Á¤é¤«¤Ï glibc ¤Î
-¥Ð¡¼¥¸¥ç¥ó¤Ë°Í¸¤¹¤ë)¤ò define ¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¡£
+\fBllabs\fP()  が宣言されるためには、標準ヘッダを include する前に \fB_ISOC99_SOURCE\fP か
+\fB_ISOC9X_SOURCE\fP(どちらかは glibc の バージョンに依存する)を define しておく必要がある。
 .PP
-.\"O GCC handles
-.\"O .BR abs ()
-.\"O and
-.\"O .BR labs ()
-.\"O as builtin functions.
-.\"O GCC 3.0 also handles
-.\"O .BR llabs ()
-.\"O and
-.\"O .BR imaxabs ()
-.\"O as builtins.
-GCC ¤Ï
-.BR abs ()
-¤È
-.BR labs ()
-¤ò¥Ó¥ë¥É¥¤¥ó´Ø¿ô¤È¤·¤Æ°·¤¦¡£
-GCC 3.0 ¤Ï
-.BR llabs ()
-¤È
-.BR imaxabs ()
-¤â¥Ó¥ë¥É¥¤¥ó¤È¤·¤Æ°·¤¦¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR cabs (3),
-.BR ceil (3),
-.BR fabs (3),
-.BR floor (3),
-.BR rint (3)
+GCC は \fBabs\fP()  と \fBlabs\fP()  をビルドイン関数として扱う。 GCC 3.0 は \fBllabs\fP()  と
+\fBimaxabs\fP()  もビルドインとして扱う。
+.SH 関連項目
+\fBcabs\fP(3), \fBceil\fP(3), \fBfabs\fP(3), \fBfloor\fP(3), \fBrint\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。