diff options
author | Michael Adam <obnox@samba.org> | 2014-05-18 00:22:55 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-09-24 08:44:11 +0200 |
commit | 1b35d2ed631631f470dc5a7cff54068a832bfafc (patch) | |
tree | 822404a8d853823d6202fee97c007dcb2ae2522f /source3/lib/unix_msg/tests.c | |
parent | c689547c9370967b3eecf0ea88252ad86f0234bf (diff) | |
download | samba-1b35d2ed631631f470dc5a7cff54068a832bfafc.tar.gz samba-1b35d2ed631631f470dc5a7cff54068a832bfafc.tar.xz samba-1b35d2ed631631f470dc5a7cff54068a832bfafc.zip |
s3:unix_msg: add fds-array to unix_msg_send() for fd passing
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/unix_msg/tests.c')
-rw-r--r-- | source3/lib/unix_msg/tests.c | 14 |
1 files changed, 7 insertions, 7 deletions
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)); |