Thanks everyone.
Turns out it's some problem with my setup that is affecting stdin and
stdout. I had no idea that could happen.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe in
On Sat, 21 Jul 2018 10:19:03 +0900
Takashi Yano wrote:
> What happens if you execute:
> rm /dev/stdin /dev/stdout
> ln -s /proc/self/fd/0 /dev/stdin
> ln -s /proc/self/fd/1 /dev/output
This is typo.
s/output/stdout/
--
Takashi Yano
--
Problem reports: http://cygwin.com/problems.html
FAQ
Am 21.07.2018 um 03:19 schrieb Takashi Yano:
On Fri, 20 Jul 2018 15:35:21 +0200
João Eiras wrote:
#include
#include
int main () {
int fd = open("/dev/stdout", O_WRONLY);
printf("Opened stdout: %d\n", fd);
return 0;
}
Unfortunately, this freezes. The problem (I think) is because
/dev/stdout is
On Fri, 20 Jul 2018 15:35:21 +0200
João Eiras wrote:
> #include
> #include
> int main () {
> int fd = open("/dev/stdout", O_WRONLY);
> printf("Opened stdout: %d\n", fd);
> return 0;
> }
>
> Unfortunately, this freezes. The problem (I think) is because
> /dev/stdout is a pipe, so the open() call
Hi.
On linux now and then I call a program passing "/dev/stdout" as output
file parameter, so the data is output in the terminal.
For instance, something tiny in C.
#include
#include
int main () {
int fd = open("/dev/stdout", O_WRONLY);
printf("Opened stdout: %d\n", fd);
return 0;
}
Unfortuna
5 matches
Mail list logo