TianoCore EDK2 master
|
#include "UefiShellLevel2CommandsLib.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | ReplaceDriveWithCwd (IN OUT CHAR16 **FullPath, IN CONST CHAR16 *Cwd) |
BOOLEAN | IsCurrentFileSystem (IN CONST CHAR16 *FullPath, IN CONST CHAR16 *Cwd) |
EFI_STATUS | ExtractDriveAndPath (IN CONST CHAR16 *FullPath, OUT CHAR16 **Drive, OUT CHAR16 **Path) |
SHELL_STATUS EFIAPI | ShellCommandRunCd (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Main file for attrib shell level 2 function.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
Copyright (c) 2018, Dell Technologies. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Cd.c.
EFI_STATUS ExtractDriveAndPath | ( | IN CONST CHAR16 * | FullPath, |
OUT CHAR16 ** | Drive, | ||
OUT CHAR16 ** | Path | ||
) |
Extract drive string and path string from FullPath.
The caller must be free Drive and Path.
[in] | FullPath | A path to be extracted. |
[out] | Drive | Buffer to save drive identifier. |
[out] | Path | Buffer to save path. |
EFI_SUCCESS | Success. |
EFI_OUT_OF_RESOUCES | A memory allocation failed. |
EFI_STATUS ReplaceDriveWithCwd | ( | IN OUT CHAR16 ** | FullPath, |
IN CONST CHAR16 * | Cwd | ||
) |
Function will replace drive identifier with CWD.
If FullPath beginning with ':' is invalid path, then ASSERT. If FullPath not include drive identifier , then do nothing. If FullPath likes "fs0:\xx" or "fs0:/xx" , then do nothing. If FullPath likes "fs0:xxx" or "fs0:", the drive replaced by CWD.
[in,out] | FullPath | The pointer to the string containing the path. |
[in] | Cwd | Current directory. |
EFI_SUCCESS | Success. |
EFI_OUT_OF_SOURCES | A memory allocation failed. |
SHELL_STATUS EFIAPI ShellCommandRunCd | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |