Lines Matching defs:tempdir
21 static char *tempdir = NULL;
41 * Choose the tempdir to use. We want something on tmpfs so that our memory is
42 * not subject to the host's vm.dirty_ratio. If a tempdir is specified in the
64 os_info("Checking environment variables for a tempdir...");
85 os_warn("Warning: tempdir %s is not on tmpfs\n", dir);
92 * Create an unlinked tempfile in a suitable tempdir. template must be the
100 if (tempdir == NULL) {
101 tempdir = choose_tempdir();
102 if (tempdir == NULL) {
103 os_warn("Failed to choose tempdir: %s\n",
110 fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700);
120 tempname = malloc(strlen(tempdir) + strlen(template) + 1);
124 strcpy(tempname, tempdir);
197 os_info("Checking PROT_EXEC mmap in %s...", tempdir);
203 os_warn("%s must be not mounted noexec\n", tempdir);