Man page - socketcall(2)

Packages contains this manual

Available languages:

en fr es ko nl cs ja ru ro de

Manual

socketcall

์ด ๋ฆ„
๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ
์š” ์•ฝ
์„ค ๋ช…
๋ฒ„ ์ „ S
ํ‘œ ์ค€
์ถ” ๊ฐ€ ์ฐธ ์กฐ
๋ฒˆ ์—ญ

์ด ๋ฆ„

socketcall - ์†Œ ์ผ“ ์‹œ ์Šค ํ…œ ์ฝœ ๋“ค

๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ

ํ‘œ ์ค€ C ๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ ( libc , -lc )

์š” ์•ฝ

#include <linux/net.h> /* Definition of SYS_* constants */
#include <sys/syscall.h>
/* Definition of SYS_socketcall */
#include <unistd.h>

int syscall(SYS_socketcall, int call , unsigned long * args );

Note : glibc provides no wrapper for socketcall (), necessitating the use of syscall (2).

์„ค ๋ช…

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.

์‚ฌ ์šฉ ์ž ํ”„ ๋กœ ๊ทธ ๋žจ ์€ ์‚ฌ ์šฉ ์ด ๋ฆ„ ๋“ค ๋กœ ์  ๋‹น ํ•œ ํ•จ ์ˆ˜ ๋“ค ์„ ํ˜ธ ์ถœ ํ•ด ์•ผ ํ•œ ๋‹ค . ๋‹จ ์ง€ ํ‘œ ์ค€ ๋ผ ์ด ๋ธŒ ๋Ÿฌ ๋ฆฌ ์ˆ˜ ํ–‰ ์ž ๋‚˜ ํ•ด ์ปค ๋“ค ๋งŒ ์ด socketcall ()๋ฅผ ์•Œ ํ•„ ์š” ๊ฐ€ ์žˆ ๋‹ค .

Image grohtml-4016757-1.png

๋ฒ„ ์ „ S

On 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.

์ถ” ๊ฐ€ ์ฐธ ์กฐ

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)

๋ฒˆ ์—ญ

์ด ๋งค ๋‰ด ์–ผ ํŽ˜ ์ด ์ง€ ์˜ ํ•œ ๊ตญ ์–ด ๋ฒˆ ์—ญ ์€ ๋‹ค ์Œ ์— ์˜ ํ•ด ํŽธ ์ง‘ ๋˜ ์—ˆ ์Šต ๋‹ˆ ๋‹ค : ์ • ๊ฐ• ํ›ˆ <skyeyes@soback.kornet.net>

์ด ๋ฒˆ ์—ญ ์€ ๋ฌด ๋ฃŒ ๋ฌธ ์„œ ์ž… ๋‹ˆ ๋‹ค . ์ € ์ž‘ ๊ถŒ ์กฐ ๊ฑด ์— ๋Œ€ ํ•ด ์„œ ๋Š” GNU General Public License ๋ฒ„ ์ „ 3 ์ด ์ƒ ์„ ์ฝ ์œผ ์‹ญ ์‹œ ์˜ค . ์ฑ… ์ž„ ์ด ์—† ์Šต ๋‹ˆ ๋‹ค .

์ด ๋งค ๋‰ด ์–ผ ํŽ˜ ์ด ์ง€ ์˜ ๋ฒˆ ์—ญ ์— ์„œ ์˜ค ๋ฅ˜ ๋ฅผ ๋ฐœ ๊ฒฌ ํ•˜ ๋ฉด translation-team-ko@googlegroups.com ๋กœ ์ด ๋ฉ” ์ผ ์„ ๋ณด ๋‚ด ์ฃผ ์‹ญ ์‹œ ์˜ค .