Marcio Giaxa 52be7d7404 freebsd: fix flags for opening files
Prior to this fix, the compare-outputs test suite was showing a strange
behavior, the tests always stopped between tests 6-8 and had a stack track
similar to each other.

```
Test 8/68 compare-output multiple files with private function (ReleaseSmall)...OK
/usr/home/mgxm/dev/zig/zig-cache/source.zig:7:2: error: invalid token: '&'
}&(getStdOut() catch unreachable).outStream().stream;
 ^
The following command exited with error code 1:

```

With the wrong O_* flags, the source code was being written in append mode which
resulted in an invalid file

```zig
use @import("foo.zig");
use @import("bar.zig");

pub fn main() void {
	foo_function();
	bar_function();
}&(getStdOut() catch unreachable).outStream().stream;
	stdout.print("OK 2\n") catch unreachable;
}

fn privateFunction() void {
	printText();
}
```
2018-12-24 11:45:55 -02:00
..
2018-11-18 19:43:13 -05:00
2018-12-23 23:30:31 -02:00
2018-12-19 18:42:00 -02:00
2018-12-02 18:36:18 -05:00
2018-11-25 11:48:11 -05:00
2018-12-24 11:45:55 -02:00
2018-12-19 18:42:00 -02:00
2018-11-17 01:38:35 -05:00
2018-12-20 22:53:54 +09:00
2018-11-16 14:03:39 -05:00
2018-12-13 17:13:10 -05:00
2018-11-13 05:08:37 -08:00
2018-11-13 05:08:37 -08:00
2018-12-05 14:10:09 +01:00
2018-11-13 05:08:37 -08:00
2018-09-30 17:28:35 -04:00
2018-11-13 05:08:37 -08:00
2018-11-27 00:52:32 -05:00
2018-11-13 05:08:37 -08:00
2018-11-29 09:44:24 -05:00
2018-11-13 05:08:37 -08:00
2018-11-13 05:08:37 -08:00
2018-11-19 10:53:25 -05:00
2018-11-13 05:08:37 -08:00
2018-11-13 05:08:37 -08:00