| www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/sys/stat/xstat.c | search |
To download the latest version of this file, click on most recent revision number, then use your browser's "save page as" feature.
Up to djgpp/src/libc/posix/sys/stat/Prevent bloat of programs that call 'mkdir' or use _djstat_flags. Patches from Ozkan Sezer <sezeroz@gmail.com>. Move _djstat_fail_bits and _djstat_flags out of xstat.c into is_exec.c so that, e.g. mkdir() doesn't pull in unnecessary dependencies such as ctime.o. Replace access() call in mkdir.c with a call to _chmod(). This loses the extra _fixpath()+remote rootdir check done by access(), but it shortens things greatly by not pulling in extra dependencies, and we also don't need those checks either.
Whitespace changes.
Update copyright message.
Pass zero based drive number to _is_remote_drive().
Whitespace changes.
Determine the st_blksize member of struct stat, rather than defaulting to the transfer buffer size. Cache the block size on a per-drive basis, to reduce the performance hit to only the first file accessed on that drive. Default the block size on floppies and network drives to avoid performance hit. Some tidy up for duplication of definitions that are in sys/stat.h. Also fix warnings in the test programs.
Added new function, lstat().
FAT32 support.
import djgpp 2.00
| webmaster | delorie software privacy |
| Copyright © 2024 by DJ Delorie | Updated Apr 2024 |