smb_query_information2.c revision 1fcced4c370617db71610fecffd5451a5894ca5e
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* SMB: query_information2
*
* This SMB is gets information about the file represented by Fid.
*
* Client Request Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 2
* USHORT Fid; File handle
* USHORT ByteCount; Count of data bytes = 0
*
* Server Response Description
* ================================== =================================
*
* UCHAR WordCount; Count of parameter words = 11
* SMB_DATE CreationDate;
* SMB_TIME CreationTime;
* SMB_DATE LastAccessDate;
* SMB_TIME LastAccessTime;
* SMB_DATE LastWriteDate;
* SMB_TIME LastWriteTime;
* ULONG FileDataSize; File end of data
* ULONG FileAllocationSize; File allocation size
* USHORT FileAttributes;
* USHORT ByteCount; Count of data bytes; min = 0
*
* The file being interrogated is specified by Fid, which must possess at
* least read permission.
*
* FileAttributes are described in the "File Attribute Encoding" section
* elsewhere in this document.
*/
#include <smbsrv/smb_incl.h>
{
int rc;
}
void
{
}
{
int rc;
return (SDRC_ERROR);
}
11, 0, 0, 0, 0, 0, 0, 0);
}
return (SDRC_ERROR);
}
11, /* wct */
/* LastAccessTime */
/* LastWriteTime */
0); /* bcc */
}