Code Monkey home page Code Monkey logo

Comments (6)

M66B avatar M66B commented on June 18, 2024

The problem seems to be caused by exceptions. Exception are thrown, but not catched within the Freetz architecture. The above error is caused by an exception because a to be created file does not yet exists (get_fileinfo).

Is is possible to rewrite the code in such a way that exceptions are not used anymore? (making the code more portable in general)

from s3fslite.

russross avatar russross commented on June 18, 2024

I have changed the two bzero calls to be memset calls, and included unistd.h in common.cpp as you requested. Changes are in the main line; the v1.0 tag is not affected.

from s3fslite.

russross avatar russross commented on June 18, 2024

Eliminating the use of exceptions will take a bit of work. I use them in a fairly simple way, so they could be replaced with setjmp and longjmp; would that help? I'm not familiar with Freetz and so I do not know what restrictions it imposes. setjmp/longjmp are standard C rather than C++, so I'm guessing they have a better chance of being compatible.

I should have some time this summer to look into it more.

from s3fslite.

M66B avatar M66B commented on June 18, 2024

Thank you for the changes!

I have one other request: getline without eof doesn't work on the Freetz platform. Can you change that too? (two times, one time for reading the password file and one time for reading the mime types)

getline(passwd, line).eof()

About the exceptions: I have patched v1.0 to use no exceptions, so maybe you can use this patch (http://trac.freetz.org/attachment/ticket/796/s3fslite_noex.4.patch). It patches v1.0 to the version for the changes of today, including bset to memset and getline with eof. But beware, the location of the two files in /etc are patched to another location too!

A new downloadable release would be welcome, because git is not integrated in the build process of Freetz.

Finally I have to say that your code is well written!

from s3fslite.

M66B avatar M66B commented on June 18, 2024

Freetz now supports exceptions with a patch, so removing the exceptions is not necessary anymore (nice if problems solve themselves ;-) ).

However, a fix for the eof would still be nice and a more recent version to download too.

from s3fslite.

russross avatar russross commented on June 18, 2024

I've made some additional improvements in directory handling as well, so I'll probably mark a v1.1 release soon.

from s3fslite.

Related Issues (10)

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.