On 01/11/10 00:06, Xavier Chantry wrote:
On Sun, Oct 31, 2010 at 2:58 PM, Allan McRae<allan@archlinux.org> wrote:
On 31/10/10 22:53, Allan McRae wrote:
The helper function _alpm_mount_list provides a relatively portable interface to obtaining a list of mount pints on a system. This will be useful in checking for disk space availability when installing packages.
Signed-off-by: Allan McRae<allan@archlinux.org> ---
I have not tested the HAVE_GETMNTINFO path as that requires BSD4.4, OSX or NetBSD 3.0. However, it is taken from various example code on the internet so should work...
A slightly updated version following comments by Xavier is on my working branch (http://projects.archlinux.org/users/allan/pacman.git/log/?h=working).
Allan
If we agree on the #if defined .. #elif defined .. #endif , we should probably do it for the includes too.
Done.