From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Chris Friesen <cfriesen@nortelnetworks.com>
Subject: Re: [uml-devel] Re: problems with UML, issues with includes
Date: Tue, 2 Mar 2004 19:06:20 +0100 [thread overview]
Message-ID: <200403021906.20474.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <4044A368.8050406@nortelnetworks.com>
Alle 16:08, martedì 2 marzo 2004, Chris Friesen ha scritto:
> Jeff Dike wrote:
>
> Maybe I'm just confused about how the various things get compiled. In a
> normal kernel build, including <linux/sched.h> gets you the kernel
> headers, not the libc headers.
> I had assumed that I would be able to get
> at the UML kernel's sched.h from within the arch/um code. Is this a
> false assumption? Or am I just doing it wrong?
Inside arch/um, there are some files which can include *only* the kernel
includes, and some files which can include *only* the libc includes;
os/file.c is of the second type. In the directory Makefile, the files listed
in USER_OBJS are of the second type:
USER_OBJS := $(foreach file,file.o process.o tty.o,$(obj)/$(file))
i.e. file.o is listed. Note this idiom:
USER_OBJS := $(filter %_user.o,$(obj-y) $(obj-m)) fd.o ...
the $(filter ) part means a "grep" for *_user.o: i.e. every file ending in
_user.c is compiled against libc headers.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-03-02 19:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-01 22:07 [uml-devel] problems with UML, issues with includes Chris Friesen
2004-03-02 1:00 ` [uml-devel] " Jeff Dike
2004-03-02 15:08 ` Chris Friesen
2004-03-02 18:06 ` BlaisorBlade [this message]
2004-03-02 20:54 ` Jeff Dike
2004-03-02 22:26 ` Chris Friesen
2004-03-02 23:22 ` Jeff Dike
2004-03-02 23:18 ` Chris Friesen
2004-03-02 23:37 ` [uml-devel] Re: problems with UML -- new data with memory debugging on Chris Friesen
2004-03-03 1:33 ` Jeff Dike
2004-03-03 16:49 ` Chris Friesen
2004-03-08 21:34 ` Jeff Dike
2004-03-08 21:08 ` Chris Friesen
2004-03-02 23:03 ` [uml-devel] Re: problems with UML, issues with includes Chris Friesen
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=200403021906.20474.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=cfriesen@nortelnetworks.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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