Home
last modified time | relevance | path

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

12

/freebsd-12.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-12.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-12.1/crypto/openssh/
H A Dsftp-server.c1175 char *oldpath, *newpath; in process_rename() local
1218 unlink(newpath); in process_rename()
1229 free(newpath); in process_rename()
1260 char *oldpath, *newpath; in process_symlink() local
1274 free(newpath); in process_symlink()
1280 char *oldpath, *newpath; in process_extended_posix_rename() local
1289 r = rename(oldpath, newpath); in process_extended_posix_rename()
1293 free(newpath); in process_extended_posix_rename()
1338 char *oldpath, *newpath; in process_extended_hardlink() local
1347 r = link(oldpath, newpath); in process_extended_hardlink()
[all …]
H A Dsftp-client.c883 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in do_rename() argument
907 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_rename()
912 "SSH2_FXP_RENAME", oldpath, newpath); in do_rename()
918 newpath, fx2txt(status)); in do_rename()
944 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_hardlink()
948 oldpath, newpath); in do_hardlink()
954 newpath, fx2txt(status)); in do_hardlink()
960 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) in do_symlink() argument
979 (r = sshbuf_put_cstring(msg, newpath)) != 0) in do_symlink()
983 newpath); in do_symlink()
[all …]
/freebsd-12.1/lib/libcam/
H A Dcamlib.c121 char *newpath; in cam_get_device() local
135 newpath = (char *)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()
242 free(newpath); in cam_get_device()
/freebsd-12.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-12.1/crypto/openssl/crypto/conf/
H A Dconf_def.c716 char *newpath; in get_next_file() local
720 newpath = OPENSSL_zalloc(newlen); in get_next_file()
721 if (newpath == NULL) { in get_next_file()
736 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
740 if (newpath[0] == '\0') { in get_next_file()
741 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
742 OPENSSL_strlcat(newpath, "/", newlen); in get_next_file()
744 OPENSSL_strlcat(newpath, filename, newlen); in get_next_file()
746 bio = BIO_new_file(newpath, "r"); in get_next_file()
747 OPENSSL_free(newpath); in get_next_file()
/freebsd-12.1/stand/ofw/libofw/
H A Dofw_net.c260 char newpath[255];
262 OF_canon(path, newpath, 254);
269 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
/freebsd-12.1/contrib/sendmail/src/
H A Dmci.c1162 char newpath[MAXPATHLEN]; variable
1180 len = sizeof(newpath) - 3;
1181 if (sm_strlcpy(newpath, pathname, len) >= len)
1192 newptr = newpath + strlen(newpath);
1194 len = sizeof(newpath) - (newptr - newpath);
1218 newpath, e->d_name);
1225 ret = mci_traverse_persistent(action, newpath);
1254 ret = (*action)(newpath, NULL);
/freebsd-12.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.c60 const char *newpath = path_canonicalize (path, pool); in path_remove_last_component() local
63 for (i = (strlen(newpath) - 1); i >= 0; i--) { in path_remove_last_component()
/freebsd-12.1/contrib/gdb/gdb/
H A Dremote-fileio.c906 char *oldpath, *newpath; in remote_fileio_func_rename() local
931 newpath = alloca (length); in remote_fileio_func_rename()
932 retlength = remote_read_bytes (ptrval, newpath, length); in remote_fileio_func_rename()
941 nf = stat (newpath, &nst); in remote_fileio_func_rename()
950 ret = rename (oldpath, newpath); in remote_fileio_func_rename()
974 cygwin_conv_to_full_posix_path (newpath, newfullpath); in remote_fileio_func_rename()
/freebsd-12.1/sys/i386/linux/
H A Dlinux_machdep.c106 char *newpath; in linux_execve() local
109 LCONVPATHEXIST(td, args->path, &newpath); in linux_execve()
113 printf(ARGS(execve, "%s"), newpath); in linux_execve()
116 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE, in linux_execve()
118 free(newpath, M_TEMP); in linux_execve()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cc141 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
142 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
H A Dsanitizer_netbsd.cc192 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
194 return _REAL(rename, oldpath, newpath); in internal_rename()
H A Dsanitizer_posix.h56 uptr internal_rename(const char *oldpath, const char *newpath);
/freebsd-12.1/contrib/file/src/
H A Dmagic.c94 char *newpath; in _w32_append_path() local
112 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path()
117 *hmagicpath = newpath; in _w32_append_path()
/freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1568 char newpath[MAXPATHLEN]; in pfl_walk_rulesets() local
1593 strlcpy(newpath, path, sizeof(newpath)); in pfl_walk_rulesets()
1595 strlcat(newpath, "/", sizeof(newpath)); in pfl_walk_rulesets()
1597 strlcat(newpath, prs.name, sizeof(newpath)); in pfl_walk_rulesets()
1598 if (pfl_walk_rulesets(newpath)) in pfl_walk_rulesets()
/freebsd-12.1/sys/cam/
H A Dcam_periph.c1844 struct cam_path *newpath; in cam_periph_error() local
2026 if (xpt_create_path(&newpath, periph, in cam_periph_error()
2035 xpt_async(AC_LOST_DEVICE, newpath, NULL); in cam_periph_error()
2036 xpt_free_path(newpath); in cam_periph_error()
2046 if (xpt_create_path(&newpath, NULL, in cam_periph_error()
2053 scan_ccb->ccb_h.path = newpath; in cam_periph_error()
2058 xpt_print(newpath, in cam_periph_error()
2060 xpt_free_path(newpath); in cam_periph_error()
/freebsd-12.1/contrib/libarchive/test_utils/
H A Dtest_common.h295 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
296 int assertion_make_symlink(const char *, int, const char *newpath, const char *, int);
H A Dtest_main.c1991 const char *newpath, const char *linkto) in assertion_make_hardlink() argument
1997 succeeded = my_CreateHardLinkA(newpath, linkto); in assertion_make_hardlink()
1999 succeeded = !link(linkto, newpath); in assertion_make_hardlink()
2006 logprintf(" New link: %s\n", newpath); in assertion_make_hardlink()
2019 const char *newpath, const char *linkto, int targetIsDir) in assertion_make_symlink() argument
2023 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir)) in assertion_make_symlink()
2028 if (0 == symlink(linkto, newpath)) in assertion_make_symlink()
2034 logprintf(" New link: %s\n", newpath); in assertion_make_symlink()
/freebsd-12.1/contrib/apr/include/
H A Dapr_file_info.h354 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
/freebsd-12.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-12.1/sys/cam/scsi/
H A Dscsi_xpt.c2968 struct cam_path newpath; in scsi_dev_async() local
2984 status = xpt_compile_path(&newpath, NULL, in scsi_dev_async()
2999 cam_freeze_devq(&newpath); in scsi_dev_async()
3000 cam_release_devq(&newpath, in scsi_dev_async()
3005 scsi_toggle_tags(&newpath); in scsi_dev_async()
3016 scsi_scan_lun(newpath.periph, &newpath, in scsi_dev_async()
3019 xpt_release_path(&newpath); in scsi_dev_async()
/freebsd-12.1/sys/cam/ata/
H A Data_xpt.c2032 struct cam_path newpath; in ata_dev_async() local
2048 status = xpt_compile_path(&newpath, NULL, in ata_dev_async()
2064 ata_scan_lun(newpath.periph, &newpath, in ata_dev_async()
2068 ata_scan_lun(newpath.periph, &newpath, in ata_dev_async()
2071 xpt_release_path(&newpath); in ata_dev_async()

12