From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/tests/myriadfs.cpp | 64 +++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'src/tests/myriadfs.cpp') diff --git a/src/tests/myriadfs.cpp b/src/tests/myriadfs.cpp index f57f02d..cb6c6c3 100644 --- a/src/tests/myriadfs.cpp +++ b/src/tests/myriadfs.cpp @@ -8,41 +8,41 @@ using namespace Bu; int main() { -// Bu::MemBuf mb; - Bu::File mb("store.myr", File::Read|File::Write|File::Create ); - Bu::MyriadFs mfs( mb, 512 ); +// Bu::MemBuf mb; + Bu::File mb("store.myr", File::Read|File::Write|File::Create ); + Bu::MyriadFs mfs( mb, 512 ); - sio << "Creating dirs..." << sio.nl; - mfs.create("/etc", Bu::MyriadFs::typeDir|0755 ); - mfs.create("/dev", Bu::MyriadFs::typeDir|0755 ); - mfs.create("/usr", Bu::MyriadFs::typeDir|0755 ); + sio << "Creating dirs..." << sio.nl; + mfs.create("/etc", Bu::MyriadFs::typeDir|0755 ); + mfs.create("/dev", Bu::MyriadFs::typeDir|0755 ); + mfs.create("/usr", Bu::MyriadFs::typeDir|0755 ); - mfs.create("/dev/null", Bu::MyriadFs::typeChrDev|0666, 1, 3 ); - mfs.create("/dev/zero", Bu::MyriadFs::typeChrDev|0666, 1, 5 ); - mfs.create("/dev/sda", Bu::MyriadFs::typeBlkDev|0660, 8, 0 ); + mfs.create("/dev/null", Bu::MyriadFs::typeChrDev|0666, 1, 3 ); + mfs.create("/dev/zero", Bu::MyriadFs::typeChrDev|0666, 1, 5 ); + mfs.create("/dev/sda", Bu::MyriadFs::typeBlkDev|0660, 8, 0 ); - sio << "Creating files..." << sio.nl; - { - Bu::MyriadStream ms = mfs.open("/hello", Bu::MyriadFs::Read ); - ms.write("world!"); - } - { - Bu::MyriadStream ms = mfs.open("/etc/hello", Bu::MyriadFs::Read ); - ms.write("world, again!"); - } + sio << "Creating files..." << sio.nl; + { + Bu::MyriadStream ms = mfs.open("/hello", Bu::MyriadFs::Read ); + ms.write("world!"); + } + { + Bu::MyriadStream ms = mfs.open("/etc/hello", Bu::MyriadFs::Read ); + ms.write("world, again!"); + } - sio << "Reading files..." << sio.nl; - { - Bu::MyriadStream ms = mfs.open("/hello", Bu::MyriadFs::Read ); - char buf[512]; - buf[ms.read( buf, 512 )] = '\0'; - sio << "read: '" << buf << "'" << sio.nl; - } - { - Bu::MyriadStream ms = mfs.open("/etc/hello", Bu::MyriadFs::Read ); - char buf[512]; - buf[ms.read( buf, 512 )] = '\0'; - sio << "read: '" << buf << "'" << sio.nl; - } + sio << "Reading files..." << sio.nl; + { + Bu::MyriadStream ms = mfs.open("/hello", Bu::MyriadFs::Read ); + char buf[512]; + buf[ms.read( buf, 512 )] = '\0'; + sio << "read: '" << buf << "'" << sio.nl; + } + { + Bu::MyriadStream ms = mfs.open("/etc/hello", Bu::MyriadFs::Read ); + char buf[512]; + buf[ms.read( buf, 512 )] = '\0'; + sio << "read: '" << buf << "'" << sio.nl; + } } -- cgit v1.2.3