Lines Matching refs:buffer

125 	const char* replacementSubPath, char*& buffer, size_t& bufferSize,
145 strlcpy(buffer, replacementSubPath,
150 strlcpy(buffer, ".", bufferSize);
158 memcpy(buffer, replacementSubPath, toCopy);
159 buffer[toCopy] = '\0';
161 buffer += toCopy;
182 char *buffer = path;
189 programPath, buffer, pathLength, status)
191 requestingObjectPath, buffer, pathLength, status)) {
201 char buffer[PATH_MAX];
203 false, buffer, PATH_MAX);
204 if (result == B_OK && strncmp(dir, buffer, dirLength) == 0) {
214 memcpy(buffer, dir, dirLength);
215 buffer[dirLength] = '/';
217 memcpy(buffer + dirLength + 1, abiSpecificSubDir, subDirLen - 1);
218 buffer[dirLength + subDirLen] = '/';
220 strcpy(buffer + dirLength + 1 + subDirLen, name);
237 char buffer[PATH_MAX];
242 status = _kern_read_link(-1, path, buffer, &length);
245 buffer[length] = '\0';
248 if (buffer[0] != '/' && lastSlash != NULL) {
250 strlcpy(lastSlash + 1, buffer, lastSlash + 1 - path + pathLength);
252 strlcpy(path, buffer, pathLength);
306 char buffer[PATH_MAX];
346 buffer, sizeof(buffer));
351 buffer, sizeof(buffer));
360 programPath, NULL, abiSpecificSubDir, buffer, sizeof(buffer));
366 TRACE(("runtime_loader: open_executable(%s): found at %s\n", name, buffer));
367 strlcpy(name, buffer, PATH_MAX);
399 char buffer[B_FILE_NAME_LENGTH];
421 length = _kern_read(fd, 0, buffer, sizeof(buffer));
427 status = elf_verify_header(buffer, length);
431 status = elf32_verify_header(buffer, length);
434 status = elf64_verify_header(buffer, length);
438 if (!strncmp(buffer, "#!", 2)) {
441 buffer[min_c((size_t)length, sizeof(buffer) - 1)] = '\0';
443 end = strchr(buffer, '\n');
451 strcpy(invoker, buffer + 2);
458 status = pe_verify_header(buffer, length);
466 elf_ehdr *elfHeader = (elf_ehdr *)buffer;
726 // buffer which the kernel just copied into user space without adjusting the
737 // That's basically: <new buffer address> - <old buffer address>.