Lines Matching defs:tmppath
1611 char *tmppath = NULL;
1612 rc = asprintf (&tmppath, "%s/debuginfod.XXXXXX", tmpdir.c_str());
1614 throw libc_exception (ENOMEM, "cannot allocate tmppath");
1615 defer_dtor<void*,void> tmmpath_freer (tmppath, free);
1616 fd = mkstemp (tmppath);
1633 fdcache.intern (b_source, section, tmppath, data->d_size, true);
1919 char* tmppath = NULL;
1920 rc = asprintf (&tmppath, "%s/debuginfod.XXXXXX", tmpdir.c_str());
1922 throw libc_exception (ENOMEM, "cannot allocate tmppath");
1923 defer_dtor<void*,void> tmmpath_freer (tmppath, free);
1924 fd = mkstemp (tmppath);
1927 // NB: don't unlink (tmppath), as fdcache will take charge of it.
1934 unlink (tmppath);
1950 tmppath, archive_entry_size(e),
1960 tmppath, archive_entry_size(e),
3278 char* tmppath = NULL;
3279 rc = asprintf (&tmppath, "%s/debuginfod.XXXXXX", tmpdir.c_str());
3281 throw libc_exception (ENOMEM, "cannot allocate tmppath");
3282 defer_dtor<void*,void> tmmpath_freer (tmppath, free);
3283 int fd = mkstemp (tmppath);
3286 unlink (tmppath); // unlink now so OS will release the file as soon as we close the fd