]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Protocol/EfiShell.h
fixed license header / copyright date on all files.
[mirror_edk2.git] / ShellPkg / Include / Protocol / EfiShell.h
index f67ab82e5beb76b9e1ad347a1a1e393d9a22b3ce..fd9064fe68f750e82abc649d707fb18dfd585222 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   EFI Shell protocol as defined in the UEFI Shell 2.0 specification including errata.\r
-  \r
-  Copyright (c) 2006 - 2009, Intel Corporation                                                         \r
-  All rights reserved. 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
-  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  Copyright (c) 2006 - 2010, 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
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -50,11 +50,11 @@ BOOLEAN
 /**\r
   Closes the file handle.\r
 \r
-  This function closes a specified file handle. All 'dirty' cached file data is \r
-  flushed to the device, and the file is closed. In all cases, the handle is \r
+  This function closes a specified file handle. All 'dirty' cached file data is\r
+  flushed to the device, and the file is closed. In all cases, the handle is\r
   closed.\r
 \r
-  @param[in] FileHandle         The file handle to be closed\r
+  @param[in] FileHandle         The file handle to be closed.\r
 \r
   @retval EFI_SUCCESS           The file closed sucessfully.\r
 **/\r
@@ -70,22 +70,22 @@ EFI_STATUS
   This function creates an empty new file or directory with the specified attributes and\r
   returns the new file's handle. If the file already exists and is read-only, then\r
   EFI_INVALID_PARAMETER will be returned.\r
-  \r
+\r
   If the file already existed, it is truncated and its attributes updated. If the file is\r
   created successfully, the FileHandle is the file's handle, else, the FileHandle is NULL.\r
-  \r
+\r
   If the file name begins with >v, then the file handle which is returned refers to the\r
   shell environment variable with the specified name. If the shell environment variable\r
   already exists and is non-volatile then EFI_INVALID_PARAMETER is returned.\r
 \r
-  @param[in] FileName           Pointer to null-terminated file path.\r
+  @param[in] FileName           Pointer to NULL-terminated file path.\r
   @param[in] FileAttribs        The new file's attrbiutes.  the different attributes are\r
                                 described in EFI_FILE_PROTOCOL.Open().\r
   @param[out] FileHandle        On return, points to the created file handle or directory's handle\r
 \r
   @retval EFI_SUCCESS           The file was opened.  FileHandle points to the new file's handle.\r
   @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value.\r
-  @retval EFI_UNSUPPORTED       could not open the file path\r
+  @retval EFI_UNSUPPORTED       The file path could not be opened.\r
   @retval EFI_NOT_FOUND         The specified file could not be found on the device, or could not\r
                                 file the file system on the device.\r
   @retval EFI_NO_MEDIA          The device has no medium.\r
@@ -117,7 +117,7 @@ EFI_STATUS
 \r
   @param[in] FileHandle           The file handle to delete.\r
 \r
-  @retval EFI_SUCCESS             The file was closed and deleted, and the handle was closed.\r
+  @retval EFI_SUCCESS             The file was closed and deleted and the handle was closed.\r
   @retval EFI_WARN_DELETE_FAILURE The handle was closed but the file was not deleted.\r
 **/\r
 typedef\r
@@ -131,9 +131,9 @@ EFI_STATUS
 \r
   This function deletes a file.\r
 \r
-  @param[in] FileName             Points to the null-terminated file name.\r
+  @param[in] FileName             Points to the NULL-terminated file name.\r
 \r
-  @retval EFI_SUCCESS             The file was closed and deleted, and the handle was closed.\r
+  @retval EFI_SUCCESS             The file was deleted.\r
   @retval EFI_WARN_DELETE_FAILURE The handle was closed but the file was not deleted.\r
 **/\r
 typedef\r
@@ -148,8 +148,8 @@ EFI_STATUS
 typedef\r
 VOID\r
 (EFIAPI *EFI_SHELL_DISABLE_PAGE_BREAK) (\r
-VOID\r
-);\r
+  VOID\r
+  );\r
 \r
 /**\r
   Enables the page break output mode.\r
@@ -157,8 +157,8 @@ VOID
 typedef\r
 VOID\r
 (EFIAPI *EFI_SHELL_ENABLE_PAGE_BREAK) (\r
-VOID\r
-);\r
+  VOID\r
+  );\r
 \r
 /**\r
   Execute the command line.\r
@@ -166,26 +166,26 @@ VOID
   This function creates a nested instance of the shell and executes the specified\r
   command (CommandLine) with the specified environment (Environment). Upon return,\r
   the status code returned by the specified command is placed in StatusCode.\r
-  \r
+\r
   If Environment is NULL, then the current environment is used and all changes made\r
   by the commands executed will be reflected in the current environment. If the\r
   Environment is non-NULL, then the changes made will be discarded.\r
-  \r
+\r
   The CommandLine is executed from the current working directory on the current\r
   device.\r
 \r
-  @param[in] ParentImageHandle  A handle of the image that is executing the specified \r
-                                command line.  \r
-  @param[in] CommandLine        Points to the null-terminated UCS-2 encoded string \r
+  @param[in] ParentImageHandle  A handle of the image that is executing the specified\r
+                                command line.\r
+  @param[in] CommandLine        Points to the NULL-terminated UCS-2 encoded string\r
                                 containing the command line. If NULL then the command-\r
                                 line will be empty.\r
-  @param[in] Environment        Points to a null-terminated array of environment \r
-                                variables with the format 'x=y', where x is the \r
+  @param[in] Environment        Points to a NULL-terminated array of environment\r
+                                variables with the format 'x=y', where x is the\r
                                 environment variable name and y is the value. If this\r
                                 is NULL, then the current shell environment is used.\r
   @param[out] ErrorCode         Points to the status code returned by the command.\r
 \r
-  @retval EFI_SUCCESS           The command executed successfully. The  status code \r
+  @retval EFI_SUCCESS           The command executed successfully. The  status code\r
                                 returned by the command is pointed to by StatusCode.\r
   @retval EFI_INVALID_PARAMETER The parameters are invalid.\r
   @retval EFI_OUT_OF_RESOURCES  Out of resources.\r
@@ -210,9 +210,9 @@ EFI_STATUS
   The files in the file list are not opened. The OpenMode field is set to 0 and the FileInfo\r
   field is set to NULL.\r
 \r
-  @param[in] FilePattern        Points to a null-terminated shell file path, including wildcards.\r
-  @param[out] FileList          On return, points to the start of a file list containing the names \r
-                                of all matching files or else points to NULL if no matching files \r
+  @param[in] FilePattern        Points to a NULL-terminated shell file path, including wildcards.\r
+  @param[out] FileList          On return, points to the start of a file list containing the names\r
+                                of all matching files or else points to NULL if no matching files\r
                                 were found.\r
 \r
   @retval EFI_SUCCESS           Files found.\r
@@ -232,7 +232,7 @@ EFI_STATUS
   Find all files in a specified directory.\r
 \r
   @param[in] FileDirHandle      Handle of the directory to search.\r
-  @param[out] FileList          On return, points to the list of files in the directory \r
+  @param[out] FileList          On return, points to the list of files in the directory\r
                                 or NULL if there are no files in the directory.\r
 \r
   @retval EFI_SUCCESS           File information was returned successfully.\r
@@ -249,10 +249,10 @@ OUT EFI_SHELL_FILE_INFO **FileList
 \r
 /**\r
   Flushes data back to a device.\r
-  \r
+\r
   This function flushes all modified data associated with a file to a device.\r
 \r
-  @param[in] FileHandle         The handle of the file to flush\r
+  @param[in] FileHandle         The handle of the file to flush.\r
 \r
   @retval EFI_SUCCESS           The data was flushed.\r
   @retval EFI_NO_MEDIA          The device has no medium.\r
@@ -270,12 +270,12 @@ EFI_STATUS
 \r
 /**\r
   Frees the file list.\r
-  \r
+\r
   This function cleans up the file list and any related data structures. It has no\r
   impact on the files themselves.\r
 \r
-  @param[in] FileList           The file list to free. Type EFI_SHELL_FILE_INFO is \r
-                                defined in OpenFileList()\r
+  @param[in] FileList           The file list to free. Type EFI_SHELL_FILE_INFO is\r
+                                defined in OpenFileList().\r
 \r
   @retval EFI_SUCCESS           Free the file list successfully.\r
 **/\r
@@ -293,9 +293,9 @@ EFI_STATUS
   FileSystemMapping. In both cases, the returned name includes the file system\r
   mapping (i.e. fs0:\current-dir).\r
 \r
