audk/MdePkg/Include/Library
Laszlo Ersek 5dbc768f1c MdePkg/UefiLib: don't special-case EFI_FILE_MODE_CREATE in OpenMode
While reviewing the patch that would land as 768b611136
("MdePkg/UefiLib: introduce EfiOpenFileByDevicePath()", 2018-08-16), Ray
pointed out that distinguishing EFI_FILE_MODE_CREATE was wasteful. Per
spec, if the file to create exists, then EFI_FILE_MODE_CREATE is ignored
by EFI_FILE_PROTOCOL.Open(), and the existent file is opened.

Therefore we don't need an attempt to "open-but-not-create" first, and a
fallback to "open-and-create-too" second -- that behavior is internal to
EFI_FILE_PROTOCOL.Open(). Remove the special-casing of
EFI_FILE_MODE_CREATE.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Suggested-by: Ruiyu Ni <ruiyu.ni@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1074
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-08-22 10:31:47 +02:00
..
BaseLib.h MdePkg/BaseLib: Add bit field population calculating methods 2018-07-09 10:29:45 +08:00
BaseMemoryLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
CacheMaintenanceLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
CpuLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DebugLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DebugPrintErrorLevelLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DevicePathLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DxeCoreEntryPoint.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DxeServicesLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
DxeServicesTableLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ExtendedSalLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ExtractGuidedSectionLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
FileHandleLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
HobLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
HstiLib.h Add HSTI support. 2015-01-19 06:08:23 +00:00
IoLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
MemoryAllocationLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
OrderedCollectionLib.h MdePkg: introduce OrderedCollectionLib library class 2014-08-12 07:28:52 +00:00
PalLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PcdLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PciCf8Lib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PciExpressLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PciLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PciSegmentInfoLib.h MdePkg/PciSegmentInfoLib: Add PciSegmentInfoLib class and instance. 2017-08-28 16:47:04 +08:00
PciSegmentLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeCoffExtraActionLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeCoffGetEntryPointLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeCoffLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeiCoreEntryPoint.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeiServicesLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeiServicesTablePointerLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PeimEntryPoint.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PerformanceLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PostCodeLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
PrintLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ReportStatusCodeLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
ResourcePublicationLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
RngLib.h MdePkg: Create GetRandomNumber128 in RngLib 2015-10-09 06:03:17 +00:00
S3BootScriptLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
S3IoLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
S3PciLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
S3PciSegmentLib.h MdePkg/S3PciSegmentLib: Add S3PciSegmentLib class and instance. 2017-08-28 16:47:05 +08:00
S3SmbusLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
S3StallLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SafeIntLib.h MdePkg SafeIntLib: Update API definition to use the same output name 2018-02-01 09:24:49 +08:00
SalLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SerialPortLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SmbusLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SmiHandlerProfileLib.h MdePkg/SmiHandlerProfile: Add Context support in Unregister 2017-03-13 16:04:11 +08:00
SmmIoLib.h MdePkg/SmmIoLib: Add header file. 2017-04-26 09:22:17 +08:00
SmmLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SmmMemLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SmmPeriodicSmiLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SmmServicesTableLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
SynchronizationLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
TimerLib.h Add new API GetTimeInNanoSecond() to TimerLib to convert elapsed ticks to time in unit of nanoseconds. 2011-08-25 05:59:17 +00:00
UefiApplicationEntryPoint.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiBootServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiDecompressLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiDriverEntryPoint.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiLib.h MdePkg/UefiLib: don't special-case EFI_FILE_MODE_CREATE in OpenMode 2018-08-22 10:31:47 +02:00
UefiRuntimeLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiRuntimeServicesTableLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
UefiScsiLib.h MdePkg: Clean up source files 2018-06-28 11:19:47 +08:00
UefiUsbLib.h Update the copyright notice format 2010-04-23 15:46:20 +00:00