Skip to contentSkip to conversation

Fopen in password.c

DISCUSSION Eli 2 participants 2 messages Mar 6, 2010

lore
Share & tools
lore

Eli

author
#0 lore raw

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>

#1 lore raw
Quoted 4 lines · Eli

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.

Signature · 1 line
Colin Watson                                       [[email protected]]