.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
+.\" %%%LICENSE_END
.\"
.\" @(#)syscall.2 8.1 (Berkeley) 6/16/93
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH SYSCALL 2 2007\-07\-26 Linux "Linux Programmer's Manual"
+.TH SYSCALL 2 2012\-08\-14 Linux "Linux Programmer's Manual"
.SH 名前
syscall \- 間接システムコール
.SH 書式
\fBint syscall(int \fP\fInumber\fP\fB, ...);\fP
.fi
.SH 説明
-\fBsyscall\fP() は \fInumber\fP で指定されたアセンブリ言語インターフェースのシステムコールを、 指定された引き数をつけて実行する。
-システムコールのシンボル定数はヘッダファイル \fI<sys/syscall.h>\fP に書かれている。
+\fBsyscall\fP() is a small library function that invokes the system call whose
+assembly language interface has the specified \fInumber\fP with the specified
+arguments. Employing \fBsyscall\fP() is useful, for example, when invoking a
+system call that has no wrapper function in the C library.
+
+\fBsyscall\fP() saves CPU registers before making the system call, restores
+the registers upon return from the system call, and stores any error code
+returned by the system call in \fBerrno\fP(3) if an error occurs.
+
+Symbolic constants for system call numbers can be found in the header file
+\fI<sys/syscall.h>\fP.
.SH 返り値
返り値は呼び出されたシステムコールによって定義される。 一般に、返り値 0 は成功を表す。 \-1 はエラーを表し、エラーコードは \fIerrno\fP
に入れられる。
pid_t tid;
tid = syscall(SYS_gettid);
+ tid = syscall(SYS_tgkill, getpid(), tid);
}
.fi
.SH 関連項目
\fB_syscall\fP(2), \fBintro\fP(2), \fBsyscalls\fP(2)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。