[physfs] Wishlist

Indy Sams indy at driftsolutions.com
Wed Jan 27 19:28:12 EST 2010

Hello Christoph,

	Sorry, I uploaded it here so you should be able to grab it now: http://www.titus-dev.com/physfs-stat.zip

	My implementation was pretty much as you described below, my struct is:

typedef struct
	unsigned char is_dir, is_symlink;//these could be turned into file mode flags (writable, etc.), but was all I needed
	PHYSFS_sint64 size;
	PHYSFS_sint64 atime;
	PHYSFS_sint64 mtime;
	PHYSFS_sint64 ctime;
} PHYSFS_Stat;

and function:

int PHYSFS_stat(const char *fname, PHYSFS_Stat * st);

Returning 0 on success or -1 on failure as per regular stat().

Wednesday, January 27, 2010, 6:02:40 PM, you wrote:

CN> Hi,

CN> Indy Sams schrieb:
>> Hello,

>>       Sure, I attached it to this email. It is based on 1.1.1 so just extract this file: http://icculus.org/physfs/downloads/physfs-1.1.1.tar.gz
CN> there was no attachment, perhaps they are not permitted on this ML or 
CN> you forgot it.

>>       Then extract the ZIP over it. I only did the "dir" archiver on Win32 & Posix (since it was all I needed on the project I used it with), but it worked great and I didn't come across any problems with it
CN> I think, that's not the way developers like to get patches sent it. I 
CN> glanced over the archivers and platforms (there are essentially posix,
CN> windows, pocketpc & os/2 as seen in 
CN> http://hg.icculus.org/icculus/physfs/file/7bd933e66d8d/src/physfs_platforms.h)
CN> and except for OS/2 all other have already the necessary functions. Does
CN> anybody know any good online OS/2 reference?

CN> I think i can send a patch for review till sunday.

CN> How about a struct like the standard stat struct:
CN> struct stat {
CN> filesize,
CN> lastmodtime,
CN> filetype,
CN> writeable
CN> };

CN> and PHYSFS_stat(struct *stat)?

CN> or
CN> PHYSFS_getFileInfo(*size, *type, *modtime,*writeable) passing in 
CN> non-null pointers for value which shall be retrieved?

CN> Regards
CN> Christoph

CN> _______________________________________________
CN> physfs mailing list
CN> physfs at icculus.org
CN> http://icculus.org/mailman/listinfo/physfs

Best regards,
 Indy Sams
 mailto:indy at driftsolutions.com

 P.S. This is what part of the alphabet would look like if Q & R were eliminated.

More information about the physfs mailing list