mailing list of musl libc
 help / color / mirror / code / Atom feed
8d7cace627289f5b53947a99d39a7b254368f2ce blob 692 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
#include <sys/socket.h>
#include <limits.h>
#include "syscall.h"
#include "libc.h"

#include <stdio.h>
static void dump(struct msghdr *h)
{
	dprintf(2, "msghdr: %p %u %p %d %d %p %u %u %d\n",
		h->msg_name,
		h->msg_namelen,
		h->msg_iov,
		h->__pad1,
		h->msg_iovlen,
		h->msg_control,
		h->__pad2,
		h->msg_controllen,
		h->msg_flags);
}

ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
{
	ssize_t r;
#if LONG_MAX > INT_MAX
	dump(msg);
	struct msghdr h, *orig = msg;
	if (msg) {
		h = *msg;
		h.__pad1 = h.__pad2 = 0;
		msg = &h;
	}
	dump(msg);
#endif
	r = socketcall_cp(recvmsg, fd, msg, flags, 0, 0, 0);
#if LONG_MAX > INT_MAX
	dump(msg);
	if (orig) *orig = h;
#endif
	return r;
}
debug log:

solving 8d7cace ...
found 8d7cace in https://inbox.vuxu.org/musl/20160421013715.GX21636@brightrain.aerifal.cx/
found 4f52665 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 4f526659183defd2405ed6961b8ccca9e8ded1f5	src/network/recvmsg.c

applying [1/1] https://inbox.vuxu.org/musl/20160421013715.GX21636@brightrain.aerifal.cx/
diff --git a/src/network/recvmsg.c b/src/network/recvmsg.c
index 4f52665..8d7cace 100644

Checking patch src/network/recvmsg.c...
Applied patch src/network/recvmsg.c cleanly.

index at:
100644 8d7cace627289f5b53947a99d39a7b254368f2ce	src/network/recvmsg.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).