socket: implement accept() with syscalls_sys_accept4#469
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the accept function to be an inline wrapper around accept4 with a flags value of 0. Feedback suggests that implementing accept as an inline function in the header is inconsistent with other socket wrappers in the library and may introduce portability issues. It is recommended to move the implementation to the source file as a regular function.
86f6550 to
b590d94
Compare
julianuziemblo
left a comment
There was a problem hiding this comment.
while at it, we could potentially just remove syscalls_sys_accept, as we're still before release. @Darchiv what do you think?
TASK: RTOS-1289
This will allow to deprecate/remove `accept` syscall. TASK: RTOS-1289
| int socketpair(int domain, int type, int protocol, int socket_vector[2]); | ||
|
|
||
|
|
||
| inline int accept(int socket, struct sockaddr *address, socklen_t *address_len) |
There was a problem hiding this comment.
With static inline, the extern inline declarations in sys/socket.c are probably no longer necessary.
Seems sane. Remove |
This will allow to deprecate/remove
acceptsyscall.TASK: RTOS-1289
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment