Displaying 1 result from an estimated 1 matches for "mybuf".
Did you mean:
mbuf
2007 Apr 18
2
[Patch]: Drive/Partition and extensible filesystem support for syslinux
...t partition on the given partition descriptor
fs = libfat_open(syslinux_fs_partition_read_handle, (intptr_t) &dfd);
fd = fs->ops.open(fs, "MYFILE CFG", O_RDONLY);
// This will give you a open descriptor
// Now on, you can read files just like any other *nix file...! :)
read(fd, mybuf, 128); // read 128 bytes from file..
OR
you can use zlib funtionality of syslinux with:
gzFile gzf = gzdopen(fd, "r");
gzread(gzf, mybuffer, 128);
etc...
//After you are done, you can close the descriptor with
close(fd);
// FS can be closed with
libfat_close(fs);
One thing which i...