On Thu, Sep 01, 2011 at 09:10:24PM +0300, Michael S. Tsirkin wrote: > Do we really have to hand-craft file reading? > How large is TPMPROP_TPM_MAX_NV_SPACE? > If not too large, we can just allocate that > and do a single fread call? > > Or, we rely on glib now - can we use > g_io_channel_read_to_end () or something like that?
Or scanf 'a' conversion - it seems to be a gnu extension but we rely on gcc anyway.