[pacman-dev] [PATCH] Add function to list mount points

Xavier Chantry chantry.xavier at gmail.com
Sun Oct 31 10:06:47 EDT 2010


On Sun, Oct 31, 2010 at 2:58 PM, Allan McRae <allan at 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 at 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.


More information about the pacman-dev mailing list