1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995.
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
25 .\" Modified Tue Oct 22 22:11:53 1996 by Eric S. Raymond <esr@thyrsus.com>
27 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
28 .\" all rights reserved.
29 .\" Translated Mon Mar 3 23:45:10 JST 1997
30 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\"WORD: socket ¥½¥±¥Ã¥È
33 .\"WORD: kernel ¥«¡¼¥Í¥ë
34 .\"WORD: entry ¥¨¥ó¥È¥ê
35 .\"WORD: hacker ¥Ï¥Ã¥«¡¼
36 .\"WORD: library ¥é¥¤¥Ö¥é¥ê
38 .TH SOCKETCALL 2 2007-06-28 "Linux" "Linux Programmer's Manual"
41 .\"O socketcall \- socket system calls
42 socketcall \- ¥½¥±¥Ã¥È¡¦¥·¥¹¥Æ¥à¥³¡¼¥ë
45 .BI "int socketcall(int " call ", unsigned long *" args );
48 .\"O .BR socketcall ()
49 .\"O is a common kernel entry point for the socket system calls.
51 .\"O determines which socket function to invoke.
53 .\"O points to a block containing the actual arguments,
54 .\"O which are passed through to the appropriate call.
56 ¤Ï¥½¥±¥Ã¥È¡¦¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¤¿¤á¤Î¶¦Ä̤Υ«¡¼¥Í¥ë¡¦¥¨¥ó¥È¥ê¡¦
57 ¥Ý¥¤¥ó¥È(kernel entry point)¤Ç¤¢¤ë¡£
59 ¤Ï¤É¤Î¥½¥±¥Ã¥È´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹¤«¤ò»ØÄꤹ¤ë¡£
61 ¤ÏŬÀڤʥ³¡¼¥ë¤ËÅϤ¹¤¿¤á¤Î¼ÂºÝ¤Î°ú¤¿ô¤ò´Þ¤ó¤Ç¤¤¤ë¥Ö¥í¥Ã¥¯¤ò»Ø¤¹¡£
63 .\"O User programs should call the appropriate functions by their usual names.
64 .\"O Only standard library implementors and kernel hackers need to know about
65 .\"O .BR socketcall ().
66 ¥æ¡¼¥¶¡¼¡¦¥×¥í¥°¥é¥à¤ÏÄ̾ï¤Î̾Á°¤ò»ÈÍѤ·¤ÆŬÀڤʴؿô¤ò¸Æ¤Ó½Ð¤¹¤Ù¤¤Ç¤¢¤ë¡£
67 ɸ½à¥é¥¤¥Ö¥é¥ê¤Î¼ÂÁõ¼Ô¤ä¥«¡¼¥Í¥ë¡¦¥Ï¥Ã¥«¡¼¤Î¤ß¤¬
69 ¤Ë¤Ä¤¤¤ÆÃΤëɬÍפ¬¤¢¤ë¡£
70 .\"O .SH "CONFORMING TO"
72 .\"O This call is specific to Linux, and should not be used in programs
73 .\"O intended to be portable.
74 ¤³¤Î¥³¡¼¥ë¤Ï Linux ÆÃͤǤ¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç
78 .\"O On a few architectures, for example ia64, there is no
79 .\"O .BR socketcall ()
80 .\"O system call; instead
84 .\"O and so on really are implemented as separate system calls.
85 ia64 ¤Ê¤É¤Î¤¤¤¯¤Ä¤«¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã¤Ç¤Ï¡¢¥·¥¹¥Æ¥à¥³¡¼¥ë
87 ¤¬Â¸ºß¤·¤Ê¤¤¡£¼ÂºÝ¤Ë¤Ï¡¢¤½¤ÎÂå¤ï¤ê¤Ë
91 ¤Ê¤É¤¬ÆÈΩ¤·¤¿¥·¥¹¥Æ¥à¥³¡¼¥ë¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£