view modules/mountlist @ 40146:62fbdb07f551

mountlist: Use Linux code on Android. * lib/mountlist.c (setmntent, endmntent): Define fallbacks. (unescape_tab, read_file_system_list): Enable Linux code on Android as well. * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent and endmntent. * modules/mountlist (Depends-on): Add 'getline'.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 00:21:17 +0100
parents 18b690708865
children 878ddb87671b
line wrap: on
line source

Description:
Return list of mounted file systems.

Files:
lib/mountlist.h
lib/mountlist.c
m4/ls-mntd-fs.m4
m4/fstypename.m4
m4/mountlist.m4

Depends-on:
getline
stdbool
stdint
strstr-simple
xalloc

configure.ac:
gl_MOUNTLIST
if test $gl_cv_list_mounted_fs = yes; then
  AC_LIBOBJ([mountlist])
  gl_PREREQ_MOUNTLIST_EXTRA
fi

Makefile.am:

Include:
"mountlist.h"

License:
GPL

Maintainer:
Jim Meyering