-  @param[in] FileSystemMapping  A pointer to the file system mapping. If NULL, \r
+  @param[in] FileSystemMapping  A pointer to the file system mapping. If NULL,\r
                                 then the current working directory is returned.\r
-  \r
+\r
   @retval !=NULL                The current directory.\r
   @retval NULL                  Current directory does not exist.\r
 **/\r
@@ -327,13 +327,13 @@ typedef UINT32 EFI_SHELL_DEVICE_NAME_FLAGS;
   EFI_DEVICE_NAME_USE_COMPONENT_NAME will have higher priority.\r
 \r
   @param[in] DeviceHandle       The handle of the device.\r
-  @param[in] Flags              Determines the possible sources of component names. \r
-  @param[in] Language           A pointer to the language specified for the device \r
-                                name, in the same format as described in the UEFI \r
+  @param[in] Flags              Determines the possible sources of component names.\r
+  @param[in] Language           A pointer to the language specified for the device\r
+                                name, in the same format as described in the UEFI\r
                                 specification, Appendix M.\r
-  @param[out] BestDeviceName    On return, points to the callee-allocated null-\r
-                                terminated name of the device. If no device name \r
-                                could be found, points to NULL. The name must be \r
+  @param[out] BestDeviceName    On return, points to the callee-allocated NULL-\r
+                                terminated name of the device. If no device name\r
+                                could be found, points to NULL. The name must be\r
                                 freed by the caller...\r
 \r
   @retval EFI_SUCCESS           Get the name successfully.\r
@@ -355,10 +355,10 @@ EFI_STATUS
 \r
   @param[in] Mapping                A pointer to the mapping\r
 \r
-  @retval !=NULL                Pointer to the device path that corresponds to the \r
-                                device mapping. The returned pointer does not need \r
+  @retval !=NULL                Pointer to the device path that corresponds to the\r
+                                device mapping. The returned pointer does not need\r
                                 to be freed.\r
-  @retval NULL                  There is no device path associated with the \r
+  @retval NULL                  There is no device path associated with the\r
                                 specified mapping.\r
 **/\r
 typedef\r
@@ -375,7 +375,7 @@ CONST EFI_DEVICE_PATH_PROTOCOL *
 \r
   @param[in] Path               The pointer to the path.\r
 \r
-  @return                       The pointer of the file path. The file path is callee \r
+  @return                       The pointer of the file path. The file path is callee\r
                                 allocated and should be freed by the caller.\r
 **/\r
 typedef\r
@@ -385,28 +385,26 @@ EFI_DEVICE_PATH_PROTOCOL *
   );\r
 \r
 /**\r
-  This function updated with errata.\r
-\r
   Gets either a single or list of environment variables.\r
 \r
-  If name is not NULL then this function returns the current value of the specified \r
+  If name is not NULL then this function returns the current value of the specified\r
   environment variable.\r
 \r
-  If Name is NULL than a list of all environment variable names is returned.  Each a \r
+  If Name is NULL than a list of all environment variable names is returned.  Each a\r
   NULL terminated string with a double NULL terminating the list.\r
 \r
-  @param[in] Name               A pointer to the environment variable name.  If \r
-                                Name is NULL, then the function will return all \r
-                                of the defined shell environment variables.  In \r
-                                the case where multiple environment variables are \r
-                                being returned, each variable will be terminated by \r
-                                a NULL, and the list will be terminated by a double \r
+  @param[in] Name               A pointer to the environment variable name.  If\r
+                                Name is NULL, then the function will return all\r
+                                of the defined shell environment variables.  In\r
+                                the case where multiple environment variables are\r
+                                being returned, each variable will be terminated by\r
+                                a NULL, and the list will be terminated by a double\r
                                 NULL.\r
 \r
-  @return !=NULL                A pointer to the returned string.\r
+  @return                       A pointer to the returned string.\r
                                 The returned pointer does not need to be freed by the caller.\r
 \r
-  @retval NULL                  The environment variable doesn't exist or there are \r
+  @retval NULL                  The environment variable doesn't exist or there are\r
                                 no environment variables.\r
 **/\r
 typedef\r
@@ -423,8 +421,8 @@ CONST CHAR16 *
 \r
   @param[in] FileHandle         A File Handle.\r
 \r
