Home
last modified time | relevance | path

Searched refs:gMD (Results 1 – 18 of 18) sorted by relevance

/device/linaro/bootloader/edk2/StdLib/LibC/Main/
DMain.c37 struct __MainData *gMD; variable
54 if(gMD != NULL) { in exitCleanup()
55 gMD->ExitValue = (int)ExitVal; in exitCleanup()
56 CleanUp = gMD->cleanup; // Preserve the pointer to the Cleanup Function in exitCleanup()
59 i = gMD->num_atexit; in exitCleanup()
62 (gMD->atexit_handler[--i])(); in exitCleanup()
103 gMD->NCmdLine = (char *)AllocateZeroPool(nArgvSize+1); in ArgvConvert()
104 if(gMD->NCmdLine == NULL) { in ArgvConvert()
111 nArgv = gMD->NArgV; in ArgvConvert()
112 string = gMD->NCmdLine; in ArgvConvert()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
DEnvirons.c48 if (!gMD->aborting) { in abort()
49 gMD->aborting = TRUE; in abort()
51 if (gMD->cleanup != NULL) { in abort()
52 gMD->cleanup(); in abort()
73 if((handler != NULL) && (gMD->num_atexit < ATEXIT_MAX)) { in atexit()
74 gMD->atexit_handler[gMD->num_atexit++] = handler; in atexit()
119 gMD->ExitValue = status; // Save our exit status. Allows a status of 0. in _Exit()
120 …longjmp(gMD->MainExit, 0x55); // Get out of here. longjmp can't return 0. Use 0x55 for a non-… in _Exit()
154 (void)AsciiStrToUnicodeStr( string, gMD->UString); in system()
155 OpStat = ShellExecute( &MyHandle, gMD->UString, FALSE, NULL, &CmdStat); in system()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/InteractiveIO/
DIIO.c91 NumRead = This->InBuf->Copy(This->InBuf, gMD->UString2, (INT32)UNICODE_STRING_MAX-1); in IIO_Read()
92 gMD->UString2[NumRead] = 0; // Ensure that the buffer is terminated in IIO_Read()
94 XlateSz = EstimateWtoM((const wchar_t *)gMD->UString2, BufferSize, &Needed); in IIO_Read()
97 NumRead = wcstombs((char *)Buffer, (const wchar_t *)gMD->UString2, XlateSz); in IIO_Read()
209 NumProc = OutBuf->Copy(OutBuf, gMD->UString, UNICODE_STRING_MAX-1); in IIO_Write()
210 gMD->UString[NumProc] = 0; // Ensure that the buffer is terminated in IIO_Write()
214 NumProc = filp->f_ops->fo_write(filp, NULL, NumProc, gMD->UString); in IIO_Write()
221 MbcsPtr = (char *)gMD->UString2; in IIO_Write()
223 …NumProc = (ssize_t)EstimateWtoM((const wchar_t *)gMD->UString, UNICODE_STRING_MAX * sizeof(wchar_t… in IIO_Write()
227 NumProc = wcstombs(MbcsPtr, (const wchar_t *)gMD->UString, NumProc); in IIO_Write()
[all …]
DTerminalFunctions.c154 filp = &gMD->fdarray[fd]; in tcgetattr()
212 filp = &gMD->fdarray[fd]; in tcsetattr()
DCanonRead.c85 fpOut = &gMD->fdarray[STDOUT_FILENO]; in IIO_CanonRead()
DIIOutilities.c50 pfil = &gMD->fdarray[fd]; in IIO_GetDeviceProto()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/
DSysCalls.c62 filp = &gMD->fdarray[fd]; in ValidateFD()
90 Mfd = gMD->fdarray; in FindFreeFD()
110 gMD->fdarray[fd].f_iflags |= FIF_DELCLOSE; in DeleteOnClose()
135 Fp = &gMD->fdarray[fd]; in isatty()
160 FileOps = gMD->fdarray[fd].f_ops; in IsDupFd()
161 DevData = gMD->fdarray[fd].devdata; in IsDupFd()
165 if((gMD->fdarray[i].f_ops == FileOps) in IsDupFd()
166 &&(gMD->fdarray[i].devdata == DevData )) { in IsDupFd()
193 Fp = &gMD->fdarray[fd]; in _closeX()
260 Fp = &gMD->fdarray[fd]; in unlink()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Signal/
DSignal.c52 OldHandler = gMD->sigarray[sig]; in signal()
53 gMD->sigarray[sig] = func; in signal()
84 Handler = gMD->sigarray[sig]; in raise()
/device/linaro/bootloader/edk2/StdLib/LibC/Time/
DTime.c87 return gMD->ClocksPerSecond; in __getCPS()
543 ET = &gMD->TimeBuffer; in time()
544 BT = &gMD->BDTime; in time()
558 CalTime = mktime(&gMD->BDTime); in time()
584 retval = ((clock_t)((UINT32)temp)) - gMD->AppStartTime; in clock()
641 (void)snprintf(gMD->ASasctime, in asctime()
648 return gMD->ASasctime; in asctime()
710 gmtsub(timer, 0L, &gMD->BDTime); in gmtime()
711 return &gMD->BDTime; in gmtime()
763 localsub(timer, 0L, &gMD->BDTime); in localtime()
[all …]
DTimeEfi.c57 Efi2Tm( EfiBDtime, &gMD->BDTime); in Efi2Time()
59 return mktime( &gMD->BDTime); in Efi2Time()
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dsocket.c88 pDescriptor = &gMD->fdarray[ s ]; in BslFdToSocketProtocol()
144 pDescriptor = &gMD->fdarray[ FileDescriptor ]; in BslSocketProtocolToFd()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Console/
DdaConsole.c516 gMD->StdIo[Instance] = Stream; in da_ConOpen()
575 NumProc = OutBuf->Read(OutBuf, gMD->UString, UNICODE_STRING_MAX-1); in da_ConFlush()
577 gMD->UString[NumProc] = 0; // Ensure that the buffer is terminated in da_ConFlush()
585 (void) da_ConWrite(filp, NULL, NumProc, gMD->UString); in da_ConFlush()
624 gMD->StdIo[Stream->InstanceNum] = NULL; // Mark the stream as closed in da_ConClose()
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/
DMainData.h97 extern struct __MainData *gMD;
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
Dmakebuf.c91 gMD->cleanup = _cleanup; in __smakebuf()
Dsetvbuf.c176 gMD->cleanup = _cleanup; in setvbuf()
Dfindfp.c213 gMD->cleanup = _cleanup; /* conservative */ in __sinit()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/Utility/
DPath.c113 OldPath = AsciiStrToUnicodeStr(path, gMD->UString); in NormalizePath()
/device/linaro/bootloader/edk2/StdLib/LibC/Uefi/Devices/UefiShell/
DdaShell.c649 FileHandle = (SHELL_FILE_HANDLE)gMD->fdarray[OldFd].devdata; in da_ShellRename()