SDL_filesystem (again)

Hello,

as I’ve stated a few weeks before, I’ve created a small library
of file I/O and filesystem access functions, temporarily named
SDL_filesystem. Currently it works only under Linux, because of my
inherent disgust for doing anything under Windows.

Could anyone be willing to help with this? I can set up
a Sourceforge project if there would be any interest. I’m still not
sure whether the whole thing is really usable, but it has some
interesting properties (like memory file mapping).

Have a nice day,

Jiri “BlueBear” Dluhos–

It is really quite easy to imagine a square yard of multidimensional
space, provided that you have seven brains.

                                      Prof. Abdullah Nightingale
                (Walter Moers: 13 1/2 lives of Captain Bluebear)

Jiri “BlueBear” Dluhos
Software Developer, HUMUSOFT s.r.o. (http://www.humusoft.com)
dluhos at humusoft dot com (office)
dluhosj at centrum dot cz (home)

Hi Jiri,

I’m interested in porting your library for windows.

I believe that there is a great need for such a library since
"stdio" doesn’t handle all the features of a modern a file system
(especialy directory management, file removing etc…).

Since multimedia applications may have that need,
I think this kind of library should have his place in SDL.
(What are your feelings about that, Sam ? :slight_smile:

What are the features of your library ?
Can you send me the source code or give me an URL ?

Thanks in advance.–

Xavier Le Pasteur
@Xavier_Le_Pasteur

Hello,

as I’ve stated a few weeks before, I’ve created a small library
of file I/O and filesystem access functions, temporarily named
SDL_filesystem. Currently it works only under Linux, because of my
inherent disgust for doing anything under Windows.

Could anyone be willing to help with this? I can set up
a Sourceforge project if there would be any interest. I’m still not
sure whether the whole thing is really usable, but it has some
interesting properties (like memory file mapping).

Have a nice day,

Jiri “BlueBear” Dluhos

It is really quite easy to imagine a square yard of multidimensional
space, provided that you have seven brains.

                                      Prof. Abdullah Nightingale
                (Walter Moers: 13 1/2 lives of Captain Bluebear)

Jiri “BlueBear” Dluhos
Software Developer, HUMUSOFT s.r.o. (http://www.humusoft.com)
dluhos at humusoft dot com (office)
dluhosj at centrum dot cz (home)

I’d like to see where you’re going with this.

For my money, opendir(…), closedir(…), readdir(…), etc… work
well for dir access. For my own projects, I’ve wound up simply porting
that interface to win32 (it was very simple really). And I’ve done a
half-assed version of glob(…) as well.

On a higher level, I’ve created an incredibly simple library for locating
conf/media/user files (as on win32 they’re usually stored in the app’s
directory and on *nix they’re in /etc, /var/share, /home/, etc…).
If you’re interested, have a look:
http://www.maccormack.net/~djm/libfnkdat/

What exactly does your library do? How is it related to SDL?

DaveOn Wed, 20 Jun 2001, Jiri Dluhos wrote:

Hello,

as I’ve stated a few weeks before, I’ve created a small library
of file I/O and filesystem access functions, temporarily named
SDL_filesystem. Currently it works only under Linux, because of my
inherent disgust for doing anything under Windows.

Could anyone be willing to help with this? I can set up
a Sourceforge project if there would be any interest. I’m still not
sure whether the whole thing is really usable, but it has some
interesting properties (like memory file mapping).

Have a nice day,

Jiri “BlueBear” Dluhos

David MacCormack
@David_MacCormack

David MacCormack wrote:

I’d like to see where you’re going with this.

Who knows? :o)

What exactly does your library do? How is it related to SDL?

Well… currently it does something like this…

  • Equivalents of libc functions, with some extensions (like symlink
    support, high precision time, path parsing, etc.)

  • Low-level file I/O

  • Memory file mapping

The following is planned so far (no guarantees, of course):

  • Filesystem handling (device querying and (un)mounting)

  • Access control (querying users, file owners, file accessibility)

? Pipe support ?

? Asynchronous file I/O ?

I repeat that I’m not sure it is useful. I’ve just decided to write it
and see what happens. :o)

The library is related to SDL in that it should be always compatible
with other SDL libraries. Also it uses the SDL coding style and defines.

Have a nice day, and lots of sunshine.

Jiri “BlueBear” Dluhos–

It is really quite easy to imagine a square yard of multidimensional
space, provided that you have seven brains.

                                      Prof. Abdullah Nightingale
                (Walter Moers: 13 1/2 lives of Captain Bluebear)

Jiri “BlueBear” Dluhos
Software Developer, HUMUSOFT s.r.o. (http://www.humusoft.com)
dluhos at humusoft dot com (office)
dluhosj at centrum dot cz (home)