From: Conrad Parker <conrad@metadecks.org>
To: linux-sh@vger.kernel.org
Subject: Re: O_DIRECT not found.
Date: Fri, 02 Apr 2010 02:35:05 +0000 [thread overview]
Message-ID: <l2udba6c0831004011935w2cde4148j9f7350430c5681a0@mail.gmail.com> (raw)
In-Reply-To: <201004011815.12072.fabio.giovagnini@aurion-tech.com>
On 2 April 2010 01:15, Fabio Giovagnini
<fabio.giovagnini@aurion-tech.com> wrote:
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <stdio.h> /* Standard input/output definitions */
> #include <string.h> /* String function definitions */
> #include <unistd.h> /* UNIX standard function definitions */
> #include <fcntl.h> /* File control definitions */
> #include <errno.h> /* Error number definitions */
> #include <termios.h>
>
> .
> .
> .
>
>
>
> 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 <fcntl.h>
from open(2):
O_DIRECT is not specified in POSIX; one has to define _GNU_SOURCE to get
its definition.
Conrad.
prev parent reply other threads:[~2010-04-02 2:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 16:15 O_DIRECT not found Fabio Giovagnini
2010-04-02 2:35 ` Conrad Parker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=l2udba6c0831004011935w2cde4148j9f7350430c5681a0@mail.gmail.com \
--to=conrad@metadecks.org \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).