C++ Logo


Advanced search

Re: [std-proposals] A standard way to redirect all standard output

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 13 Mar 2023 18:42:29 +0000
On Monday, March 13, 2023, Arthur O'Dwyer
> `printf` will use `write(1,...)` internally, and so will `std::cout`.

That's what I thought too, but it doesn't. I need all three modifications
in my aforementioned program, so maybe printf and cout go straight to an
x86 syscall instruction. (I ran objdump on my binary and I could see some
inline x86 syscall instructions).

I had considered intercepting sysall's, but it's not as simple as I first

Received on 2023-03-13 18:42:31