aboutsummaryrefslogtreecommitdiff
path: root/win32/mntent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: changes to mntent implementationRon Yorston2021-06-271-49/+57
| | | | | | | | | | | | | | | | Make the structure returned by getmntent(3) static so it persists after endmntent(3) closes the stream. No current caller in the WIN32 port needs this functionality but it's good to match the documented behaviour. Populate more fields of the mntent structure in find_mount_point(). This is required to support the df -t and -T flags recently added upstream. The static structures used here are allocated on demand. Separate static structures are used in each case because df iterates through mounts calling statfs(2) on each and the WIN32 implementation of statfs(2) calls find_mount_point().
* df: display origin of mapped driveRon Yorston2019-04-011-1/+8
| | | | | | | | | | | | | | When a drive is mapped to a network share or a path display the mapping in the 'Filesystem' column of df's output. Since this changes the mnt_fsname field of the mntent structure a slight alteration is needed to print_all_cwd() in ash. Revert the change in commit a8c63f25b that enabled FEATURE_DF_FANCY in the default configuration. None of the additional options is very useful. See GitHub issue #164.
* win32: update implementation of setmntent(3)Ron Yorston2019-03-301-3/+4
| | | | | | | - The arguments to setmntent(3) are unused: add a macro to drop them at call sites. - Allow remote drives.
* win32: improve filesystem detection and displayRon Yorston2019-03-201-3/+6
| | | | | | | | | | Miscellaneous improvements: - Enable '-a' option to display all filesystems in df(1). - Detect the UDF CDROM filesystem and display it in 'stat -f'. - Let getmntent(3) handle CDROM and floppy devices, ignoring those that have no media. - Set number of inodes and filesystem flags to 0 in statfs(2).
* win32: reduce amount of static dataRon Yorston2018-03-041-20/+26
| | | | | | | It appears that uninitialised static variables are placed in the data section rather than bss, increasing the size of the binary. Rewrite some code to reduce the amount of static data.
* win32: silence some compiler warningsRon Yorston2015-07-151-6/+8
|
* win32: attempt to get filesystem type for mntentRon Yorston2014-10-061-1/+8
|
* Fix some compiler warningsRon Yorston2014-03-131-2/+3
|
* df: limited implementation for WIN32Ron Yorston2013-04-031-0/+59