| www.delorie.com/djgpp/doc/libc-2.01/libc_313.html | search |
#include <fcntl.h>
unsigned _get_volume_info (const char *path,
int *max_file_len, int *max_path_len,
char *fsystype);
Description
This function returns filesystem information about the volume where
path resides. Only the root directory name part is actually used;
if path does not specify the drive explicitly, or is a NULL
pointer, the current drive is used. Upon return, the variable pointed
to by *max_file_len contains the maximum length of a filename
(including the terminating zero), the variable pointed to by
*max_path_len contains the maximum length of a pathname (including
the terminating zero), and a string that identifies the filesystem type
(e.g., "FAT", "NTFS" etc.) is placed into the buffer pointed to by
*fsystype, which should be long enough (32 bytes are usually
enough). If any of these pointers is a NULL pointer, it will be
ignored. The function returns various flags that describe features
supported by the given filesystem as a bit-mapped number. The following
bits are currently defined:
_FILESYS_CASE_SENSITIVE
_FILESYS_CASE_PRESERVED
_FILESYS_UNICODE
_FILESYS_LFN_SUPPORTED
_FILESYS_VOL_COMPRESSED
A combination of the above bits.
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |