Cygwin: Pass file paths instead of file descriptors over UNIX sockets
[lttng-ust.git] / tests / ust-multi-test / ust-multi-test.c
index f2deefa40158c0f7d78bbac18fe01e30b7605625..db62962689ae21f07a906011246ea04a01187083 100644 (file)
@@ -214,13 +214,17 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile)
        struct lttng_ust_lib_ring_buffer *buf;
        int outfd, ret;
        int *shm_fd, *wait_fd;
+       char *shm_path, *wait_pipe_path;
        uint64_t *memory_map_size;
 
        chan = shmp(handle, handle->chan);
 
        /* open stream */
        buf = channel_get_ring_buffer(&chan->backend.config,
-               chan, cpu, handle, &shm_fd, &wait_fd, &memory_map_size);
+                                     chan, cpu, handle,
+                                     &shm_fd, &shm_path,
+                                     &wait_fd, &wait_pipe_path,
+                                     &memory_map_size);
        if (!buf)
                return -ENOENT;
        ret = lib_ring_buffer_open_read(buf, handle, 1);
@@ -229,7 +233,7 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile)
        }
 
        /* copy */
-       outfd = open(outfile, O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC,
+       outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC,
                        S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
        if (outfd < 0) {
                perror("open output");
This page took 0.023585 seconds and 4 git commands to generate.