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

Go to the source code of this file.

Functions

SHELL_STATUS EFIAPI ShellCommandRunAttrib (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST CHAR16 AllFiles [] = L"*"
 
STATIC CONST SHELL_PARAM_ITEM AttribParamList []
 

Detailed Description

Main file for attrib shell level 2 function.

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

Definition in file Attrib.c.

Function Documentation

◆ ShellCommandRunAttrib()

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

Function for 'attrib' command.

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

Definition at line 34 of file Attrib.c.

Variable Documentation

◆ AllFiles

STATIC CONST CHAR16 AllFiles[] = L"*"

Definition at line 12 of file Attrib.c.

◆ AttribParamList

STATIC CONST SHELL_PARAM_ITEM AttribParamList[]
Initial value:
= {
{ L"-a", TypeFlag },
{ L"+a", TypeFlag },
{ L"-s", TypeFlag },
{ L"+s", TypeFlag },
{ L"-h", TypeFlag },
{ L"+h", TypeFlag },
{ L"-r", TypeFlag },
{ L"+r", 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 14 of file Attrib.c.