From mboxrd@z Thu Jan 1 00:00:00 1970 From: Conrad Parker Date: Fri, 02 Apr 2010 02:35:05 +0000 Subject: Re: O_DIRECT not found. Message-Id: List-Id: References: <201004011815.12072.fabio.giovagnini@aurion-tech.com> In-Reply-To: <201004011815.12072.fabio.giovagnini@aurion-tech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org On 2 April 2010 01:15, Fabio Giovagnini wrote: > #include > #include > #include /* Standard input/output definitions */ > #include /* String function definitions */ > #include /* UNIX standard function definitions */ > #include /* File control definitions */ > #include /* Error number definitions */ > #include > > . > . > . > > > > rs485TxEn_fd = open("/proc/mlcdports/rs485txen",O_WRONLY | O_NDELAY | > O_DIRECT); > > . > . > . > > Why I cannot find the flag O_DIRECT You'd need to #define _GNU_SOURCE before including from open(2): O_DIRECT is not specified in POSIX; one has to define _GNU_SOURCE to get its definition. Conrad.