Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

socketcall(2) [redhat man page]

IPC(2)							     Linux Programmer's Manual							    IPC(2)

NAME
socketcall - socket system calls SYNOPSIS
int socketcall(int call, unsigned long *args); DESCRIPTION
socketcall is a common kernel entry point for the socket system calls. call determines which socket function to invoke. args points to a block containing the actual arguments, which are passed through to the appropriate call. User programs should call the appropriate functions by their usual names. Only standard library implementors and kernel hackers need to know about socketcall. CONFORMING TO
This call is specific to Linux, and should not be used in programs intended to be portable. SEE ALSO
accept(2), bind(2), connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), recv(2), recvfrom(2), send(2), sendto(2), set- sockopt(2), shutdown(2), socket(2), socketpair(2) Linux 1.2.4 1995-04-15 IPC(2)

Check Out this Related Man Page

SOCKETCALL(2)						     Linux Programmer's Manual						     SOCKETCALL(2)

NAME
socketcall - socket system calls SYNOPSIS
#include <linux/net.h> int socketcall(int call, unsigned long *args); DESCRIPTION
socketcall() is a common kernel entry point for the socket system calls. call determines which socket function to invoke. args points to a block containing the actual arguments, which are passed through to the appropriate call. User programs should call the appropriate functions by their usual names. Only standard library implementors and kernel hackers need to know about socketcall(). call Man page SYS_SOCKET socket(2) SYS_BIND bind(2) SYS_CONNECT connect(2) SYS_LISTEN listen(2) SYS_ACCEPT accept(2) SYS_GETSOCKNAME getsockname(2) SYS_GETPEERNAME getpeername(2) SYS_SOCKETPAIR socketpair(2) SYS_SEND send(2) SYS_RECV recv(2) SYS_SENDTO sendto(2) SYS_RECVFROM recvfrom(2) SYS_SHUTDOWN shutdown(2) SYS_SETSOCKOPT setsockopt(2) SYS_GETSOCKOPT getsockopt(2) SYS_SENDMSG sendmsg(2) SYS_RECVMSG recvmsg(2) SYS_ACCEPT4 accept4(2) SYS_RECVMMSG recvmmsg(2) SYS_SENDMMSG sendmmsg(2) CONFORMING TO
This call is specific to Linux, and should not be used in programs intended to be portable. NOTES
On a some architectures--for example, x86-64 and ARM--there is no socketcall() system call; instead socket(2), accept(2), bind(2), and so on really are implemented as separate system calls. On x86-32, socketcall() was historically the only entry point for the sockets API. However, starting in Linux 4.3, direct system calls are provided on x86-32 for the sockets API. This facilitates the creation of seccomp(2) filters that filter sockets system calls (for new user-space binaries that are compiled to use the new entry points) and also provides a (very) small performance improvement. SEE ALSO
accept(2), bind(2), connect(2), getpeername(2), getsockname(2), getsockopt(2), listen(2), recv(2), recvfrom(2), recvmsg(2), send(2), sendmsg(2), sendto(2), setsockopt(2), shutdown(2), socket(2), socketpair(2) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. Linux 2017-09-15 SOCKETCALL(2)
Man Page

12 More Discussions You Might Find Interesting

1. Programming

Unix/Linux Newbie(ish) Question - IPC/Signals

:) Hello, i have been given the following code to help me learn how to use signals, it won't compile. The problem maybe because this was written for use in Unix and i am trying to compile in Linux. The error i get says that SIGPIPE and SIG_IGN are undeclared. I think that these are defined... (2 Replies)
Discussion started by: theultimatechuf
2 Replies

2. Programming

How many kinds of IPC are there in FREEBSD?

How many kinds of IPC are there in FREEBSD? (1 Reply)
Discussion started by: cantona
1 Replies

3. Programming

OpenVMS IPC and TCP/IP Programming

We have a requirement to port applications from Unix to HP Vax OpenVMS Server. For this I need to self-educate on various IPC and networking APIs available in OpenVMS. I goggled a lot but could not find of how to implement Semaphores, Message Queues and all other forms of IPC available in Unix... (7 Replies)
Discussion started by: S.P.Prasad
7 Replies

4. Programming

call functions from diferents programs

hi i have ten program in C, and there are functions what are in all the programs. so, i want to make a directory to store all the functions what are in all the programs, and call them from the C programs. (sending variables and values) is that possible?¿? how ca i do that?¿? any idea,... (1 Reply)
Discussion started by: DebianJ
1 Replies

5. UNIX for Dummies Questions & Answers

Data Transfer programs in IPC Mechanisms??

I have no IPC Mechanisms program which includes data transfer on the same Linu machine. All mechanisms of IPC must be tested. If anyone have programs about it, could you send to me?? I am waiting your answers. please help me...!!!! (2 Replies)
Discussion started by: boris35
2 Replies

6. Programming

How to Develop a 2 IPC system calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

7. Shell Programming and Scripting

Develop 2 IPC System Calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

8. UNIX for Dummies Questions & Answers

log send, sendrec, recv and notify system calls

Hi, I've a question about MINIX OS. 1 - I would like to log the messages that user or kernel process send to each other through the system call send, recv, sendrec and notify. Since MINIX is a microkernel OS, I suppose that the best way is to have an TCP socket, listening in INADDR_ANY... (0 Replies)
Discussion started by: pedrosacosta
0 Replies

9. UNIX for Dummies Questions & Answers

how to call two programs simultaneously

Hi, i want to call two programs simultaneously from a currently running program so as to distribute the job and fasten the speed. As of now I call the programs one after the other within the main program. e.g. `perl A.pl`; `perl B.pl`; how can I run the two paralelly? urgent ... please... (1 Reply)
Discussion started by: vipinccmb
1 Replies

10. Shell Programming and Scripting

Hola, ayuda en Linux

Necesito que un experto en shellscript y a ser posible en c ( ficheros, procesos, IPC's, etc) pueda echarme un cable con unos ejercicios. Mi correo es gabri27@hotmail.com agregadme o escribidme algo para explicaros que necesito exactamente. Si este no es el subforo adecuado, lo siento,... (1 Reply)
Discussion started by: neckro
1 Replies

11. Shell Programming and Scripting

How to easily identify socket given a PID on Linux?

(2 Replies)
Discussion started by: mohtashims
2 Replies

12. UNIX for Beginners Questions & Answers

Questions about IPC

Hello and thanks in advance for any help anyone can offer to help me understand this I'm curious about a 30.000 ft view on how IPC works in Linux between parent-child processes...I understand there's multiple types of IPC's... But I'm currently trying to figure out if parent-child process IPC... (1 Reply)
Discussion started by: bodisha
1 Replies