Home
last modified time | relevance | path

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

12

/freebsd-13.1/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-13.1/contrib/subversion/subversion/libsvn_fs_util/
H A Dfs-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.1/lib/libcam/
H A Dcamlib.c120 char *newpath; in cam_get_device() local
135 newpath = realpath(path, NULL); in cam_get_device()
136 if (newpath == NULL) in cam_get_device()
137 newpath = strdup(path); in cam_get_device()
138 if (newpath == NULL) in cam_get_device()
141 tmpstr = newpath; in cam_get_device()
157 free(newpath); in cam_get_device()
186 free(newpath); in cam_get_device()
198 free(newpath); in cam_get_device()
210 free(newpath); in cam_get_device()
[all …]
/freebsd-13.1/crypto/openssh/
H A Dsftp-server.c1246 char *oldpath, *newpath; in process_rename() local
1289 unlink(newpath); in process_rename()
1300 free(newpath); in process_rename()
1331 char *oldpath, *newpath; in process_symlink() local
1345 free(newpath); in process_symlink()
1351 char *oldpath, *newpath; in process_extended_posix_rename() local
1360 r = rename(oldpath, newpath); in process_extended_posix_rename()
1364 free(newpath); in process_extended_posix_rename()
1409 char *oldpath, *newpath; in process_extended_hardlink() local
1418 r = link(oldpath, newpath); in process_extended_hardlink()
[all …]
H A Dsftp-client.c1064 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in do_rename() argument
1088 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_rename()
1093 "SSH2_FXP_RENAME", oldpath, newpath); in do_rename()
1099 newpath, fx2txt(status)); in do_rename()
1125 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_hardlink()
1129 oldpath, newpath); in do_hardlink()
1135 newpath, fx2txt(status)); in do_hardlink()
1141 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) in do_symlink() argument
1160 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_symlink()
1164 newpath); in do_symlink()
[all …]
/freebsd-13.1/sbin/kldconfig/
H A Dkldconfig.c125 char *newpath; in setpath() local
129 if ((newpath = qstring(pathq)) == NULL) { in setpath()
133 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) in setpath()
138 modpath = newpath; in setpath()
/freebsd-13.1/crypto/openssl/crypto/conf/
H A Dconf_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.1/sys/contrib/openzfs/lib/libzutil/os/linux/
H A Dzutil_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.1/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-13.1/contrib/sendmail/src/
H A Dmci.c1205 char newpath[MAXPATHLEN]; variable
1223 len = sizeof(newpath) - 3;
1224 if (sm_strlcpy(newpath, pathname, len) >= len)
1235 newptr = newpath + strlen(newpath);
1237 len = sizeof(newpath) - (newptr - newpath);
1261 newpath, e->d_name);
1268 ret = mci_traverse_persistent(action, newpath);
1297 ret = (*action)(newpath, NULL);
/freebsd-13.1/contrib/apr/file_io/unix/
H A Dfilepath.c81 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath, in apr_filepath_merge() argument
288 *newpath = path; in apr_filepath_merge()
H A Ddir.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.1/sys/i386/linux/
H A Dlinux_machdep.c105 char *newpath; in linux_execve() local
112 LCONVPATHEXIST(td, args->path, &newpath); in linux_execve()
113 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE, in linux_execve()
115 LFREEPATH(newpath); in linux_execve()
/freebsd-13.1/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.h59 uptr internal_rename(const char *oldpath, const char *newpath);
/freebsd-13.1/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-13.1/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1571 char newpath[MAXPATHLEN]; in pfl_walk_rulesets() local
1596 strlcpy(newpath, path, sizeof(newpath)); in pfl_walk_rulesets()
1598 strlcat(newpath, "/", sizeof(newpath)); in pfl_walk_rulesets()
1600 strlcat(newpath, prs.name, sizeof(newpath)); in pfl_walk_rulesets()
1601 if (pfl_walk_rulesets(newpath)) in pfl_walk_rulesets()
/freebsd-13.1/sys/cam/
H A Dcam_periph.c1832 struct cam_path *newpath; in cam_periph_error() local
2014 if (xpt_create_path(&newpath, periph, in cam_periph_error()
2022 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error()
2023 xpt_free_path(newpath); in cam_periph_error()
2033 if (xpt_create_path(&newpath, NULL, in cam_periph_error()
2039 scan_ccb->ccb_h.path = newpath; in cam_periph_error()
2044 xpt_print(newpath, in cam_periph_error()
2046 xpt_free_path(newpath); in cam_periph_error()
/freebsd-13.1/contrib/libarchive/test_utils/
H A Dtest_common.h319 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
320 int assertion_make_symlink(const char *, int, const char *newpath, const char *, int);
H A Dtest_main.c2004 const char *newpath, const char *linkto) in assertion_make_hardlink() argument
2010 succeeded = my_CreateHardLinkA(newpath, linkto); in assertion_make_hardlink()
2012 succeeded = !link(linkto, newpath); in assertion_make_hardlink()
2019 logprintf(" New link: %s\n", newpath); in assertion_make_hardlink()
2032 const char *newpath, const char *linkto, int targetIsDir) in assertion_make_symlink() argument
2036 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir)) in assertion_make_symlink()
2041 if (0 == symlink(linkto, newpath)) in assertion_make_symlink()
2047 logprintf(" New link: %s\n", newpath); in assertion_make_symlink()
/freebsd-13.1/contrib/apr/include/
H A Dapr_file_info.h354 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
/freebsd-13.1/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-13.1/sys/cam/scsi/
H A Dscsi_xpt.c2958 struct cam_path newpath; in scsi_dev_async() local
2974 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async()
2988 cam_freeze_devq(&newpath); in scsi_dev_async()
2989 cam_release_devq(&newpath, in scsi_dev_async()
2994 scsi_toggle_tags(&newpath); in scsi_dev_async()
3005 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async()
3008 xpt_release_path(&newpath); in scsi_dev_async()
/freebsd-13.1/sys/cam/ata/
H A Data_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()

12