| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
fallback to f_type statfs struct field, since f_fstypename is not supported on the platform.
|
|
|
|
| |
Might not be available on Windows.
|
| |
|
|
|
|
|
|
|
|
|
| |
PATH_MAX isn't defined on GNU/Hurd. according to the porting guidelines
(https://www.gnu.org/software/hurd/hurd/porting/guidelines.html)
allocate a memory dynamically instead of relying on the length of
a string with PATH_MAX.
https://bugs.freedesktop.org/show_bug.cgi?id=97512
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Assuming that d_name is the last member of struct dirent.
In POSIX, the maximum length of d_name is defined as NAME_MAX
or FILENAME_MAX though, that assumption may be wrong on some
platforms where defines d_name as the flexible array member
and allocate the minimum memory to store d_name.
Patch from Raimund Steger
|
|
|
|
|
| |
In some platforms, d_name is defined as the flexible array member.
We may need to compute the real size for that case.
|
| |
|
|
|
|
|
| |
Use own scandir function. according to this change,
we don't need -Werror things in configure anymore.
|
|
|
|
| |
We should remove this alias mess.
|
|
|
|
| |
dirent
|
|
|
|
| |
https://bugs.freedesktop.org/show_bug.cgi?id=74602
|
|
|
|
|
|
|
| |
config.h is read from fcint.h now so having a line of the sort of #include "config.h"
is duplicate.
Bug 69833 - Incorrect SIZEOF_VOID_P and ALIGNOF_DOUBLE definitions causes nasty warnings on MacOSX when building fat libraries
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
ret won't be -1 if HAVE_STRUCT_DIRENT_D_TYPE isn't defined.
|
| |
|
| |
|
|
|
|
|
|
| |
It's introduced by 0ac6c98294d666762960824d39329459b22b48b7.
Use lstat() and S_ISDIR() to check if it's the directory or not
if there are no d_type in struct dirent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Windows does not update mtime of directory on FAT filesystem when
file is added to it or removed from it. Fontconfig uses mtime of
directory to check cache file aging and hence fails to detect
newly added or recently removed files.
This changeset detects FAT filesystem (currently implemented for
Linux) and adds generating checksum of directory entries instead
of using mtime which guarantees proper cache rebuild.
For non-FAT filesystems this patch adds single syscall per directory
which is negligeable overhead.
This fixes bug https://bugs.freedesktop.org/show_bug.cgi?id=25535
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
|
|
|
|
| |
just rework to share the efforts between FcIsFsMmapSafe() and FcIsFsMtimeBroken().
|
|
FcStat() logic is quite complicated in presence of various semi-broken operating
systems and filesystems, split it out in order to make it a bit easier.
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
|