| www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/posix/sys/stat/fstat.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/Update copyright message and white space changes.
Check that 0x71A6 call is supported by checking that AX does not contain 0x7100. If not supported ignore. Set CF before calling 0x71A6 function.
Whitespace changes.
Whitespace changes.
Fix typo again.
Fix typos.
Various small fixes to avoid warnings with gcc-4.0 and gcc-4.1. It would have be nice to commit this in smaller pieces, but it would require too much work. Patch from Markus F.X.J. Oberhumer <markus@oberhumer.com> (http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2006/06/12/06:28:05)
Use __tb_size instead of _go32_info_block.size_of_transfer_buffer.
When fstat can't generate an inode number, make it invent one using the filename from fd_props, so that it always generates the same one. This fixes the bug where multiple calls for a file descriptor would return different inodes each time.
Use stat on directories, since we don't have a DOS handle for the directory, but do have a filename.
Use _DEV_* constants from <libc/getdinfo.h>, rather than hard-coding values.
Use <libc/fsexthlp.h> wrapper functions, to allow passing of a variable number of args rather than a va_list to an FSEXT function.
v2.03 update. Contents of rev 1.5 and 1.6 without symlinks
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.
Convert to use of _os_trueversion
Add support for lfn or pre-opened device handles under Win NT/2K/XP. Fstat will now show as generic device instead of failing.
Call 7143 for all LFN systems. This fixes problems with write bit in st_mode. From Andrew Cottrell <acottrel@ihug.com.au>.
Function fstat() updated to recognize symlinks.
import djgpp 2.02
import djgpp 2.01
import djgpp 2.00
| webmaster | delorie software privacy |
| Copyright © 2024 by DJ Delorie | Updated Apr 2024 |