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

Go to the source code of this file.

Functions

EFI_STATUS TouchFileByHandle (IN SHELL_FILE_HANDLE Handle)
 
EFI_STATUS DoTouchByHandle (IN CONST CHAR16 *Name, IN CHAR16 *FS, IN SHELL_FILE_HANDLE Handle, IN BOOLEAN Rec)
 
SHELL_STATUS EFIAPI ShellCommandRunTouch (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for Touch shell level 3 function.

(C) Copyright 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 Touch.c.

Function Documentation

◆ DoTouchByHandle()

EFI_STATUS DoTouchByHandle ( IN CONST CHAR16 *  Name,
IN CHAR16 *  FS,
IN SHELL_FILE_HANDLE  Handle,
IN BOOLEAN  Rec 
)

Touch a given file and potantially recurse down if it was a directory.

Parameters
[in]NameThe name of this file.
[in]FSThe name of the file system this file is on.
[in]HandleThe handle of this file already opened.
[in]RecTRUE to recurse if possible.
Return values
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_SUCCESSThe operation was successful.

Definition at line 62 of file Touch.c.

◆ ShellCommandRunTouch()

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

Function for 'touch' command.

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

Definition at line 163 of file Touch.c.

◆ TouchFileByHandle()

EFI_STATUS TouchFileByHandle ( IN SHELL_FILE_HANDLE  Handle)

Do the touch operation on a single handle.

Parameters
[in]HandleThe handle to update the date/time on.
Return values
EFI_ACCESS_DENIEDThe file referenced by Handle is read only.
EFI_SUCCESSThe operation was successful.

Definition at line 23 of file Touch.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ 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 150 of file Touch.c.