| // SPDX-License-Identifier: LGPL-2.1 |
| #define MSG_WAITFORONE 0x10000 |
| #ifndef MSG_SENDPAGE_NOTLAST |
| #define MSG_SENDPAGE_NOTLAST 0x20000 |
| #define MSG_FASTOPEN 0x20000000 |
| # define MSG_CMSG_CLOEXEC 0x40000000 |
| static size_t syscall_arg__scnprintf_msg_flags(char *bf, size_t size, |
| bool show_prefix = arg->show_string_prefix; |
| const char *prefix = "MSG_"; |
| int printed = 0, flags = arg->val; |
| return scnprintf(bf, size, "NONE"); |
| printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? prefix : "", #n); \ |
| P_MSG_FLAG(SENDPAGE_NOTLAST); |
| P_MSG_FLAG(CMSG_CLOEXEC); |
| printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); |
| #define SCA_MSG_FLAGS syscall_arg__scnprintf_msg_flags |