Message ID | 20230415161718.80668-1-bugaevc@gmail.com |
---|---|
Headers | show |
Series | Let's improve/fix ccty handling | expand |
Sergey Bugaev, le sam. 15 avril 2023 19:17:17 +0300, a ecrit: > Do I understand it right that this hooks system is libc-internal? -- > or can user programs add their own functions to the hooks? I don't think it was meant to be used by user programs. Samuel
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