-  @return !=NULL                Cannot get the file info.\r
-  @return NULL                  A pointer to a buffer with file information.\r
+  @retval NULL                  Cannot get the file info.\r
+  @return                       A pointer to a buffer with file information.\r
 **/\r
 typedef\r
 EFI_FILE_INFO *\r
@@ -439,9 +437,9 @@ EFI_FILE_INFO *
   the device path with the file-system mapping. If there are more than one application\r
   file system mappings, the one that most closely matches Path will be used.\r
 \r
-  @param[in] Path               The pointer to the device path\r
+  @param[in] Path               The pointer to the device path.\r
 \r
-  @return all                   The pointer of the null-terminated file path. The path \r
+  @return                       The pointer of the NULL-terminated file path. The path\r
                                 is callee-allocated and should be freed by the caller.\r
 **/\r
 typedef\r
@@ -458,7 +456,7 @@ CHAR16 *
   operation is not supported.\r
 \r
   @param[in] FileHandle         The file handle on which to get the current position.\r
-  @paramp[out] Position         Byte position from the start of the file.\r
+  @param[out] Position          Byte position from the start of the file.\r
 \r
   @retval EFI_SUCCESS           Data was accessed.\r
   @retval EFI_UNSUPPORTED       The request is not valid on open directories.\r
@@ -493,22 +491,22 @@ EFI_STATUS
 \r
   This function returns the help information for the specified command. The help text\r
   can be internal to the shell or can be from a UEFI Shell manual page.\r
-  \r
+\r
   If Sections is specified, then each section name listed will be compared in a casesensitive\r
   manner, to the section names described in Appendix B. If the section exists,\r
   it will be appended to the returned help text. If the section does not exist, no\r
   information will be returned. If Sections is NULL, then all help text information\r
   available will be returned.\r
 \r
-  @param[in] Command            Points to the null-terminated UEFI Shell command name.\r
-  @param[in] Sections           Points to the null-terminated comma-delimited \r
-                                section names to return. If NULL, then all \r
+  @param[in] Command            Points to the NULL-terminated UEFI Shell command name.\r
+  @param[in] Sections           Points to the NULL-terminated comma-delimited\r
+                                section names to return. If NULL, then all\r
                                 sections will be returned.\r
-  @param[out] HelpText          On return, points to a callee-allocated buffer \r
+  @param[out] HelpText          On return, points to a callee-allocated buffer\r
                                 containing all specified help text.\r
 \r
   @retval EFI_SUCCESS           The help text was returned.\r
-  @retval EFI_OUT_OF_RESOURCES  The necessary buffer could not be allocated to hold the \r
+  @retval EFI_OUT_OF_RESOURCES  The necessary buffer could not be allocated to hold the\r
                                 returned help text.\r
   @retval EFI_INVALID_PARAMETER HelpText is NULL.\r
   @retval EFI_NOT_FOUND         There is no help text available for Command.\r
@@ -522,8 +520,6 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  This funciton is updated with Errata.\r
-\r
   Gets the mapping(s) that most closely matches the device path.\r
 \r
   This function gets the mapping which corresponds to the device path *DevicePath. If\r
@@ -532,15 +528,15 @@ EFI_STATUS
   device path. If there is an exact match, the mapping is returned and *DevicePath\r
   points to the end-of-device-path node.\r
 \r
-  If there are multiple map names they will be semi-colon seperated in the \r
+  If there are multiple map names they will be semi-colon seperated in the\r
   NULL-terminated string.\r
 \r
-  @param[in,out] DevicePath     On entry, points to a device path pointer. On \r
-                                exit, updates the pointer to point to the \r
+  @param[in,out] DevicePath     On entry, points to a device path pointer. On\r
+                                exit, updates the pointer to point to the\r
                                 portion of the device path after the mapping.\r
 \r
   @retval NULL                  No mapping was found.\r
-  @retval !=NULL                Pointer to null-terminated mapping. The buffer \r
+  @retval !=NULL                Pointer to NULL-terminated mapping. The buffer\r
                                 is callee allocated and should be freed by the caller.\r
 **/\r
 typedef\r
@@ -582,34 +578,34 @@ VOID
 \r
   This function opens the specified file in the specified OpenMode and returns a file\r
   handle.\r
-  If the file name begins with >v, then the file handle which is returned refers to the\r
+  If the file name begins with '>v', then the file handle which is returned refers to the\r
   shell environment variable with the specified name. If the shell environment variable\r
   exists, is non-volatile and the OpenMode indicates EFI_FILE_MODE_WRITE, then\r
   EFI_INVALID_PARAMETER is returned.\r
 \r
