[syslinux] fwrite?

Bryan.James.Krone-EXT at jci.com Bryan.James.Krone-EXT at jci.com
Mon Aug 1 10:29:08 PDT 2011


Is there a mechanism already in Syslinux that would count the number of 
reboot of an OS? I'm working with an embedded OS and I would like to 
reboot into another OS if the original fails to boot more than 10 times.

Thanks for responding to my earlier question.



From:
"Gert Hulselmans" <gerth at zytor.com>
To:
"For discussion of Syslinux and tftp-hpa" <syslinux at zytor.com>
Date:
08/01/2011 12:18 PM
Subject:
Re: [syslinux] fwrite?
Sent by:
syslinux-bounces at zytor.com



Bryan.James.Krone-EXT at jci.com wrote:
> Is there a known problem with fopen and/or fwrite in Syslinux? I'm 
trying
> to open a file to write data to but fopen( file_name, "w+" ) fails
> everytime. fopen( file_name, "r" ) works just fine.
>
> _______________________________________________
> Syslinux mailing list
> Submissions to Syslinux at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.
>
>

Writing to files isn't supported by Syslinux.

Don Hiatt ported the ext2fs lib to Syslinux:
http://syslinux.zytor.com/archives/2010-August/015154.html

As far as I know, it was never merged with the official Syslinux tree.

I found his git tree:
https://github.com/donhiatt/Syslinux-EXT2FS-Library-port/commits/ext2fslib

- Gert Hulselmans

_______________________________________________
Syslinux mailing list
Submissions to Syslinux at zytor.com
Unsubscribe or set options at:
http://www.zytor.com/mailman/listinfo/syslinux
Please do not send private replies to mailing list traffic.







More information about the Syslinux mailing list