TianoCore EDK2 master
Loading...
Searching...
No Matches
Type.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS TypeFileByHandle (IN SHELL_FILE_HANDLE Handle, IN BOOLEAN Ascii, IN BOOLEAN UCS2)
 
SHELL_STATUS EFIAPI ShellCommandRunType (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for Type shell level 3 function.

(C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Type.c.

Function Documentation

◆ ShellCommandRunType()

SHELL_STATUS EFIAPI ShellCommandRunType ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'type' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 174 of file Type.c.

◆ TypeFileByHandle()

EFI_STATUS TypeFileByHandle ( IN SHELL_FILE_HANDLE  Handle,
IN BOOLEAN  Ascii,
IN BOOLEAN  UCS2 
)

Display a single file to StdOut.

If both Ascii and UCS2 are FALSE attempt to discover the file type.

Parameters
[in]HandleThe handle to the file to display.
[in]AsciiTRUE to force ASCII, FALSE othewise.
[in]UCS2TRUE to force UCS2, FALSE othewise.
Return values
EFI_OUT_OF_RESOURCESA memory allocation failed.
EFI_SUCCESSThe operation was successful.

Definition at line 27 of file Type.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-a", TypeFlag },
{ L"-u", TypeFlag },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 160 of file Type.c.