From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NQJbO-00037O-L8 for mharc-grub-devel@gnu.org; Thu, 31 Dec 2009 06:54:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQJbN-00036w-Fn for grub-devel@gnu.org; Thu, 31 Dec 2009 06:54:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQJbJ-00035e-Ur for grub-devel@gnu.org; Thu, 31 Dec 2009 06:54:01 -0500 Received: from [199.232.76.173] (port=60241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQJbJ-00035X-Pd for grub-devel@gnu.org; Thu, 31 Dec 2009 06:53:57 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:45298) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQJbJ-0006Al-7M for grub-devel@gnu.org; Thu, 31 Dec 2009 06:53:57 -0500 Received: by bwz7 with SMTP id 7so8810233bwz.26 for ; Thu, 31 Dec 2009 03:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=x/FEGpIHo/Zovg24VVDNykaeBC4ZuAG3EpNmp1whK2E=; b=GmtYJxhcaJmSsJ0WTzKLXoORIOuuISRI6XoVV7fvPI7No7ZbQH9hyPS3UqsxtF1GRh EC1aUXzt4jJ6T89PL/pk4NbJP/CQVEBZyjUmYBrxPx9Gdwegyd8dI/Qz7Lj5SSHcES/K c0kI63/TAeUOfhoFi1Z9/H9NVhtb2dtLAbR8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=XOIgExDDJyHNnIohnMLwrX4UTqM9f6klqXOQMw3IV7eETqw8w8ZAQTLahs7flDs2/S 3f0cUT+DBzQk31x7LvIdfeSEpy4Qj3aYf2eOeq3fkVHyej8VAus7Cime4BhB2T9nA3s8 1GoMUQHMEYqTHpxv7drHM+Rw1bkA7iUjbSPsc= Received: by 10.204.48.146 with SMTP id r18mr909319bkf.61.1262260435704; Thu, 31 Dec 2009 03:53:55 -0800 (PST) Received: from debian.bg45.phnet (198-65.0-85.cust.bluewin.ch [85.0.65.198]) by mx.google.com with ESMTPS id 15sm4099003bwz.8.2009.12.31.03.53.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 31 Dec 2009 03:53:55 -0800 (PST) Message-ID: <4B3C90CA.1070707@gmail.com> Date: Thu, 31 Dec 2009 12:53:46 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <481407490912310251s38177937h9432a4e7b8615d8b@mail.gmail.com> In-Reply-To: <481407490912310251s38177937h9432a4e7b8615d8b@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig779FC6947E6AA30AF2AC7B77" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Need help in taking part in the development of GRUB... X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 11:54:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig779FC6947E6AA30AF2AC7B77 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Usman Ajmal wrote: > Hi all, > > I downloaded the Grub's code from here > .= > Then just for testing I put following lines of code in grub/main.c. > What I wanted is to have "#Here I come..." string appended at the end > of /boot/grub/menu.lst. But I got stuck while compiling the source > code. I don't know what have I missed... Grub Legacy is dead for us. GRUB2's source code is much easier to understand and contributions to it are actually useful. > > . > . > . > int main (int argc, char **argv) > { > /* My modification... */ > FILE * grubMenuFile; > grubMenuFile =3D fopen ("/boot/grub/menu.lst","w"); > if (grubMenuFile!=3DNULL) > { > fputs ("#Here I come...",grubMenuFile); > fclose (grubMenuFile); > } > > /* End-My modification... */ > You shouldn't use any stdio in grub (it works in grub-util but won't in grub on boot). Actually writing facilities in any grub are rudimentary by design to avoid any danger of filesystem corruption > > int c; > int hold =3D 0; > > /* First of all, call sync so that all in-core data is scheduled > to be > actually written to disks. This is very important because > GRUB does > not use ordinary stdio interface but raw devices. */ > sync (); > . > . > . > > > Then after saving main.c I configured the package and when i ran > 'make', I got: > > make all-recursive > make[1]: Entering directory `/home/toros/Desktop/grub-0.97' > Making all in netboot > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/netboot'= > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/netboot' > Making all in stage2 > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/stage2' > make all-am > make[3]: Entering directory `/home/toros/Desktop/grub-0.97/stage2' > make[3]: Nothing to be done for `all-am'. > make[3]: Leaving directory `/home/toros/Desktop/grub-0.97/stage2' > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/stage2' > Making all in stage1 > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/stage1' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/stage1' > Making all in lib > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/lib' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/lib' > Making all in grub > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/grub' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/grub' > Making all in util > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/util' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/util' > Making all in docs > make[2]: Entering directory `/home/toros/Desktop/grub-0.97/docs' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97/docs' > make[2]: Entering directory `/home/toros/Desktop/grub-0.97' > make[2]: Leaving directory `/home/toros/Desktop/grub-0.97' > make[1]: Leaving directory `/home/toros/Desktop/grub-0.97' > > =20 > -----------------------------------------------------------------------= - > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig779FC6947E6AA30AF2AC7B77 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAks8kNEACgkQNak7dOguQglQDwEAreH6AUa2G65TDFTg1ck/94hk 70BlPDMlHJ6Vm7SmfMcA/34yTnkSRPTOsz4kWUhZOiRIj1NdoLgnV/EDlunSO8WF =tjcX -----END PGP SIGNATURE----- --------------enig779FC6947E6AA30AF2AC7B77--