.\" 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
.\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu)
.\" Modified 2002-08-10, 2003-11-01 Walter Harms, aeb
.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
.\" Japanese Version Copyright (c) 1996 Kenji Kajiwara
.\" all rights reserved.
.\" Translated Mon Jul 15 18:00:00 JST 1996
.\" Updated & Modified Sun May 30 13:03:43 JST 2004
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
-.TH DIV 3 2007-07-26 "" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH ̾Á°
-.\"O div, ldiv, lldiv, imaxdiv \- compute quotient and remainder of
-.\"O an integer division
-div, ldiv, lldiv, imaxdiv \- integer ·¿¤Î³ä»»¤Î¾¦¤È;¤ê¤ò·×»»¤¹¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.TH DIV 3 2013\-07\-05 "" "Linux Programmer's Manual"
+.SH 名前
+div, ldiv, lldiv, imaxdiv \- integer 型の割算の商と余りを計算する
+.SH 書式
.nf
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
.sp
-.BI "div_t div(int " numerator ", int " denominator );
+\fBdiv_t div(int \fP\fInumerator\fP\fB, int \fP\fIdenominator\fP\fB);\fP
.br
-.BI "ldiv_t ldiv(long " numerator ", long " denominator );
+\fBldiv_t ldiv(long \fP\fInumerator\fP\fB, long \fP\fIdenominator\fP\fB);\fP
.br
-.BI "lldiv_t lldiv(long long " numerator ", long long " denominator );
+\fBlldiv_t lldiv(long long \fP\fInumerator\fP\fB, long long \fP\fIdenominator\fP\fB);\fP
.sp
-.B #include <inttypes.h>
+\fB#include <inttypes.h>\fP
.sp
-.BI "imaxdiv_t imaxdiv(intmax_t " numerator ", intmax_t " denominator );
+\fBimaxdiv_t imaxdiv(intmax_t \fP\fInumerator\fP\fB, intmax_t \fP\fIdenominator\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
+.ad l
.sp
-.BR lldiv ():
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
-.I cc\ -std=c99
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR div ()
-.\"O function computes the value
-.\"O \fInumerator\fP/\fIdenominator\fP and
-.\"O returns the quotient and remainder in a structure
-.\"O named \fIdiv_t\fP that contains
-.\"O two integer members (in unspecified order) named \fIquot\fP and \fIrem\fP.
-.BR div ()
-´Ø¿ô¤Ï \fInumerator\fP/\fIdenominator\fP ¤ÎÃͤò·×»»¤¹¤ë¡£
-¾¦¤È;¤ê¤Ï¡¢
-\fIquot\fP (¾¦) ¤È \fIrem\fP (;¤ê) ¤È¤¤¤¦Ì¾Á°¤Î 2 ¤Ä¤Î integer ·¿¥á¥ó¥Ð¤ò´Þ¤à
-\fIdiv_t\fP ¤È¤¤¤¦¹½Â¤ÂΤÎÃæ¤ËÊÖ¤µ¤ì¤ë
-(¥á¥ó¥Ð¤Î½çÈÖ¤ÏÉÔÄê¤Ç¤¢¤ë)¡£
-.\"O The quotient is rounded towards zero.
-¾¦¤Ï 0 ¤Ë¶á¤¤Êý¤Ë´Ý¤á¤é¤ì¤ë¡£
-.\"O The result satisfies \fIquot\fP*\fIdenominator\fP+\fIrem\fP = \fInumerator\fP.
-·ë²Ì¤Ï \fIquot\fP*\fIdenominator\fP+\fIrem\fP = \fInumerator\fP ¤òËþ¤¿¤¹¡£
+\fBlldiv\fP():
+.RS 4
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or \fIcc\ \-std=c99\fP
+.RE
+.ad
+.SH 説明
+\fBdiv\fP() 関数は \fInumerator\fP/\fIdenominator\fP の値を計算する。 商と余りは、 \fIquot\fP (商) と
+\fIrem\fP (余り) という名前の 2 つの integer 型メンバを含む \fIdiv_t\fP という構造体の中に返される
+(メンバの順番は不定である)。 商は 0 に近い方に丸められる。 結果は \fIquot\fP*\fIdenominator\fP+\fIrem\fP =
+\fInumerator\fP を満たす。
.LP
-.\"O The
-.\"O .BR ldiv (),
-.\"O .BR lldiv (),
-.\"O and
-.\"O .BR imaxdiv ()
-.\"O functions do the same,
-.\"O dividing numbers of the indicated type and
-.\"O returning the result in a structure
-.\"O of the indicated name, in all cases with fields \fIquot\fP and \fIrem\fP
-.\"O of the same type as the function arguments.
-.BR ldiv (),
-.BR lldiv (),
-.BR imaxdiv ()
-´Ø¿ô¤ÏƱÍͤÊÆ°ºî¤ò¤·¡¢
-¾å¤Ë¼¨¤·¤¿·¿¤Î¿ôÃͤò³ä»»¤·¤Æ¡¢¾å¤Ë¼¨¤·¤¿Ì¾Á°¤Î¹½Â¤ÂΤ˷ë²Ì¤òÊÖ¤¹¡£
-¤É¤Î¾ì¹ç¤Ç¤â¥Õ¥£¡¼¥ë¥É \fIquot\fP ¤È \fIrem\fP ¤Ï¡¢
-´Ø¿ô¤Î°ú¤¿ô¤ÈƱ¤¸·¿¤Ç¤¢¤ë¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O The \fIdiv_t\fP (etc.) structure.
-\fIdiv_t\fP (¤Ê¤É¤Î) ¹½Â¤ÂΡ£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-SVr4, 4.3BSD, C89.
-.\"O The functions
-.\"O .BR lldiv ()
-.\"O and
-.\"O .BR imaxdiv ()
-.\"O were added in C99.
-´Ø¿ô
-.BR lldiv ()
-¤È
-.BR imaxdiv ()
-¤Ï C99 ¤ËÄɲ䵤줿¡£
-.\"O .SH EXAMPLE
-.SH Îã
-.\"O After
+\fBldiv\fP(), \fBlldiv\fP(), \fBimaxdiv\fP() 関数は同様な動作をし、
+上に示した型の数値を割算して、上に示した名前の構造体に結果を返す。 どの場合でもフィールド \fIquot\fP と \fIrem\fP は、
+関数の引き数と同じ型である。
+.SH 返り値
+\fIdiv_t\fP (などの) 構造体。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+関数 \fBdiv\fP(), \fBldiv\fP(), \fBlldiv\fP(), \fBimaxdiv\fP() はスレッドセーフである。
+.SH 準拠
+SVr4, 4.3BSD, C89, C99.
+関数 \fBlldiv\fP() と \fBimaxdiv\fP() は C99 に追加された。
+.SH 例
+以下の式を計算すると、
.nf
div_t q = div(\-5, 3);
.fi
-.\"O the values \fIq.quot\fP and \fIq.rem\fP are \-1 and \-2, respectively.
-¤ò·×»»¤¹¤ë¤È¡¢\fIq.quot\fP ¤È \fIq.rem\fP ¤Ï¤½¤ì¤¾¤ì \-1 ¤È \-2 ¤Ë¤Ê¤ë¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR abs (3),
-.BR remainder (3)
+\fIq.quot\fP と \fIq.rem\fP はそれぞれ \-1 と \-2 になる。
+.SH 関連項目
+\fBabs\fP(3), \fBremainder\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。