| /freebsd-14.2/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-14.2/lib/libcam/ |
| H A D | camlib.c | 118 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-14.2/sbin/kldconfig/ |
| H A D | kldconfig.c | 123 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-14.2/crypto/openssh/ |
| H A D | sftp-server.c | 1270 char *oldpath, *newpath; in process_rename() local 1313 unlink(newpath); in process_rename() 1324 free(newpath); in process_rename() 1355 char *oldpath, *newpath; in process_symlink() local 1369 free(newpath); in process_symlink() 1375 char *oldpath, *newpath; in process_extended_posix_rename() local 1384 r = rename(oldpath, newpath); in process_extended_posix_rename() 1388 free(newpath); in process_extended_posix_rename() 1433 char *oldpath, *newpath; in process_extended_hardlink() local 1442 r = link(oldpath, newpath); in process_extended_hardlink() [all …]
|
| H A D | sftp-client.c | 1180 "remote open(\"%s\")", newpath); in sftp_copy() 1200 oldpath, newpath); in sftp_copy() 1205 newpath, fx2txt(status)); in sftp_copy() 1240 oldpath, newpath); in sftp_rename() 1251 "SSH2_FXP_RENAME", oldpath, newpath); in sftp_rename() 1257 newpath, fx2txt(status)); in sftp_rename() 1274 "\"%s\" to \"%s\"", oldpath, newpath); in sftp_hardlink() 1289 oldpath, newpath); in sftp_hardlink() 1295 newpath, fx2txt(status)); in sftp_hardlink() 1325 newpath); in sftp_symlink() [all …]
|
| H A D | PROTOCOL | 504 string newpath 507 rename(oldpath, newpath) and will respond with a SSH_FXP_STATUS message. 561 string newpath 564 link(oldpath, newpath) and will respond with a SSH_FXP_STATUS message.
|
| /freebsd-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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-14.2/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 | 489 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 492 (uptr)newpath, 0); in internal_rename() 495 (uptr)newpath); in internal_rename() 497 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
|
| /freebsd-14.2/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-14.2/usr.sbin/bsnmpd/modules/snmp_pf/ |
| H A D | pf_snmp.c | 1570 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-14.2/sys/cam/ |
| H A D | cam_periph.c | 1887 struct cam_path *newpath; in cam_periph_error() local 2073 if (xpt_create_path(&newpath, periph, in cam_periph_error() 2081 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error() 2082 xpt_free_path(newpath); in cam_periph_error() 2092 if (xpt_create_path(&newpath, NULL, in cam_periph_error() 2098 scan_ccb->ccb_h.path = newpath; in cam_periph_error() 2103 xpt_print(newpath, in cam_periph_error() 2105 xpt_free_path(newpath); in cam_periph_error()
|
| /freebsd-14.2/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-14.2/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-14.2/sys/cam/scsi/ |
| H A D | scsi_xpt.c | 2967 struct cam_path newpath; in scsi_dev_async() local 2983 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async() 2997 cam_freeze_devq(&newpath); in scsi_dev_async() 2998 cam_release_devq(&newpath, in scsi_dev_async() 3003 scsi_toggle_tags(&newpath); in scsi_dev_async() 3014 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async() 3017 xpt_release_path(&newpath); in scsi_dev_async()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | AMDGPU.cpp | 484 SmallString<0> newpath = path; in detectHIPRuntime() local 485 llvm::sys::path::append(newpath, a, b, c, d); in detectHIPRuntime() 486 return newpath; in detectHIPRuntime()
|
| /freebsd-14.2/sys/cam/ata/ |
| H A D | ata_xpt.c | 2040 struct cam_path newpath; in ata_dev_async() local 2047 status = xpt_compile_path(&newpath, NULL, in ata_dev_async() 2063 ata_scan_lun(newpath.periph, &newpath, flags, NULL); in ata_dev_async() 2064 xpt_release_path(&newpath); in ata_dev_async()
|