| 5572 | #define MUSLC_MSG_MORE 0x8000 |
| 5573 | |
| 5574 | static 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 |
| 5607 | static int copy_msghdr_from_user(struct msghdr *kmsg, struct msghdr *umsg, |
no outgoing calls
no test coverage detected