Sergey Bugaev, le sam. 15 avril 2023 19:17:17 +0300, a ecrit: > We should be probably using O_IGNORE_CTTY (which makes it not do that) > in more places where we expect to open a regular file, not a terminal. > But how do we do that, considering O_IGNORE_CTTY is Hurd-specific? We > could, for instance, do > > #ifndef O_IGNORE_CTTY > #define O_IGNORE_CTTY 0 > #endif > > in each .c file where we'd like to use it. Or maybe there's some > internal version of fcntl.h for the Linux port where we could just > > #define O_IGNORE_CTTY 0 > > without exposing it to user code?
You can add it to include/fcntl.h Samuel