Lines Matching defs:tempdir
43 static char *tempdir = NULL;
63 * Choose the tempdir to use. We want something on tmpfs so that our memory is
64 * not subject to the host's vm.dirty_ratio. If a tempdir is specified in the
86 os_info("Checking environment variables for a tempdir...");
107 os_warn("Warning: tempdir %s is not on tmpfs\n", dir);
114 * Create an unlinked tempfile in a suitable tempdir. template must be the
122 if (tempdir == NULL) {
123 tempdir = choose_tempdir();
124 if (tempdir == NULL) {
125 os_warn("Failed to choose tempdir: %s\n",
132 fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700);
142 tempname = malloc(strlen(tempdir) + strlen(template) + 1);
146 strcpy(tempname, tempdir);
219 os_info("Checking PROT_EXEC mmap in %s...", tempdir);
225 os_warn("%s must be not mounted noexec\n", tempdir);