Lines Matching defs:core
51 /* AMR value the parent expects to read in the core file. */
54 /* IAMR value the parent expects to read in the core file. */
57 /* UAMOR value the parent expects to read in the core file. */
184 /* Make sure we're not using a stale core file. */
262 void *core;
285 printf("Child didn't dump core\n");
289 /* Construct array of core file names to try. */
297 ret = snprintf(filename[0], PATH_MAX, "core-pkey.%d", pid);
304 ret = snprintf(filename[1], PATH_MAX - ret - 1, "core.%d", pid);
309 filename[2] = "core";
318 printf("Couldn't find core file\n");
325 perror("Error opening core file");
330 core = mmap(NULL, core_size, PROT_READ, MAP_PRIVATE, fd, 0);
331 if (core == (void *) -1) {
332 perror("Error mmapping core file");
337 ret = check_core_file(info, core, core_size);
339 munmap(core, core_size);
384 /* Check whether we can predict the name of the core file. */
385 if (!strcmp(core_pattern, "core") || !strcmp(core_pattern, "core.%p"))
388 ret = write_core_pattern("core-pkey.%p");