[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/1] Let's improve/fix ccty handling

From: Samuel Thibault
Subject: Re: [PATCH 0/1] Let's improve/fix ccty handling
Date: Mon, 17 Apr 2023 14:14:16 +0200
User-agent: NeoMutt/20170609 (1.8.3)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]