Home
last modified time | relevance | path

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

12

/freebsd/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()
/freebsd/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 …]
/freebsd/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()
/freebsd/crypto/openssh/
H A Dsftp-server.c1263 char *oldpath, *newpath; in process_rename() local
1268 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
1272 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename()
1278 if (link(oldpath, newpath) == -1) { in process_rename()
1293 if (stat(newpath, &st) == -1) { in process_rename()
1294 if (rename(oldpath, newpath) == -1) in process_rename()
1306 unlink(newpath); in process_rename()
1309 } else if (stat(newpath, &sb) == -1) { in process_rename()
1310 if (rename(oldpath, newpath) == -1) in process_rename()
1317 free(newpath); in process_rename()
[all …]
H A Dsftp-client.c1088 sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath) in sftp_copy() argument
1154 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy()
1160 debug3("Sent message SSH2_FXP_OPEN I:%u P:%s", id, newpath); in sftp_copy()
1165 "remote open(\"%s\")", newpath); in sftp_copy()
1185 oldpath, newpath); in sftp_copy()
1190 newpath, fx2txt(status)); in sftp_copy()
1203 sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in sftp_rename() argument
1217 "\"%s\" to \"%s\"", oldpath, newpath); in sftp_rename()
1225 oldpath, newpath); in sftp_rename()
1231 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename()
[all …]
/freebsd/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()
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_device_path_os.c113 char *newpath = strdup(path); in zfs_strip_partition_path() local
117 if (!newpath) in zfs_strip_partition_path()
121 sd_offset = strrchr(newpath, '/') + 1; in zfs_strip_partition_path()
126 free(newpath); in zfs_strip_partition_path()
136 return (newpath); in zfs_strip_partition_path()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Drenameat2.c58 int newdirfd, const char *newpath, unsigned int flags) in sys_renameat2() argument
60 int ret = syscall(SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, in sys_renameat2()
/freebsd/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);
/freebsd/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;
/freebsd/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)
/freebsd/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()
/freebsd/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_haiku.cpp206 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
208 return _REAL(rename, oldpath, newpath); in internal_rename()
H A Dsanitizer_posix.h59 uptr internal_rename(const char *oldpath, const char *newpath);
/freebsd/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()
/freebsd/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()
/freebsd/sys/cam/
H A Dcam_periph.c1898 struct cam_path *newpath; in cam_periph_error()
2087 if (xpt_create_path(&newpath, periph, in cam_periph_error()
2095 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error()
2096 xpt_free_path(newpath); in cam_periph_error()
2106 if (xpt_create_path(&newpath, NULL, in cam_periph_error()
2112 scan_ccb->ccb_h.path = newpath;
2117 xpt_print(newpath, in cam_periph_devctl_notify()
2119 xpt_free_path(newpath); in cam_periph_devctl_notify()
1870 struct cam_path *newpath; cam_periph_error() local
/freebsd/contrib/libarchive/test_utils/
H A Dtest_common.h317 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
318 int assertion_make_symlink(const char *, int, const char *newpath, const char *, int);
/freebsd/contrib/llvm-project/libc/src/__support/RPC/
H A Drpc_server.h493 void *newpath[num_lanes] = {nullptr}; in handle_port_impl() local
496 port.recv_n(newpath, newsizes, in handle_port_impl()
501 reinterpret_cast<const char *>(newpath[id]))); in handle_port_impl()
/freebsd/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()
/freebsd/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()
/freebsd/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()
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c3876 char *oldpath, *newpath; in ztest_vdev_attach_detach()
3889 newpath = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); in ztest_vdev_attach_detach()
4005 (void) strlcpy(newpath, newvd->vdev_path, MAXPATHLEN);
4007 (void) snprintf(newpath, MAXPATHLEN, ztest_dev_template, in ztest_scratch_thread()
4011 newpath[strlen(newpath) - 1] = 'b'; in ztest_scratch_thread()
4012 newvd = vdev_lookup_by_path(rvd, newpath); in ztest_scratch_thread()
4052 else if (vdev_lookup_by_path(rvd, newpath) != NULL) in ztest_vdev_raidz_attach()
4066 * Build the nvlist describing newpath. in ztest_vdev_raidz_attach()
4068 root = make_vdev_root(newpath, NUL in ztest_vdev_raidz_attach()
3675 char *oldpath, *newpath; ztest_vdev_attach_detach() local
4036 char *newpath = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); ztest_vdev_raidz_attach() local
8485 char *newpath = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); ztest_raidz_expand_run() local
[all...]

12