From 1b35d2ed631631f470dc5a7cff54068a832bfafc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 18 May 2014 00:22:55 +0200 Subject: s3:unix_msg: add fds-array to unix_msg_send() for fd passing Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Stefan Metzmacher Signed-off-by: Michael Adam --- source3/lib/unix_msg/tests.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source3/lib/unix_msg/tests.c') diff --git a/source3/lib/unix_msg/tests.c b/source3/lib/unix_msg/tests.c index a213cc22a6..df094afb3d 100644 --- a/source3/lib/unix_msg/tests.c +++ b/source3/lib/unix_msg/tests.c @@ -103,7 +103,7 @@ int main(void) state.buf = NULL; state.buflen = 0; - ret = unix_msg_send(ctx1, &addr2, NULL, 0); + ret = unix_msg_send(ctx1, &addr2, NULL, 0, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); @@ -120,7 +120,7 @@ int main(void) state.buf = &msg; state.buflen = sizeof(msg); - ret = unix_msg_send(ctx1, &addr2, &iov, 1); + ret = unix_msg_send(ctx1, &addr2, &iov, 1, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); @@ -141,13 +141,13 @@ int main(void) state.buflen = sizeof(buf); for (i=0; i<3; i++) { - ret = unix_msg_send(ctx1, &addr2, &iov, 1); + ret = unix_msg_send(ctx1, &addr2, &iov, 1, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); return 1; } - ret = unix_msg_send(ctx2, &addr2, &iov, 1); + ret = unix_msg_send(ctx2, &addr2, &iov, 1, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); @@ -186,7 +186,7 @@ int main(void) j++; } - ret = unix_msg_send(ctx1, &addr1, iovs, j); + ret = unix_msg_send(ctx1, &addr1, iovs, j, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); @@ -199,13 +199,13 @@ int main(void) printf("Filling send queues before freeing\n"); for (i=0; i<5; i++) { - ret = unix_msg_send(ctx1, &addr2, &iov, 1); + ret = unix_msg_send(ctx1, &addr2, &iov, 1, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); return 1; } - ret = unix_msg_send(ctx1, &addr1, &iov, 1); + ret = unix_msg_send(ctx1, &addr1, &iov, 1, NULL, 0); if (ret != 0) { fprintf(stderr, "unix_msg_send failed: %s\n", strerror(ret)); -- cgit