Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portability documentation #3

Open
joeyh opened this issue Oct 19, 2015 · 1 comment
Open

portability documentation #3

joeyh opened this issue Oct 19, 2015 · 1 comment

Comments

@joeyh
Copy link

joeyh commented Oct 19, 2015

It would be good to mention just which OS's this is known to work on. The need for 64 bit values for modern disk sizes may be a complication for some OS's too, so it's probably worth a mention.

I've been maintaining similar portable code in git-annex, so I compared the two.

The OS's I'm confident disk-free-space works on, after testing: Linux, OSX, Windows, Debian kFreeBSD. Probably regular FreeBSD, but I don't know for sure. OpenBSD: Don't know.

@joeyh joeyh changed the title documentation portability documentation Oct 19, 2015
@redneb
Copy link
Owner

redneb commented Oct 20, 2015

I remember that before I released disk-free-space, I tested it on the following platforms: Linux (i386, x86_64, arm, ppc), OS X (don't remember the version, probably ~10.7), Windows XP 32 bit, FreeBSD 9.0 (i386). statvfs is a somewhat new function, but for example FreeBSD seems to support it since 5.0 which was released on January 2003. It also appears that it is supported by netbsd and solaris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants