/freebsd/crypto/heimdal/appl/ftp/ftpd/ |
H A D | popen.c | 84 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 D | camlib.c | 117 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 D | kldconfig.c | 122 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 D | sftp-server.c | 1270 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 D | sftp-client.c | 1103 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/crypto/openssl/crypto/conf/ |
H A D | conf_def.c | 864 char *newpath; in get_next_file() local 868 newpath = OPENSSL_zalloc(newlen); in get_next_file() 869 if (newpath == NULL) { in get_next_file() 882 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file() 885 if (newpath[0] == '\0') { in get_next_file() 886 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file() 887 OPENSSL_strlcat(newpath, "/", newlen); in get_next_file() 889 OPENSSL_strlcat(newpath, filename, newlen); in get_next_file() 891 bio = BIO_new_file(newpath, "r"); in get_next_file() 892 OPENSSL_free(newpath); in get_next_file()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_device_path_os.c | 122 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/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | renameat2.c | 68 int newdirfd, const char *newpath, unsigned int flags) in sys_renameat2() argument 70 int ret = syscall(SYS_renameat2, olddirfd, oldpath, newdirfd, newpath, in sys_renameat2()
|
/freebsd/crypto/openssl/util/perl/OpenSSL/ |
H A D | Test.pm | 1123 my $newpath = abs2rel($oldpath, $absdir); 1127 print STDERR "DEBUG: [dir $_] resulting new path: $newpath\n"; 1129 $tmp_directories{$_} = $newpath; 1139 my $newpath = abs2rel($oldpath, $absdir); 1143 print STDERR "DEBUG: [env $_] resulting new path: $newpath\n"; 1145 $tmp_ENV{$_} = $newpath;
|
/freebsd/contrib/sendmail/src/ |
H A D | mci.c | 1208 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/stand/libofw/ |
H A D | ofw_net.c | 252 char newpath[255]; 254 OF_canon(path, newpath, 254); 261 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_solaris.cpp | 155 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument 156 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
|
H A D | sanitizer_netbsd.cpp | 202 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 204 return _REAL(rename, oldpath, newpath); in internal_rename()
|
H A D | sanitizer_posix.h | 56 uptr internal_rename(const char *oldpath, const char *newpath);
|
H A D | sanitizer_linux.cpp | 550 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 553 (uptr)newpath, 0); in internal_rename() 556 (uptr)newpath); in internal_rename() 558 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
|
/freebsd/contrib/file/src/ |
H A D | magic.c | 92 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/usr.sbin/bsnmpd/modules/snmp_pf/ |
H A D | pf_snmp.c | 1553 char newpath[MAXPATHLEN]; in pfl_walk_rulesets() local 1578 strlcpy(newpath, path, sizeof(newpath)); in pfl_walk_rulesets() 1580 strlcat(newpath, "/", sizeof(newpath)); in pfl_walk_rulesets() 1582 strlcat(newpath, prs.name, sizeof(newpath)); in pfl_walk_rulesets() 1583 if (pfl_walk_rulesets(newpath)) in pfl_walk_rulesets()
|
/freebsd/sys/cam/ |
H A D | cam_periph.c | 1872 struct cam_path *newpath; in cam_periph_error() local 2059 if (xpt_create_path(&newpath, periph, in cam_periph_error() 2067 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error() 2068 xpt_free_path(newpath); in cam_periph_error() 2078 if (xpt_create_path(&newpath, NULL, in cam_periph_error() 2084 scan_ccb->ccb_h.path = newpath; in cam_periph_error() 2089 xpt_print(newpath, in cam_periph_error() 2091 xpt_free_path(newpath); in cam_periph_error()
|
/freebsd/contrib/libarchive/test_utils/ |
H A D | test_common.h | 313 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 D | test_main.c | 2038 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/contrib/libarchive/libarchive/test/ |
H A D | main.c | 1741 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/sys/cam/scsi/ |
H A D | scsi_xpt.c | 2964 struct cam_path newpath; in scsi_dev_async() local 2980 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async() 2994 cam_freeze_devq(&newpath); in scsi_dev_async() 2995 cam_release_devq(&newpath, in scsi_dev_async() 3000 scsi_toggle_tags(&newpath); in scsi_dev_async() 3011 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async() 3014 xpt_release_path(&newpath); in scsi_dev_async()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 3718 char *oldpath, *newpath; in ztest_vdev_attach_detach() local 3731 newpath = umem_alloc(MAXPATHLEN, UMEM_NOFAIL); in ztest_vdev_attach_detach() 3847 (void) strlcpy(newpath, newvd->vdev_path, MAXPATHLEN); in ztest_vdev_attach_detach() 3849 (void) snprintf(newpath, MAXPATHLEN, ztest_dev_template, in ztest_vdev_attach_detach() 3853 newpath[strlen(newpath) - 1] = 'b'; in ztest_vdev_attach_detach() 3854 newvd = vdev_lookup_by_path(rvd, newpath); in ztest_vdev_attach_detach() 3894 else if (vdev_lookup_by_path(rvd, newpath) != NULL) in ztest_vdev_attach_detach() 3910 root = make_vdev_root(newpath, NULL, NULL, newvd == NULL ? newsize : 0, in ztest_vdev_attach_detach() 3950 oldpath, oldsize, newpath, in ztest_vdev_attach_detach() 3957 umem_free(newpath, MAXPATHLEN); in ztest_vdev_attach_detach() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | AMDGPU.cpp | 485 SmallString<0> newpath = path; in detectHIPRuntime() local 486 llvm::sys::path::append(newpath, a, b, c, d); in detectHIPRuntime() 487 return newpath; in detectHIPRuntime()
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 2037 struct cam_path newpath; in ata_dev_async() local 2044 status = xpt_compile_path(&newpath, NULL, in ata_dev_async() 2060 ata_scan_lun(newpath.periph, &newpath, flags, NULL); in ata_dev_async() 2061 xpt_release_path(&newpath); in ata_dev_async()
|