bfsList()
PROTOTYPE
#include <bfs.h>
int bfsList(void);
DESCRIPTION
bfsList() prints a list of all volume files to stdout. If successful, bfsList() returns 0. Otherwise, it set errno and returns -1.
ERROR CODES
| EMFILE | A file is open or a fatal error has occurred. |
EXAMPLE
/*-------------------------------------------------------------------*/
/* Every so often list the files. */
/*-------------------------------------------------------------------*/
if ((i % 100) == 0)
bfsList();
Example Output:
bfs/boot.bin 65567 bytes
bfs/file1 12538743 bytes
BFS free blocks: 1 boot/252 other