Lines Matching refs:contextBuffer
33 void FreeContextBuffer(char *contextBuffer) in FreeContextBuffer() argument
35 if (contextBuffer != NULL) { in FreeContextBuffer()
36 (void)free(contextBuffer); in FreeContextBuffer()
45 char *contextBuffer = NULL; in GetFileContext() local
69 contextBuffer = (char *)malloc(statBuf.st_size + 1); in GetFileContext()
70 if (contextBuffer == NULL) { in GetFileContext()
77 FreeContextBuffer(contextBuffer); in GetFileContext()
80 size_t retFread = fread(contextBuffer, statBuf.st_size, 1, fp); in GetFileContext()
83 FreeContextBuffer(contextBuffer); in GetFileContext()
87 contextBuffer[statBuf.st_size] = '\0'; in GetFileContext()
90 *contextBufPtr = contextBuffer; in GetFileContext()
149 char *contextBuffer = NULL; in CheckRpcidFormat() local
152 if (GetFileContext(inputFile, &contextBuffer, &bufferLen)) { in CheckRpcidFormat()
160 rpcidHeader = (RPCIDHead *)contextBuffer; in CheckRpcidFormat()
176 *buffer = contextBuffer; in CheckRpcidFormat()