Lines Matching defs:dwnld_dir
301 if (ps->dwnld_dir) {
302 (void) rmdir(ps->dwnld_dir);
303 ps->dwnld_dir = NULL;
333 * dwnld_dir - Directory to download into
350 web_session_control(PKG_ERR *err, char *url, char *dwnld_dir,
373 if (dwnld_dir != NULL)
374 ps->dwnld_dir = xstrdup(dwnld_dir);
381 if (!check_dwnld_dir(err, dwnld_dir)) {
458 switch (web_get_file(err, dwnld_dir, nointeract, fname)) {
717 * dwnld_dir - name of directory to create
724 check_dwnld_dir(PKG_ERR *err, char *dwnld_dir)
732 if ((dirp = opendir(dwnld_dir)) == NULL) {
733 if (mkdir(dwnld_dir, 0744) == -1) {
735 dwnld_dir);
1740 if ((path = write_ca_file(err, ps->dwnld_dir, sec_cas,
2119 * dwnld_dir - Directory to download file into
2124 * fname - name of downloaded file link in the dwnld_dir
2134 web_get_file(PKG_ERR *err, char *dwnld_dir, int nointeract, char **fname)
2216 if ((ps->uniqfile = get_unique_filename(dwnld_dir,
2269 "%s/%sXXXXXX", dwnld_dir, "stream")) < 0) ||
2272 gettext(MSG_NOTEMP), dwnld_dir);
2301 if (!make_link(dwnld_dir, bname)) {
2303 dwnld_dir);
2313 if (!ck_dwnld_dir_space(err, dwnld_dir,
2396 if (!make_link(dwnld_dir, bname)) {
2398 dwnld_dir);
2422 * Arguments: dwnld_dir - directory in which downloaded file exists
2428 make_link(char *dwnld_dir, char *bname)
2435 dwnld_dir, bname)) < 0) ||
2626 ps->dwnld_dir = NULL;
2639 * dwnld_dir - Directory to check available space in
2642 * Returns : B_TRUE - enough space exists in dwnld_dir to hold
2646 ck_dwnld_dir_space(PKG_ERR *err, char *dwnld_dir, ulong_t bytes_needed)
2652 if (statvfs64(dwnld_dir, &status)) {
2653 pkgerr_add(err, PKGERR_WEB, gettext(ERR_TMPDIR), dwnld_dir);
2662 dwnld_dir,