From: Mathieu Desnoyers Date: Tue, 21 Feb 2012 16:40:57 +0000 (-0500) Subject: Remove O_LARGEFILE from tests X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=1abcee5dc89230e8f9dca4b961e978fe6ac44954 Remove O_LARGEFILE from tests commit 5cd198029b32a694091328e73035dcf8bc26045e upstream. Not portable. Signed-off-by: Mathieu Desnoyers Signed-off-by: Christian Babeux --- diff --git a/tests/ust-basic-tracing/ust-basic-tracing.c b/tests/ust-basic-tracing/ust-basic-tracing.c index 57c025ee..e704af1f 100644 --- a/tests/ust-basic-tracing/ust-basic-tracing.c +++ b/tests/ust-basic-tracing/ust-basic-tracing.c @@ -222,7 +222,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"); diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index f2deefa4..bea01b16 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -229,7 +229,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");