Imported Upstream version 6.8.0.73

Former-commit-id: d18deab1b47cfd3ad8cba82b3f37d00eec2170af
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-12-10 18:00:56 +00:00
parent bceda29824
commit 73ee7591e8
1043 changed files with 16271 additions and 22080 deletions

View File

@@ -582,19 +582,19 @@ Mono_Posix_Syscall_sendmsg (int socket, struct Mono_Posix_Syscall__Msghdr* messa
return r;
}
static inline void make_msghdr (struct msghdr* hdr, unsigned char* msg_control, gint64 msg_controllen)
static void make_msghdr (struct msghdr* hdr, unsigned char* msg_control, gint64 msg_controllen)
{
memset (hdr, 0, sizeof (struct msghdr));
hdr->msg_control = msg_control;
hdr->msg_controllen = msg_controllen;
}
static inline struct cmsghdr* from_offset (unsigned char* msg_control, gint64 offset)
static struct cmsghdr* from_offset (unsigned char* msg_control, gint64 offset)
{
if (offset == -1)
return NULL;
return (struct cmsghdr*) (msg_control + offset);
}
static inline gint64 to_offset (unsigned char* msg_control, void* hdr)
static gint64 to_offset (unsigned char* msg_control, void* hdr)
{
if (!hdr)
return -1;