mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dongsheng Song" <dongsheng.song@gmail.com>
To: "Michael Poole" <mdpoole@troilus.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: maybe headers(linux/aio.h) bug ?
Date: Fri, 13 Oct 2006 09:30:08 +0800	[thread overview]
Message-ID: <4b3406f0610121830v7d53007ck92e1010bc36f26bf@mail.gmail.com> (raw)
In-Reply-To: <87wt7567g9.fsf@graviton.dyn.troilus.org>

But the current C library's AIO support does not use Linux's AIO, if I
use Linux AIO, the only way is define my io_event, iocb, aio_context_t
types, isn't it ?


2006/10/12, Michael Poole <mdpoole@troilus.org>:
> Dongsheng Song writes:
>
> > Whenever I include linux aio header,  the compile errors occured:
> >
> > $  cat test.c
> > #include <linux/types.h>
> > #include <linux/unistd.h>
> > #include <linux/aio.h>
>
> Including kernel header files directly from userspace is not supported
> and is almost always (some just say "always") a very bad idea.  If you
> want to use the C library's AIO support, use its <aio.h> header.
>
> Michael Poole
>

  reply	other threads:[~2006-10-13  1:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 12:27 Dongsheng Song
2006-10-12 12:32 ` Michael Poole
2006-10-13  1:30   ` Dongsheng Song [this message]
2006-10-12 12:56 ` David Woodhouse

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=4b3406f0610121830v7d53007ck92e1010bc36f26bf@mail.gmail.com \
    --to=dongsheng.song@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mdpoole@troilus.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

all inboxes | Powered by JetHome®