-  If the file name is >i, then the file handle which is returned refers to the standard\r
+  If the file name is '>i', then the file handle which is returned refers to the standard\r
   input. If the OpenMode indicates EFI_FILE_MODE_WRITE, then EFI_INVALID_PARAMETER\r
   is returned.\r
 \r
-  If the file name is >o, then the file handle which is returned refers to the standard\r
+  If the file name is '>o', then the file handle which is returned refers to the standard\r
   output. If the OpenMode indicates EFI_FILE_MODE_READ, then EFI_INVALID_PARAMETER\r
   is returned.\r
 \r
-  If the file name is >e, then the file handle which is returned refers to the standard\r
+  If the file name is '>e', then the file handle which is returned refers to the standard\r
   error. If the OpenMode indicates EFI_FILE_MODE_READ, then EFI_INVALID_PARAMETER\r
   is returned.\r
 \r
-  If the file name is NUL, then the file handle that is returned refers to the standard NUL\r
+  If the file name is 'NUL', then the file handle that is returned refers to the standard NUL\r
   file. If the OpenMode indicates EFI_FILE_MODE_READ, then EFI_INVALID_PARAMETER is\r
   returned.\r
 \r
   If return EFI_SUCCESS, the FileHandle is the opened file's handle, else, the\r
   FileHandle is NULL.\r
 \r
-  @param[in] FileName           Points to the null-terminated UCS-2 encoded file name.\r
+  @param[in] FileName           Points to the NULL-terminated UCS-2 encoded file name.\r
   @param[out] FileHandle        On return, points to the file handle.\r
-  @param[in] OpenMode           File open mode. Either EFI_FILE_MODE_READ or \r
-                                EFI_FILE_MODE_WRITE from section 12.4 of the UEFI \r
+  @param[in] OpenMode           File open mode. Either EFI_FILE_MODE_READ or\r
+                                EFI_FILE_MODE_WRITE from section 12.4 of the UEFI\r
                                 Specification.\r
   @retval EFI_SUCCESS           The file was opened. FileHandle has the opened file's handle.\r
   @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value. FileHandle is NULL.\r
@@ -641,7 +637,7 @@ EFI_STATUS
   Opens the files that match the path specified.\r
 \r
   This function opens all of the files specified by Path. Wildcards are processed\r
-  according to the rules specified in UEFI Shell 2.0 spec section 3.7.1. Each \r
+  according to the rules specified in UEFI Shell 2.0 spec section 3.7.1. Each\r
   matching file has an EFI_SHELL_FILE_INFO structure created in a linked list.\r
 \r
   @param[in] Path               A pointer to the path string.\r
@@ -745,23 +741,18 @@ EFI_STATUS
   IN EFI_SHELL_FILE_INFO **FileList\r
   );\r
 \r
-//\r
-// The SetAlias and GetAlias functions were affected by errata.  \r
-// They are not UEFI Shell 2.0 (no errata) compliant.\r
-//\r
-\r
 /**\r
   Changes a shell command alias.\r
 \r
   This function creates an alias for a shell command.\r
 \r
-  @param[in] Command            Points to the null-terminated shell command or existing alias.\r
-  @param[in] Alias              Points to the null-terminated alias for the shell command. If this is NULL, and\r
+  @param[in] Command            Points to the NULL-terminated shell command or existing alias.\r
+  @param[in] Alias              Points to the NULL-terminated alias for the shell command. If this is NULL, and\r
                                 Command refers to an alias, that alias will be deleted.\r
   @param[in] Replace            If TRUE and the alias already exists, then the existing alias will be replaced. If\r
                                 FALSE and the alias already exists, then the existing alias is unchanged and\r
                                 EFI_ACCESS_DENIED is returned.\r
-  @param[in] Volatile           if TRUE the Alias being set will be stored in a volatile fashion.  if FALSE the \r
+  @param[in] Volatile           if TRUE the Alias being set will be stored in a volatile fashion.  if FALSE the\r
                                 Alias being set will be stored in a non-volatile fashion.\r
 \r
   @retval EFI_SUCCESS           Alias created or deleted successfully.\r
@@ -781,20 +772,20 @@ EFI_STATUS
   This function returns the command associated with a alias or a list of all\r
   alias'.\r
 \r
-  @param[in] Alias              Points to the null-terminated shell alias. \r
-                                If this parameter is NULL, then all \r
+  @param[in] Alias              Points to the NULL-terminated shell alias.\r
+                                If this parameter is NULL, then all\r
                                 aliases will be returned in ReturnedData.\r
   @param[out] Volatile          Upon return of a single command if TRUE indicates\r
                                 this is stored in a volatile fashion.  FALSE otherwise.\r
-  @return                              If Alias is not NULL, it will return a pointer to \r
-                                the null-terminated command for that alias. \r
-                                If Alias is NULL, ReturnedData points to a ';' \r
-                                delimited list of alias (e.g. \r
-                                ReturnedData = "dir;del;copy;mfp") that is null-terminated.  \r
+  @return                              If Alias is not NULL, it will return a pointer to\r
+                                the NULL-terminated command for that alias.\r
+                                If Alias is NULL, ReturnedData points to a ';'\r
+                                delimited list of alias (e.g.\r
+                                ReturnedData = "dir;del;copy;mfp") that is NULL-terminated.\r
   @retval NULL                  An error ocurred.\r
   @retval NULL                  Alias was not a valid Alias.\r
 **/\r
