This patch adds the function "socket" from the header "sys/socket". It's
a simple syscall wrapper, and I plan on adding the related functions in
a followup patch.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rGee17fd7d46a9: [libc] add socket function
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM but I have left a few minor comments.
libc/include/llvm-libc-macros/linux/sys-socket-macros.h | ||
---|---|---|
26 | Can add some documentation about the origin of these numbers? | |
libc/include/llvm-libc-types/struct_sockaddr.h | ||
17 | Same here - documentation for why 14. | |
libc/src/sys/socket/linux/socket.cpp | ||
17 | For SYS_SOCKET socketcall call number. ? |
libc/include/llvm-libc-macros/linux/sys-socket-macros.h | ||
---|---|---|
26 | The source is the same as the above numbers, so I figured it was covered by the comment at the top of the file. |
Can add some documentation about the origin of these numbers?