/** @file\r
Provides interface to EFI_FILE_HANDLE functionality.\r
\r
- Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#define _FILE_HANDLE_LIBRARY_HEADER_\r
\r
#include <Protocol/SimpleFileSystem.h>\r
+#include <Guid/FileInfo.h>\r
\r
/// The tag for use in identifying UNICODE files.\r
/// If the file is UNICODE, the first 16 bits of the file will equal this value.\r
has the effect of starting the read process of the directory entries over again.\r
\r
@param[in] FileHandle The file handle on which the position is being set.\r
- @param[in] Position The byte position from the begining of the file.\r
+ @param[in] Position The byte position from the beginning of the file.\r
\r
- @retval EFI_SUCCESS The operation completed sucessfully.\r
+ @retval EFI_SUCCESS The operation completed successfully.\r
@retval EFI_UNSUPPORTED The request for non-zero is not valid on\r
directories.\r
@retval INVALID_PARAMETER One of the parameters has an invalid value.\r
if FileHandle is a directory.\r
\r
@param[in] FileHandle The open file handle on which to get the position.\r
- @param[out] Position The byte position from begining of file.\r
+ @param[out] Position The byte position from beginning of file.\r
\r
@retval EFI_SUCCESS The operation completed successfully.\r
@retval INVALID_PARAMETER One of the parameters has an invalid value.\r
@param[in] FileHandle The file handle from which size is retrieved.\r
@param[out] Size The pointer to size.\r
\r
- @retval EFI_SUCCESS Operation was completed sucessfully.\r
+ @retval EFI_SUCCESS Operation was completed successfully.\r
@retval EFI_DEVICE_ERROR Cannot access the file.\r
@retval EFI_INVALID_PARAMETER FileHandle is NULL.\r
Size is NULL.\r
\r
/**\r
Function to get a full filename given a EFI_FILE_HANDLE somewhere lower on the\r
- directory 'stack'.\r
+ directory 'stack'. If the file is a directory, then append the '\' char at the \r
+ end of name string. If it's not a directory, then the last '\' should not be \r
+ added.\r
\r
@param[in] Handle Handle to the Directory or File to create path to.\r
@param[out] FullFileName Pointer to pointer to generated full file name. It\r
\r
If the position upon start is 0, then the Ascii Boolean will be set. This should be\r
maintained and not changed for all operations with the same file.\r
+ The function will not return the \r and \n character in buffer. When an empty line is\r
+ read a CHAR_NULL character will be returned in buffer.\r
\r
@param[in] Handle FileHandle to read from.\r
@param[in, out] Buffer The pointer to buffer to read into.\r