Home
last modified time | relevance | path

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

12

/src/crypto/heimdal/appl/ftp/ftpd/
H A Dpopen.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()
/src/lib/libcam/
H A Dcamlib.c117 char *newpath; in cam_get_device() local
132 newpath = realpath(path, NULL); in cam_get_device()
133 if (newpath == NULL) in cam_get_device()
134 newpath = strdup(path); in cam_get_device()
135 if (newpath == NULL) in cam_get_device()
138 tmpstr = newpath; in cam_get_device()
154 free(newpath); in cam_get_device()
183 free(newpath); in cam_get_device()
195 free(newpath); in cam_get_device()
207 free(newpath); in cam_get_device()
[all …]
/src/sbin/kldconfig/
H A Dkldconfig.c122 char *newpath; in setpath() local
126 if ((newpath = qstring(pathq)) == NULL) { in setpath()
130 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) in setpath()
135 modpath = newpath; in setpath()
/src/crypto/openssh/
H A Dsftp-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 …]
H A Dsftp-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 …]
/src/crypto/openssl/crypto/conf/
H A Dconf_def.c853 char *newpath; in get_next_file() local
857 newpath = OPENSSL_zalloc(newlen); in get_next_file()
858 if (newpath == NULL) in get_next_file()
869 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
872 if (newpath[0] == '\0') { in get_next_file()
873 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
874 OPENSSL_strlcat(newpath, "/", newlen); in get_next_file()
876 OPENSSL_strlcat(newpath, filename, newlen); in get_next_file()
878 bio = BIO_new_file(newpath, "r"); in get_next_file()
879 OPENSSL_free(newpath); in get_next_file()
/src/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c123 char *newpath = strdup(path); in zfs_strip_partition_path() local
127 if (!newpath) in zfs_strip_partition_path()
131 sd_offset = strrchr(newpath, '/') + 1; in zfs_strip_partition_path()
136 free(newpath); in zfs_strip_partition_path()
146 return (newpath); in zfs_strip_partition_path()
/src/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Drenameat2.c69 int newdirfd, const char *newpath, unsigned int flags) in sys_renameat2() argument
71 int ret = syscall(SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, in sys_renameat2()
/src/contrib/sendmail/src/
H A Dmci.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);
/src/crypto/openssl/util/perl/OpenSSL/
H A DTest.pm1149 my $newpath = abs2rel($oldpath, $absdir);
1153 print STDERR "DEBUG: [dir $_] resulting new path: $newpath\n";
1155 $tmp_directories{$_} = $newpath;
1165 my $newpath = abs2rel($oldpath, $absdir);
1169 print STDERR "DEBUG: [env $_] resulting new path: $newpath\n";
1171 $tmp_ENV{$_} = $newpath;
/src/stand/libofw/
H A Dofw_net.c252 char newpath[255];
254 OF_canon(path, newpath, 254);
261 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
/src/crypto/krb5/src/lib/krb5/ccache/
H A Dcc_dir.c183 char *newpath = NULL; in write_primary_file() local
187 if (asprintf(&newpath, "%s.XXXXXX", primary_path) < 0) in write_primary_file()
189 fd = mkstemp(newpath); in write_primary_file()
193 chmod(newpath, S_IRUSR | S_IWUSR); in write_primary_file()
206 if (rename(newpath, primary_path) != 0) in write_primary_file()
215 free(newpath); in write_primary_file()
/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp155 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
156 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
H A Dsanitizer_netbsd.cpp202 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
204 return _REAL(rename, oldpath, newpath); in internal_rename()
H A Dsanitizer_posix.h56 uptr internal_rename(const char *oldpath, const char *newpath);
/src/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1541 char newpath[MAXPATHLEN]; in pfl_walk_rulesets() local
1566 strlcpy(newpath, path, sizeof(newpath)); in pfl_walk_rulesets()
1568 strlcat(newpath, "/", sizeof(newpath)); in pfl_walk_rulesets()
1570 strlcat(newpath, prs.name, sizeof(newpath)); in pfl_walk_rulesets()
1571 if (pfl_walk_rulesets(newpath)) in pfl_walk_rulesets()
/src/contrib/file/src/
H A Dmagic.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()
/src/sys/cam/
H A Dcam_periph.c1870 struct cam_path *newpath; in cam_periph_error() local
2057 if (xpt_create_path(&newpath, periph, in cam_periph_error()
2065 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error()
2066 xpt_free_path(newpath); in cam_periph_error()
2076 if (xpt_create_path(&newpath, NULL, in cam_periph_error()
2082 scan_ccb->ccb_h.path = newpath; in cam_periph_error()
2087 xpt_print(newpath, in cam_periph_error()
2089 xpt_free_path(newpath); in cam_periph_error()
/src/contrib/libarchive/test_utils/
H A Dtest_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);
H A Dtest_main.c2055 const char *newpath, const char *linkto) in assertion_make_hardlink() argument
2061 succeeded = my_CreateHardLinkA(newpath, linkto); in assertion_make_hardlink()
2063 succeeded = !link(linkto, newpath); in assertion_make_hardlink()
2070 logprintf(" New link: %s\n", newpath); in assertion_make_hardlink()
2083 const char *newpath, const char *linkto, int targetIsDir) in assertion_make_symlink() argument
2087 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir)) in assertion_make_symlink()
2092 if (0 == symlink(linkto, newpath)) in assertion_make_symlink()
2098 logprintf(" New link: %s\n", newpath); in assertion_make_symlink()
/src/contrib/libarchive/libarchive/test/
H A Dmain.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()
/src/crypto/krb5/src/util/profile/
H A Dprof_file.c395 make_hard_link(const char *oldpath, const char *newpath) in make_hard_link() argument
400 return link(oldpath, newpath); in make_hard_link()
/src/sys/cam/scsi/
H A Dscsi_xpt.c3049 struct cam_path newpath; in scsi_dev_async() local
3065 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async()
3079 cam_freeze_devq(&newpath); in scsi_dev_async()
3080 cam_release_devq(&newpath, in scsi_dev_async()
3085 scsi_toggle_tags(&newpath); in scsi_dev_async()
3096 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async()
3099 xpt_release_path(&newpath); in scsi_dev_async()
/src/sys/contrib/openzfs/cmd/
H A Dztest.c3719 char *oldpath, *newpath; in ztest_vdev_attach_detach() local
3732 newpath = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); in ztest_vdev_attach_detach()
3848 (void) strlcpy(newpath, newvd->vdev_path, MAXPATHLEN); in ztest_vdev_attach_detach()
3850 (void) snprintf(newpath, MAXPATHLEN, ztest_dev_template, in ztest_vdev_attach_detach()
3854 newpath[strlen(newpath) - 1] = 'b'; in ztest_vdev_attach_detach()
3855 newvd = vdev_lookup_by_path(rvd, newpath); in ztest_vdev_attach_detach()
3895 else if (vdev_lookup_by_path(rvd, newpath) != NULL) in ztest_vdev_attach_detach()
3911 root = make_vdev_root(newpath, NULL, NULL, newvd == NULL ? newsize : 0, in ztest_vdev_attach_detach()
3951 oldpath, oldsize, newpath, in ztest_vdev_attach_detach()
3958 umem_free(newpath, MAXPATHLEN); in ztest_vdev_attach_detach()
[all …]
/src/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DAMDGPU.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