OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man2 / socketcall.2
1 .\" Copyright (c) 1995 Michael Chastain (mec@shell.portal.com), 15 April 1995.
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
22 .\" %%%LICENSE_END
23 .\"
24 .\" Modified Tue Oct 22 22:11:53 1996 by Eric S. Raymond <esr@thyrsus.com>
25 .TH SOCKETCALL 2 2012-10-16 "Linux" "Linux Programmer's Manual"
26 .SH NAME
27 socketcall \- socket system calls
28 .SH SYNOPSIS
29 .BI "int socketcall(int " call ", unsigned long *" args );
30 .SH DESCRIPTION
31 .BR socketcall ()
32 is a common kernel entry point for the socket system calls.
33 .I call
34 determines which socket function to invoke.
35 .I args
36 points to a block containing the actual arguments,
37 which are passed through to the appropriate call.
38 .PP
39 User programs should call the appropriate functions by their usual names.
40 Only standard library implementors and kernel hackers need to know about
41 .BR socketcall ().
42 .SH CONFORMING TO
43 This call is specific to Linux, and should not be used in programs
44 intended to be portable.
45 .SH NOTES
46 On a some architectures\(emfor example, x86-64 and ARM\(emthere is no
47 .BR socketcall ()
48 system call; instead
49 .BR socket (2),
50 .BR accept (2),
51 .BR bind (2),
52 and so on really are implemented as separate system calls.
53 .SH SEE ALSO
54 .BR accept (2),
55 .BR bind (2),
56 .BR connect (2),
57 .BR getpeername (2),
58 .BR getsockname (2),
59 .BR getsockopt (2),
60 .BR listen (2),
61 .BR recv (2),
62 .BR recvfrom (2),
63 .BR recvmsg (2),
64 .BR send (2),
65 .BR sendmsg (2),
66 .BR sendto (2),
67 .BR setsockopt (2),
68 .BR shutdown (2),
69 .BR socket (2),
70 .BR socketpair (2)
71 .SH COLOPHON
72 This page is part of release 3.68 of the Linux
73 .I man-pages
74 project.
75 A description of the project,
76 information about reporting bugs,
77 and the latest version of this page,
78 can be found at
79 \%http://www.kernel.org/doc/man\-pages/.