-typedef \r
+typedef\r
 CONST CHAR16 *\r
 (EFIAPI *EFI_SHELL_GET_ALIAS)(\r
   IN  CONST CHAR16 *Alias,\r
@@ -816,14 +807,14 @@ CONST CHAR16 *
   directory on the specified file system.\r
 \r
   If the current working directory or the current working file system is changed then the\r
-  %cwd% environment variable will be updated\r
+  %cwd% environment variable will be updated.\r
 \r
   @param[in] FileSystem         A pointer to the file system's mapped name. If NULL, then the current working\r
                                 directory is changed.\r
-  @param[in] Dir                Points to the null-terminated directory on the device specified by FileSystem.\r
+  @param[in] Dir                Points to the NULL-terminated directory on the device specified by FileSystem.\r
 \r
-  @return !=NULL                The current directory.\r
   @retval NULL                  Current directory does not exist.\r
+  @return                       The current directory.\r
 **/\r
 typedef\r
 EFI_STATUS\r
@@ -842,12 +833,12 @@ EFI_STATUS
   variable does not exist and the Value is an empty string, there is no action. If the\r
   environment variable does not exist and the Value is a non-empty string, then the\r
   environment variable is created and assigned the specified value.\r
-  \r
-  For a description of volatile and non-volatile environment variables, see UEFI Shell \r
+\r
+  For a description of volatile and non-volatile environment variables, see UEFI Shell\r
   2.0 specification section 3.6.1.\r
 \r
-  @param[in] Name               Points to the null-terminated environment variable name.\r
-  @param[in] Value              Points to the null-terminated environment variable value. If the value is an\r
+  @param[in] Name               Points to the NULL-terminated environment variable name.\r
+  @param[in] Value              Points to the NULL-terminated environment variable value. If the value is an\r
                                 empty string then the environment variable is deleted.\r
   @param[in] Volatile           Indicates whether the variable is non-volatile (FALSE) or volatile (TRUE).\r
 \r
@@ -864,9 +855,10 @@ EFI_STATUS
 /**\r
   Sets the file information to an opened file handle.\r
 \r
-  This function changes file information.\r
+  This function changes file information.  All file information in the EFI_FILE_INFO\r
+  struct will be updated to the passed in data.\r
 \r
-  @param[in] FileHandle         A file handle\r
+  @param[in] FileHandle         A file handle.\r
   @param[in] FileInfo           Points to new file information.\r
 \r
   @retval EFI_SUCCESS           The information was set.\r
@@ -912,7 +904,7 @@ EFI_STATUS
 \r
   @param[in] DevicePath         Points to the device path. If this is NULL and Mapping points to a valid mapping,\r
                                 then the mapping will be deleted.\r
-  @param[in] Mapping            Points to the null-terminated mapping for the device path.\r
+  @param[in] Mapping            Points to the NULL-terminated mapping for the device path.\r
 \r
   @retval EFI_SUCCESS           Mapping created or deleted successfully.\r
   @retval EFI_NO_MAPPING        There is no handle that corresponds exactly to DevicePath. See the\r