Giter Club home page Giter Club logo

ttvfs's People

Contributors

compomega avatar fgenesis avatar glacjay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ttvfs's Issues

Thread safety

Hey.

So I am working with TinyThreads++ within my project and it will be vey easy to put it together with VFS. But, is thread-safety actually "implemented"? Like, if it was enabled, will it work? If not, then I will have to subclass most of the functions and manually implement lockign and unlocking...

Kind regards, Ingwie

Compiling issues on Windows

Hey.

I -finally- got to set up VisualC++ and a SSH server, so i can operate from my mac. So I went and tried to compile. It all went surprisingly well, except:

VFSFile.cpp(208) : error C2039: 'min' : is not a member of 'std'                                                                                                                                            
VFSFile.cpp(208) : error C2065: 'min' : undeclared identifier                                                                                                                                               
VFSFile.cpp(208) : error C2062: type 'unsigned int' unexpected                                                                                                                                              
VFSFile.cpp(219) : error C2039: 'min' : is not a member of 'std'                                                                                                                                            
VFSFile.cpp(219) : error C2065: 'min' : undeclared identifier                                                                                                                                               
VFSFile.cpp(219) : error C2062: type 'unsigned int' unexpected                                                                                                                                              

Can you work this out? o.o

Kind regards, Ingwie.

Large file support broken on 32-bit Linux

Hello. I've been packaging this library for Gentoo Linux (to use externally with Aquaria) and I've found that it fails to build in 32-bit when large file support is enabled. Note the -m32 flag here.

$ x86_64-pc-linux-gnu-g++ -m32 -DVFS_SUPPORT_ZIP -Dttvfs_EXPORTS  -DNDEBUG -fPIC   -o CMakeFiles/ttvfs.dir/VFSFileFuncs.cpp.o -c VFSFileFuncs.cpp
VFSFileFuncs.cpp: In function ‘void ttvfs::_dummy_()’:
VFSFileFuncs.cpp:17:34: error: duplicate case value
     switch(0) { case 0:; case 4: case sizeof(off_t): ; }
                                  ^
VFSFileFuncs.cpp:17:26: error: previously used here
     switch(0) { case 0:; case 4: case sizeof(off_t): ; }

I've found out why. You're including stdint.h before setting _FILE_OFFSET_BITS to 64. This triggers features.h to be loaded too soon and it doesn't set the magic __USE_FILE_OFFSET64 macro as a result. You'll need to rejig things a bit for this to work.

Reading a zip archive from a char[] buffer?

Hey!

I really like this project, because it has an extremely simple API to read and use files. Quite innovative is the mounting. :)

However, I have a question. I am currently trying to implement a way to store assets (images and stuff) into my executable, and reading from it. The actual data is stored inside a zip file - and that is then converted into a C file containing just a static char array, which in return results in the zip archive.

How can I make ttvfs read from such a buffer?

Kind regards, Ingwie!

API question

Hey.

So, I am working on this build system, and I need to implement a function to list all files by a pattern. I.e. src/*.cxx becomes a list of .cxx files in src (string vector, or list, most probably). So to do that, I need dirname() and basename(). And here come my questions:

1: Does TTVFS have these? And if yes, where?
2: What are the files needed to get these functions? Do I need the whole ttvfs/ folder?

Oh, and the buildtool in progress: http://github.com/IngwiePhoenix/IceTea
I am at the point where I am creating the commands. So I need all sorts of file-system APIs...

Kind regards, Ingwie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.