|
@@ -208,15 +208,15 @@ void run_test_sender(uint32_t numots, uint32_t bitlength, snd_ot_flavor stype, r
|
|
|
|
|
|
|
|
|
|
|
|
- int fd = open("./y0", O_WRONLY, O_CREAT);
|
|
|
+ int fd = open("./y0", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes = write(fd, Y[0]->GetArr(), Y[0]->GetSize());
|
|
|
close(fd);
|
|
|
|
|
|
- int fd2 = open("./x0", O_WRONLY, O_CREAT);
|
|
|
+ int fd2 = open("./x0", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes2 = write(fd2, X0.GetArr(), X0.GetSize());
|
|
|
close(fd2);
|
|
|
|
|
|
- int fd3 = open("./gamma0", O_WRONLY, O_CREAT);
|
|
|
+ int fd3 = open("./gamma0", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes3 = write(fd3, response.GetArr(), response.GetSize());
|
|
|
close(fd3);
|
|
|
|
|
@@ -318,7 +318,7 @@ void run_test_receiver(uint32_t numots, uint32_t bitlength, snd_ot_flavor stype,
|
|
|
|
|
|
|
|
|
|
|
|
- int fd = open("./y1", O_WRONLY, O_CREAT);
|
|
|
+ int fd = open("./y1", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes = write(fd, Y[0]->GetArr(), Y[0]->GetSize());
|
|
|
|
|
|
#ifdef VERBOSE
|
|
@@ -327,12 +327,12 @@ void run_test_receiver(uint32_t numots, uint32_t bitlength, snd_ot_flavor stype,
|
|
|
|
|
|
close(fd);
|
|
|
|
|
|
- int fd2 = open("./x1", O_WRONLY, O_CREAT);
|
|
|
+ int fd2 = open("./x1", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes2 = write(fd2, X1.GetArr(), X1.GetSize());
|
|
|
|
|
|
close(fd2);
|
|
|
|
|
|
- int fd3 = open("./gamma1", O_WRONLY, O_CREAT);
|
|
|
+ int fd3 = open("./gamma1", O_CREAT | O_WRONLY | O_TRUNC, 0600);;
|
|
|
ssize_t bytes3 = write(fd3, response.GetArr(), response.GetSize());
|
|
|
|
|
|
close(fd3);
|