In C programs, to use sockets, we need to enable:
#include<sys/socket.h>
I searched the file socket.c(implementation <sys/socket.h>) but did not find it ( find -iname "socket.c*")
socket.c
<sys/socket.h>
find -iname "socket.c*"
The header file contains declarations for system calls associated with sockets. To get started with the implementation, consider the link net/socket.cto the Linux source tree .
net/socket.c
- Linux - , GNU GPL. , , , , , (, ).
socket() net/socket.c linux kernel
socket()
SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
.
Source: https://habr.com/ru/post/1680513/More articles:Is there an easy way to convert existing Jenkins freestyle work into a new kind of pipeline New Jenkins 2.x - jenkinsWhy are higher-order components much more useful than usual? - javascriptDecrypt in Golang what was encrypted in Python AES CFB - pythonWhy can't I use "use" in non-anonymous functions? - closuresПодходит ли файл *.example.com для заголовка политики безопасности контента example.com? - javascriptHow to write a rule that finds a number using integer / 1? - prologHow to handle JSON Parse Error in Spring Rest Web Service - jsontrying to mock a github webhook request, get: "X-Hub-Signature does not match blob signature" - githubDoes the C # LINQ Aggregate method execute execution after the result no longer changes? - c #Предотвратите аутофак от агрессивных инъекционных свойств? - c#All Articles