We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduce code (writev.c):
#include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <sys/uio.h> main(void) { struct iovec iovec; int fd; fd = open("test.dat", O_CREAT | O_WRONLY | O_TRUNC, 0644); if (fd < 0) { perror("open"); exit(1); } iovec.iov_base = "abcd\n"; iovec.iov_len = 5; if (writev(fd, &iovec, 1) < 0) { perror("writev(1)"); close(fd); exit(1); } iovec.iov_base = "ef\n"; iovec.iov_len = 3; if (writev(fd, &iovec, 1) < 0) { perror("writev(2)"); close(fd); exit(1); } close(fd); exit(0); }
How to reproduce:
usa@METHUSS:~/tmp$ gcc writev.c usa@METHUSS:~/tmp$ ./a.out usa@METHUSS:~/tmp$ cat test.dat ef d
Expected result of cat test.dat:
cat test.dat
abcd ef
The text was updated successfully, but these errors were encountered:
I believe that this is the same root cause as #313 which as been fixed and will be in a Windows Insider build soon.
Thank you for the detailed repro steps, I've tried them locally on our development branch and verified that it now matches the expected.
Sorry, something went wrong.
thank you for reviewing. I'm looking forward to the fixed build :)
Looks to be fixed in 14361.
russ@DESKTOP-K1JHN54:/mnt/c/temp$ vi foo.c russ@DESKTOP-K1JHN54:/mnt/c/temp$ gcc foo.c russ@DESKTOP-K1JHN54:/mnt/c/temp$ ./a.out russ@DESKTOP-K1JHN54:/mnt/c/temp$ cat test.dat abcd ef
Thanks for the solid repro here.
No branches or pull requests
Reproduce code (writev.c):
How to reproduce:
Expected result of
cat test.dat
:The text was updated successfully, but these errors were encountered: