dcca747249
Submitted by: Akira Ikeuchi <a_ikeuchi@mic.mitsumi.co.jp>
80 lines
2.9 KiB
Groff
80 lines
2.9 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" 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.
|
|
.\"
|
|
.\" @(#)syscall.2 8.1 (Berkeley) 6/16/93
|
|
.\" %FreeBSD: src/lib/libc/sys/syscall.2,v 1.11 2003/09/10 19:24:33 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 16, 1993
|
|
.Dt SYSCALL 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm syscall ,
|
|
.Nm __syscall
|
|
.Nd ´ÖÀÜŪ¤Ê¥·¥¹¥Æ¥à¥³¡¼¥ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/syscall.h
|
|
.In unistd.h
|
|
.Ft int
|
|
.Fn syscall "int number" ...
|
|
.Ft off_t
|
|
.Fn __syscall "quad_t number" ...
|
|
.Sh ²òÀâ
|
|
.Fn syscall
|
|
´Ø¿ô¤Ï¡¢»ØÄꤷ¤¿
|
|
.Fa number
|
|
¤ò»ý¤Ä¥¢¥»¥ó¥Ö¥ê¸À¸ì¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò¡¢
|
|
»ØÄꤷ¤¿°ú¿ô¤Ç¼Â¹Ô¤·¤Þ¤¹¡£
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¥·¥ó¥Ü¥ê¥Ã¥¯Äê¿ô¤Ï¡¢¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë
|
|
.In sys/syscall.h
|
|
¤Ë¤¢¤ê¤Þ¤¹¡£
|
|
.Fn __syscall
|
|
¤Ï¡¢1 ¤Ä°Ê¾å¤Î°ú¿ô¤¬ 64 ¥Ó¥Ã¥È°ú¿ô¤Ç¡¢
|
|
°ú¿ô¤Î¥¢¥é¥¤¥ó¥á¥ó¥È¤¬Àµ¤·¤¤¤³¤È¤òÊݾڤ¹¤ë¾ì¹ç¤Ë»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
|
|
¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢C ¥é¥¤¥Ö¥é¥ê¤Ë¥¨¥ó¥È¥ê¤¬¤Ê¤¤
|
|
¿·¤·¤¤¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò¥Æ¥¹¥È¤¹¤ë¾ì¹ç¤ËÍÍѤǤ¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
Ìá¤êÃͤϡ¢¸Æ¤Ó½Ð¤¹¥·¥¹¥Æ¥à¥³¡¼¥ë¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
°ìÈÌŪ¤Ë 0 ¤ÏÀµ¾ï¤Ë´°Î»¤·¤¿¤³¤È¤ò¼¨¤·¤Þ¤¹¡£
|
|
-1 ¤Ï¥¨¥é¡¼¤òɽ¤ï¤·¡¢¥¨¥é¡¼¥³¡¼¥É¤¬
|
|
.Va errno
|
|
¤ËÀßÄꤵ¤ì¤Þ¤¹¡£
|
|
.Sh ¥Ð¥°
|
|
.Xr pipe 2
|
|
¤Î¤è¤¦¤Ë¡¢Ê£¿ô¤ÎÌá¤êÃͤ¬¤¢¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò
|
|
¥·¥ß¥å¥ì¡¼¥È¤¹¤ëÊýË¡¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.Sh Îò»Ë
|
|
.Fn syscall
|
|
´Ø¿ô¤Ï¡¢
|
|
.Bx 4.0
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|