All of lore.kernel.org
 help / color / mirror / Atom feed
* Fopen in password.c
@ 2010-03-06 13:40 Eli
  2010-03-06 14:50 ` Colin Watson
  0 siblings, 1 reply; 2+ messages in thread
From: Eli @ 2010-03-06 13:40 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: Text/Plain, Size: 178 bytes --]

I want to open file in password.c by fopen command,
I add stdio.h to this file, But  grub does not  build and this error  become
apparent:
<Fopen in password is not defined>

[-- Attachment #1.2: Type: Text/HTML, Size: 1525 bytes --]

<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="IncrediMail 1.0">
<STYLE>
v\:* {behavior:url (#default#vml);}
</STYLE>

<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER>0.000000</X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style="MARGIN: 5px 10px 0px; FONT-FAMILY: Arial; FONT-SIZE: 12pt" background="" scroll=yes bgColor=#ffffff>
<TABLE id=INCREDIMAINTABLE border=0 cellSpacing=0 cellPadding=2 width="100%">
<TBODY>
<TR>
<TD style="POSITION: relative; DIRECTION: ltr; FONT-SIZE: 12pt" id=INCREDITEXTREGION width="100%">
<DIV style="PADDING-LEFT: 2px" id=INCREDI_TEXT_AREA>
<DIV>I want to open file in password.c by fopen command,<BR>I add stdio.h to this file, But&nbsp; grub does not&nbsp; build and this error&nbsp; become apparent:<BR>&lt;Fopen in password is not defined&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></DIV></TD></TR>
<TR>
<TD id=INCREDIFOOTER width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD width="100%"></TD>
<TD id=INCREDISOUND vAlign=bottom align=middle></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><SPAN id=IncrediStamp><A href="http://www.incredimail.com/?id=606430&amp;rui=124084639"><SPAN name="imgCache" border="0"><IMG border=0 alt="FREE Animations for your email - by IncrediMail! Click Here!" src="cid:CD2F46A0-1CDD-4762-9B50-8F507080D783"></SPAN></A></SPAN></BODY></HTML>

[-- Attachment #2: stampa_girl_line_en.gif --]
[-- Type: image/gif, Size: 46417 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fopen in password.c
  2010-03-06 13:40 Fopen in password.c Eli
@ 2010-03-06 14:50 ` Colin Watson
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Watson @ 2010-03-06 14:50 UTC (permalink / raw)
  To: The development of GNU GRUB

On Sat, Mar 06, 2010 at 05:10:26PM +0330, Eli wrote:
> I want to open file in password.c by fopen command,
> I add stdio.h to this file, But  grub does not  build and this error  become
> apparent:
> <Fopen in password is not defined>

commands/password.c does not run in a POSIX environment, and stdio is
not available to it.  You'll need to use GRUB's own file-handling
interfaces instead, such as grub_file_open.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-06 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-06 13:40 Fopen in password.c Eli
2010-03-06 14:50 ` Colin Watson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.