[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Fwd: envlist_setenv...
From: |
陳韋任 |
Subject: |
Re: [Qemu-devel] Fwd: envlist_setenv... |
Date: |
Wed, 18 Jan 2012 15:48:51 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
> What does this loop in main?
>
> for (wrk = environ; *wrk != NULL; wrk++) {
> (void) envlist_setenv(envlist, *wrk);
> }
You can check envlist.[ch] first. I think what the loop does is copying host
environ (user environment. HOME, SHELL, PATH...etc) to struct envlist
(envlist.c).
Latter on, QEMU calls function envlist_to_environ to transform envlist to target
environ which is used by the guest application.
HTH,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj