そのラッパー関数がシステムコールを呼び出すのに必要な処理を実行する。 そのため、システムコールを呼び出すのは通常のライブラリ関数を呼び出すのと
同じように見える。
-In many cases, the C library wrapper function does nothing more than:
+多くの場合、 C ライブラリのラッパー関数が行うのは以下のことだけである。
.IP * 3
-copying arguments and the unique system call number to the registers where
-the kernel expects them;
+引き数と一意なシステムコール番号をカーネルが期待するレジスターにコピーする
.IP *
-trapping to kernel mode, at which point the kernel does the real work of the
-system call; and
+カーネルがシステムコールの実際の処理を行う時点でカーネルモードに入る
.IP *
-setting \fIerrno\fP if the system call returns an error number when the kernel
-returns the CPU to user mode.
+カーネルが CPU をユーザーモードに返した際にシステムコールがエラー番号を返したいれば \fIerrno\fP を設定する
.LP
-However, in a few cases, a wrapper function may do rather more than this,
-for example, performing some preprocessing of the arguments of arguments
-before trapping to kernel mode, or postprocessing of values returned by the
-system call. Where this is the case, the manual pages in Section 2
-generally try to note the details of both the (usually GNU) C library API
-interface and the raw system call. Most commonly, the main DESCRIPTION will
-focus on the C library interface, and differences for the system call are
-covered in the NOTES section.
+しかし、ラッパー関数がこれ以上のことを行う場合もいくつかある。例えば、カーネルモードに入る前に引き数に対する前処理を実行したり、システムコールが返した値に対する後処理を行うなどである。このような場合、セクション
+2 のマニュアルページでは、基本的に、C ライブラリ API インターフェース (通常は GNU C ライブラリのもの)
+と生のシステムコールの両方の詳細をできるだけ説明しようとする。ほとんどの場合、メインとなる「説明」では C
+ライブラリのインターフェースに焦点をあてて説明し、システムコールでの差分については「注意」のセクションに説明がある。
Linux のシステムコールのリストについては \fBsyscalls\fP(2) を参照のこと。
.SH 返り値