MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / netflags_muslc_2_lwip

Function netflags_muslc_2_lwip

components/lwp/lwp_syscall.c:5574–5604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5572#define MUSLC_MSG_MORE 0x8000
5573
5574static int netflags_muslc_2_lwip(int flags)
5575{
5576 int flgs = 0;
5577
5578 if (flags & MUSLC_MSG_PEEK)
5579 {
5580 flgs |= MSG_PEEK;
5581 }
5582 if (flags & MUSLC_MSG_WAITALL)
5583 {
5584 flgs |= MSG_WAITALL;
5585 }
5586 if (flags & MUSLC_MSG_OOB)
5587 {
5588 flgs |= MSG_OOB;
5589 }
5590 if (flags & MUSLC_MSG_DONTWAIT)
5591 {
5592 flgs |= MSG_DONTWAIT;
5593 }
5594 if (flags & MUSLC_MSG_MORE)
5595 {
5596 flgs |= MSG_MORE;
5597 }
5598 if (flags & MSG_ERRQUEUE)
5599 {
5600 flgs |= MSG_ERRQUEUE;
5601 }
5602
5603 return flgs;
5604}
5605
5606#ifdef ARCH_MM_MMU
5607static int copy_msghdr_from_user(struct msghdr *kmsg, struct msghdr *umsg,

Callers 6

sys_recvmsgFunction · 0.85
sys_recvfromFunction · 0.85
sys_recvFunction · 0.85
sys_sendmsgFunction · 0.85
sys_sendtoFunction · 0.85
sys_sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected