Home
last modified time | relevance | path

Searched refs:newpath (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-13-stable/crypto/heimdal/appl/ftp/ftpd/
HDpopen.c84 static char newpath[MaxPathLen]; in ftp_rooted() local
90 snprintf(newpath, sizeof(newpath), "%s/%s", home, path); in ftp_rooted()
91 if(access(newpath, X_OK)) in ftp_rooted()
92 strlcpy(newpath, path, sizeof(newpath)); in ftp_rooted()
93 return newpath; in ftp_rooted()
/freebsd-13-stable/contrib/subversion/subversion/libsvn_fs_util/
HDfs-util.c94 char *newpath; in svn_fs__canonicalize_abspath() local
114 newpath = apr_palloc(pool, path_len + 2); in svn_fs__canonicalize_abspath()
119 newpath[newpath_i++] = '/'; in svn_fs__canonicalize_abspath()
142 newpath[newpath_i++] = path[path_i]; in svn_fs__canonicalize_abspath()
147 if ((newpath[newpath_i - 1] == '/') && (newpath_i > 1)) in svn_fs__canonicalize_abspath()
148 newpath[newpath_i - 1] = '\0'; in svn_fs__canonicalize_abspath()
150 newpath[newpath_i] = '\0'; in svn_fs__canonicalize_abspath()
152 return newpath; in svn_fs__canonicalize_abspath()
/freebsd-13-stable/lib/libcam/
HDcamlib.c118 char *newpath; in cam_get_device() local
133 newpath = realpath(path, NULL); in cam_get_device()
134 if (newpath == NULL) in cam_get_device()
135 newpath = strdup(path); in cam_get_device()
136 if (newpath == NULL) in cam_get_device()
139 tmpstr = newpath; in cam_get_device()
155 free(newpath); in cam_get_device()
184 free(newpath); in cam_get_device()
196 free(newpath); in cam_get_device()
208 free(newpath); in cam_get_device()
[all …]
/freebsd-13-stable/sbin/kldconfig/
HDkldconfig.c123 char *newpath; in setpath() local
127 if ((newpath = qstring(pathq)) == NULL) { in setpath()
131 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) in setpath()
136 modpath = newpath; in setpath()
/freebsd-13-stable/crypto/openssl/crypto/conf/
HDconf_def.c734 char *newpath; in get_next_file() local
738 newpath = OPENSSL_zalloc(newlen); in get_next_file()
739 if (newpath == NULL) { in get_next_file()
752 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
755 if (newpath[0] == '\0') { in get_next_file()
756 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
757 OPENSSL_strlcat(newpath, "/", newlen); in get_next_file()
759 OPENSSL_strlcat(newpath, filename, newlen); in get_next_file()
761 bio = BIO_new_file(newpath, "r"); in get_next_file()
762 OPENSSL_free(newpath); in get_next_file()
/freebsd-13-stable/crypto/openssh/
HDsftp-server.c1270 char *oldpath, *newpath; in process_rename() local
1275 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
1279 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename()
1285 if (link(oldpath, newpath) == -1) { in process_rename()
1300 if (stat(newpath, &st) == -1) { in process_rename()
1301 if (rename(oldpath, newpath) == -1) in process_rename()
1313 unlink(newpath); in process_rename()
1316 } else if (stat(newpath, &sb) == -1) { in process_rename()
1317 if (rename(oldpath, newpath) == -1) in process_rename()
1324 free(newpath); in process_rename()
[all …]
HDsftp-client.c1103 sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath) in sftp_copy() argument
1169 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy()
1175 debug3("Sent message SSH2_FXP_OPEN I:%u P:%s", id, newpath); in sftp_copy()
1180 "remote open(\"%s\")", newpath); in sftp_copy()
1200 oldpath, newpath); in sftp_copy()
1205 newpath, fx2txt(status)); in sftp_copy()
1218 sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in sftp_rename() argument
1232 "\"%s\" to \"%s\"", oldpath, newpath); in sftp_rename()
1240 oldpath, newpath); in sftp_rename()
1246 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename()
[all …]
/freebsd-13-stable/sys/contrib/openzfs/lib/libzutil/os/linux/
HDzutil_device_path_os.c122 char *newpath = strdup(path); in zfs_strip_partition_path() local
126 if (!newpath) in zfs_strip_partition_path()
130 sd_offset = strrchr(newpath, '/') + 1; in zfs_strip_partition_path()
135 free(newpath); in zfs_strip_partition_path()
145 return (newpath); in zfs_strip_partition_path()
/freebsd-13-stable/contrib/sendmail/src/
HDmci.c1208 char newpath[MAXPATHLEN]; variable
1226 len = sizeof(newpath) - 3;
1227 if (sm_strlcpy(newpath, pathname, len) >= len)
1238 newptr = newpath + strlen(newpath);
1240 len = sizeof(newpath) - (newptr - newpath);
1264 newpath, e->d_name);
1271 ret = mci_traverse_persistent(action, newpath);
1300 ret = (*action)(newpath, NULL);
/freebsd-13-stable/stand/libofw/
HDofw_net.c253 char newpath[255];
255 OF_canon(path, newpath, 254);
262 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
/freebsd-13-stable/contrib/apr/file_io/unix/
HDfilepath.c81 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath, in apr_filepath_merge() argument
288 *newpath = path; in apr_filepath_merge()
HDdir.c64 const char *newpath = path_canonicalize (path, pool); in path_remove_last_component() local
67 for (i = (strlen(newpath) - 1); i >= 0; i--) { in path_remove_last_component()
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_solaris.cpp155 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
156 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
HDsanitizer_netbsd.cpp202 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
204 return _REAL(rename, oldpath, newpath); in internal_rename()
HDsanitizer_posix.h56 uptr internal_rename(const char *oldpath, const char *newpath);
/freebsd-13-stable/contrib/file/src/
HDmagic.c92 char *newpath; in _w32_append_path() local
110 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path()
115 *hmagicpath = newpath; in _w32_append_path()
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_pf/
HDpf_snmp.c1570 char newpath[MAXPATHLEN]; in pfl_walk_rulesets() local
1595 strlcpy(newpath, path, sizeof(newpath)); in pfl_walk_rulesets()
1597 strlcat(newpath, "/", sizeof(newpath)); in pfl_walk_rulesets()
1599 strlcat(newpath, prs.name, sizeof(newpath)); in pfl_walk_rulesets()
1600 if (pfl_walk_rulesets(newpath)) in pfl_walk_rulesets()
/freebsd-13-stable/sys/cam/
HDcam_periph.c1850 struct cam_path *newpath; in cam_periph_error() local
2032 if (xpt_create_path(&newpath, periph, in cam_periph_error()
2040 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error()
2041 xpt_free_path(newpath); in cam_periph_error()
2051 if (xpt_create_path(&newpath, NULL, in cam_periph_error()
2057 scan_ccb->ccb_h.path = newpath; in cam_periph_error()
2062 xpt_print(newpath, in cam_periph_error()
2064 xpt_free_path(newpath); in cam_periph_error()
/freebsd-13-stable/contrib/libarchive/test_utils/
HDtest_common.h313 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
314 int assertion_make_symlink(const char *, int, const char *newpath, const char *, int);
HDtest_main.c2038 const char *newpath, const char *linkto) in assertion_make_hardlink() argument
2044 succeeded = my_CreateHardLinkA(newpath, linkto); in assertion_make_hardlink()
2046 succeeded = !link(linkto, newpath); in assertion_make_hardlink()
2053 logprintf(" New link: %s\n", newpath); in assertion_make_hardlink()
2066 const char *newpath, const char *linkto, int targetIsDir) in assertion_make_symlink() argument
2070 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir)) in assertion_make_symlink()
2075 if (0 == symlink(linkto, newpath)) in assertion_make_symlink()
2081 logprintf(" New link: %s\n", newpath); in assertion_make_symlink()
/freebsd-13-stable/contrib/apr/include/
HDapr_file_info.h354 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
/freebsd-13-stable/contrib/libarchive/libarchive/test/
HDmain.c1741 const char *newpath, const char *linkto) in assertion_make_hardlink() argument
1747 succeeded = my_CreateHardLinkA(newpath, linkto); in assertion_make_hardlink()
1749 succeeded = !link(linkto, newpath); in assertion_make_hardlink()
1756 logprintf(" New link: %s\n", newpath); in assertion_make_hardlink()
1765 const char *newpath, const char *linkto) in assertion_make_symlink() argument
1770 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir)) in assertion_make_symlink()
1774 if (0 == symlink(linkto, newpath)) in assertion_make_symlink()
1778 logprintf(" New link: %s\n", newpath); in assertion_make_symlink()
/freebsd-13-stable/sys/cam/scsi/
HDscsi_xpt.c2963 struct cam_path newpath; in scsi_dev_async() local
2979 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async()
2993 cam_freeze_devq(&newpath); in scsi_dev_async()
2994 cam_release_devq(&newpath, in scsi_dev_async()
2999 scsi_toggle_tags(&newpath); in scsi_dev_async()
3010 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async()
3013 xpt_release_path(&newpath); in scsi_dev_async()
/freebsd-13-stable/sys/cam/ata/
HData_xpt.c2034 struct cam_path newpath; in ata_dev_async() local
2050 status = xpt_compile_path(&newpath, NULL, in ata_dev_async()
2066 ata_scan_lun(newpath.periph, &newpath, in ata_dev_async()
2070 ata_scan_lun(newpath.periph, &newpath, in ata_dev_async()
2073 xpt_release_path(&newpath); in ata_dev_async()
/freebsd-13-stable/contrib/llvm-project/clang/lib/Driver/ToolChains/
HDAMDGPU.cpp485 SmallString<0> newpath = path; in detectHIPRuntime() local
486 llvm::sys::path::append(newpath, a, b, c, d); in detectHIPRuntime()
487 return newpath; in detectHIPRuntime()

12