isatty what header to include

Viewed 66

All of the examples I see in manpages and online suggests <unistd.h>. CLion suggested the more c++ friendly <csignal>.

Looking into <csignal> on my g++ setup, I ended up in a rabbit hole and gave up in <c++config.h>.

If I want a c++ friendly/c++ adopted header. Which one should I use?

1 Answers

Random C headers/libraries might pose a problem interfacing with c++ code. In particular using keywords as names.

This is not the case with posix headers.

I'm using <unistd.h> in all my future cases.

Related