Lines Matching refs:buff
599 byte *buff = (byte*)malloc(length);
600 if (buff == 0) raise_syscall(taskData, "Unable to allocate buffer", NOMEMORY);
604 haveRead = getConsoleInput((char*)buff, length);
608 haveRead = read(fd, buff, length);
611 Handle result = SAVE(C_string_to_Poly(taskData, (char*)buff, haveRead));
612 free(buff);
615 free(buff);
1665 TempString buff((TCHAR*)malloc(space * sizeof(TCHAR)));
1666 if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
1667 if (GetCurrentDirectory(space, buff) == 0)
1669 return SAVE(C_string_to_Poly(taskData, buff));
1812 TempString buff((TCHAR*)malloc((dwSpace + 12)*sizeof(TCHAR)));
1813 if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
1814 if (GetTempPath(dwSpace, buff) == 0)
1816 lstrcat(buff, _T("MLTEMPXXXXXX"));
1820 TempString buff((TCHAR *)malloc(strlen(P_tmpdir) + strlen(template_subdir) + 1));
1821 if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
1822 strcpy(buff, P_tmpdir);
1825 TempString buff((TCHAR *)malloc(strlen(tmpdir) + strlen(template_subdir) + 1));
1826 if (buff == 0) raise_syscall(taskData, "Insufficient memory", NOMEMORY);
1827 strcpy(buff, tmpdir);
1829 strcat(buff, template_subdir);
1837 int fd = mkstemp(buff);
1843 if (_tmktemp(buff) == 0)
1845 int fd = _topen(buff, O_RDWR | O_CREAT | O_EXCL, 00600);
1849 Handle res = SAVE(C_string_to_Poly(taskData, buff));