ntdll: FILE_GetDeviceInfo no longer needs to be public.

This commit is contained in:
Alexandre Julliard 2006-11-03 15:20:21 +01:00
parent a68d293bae
commit 511e0bb671
2 changed files with 5 additions and 6 deletions

View File

@ -1617,8 +1617,8 @@ NTSTATUS WINAPI NtQueryAttributesFile( const OBJECT_ATTRIBUTES *attr, FILE_BASIC
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__APPLE__) #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__APPLE__)
/* helper for FILE_GetDeviceInfo to hide some platform differences in fstatfs */ /* helper for FILE_GetDeviceInfo to hide some platform differences in fstatfs */
static inline get_device_info_fstatfs( FILE_FS_DEVICE_INFORMATION *info, const char *fstypename, static inline void get_device_info_fstatfs( FILE_FS_DEVICE_INFORMATION *info, const char *fstypename,
size_t fstypesize, unsigned int flags ) size_t fstypesize, unsigned int flags )
{ {
if (!strncmp("cd9660", fstypename, fstypesize) || if (!strncmp("cd9660", fstypename, fstypesize) ||
!strncmp("udf", fstypename, fstypesize)) !strncmp("udf", fstypename, fstypesize))
@ -1652,11 +1652,11 @@ static inline get_device_info_fstatfs( FILE_FS_DEVICE_INFORMATION *info, const c
#endif #endif
/****************************************************************************** /******************************************************************************
* FILE_GetDeviceInfo * get_device_info
* *
* Implementation of the FileFsDeviceInformation query for NtQueryVolumeInformationFile. * Implementation of the FileFsDeviceInformation query for NtQueryVolumeInformationFile.
*/ */
NTSTATUS FILE_GetDeviceInfo( int fd, FILE_FS_DEVICE_INFORMATION *info ) static NTSTATUS get_device_info( int fd, FILE_FS_DEVICE_INFORMATION *info )
{ {
struct stat st; struct stat st;
@ -1873,7 +1873,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
{ {
FILE_FS_DEVICE_INFORMATION *info = buffer; FILE_FS_DEVICE_INFORMATION *info = buffer;
if ((io->u.Status = FILE_GetDeviceInfo( fd, info )) == STATUS_SUCCESS) if ((io->u.Status = get_device_info( fd, info )) == STATUS_SUCCESS)
io->Information = sizeof(*info); io->Information = sizeof(*info);
} }
break; break;

View File

@ -105,7 +105,6 @@ extern NTSTATUS TAPE_DeviceIoControl(HANDLE hDevice,
/* file I/O */ /* file I/O */
extern NTSTATUS FILE_GetNtStatus(void); extern NTSTATUS FILE_GetNtStatus(void);
extern NTSTATUS FILE_GetDeviceInfo( int fd, FILE_FS_DEVICE_INFORMATION *info );
extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name ); extern BOOL DIR_is_hidden_file( const UNICODE_STRING *name );
extern NTSTATUS DIR_unmount_device( HANDLE handle ); extern NTSTATUS DIR_unmount_device( HANDLE handle );
extern NTSTATUS DIR_get_unix_cwd( char **cwd ); extern NTSTATUS DIR_get_unix_cwd( char **cwd );