summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library
Commit message (Collapse)AuthorAgeFilesLines
* Copy ShellPkg r14707 to UDK2010.SR1 Branch.vanjeff2013-09-25171-0/+73693
| | | | git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14724 6f19259b-4bc3-4df7-8a09-765794883524
* Delete old BaseTools, ShellPkg and ShellBinPkg from UDK2010.SR1 Branch.vanjeff2013-09-25157-70997/+0
| | | | git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14722 6f19259b-4bc3-4df7-8a09-765794883524
* Sync part of patches r14505, r14519 and r14558 from main trunk.vanjeff2013-09-1020-84/+39
| | | | | | | 1. Update all the code to consume the ConvertDevicePathToText, ConvertDevicePathNodeToText, ConvertTextToDevicePath and ConvertTextToDeviceNode APIs in DevicePathLib. 2. OvmfPkg: Use the new DevicePathLib for all platforms. git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2010.SR1@14643 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patch r14081 from main trunk.vanjeff2013-04-072-5/+36
| | | | | | Fixed some alignment faults in IPF platform. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14250 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patches part of r13859, r13885 and r13940 from main trunk.vanjeff2013-04-012-5/+5
| | | | | | | | | | | | 1. Fix a bug in PXE driver that the PXE boot do not restart if a new boot option on the different IP stack is selected. 2. Retrieve the IP information after iSCSI TCPv6 connection established and fill it into iBFT table. 3. Generate a random IAID for each NIC port to require different IPv6 address in PXE driver. 4. Update function EfiMtftp6Configure() and Mtftp6RrqHandleOack() to allocate at most one UdpIo. 5. Fix a typo from 'destory' to 'destroy' in network code. 6. Fix issue that ifconfig -c cannot clear IP address details. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14230 6f19259b-4bc3-4df7-8a09-765794883524
* Sync .uni file in patch r13786 from main trunk.vanjeff2013-01-051-0/+0
| | | | | | | UefiShellDriver1CommandsLib.uni : Fix 'drivers' command formatting when handle indexes have more than 2 characters. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14033 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patch r13786 from main trunk.vanjeff2013-01-055-121/+238
| | | | | | | | | | | | | | | | | 1) ShellPkg/Library/UefiHandleParsingLib a. UefiHandleParsingLib.c : ConvertHandleToHandleIndex() and ConvertHandleIndexToHandle() i. Update to work correctly when handles are destroyed due to driver disconnect operations. Same handle index is never reused. b. UefiHandleParsingLib.c : ParseHandleDatabaseByRelationshipWithType() and ParseHandleDatabaseForChildControllers() i. Expand to handle Service Binding Protocol usage such as Network stack. 2) ShellPkg/Library/UefiShellDriver1CommandsLib a. DevTree.c : Fix bug where the same handle is shown more than once. b. Dh.c : Fix use of GetDriverName() and GetDriverImageName(). The status returned must always be evaluated. c. Disconnect.c : Remove requirement that a handle being disconnected must support Device Path Protocol. This prevents driver model handles without device paths from being disconnected (i.e. Network Stack) d. OpenInfo.c : Fix bug when showing open info about a ControllerHandle that has been destroyed due to a disconnect or an unload operation. e. UefiShellDriver1CommandsLib.uni : Fix 'drivers' command formatting when handle indexes have more than 2 characters. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14032 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patch r13862 from main trunk.vanjeff2012-11-011-2/+2
| | | | | | Fix a bug that BCFG creates Key#### variable bigger than it should be. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13905 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patches r13659, r13678 and r13681 from main trunk.vanjeff2012-10-102-8/+28
| | | | | | | | | | | 1. Change the EFI_BOOT_KEY_DATA definition to use macro instead of bit fields. 2. Change the BDS module in IntelFrameworkModulePkg to use the new EFI_BOOT_KEY_DATA definition. 3. Change Bcfg.c to use the new definition of EFI_KEY_OPTION. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13816 6f19259b-4bc3-4df7-8a09-765794883524
* Copy EDKII trunk ShellPkg r13224 to UDK2010.SR1 Branch.vanjeff2012-06-01157-0/+70874
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13413 6f19259b-4bc3-4df7-8a09-765794883524
* Delete old ShellPkg from UDK2010.SR1 Branch.vanjeff2012-06-01159-69760/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13410 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patch r13095 from mail trunk.vanjeff2012-04-091-10/+30
| | | | | | Improve robustness when scanning PCI Option ROM. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13174 6f19259b-4bc3-4df7-8a09-765794883524
* Sync patches r12979 and r13025 from mail trunk.vanjeff2012-03-231-3/+3
| | | | | | | 1. Add Missing invocations to VA_END() for VA_START(). 2. Add a new macro VA_COPY for variable argument support. Fix a bug in the UefiLib instance that there is a non portable assumption that Marker is copied when passed to a function. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@13118 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Fix "-b" usage with timezone command.jcarsey2011-11-291-2/+2
| | | | | | | signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12799 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Fix handling of empty files in Hexeditjcarsey2011-11-291-1/+4
| | | | | | | | | Currently hexedit thinks all files that are non-existent (i.e. new) or empty must be a memory error since the pointer is checked, but the file size is not referenced. Signed-off-by: jcarsey Reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12797 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Correct incorrect use of sizeof to use macro for EFI_FILE_INFO size.jcarsey2011-11-181-3/+3
| | | | | | | | Signed-off-by: jcarsey Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12740 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Update the ‘for’ command to check number length correctly with ↵jcarsey2011-11-171-1/+1
| | | | | | | | | | | | | trailing spaces. This fix corrects the logic that checks number length such that is functions correctly without a trailing space. Signed-off-by: jcarsey Reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12736 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Update comments for functions to clarify buffer origin.darylm5032011-11-122-152/+159
| | | | | | | | | Signed-off-by: darylm503 Reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12687 6f19259b-4bc3-4df7-8a09-765794883524
* Shellpkg: Add support for filenames with spaces.jcarsey2011-11-111-1/+1
| | | | | | | | | | | This patch changes the file redirection support to allow for quote delimited filenames that contain spaces and updates the edit command to allow spaces in the filename. This also properly fails for attempts to redirect to "" (empty quotes). signed-off-by: jcarsey reviewed-by: jliu66 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12685 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: swap warm and cold to get the default correct for Reset command.jcarsey2011-11-011-6/+6
| | | | | | | sighed-off-by: jcarsey reviewed-by: gookboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12623 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a code typo.ydong102011-10-181-1/+1
| | | | | | Signed-off-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12543 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Add checking for memory allocation and pointer returns from functions.jcarsey2011-10-172-5/+14
| | | | | | | signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12542 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Add checking for memory allocation and pointer returns from functions.jcarsey2011-10-1411-143/+182
| | | | | | | signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12540 6f19259b-4bc3-4df7-8a09-765794883524
* SShellPkg: updating order of cast and addressing of a pointer (2 identical ↵jcarsey2011-10-131-2/+2
| | | | | | | | | | | places). GCC build didn't like the original version. sighed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12535 6f19259b-4bc3-4df7-8a09-765794883524
* Check the pointer before use it to avoid potential access violation.ydong102011-10-131-9/+4
| | | | | | | Signed-off-by: ydong10 Reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12533 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Add checks for NULL pointers. jcarsey2011-10-101-2/+2
| | | | | | | | | | This adds lots of pointer verification with ASSERTs only used when the condition should be impossible and never for memory allocation. signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12524 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Add checks for NULL pointers. jcarsey2011-10-107-19/+46
| | | | | | | | | This adds lots of pointer verification with ASSERTs only used when the condition should be impossible and never for memory allocation. signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12523 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Verify memory allocations without ASSERT.jcarsey2011-10-104-115/+160
| | | | | | | signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12522 6f19259b-4bc3-4df7-8a09-765794883524
* Add pointer check for NULL before dereference it.sfu52011-10-082-0/+6
| | | | | | | | | Signed-off-by: sfu5 Reviewed-by: xdu2 Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12514 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up the private GUID definition in module Level.lgao42011-09-2124-49/+33
| | | | | | | Signed-off-by: lgao4 Reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12394 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Verify DevicePathToText was successful before using the resultant ↵jcarsey2011-09-201-6/+13
| | | | | | | | | pointer. signed-off-by: jcarsey reviewed-by: darylm503 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12393 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: fix support for "\" (or "\.") meaning root of drive.jcarsey2011-09-203-12/+28
| | | | | | | | | | Cp command fixed to allow for copying single or multiple files to the root of the drive with destination directory \. Cd command fixed to allow for changing CWD to the root of the drive with destination directory \. signed-off-by: jcarsey reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12392 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Eliminate loss of high bits in return value from exit command on ↵jcarsey2011-09-153-7/+26
| | | | | | | | | | 64 bit platform. submitted-by: jcarsey reviewed-by: gookboy15a reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12356 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Add 3 missing function declaration comments and change a function ↵jcarsey2011-09-092-1/+32
| | | | | | | | | | static variable to a file global variable. Submitted-by: jcarsey Reviewed-by: geekboy15a Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12317 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: allow for mm command to properly write PCIe in non-interactive mode.jcarsey2011-09-081-19/+19
| | | | | | | | | | Submitted-by: jcarsey Reviewed-by: jljusten Reviewed-by: marothma git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12299 6f19259b-4bc3-4df7-8a09-765794883524
* Refine comments and two code style.ydong102011-09-0230-237/+240
| | | | | | Signed-off-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12263 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: fix ShellPrint-functions to allow for escape character to prevent ↵jcarsey2011-08-231-25/+33
| | | | | | | | | | | attribute changes. This allows for the editors to function easily. signed-off-by: jcarsey reviewed-by: kidzyoung git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12187 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: fix build error when converting INTN to INT32.jcarsey2011-08-231-1/+1
| | | | | | | signed-off-by: jcarsey Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12186 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: bug fix for edit search/replace functionjcarsey2011-08-101-13/+16
| | | | | | | | | * Fix the search bug: if word to be searched at the beginning of the line, it can not be found out. Signed-off-by: kidzyoung reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12116 6f19259b-4bc3-4df7-8a09-765794883524
* remove CatSPrint from ShellPkg.jcarsey2011-08-082-77/+0
| | | | | | | signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12100 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Added the Ctrl based hot key for hexeditjcarsey2011-08-032-10/+10
| | | | | | | | | | | * Add Ctrl based hotkey alternatives to function hotkeys. * Update help menu for hexedit. Signed-off-by: kidzyoung Reviewed-by: jljusten Reviewed-by: jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12082 6f19259b-4bc3-4df7-8a09-765794883524
* cleanup function and eliminate build error.jcarsey2011-08-011-6/+12
| | | | | | | submitted-by:jcarsey reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12069 6f19259b-4bc3-4df7-8a09-765794883524
* ShellPkg: Added the Ctrl based hot key and changed text editor's UI.jcarsey2011-07-2010-59/+361
| | | | | | | | | | | | | | | | * Add Ctrl-E hotkey for help * Add Ctrl based hotkey alternatives to function hotkeys * Don't show hotkey help on the main screen * Change the file buffer's row count for display to adjust the new screen format * Change the edit status bar location, the new edit status bar is in the last line * Change the location of the edit bar, the new edit input bar is in the last line Signed-off-by: kidzyoung reviewed-by: jcarsey reviewed-by: jljusten reviewed-by: jiang git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12036 6f19259b-4bc3-4df7-8a09-765794883524
* fix issue about slashes on end of comment line.jcarsey2011-07-111-1/+1
| | | | | | signed-off-by:jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12003 6f19259b-4bc3-4df7-8a09-765794883524
* Move the 2 functions associated with reading whole lines at a single time ↵jcarsey2011-07-062-151/+151
| | | | | | | | | from the shell command (internal) library to the ShellLib (external) library. signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12000 6f19259b-4bc3-4df7-8a09-765794883524
* This refactors 3 functions out of ShellCommandLib and puts them into a new ↵jcarsey2011-06-3012-119/+174
| | | | | | | | | | | | | | library (but as 2 functions instead of 3). This allows for users outside of the shell itself to have access to these functions. 1) Remove the 3 functions out of the shell's internal library (ShellCommandLib) 2) Add a new library class (PathLib) 3) Add an instance of this class (BasePathLib) 4) Change all internal shell callers to use this new library class. signed-off-by: jcarsey reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11936 6f19259b-4bc3-4df7-8a09-765794883524
* add fixes for code verification happyness.jcarsey2011-06-302-0/+9
| | | | | | | signed-off-by: jcarsey reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11935 6f19259b-4bc3-4df7-8a09-765794883524
* Clarify that the shared variables of the shell protocols are properly named.jcarsey2011-06-275-86/+64
| | | | | | | | | | | This removes the non-shared gEfiShellProtocol and gEfiShellParametersProtocol and renames the shared version to those names. This removes the m-versions of those protocol pointers. signed-off-by: jcarsey reviewed-by: darylm503 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11900 6f19259b-4bc3-4df7-8a09-765794883524
* replace protocol presence ASSERTs with error returns.jcarsey2011-06-271-72/+82
| | | | | | | signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11899 6f19259b-4bc3-4df7-8a09-765794883524
* replace assert with error.jcarsey2011-06-271-1/+4
| | | | | | | signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11897 6f19259b-4bc3-4df7-8a09-765794883524