Searched refs:newpath (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/
H A Dpopen.c84 static char newpath[MaxPathLen]; local
90 snprintf(newpath, sizeof(newpath), "%s/%s", home, path);
91 if(access(newpath, X_OK))
92 strlcpy(newpath, path, sizeof(newpath));
93 return newpath;
/freebsd-10-stable/contrib/subversion/subversion/libsvn_fs_util/
H A Dfs-util.c94 char *newpath; local
114 newpath = apr_palloc(pool, path_len + 2);
119 newpath[newpath_i++] = '/';
142 newpath[newpath_i++] = path[path_i];
147 if ((newpath[newpath_i - 1] == '/') && (newpath_i > 1))
148 newpath[newpath_i - 1] = '\0';
150 newpath[newpath_i] = '\0';
152 return newpath;
/freebsd-10-stable/sbin/kldconfig/
H A Dkldconfig.c132 char *newpath; local
136 if ((newpath = qstring(pathq)) == NULL) {
140 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1)
145 modpath = newpath;
/freebsd-10-stable/sys/boot/ofw/libofw/
H A Dofw_net.c245 char newpath[255];
247 OF_canon(path, newpath, 254);
254 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
/freebsd-10-stable/sys/compat/svr4/
H A Dsvr4_fcntl.c387 char *newpath; local
390 CHECKALTEXIST(td, uap->path, &newpath);
393 error = kern_open(td, newpath, UIO_SYSSPACE, bsd_flags, uap->mode);
394 free(newpath, M_TEMP);
448 char *newpath; local
451 CHECKALTEXIST(td, uap->path, &newpath);
453 error = kern_open(td, newpath, UIO_SYSSPACE, O_WRONLY | O_CREAT |
455 free(newpath, M_TEMP);
493 char *newpath; local
496 CHECKALTEXIST(td, uap->path, &newpath);
[all...]
H A Dsvr4_misc.c666 char *newpath; local
669 CHECKALTEXIST(td, path, &newpath);
672 error = kern_mkfifo(td, newpath, UIO_SYSSPACE, mode);
674 error = kern_mknod(td, newpath, UIO_SYSSPACE, mode, dev);
675 free(newpath, M_TEMP);
/freebsd-10-stable/crypto/openssh/
H A Dsftp-server.c1176 char *oldpath, *newpath; local
1181 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1185 logit("rename old \"%s\" new \"%s\"", oldpath, newpath);
1191 if (link(oldpath, newpath) == -1) {
1206 if (stat(newpath, &st) == -1) {
1207 if (rename(oldpath, newpath) == -1)
1219 unlink(newpath);
1222 } else if (stat(newpath, &sb) == -1) {
1223 if (rename(oldpath, newpath) == -1)
1230 free(newpath);
1261 char *oldpath, *newpath; local
1281 char *oldpath, *newpath; local
1339 char *oldpath, *newpath; local
[all...]
H A Dsftp-client.c865 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, argument
889 (r = sshbuf_put_cstring(msg, newpath)) != 0)
894 "SSH2_FXP_RENAME", oldpath, newpath);
900 newpath, fx2txt(status));
906 do_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) argument
926 (r = sshbuf_put_cstring(msg, newpath)) != 0)
930 oldpath, newpath);
936 newpath, fx2txt(status));
942 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) argument
961 (r = sshbuf_put_cstring(msg, newpath)) !
[all...]
/freebsd-10-stable/contrib/apr/file_io/unix/
H A Dfilepath.c81 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
288 *newpath = path;
H A Ddir.c60 const char *newpath = path_canonicalize (path, pool); local
63 for (i = (strlen(newpath) - 1); i >= 0; i--) {
/freebsd-10-stable/lib/libcam/
H A Dcamlib.c118 char *newpath; local
132 newpath = (char *)strdup(path);
133 tmpstr = newpath;
148 free(newpath);
177 free(newpath);
189 free(newpath);
201 free(newpath);
235 free(newpath);
/freebsd-10-stable/contrib/sendmail/src/
H A Dmci.c1162 char newpath[MAXPATHLEN]; local
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, NUL
[all...]
/freebsd-10-stable/contrib/texinfo/info/
H A Dfilesys.c216 char *newpath, *filename_only, *newtemp; local
218 newpath = xstrdup (temp);
220 newtemp = info_file_in_path (filename_only, newpath);
222 free (newpath);
/freebsd-10-stable/contrib/file/src/
H A Dmagic.c94 char *newpath; local
112 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0)
117 *hmagicpath = newpath;
/freebsd-10-stable/contrib/apr/include/
H A Dapr_file_info.h343 * @param newpath the merged paths returned
354 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
/freebsd-10-stable/contrib/gdb/gdb/
H A Dremote-fileio.c906 char *oldpath, *newpath; local
924 /* 2. Parameter: Ptr to newpath / length incl. trailing zero */
930 /* Request newpath using 'm' packet */
931 newpath = alloca (length);
932 retlength = remote_read_bytes (ptrval, newpath, length);
941 nf = stat (newpath, &nst);
950 ret = rename (oldpath, newpath);
954 /* Special case: newpath is a non-empty directory. Some systems
974 cygwin_conv_to_full_posix_path (newpath, newfullpath);
/freebsd-10-stable/sys/i386/linux/
H A Dlinux_machdep.c104 char *newpath; local
107 LCONVPATHEXIST(td, args->path, &newpath);
111 printf(ARGS(execve, "%s"), newpath);
114 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE,
116 free(newpath, M_TEMP);
/freebsd-10-stable/sys/cam/
H A Dcam_periph.c1624 struct cam_path *newpath; local
1803 if (xpt_create_path(&newpath, periph,
1812 xpt_async(AC_LOST_DEVICE, newpath, NULL);
1813 xpt_free_path(newpath);
1823 if (xpt_create_path(&newpath, NULL,
1830 scan_ccb->ccb_h.path = newpath;
1835 xpt_print(newpath,
1837 xpt_free_path(newpath);
/freebsd-10-stable/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1562 char newpath[MAXPATHLEN]; local
1587 strlcpy(newpath, path, sizeof(newpath));
1589 strlcat(newpath, "/", sizeof(newpath));
1591 strlcat(newpath, prs.name, sizeof(newpath));
1592 if (pfl_walk_rulesets(newpath))
/freebsd-10-stable/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)
2010 succeeded = my_CreateHardLinkA(newpath, linkto);
2012 succeeded = !link(linkto, newpath);
2019 logprintf(" New link: %s\n", newpath);
2032 const char *newpath, const char *linkto, int targetIsDir)
2036 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir))
2041 if (0 == symlink(linkto, newpath))
2047 logprintf(" New link: %s\n", newpath);
2003 assertion_make_hardlink(const char *file, int line, const char *newpath, const char *linkto) argument
2031 assertion_make_symlink(const char *file, int line, const char *newpath, const char *linkto, int targetIsDir) argument
/freebsd-10-stable/contrib/libarchive/libarchive/test/
H A Dmain.c1741 const char *newpath, const char *linkto)
1747 succeeded = my_CreateHardLinkA(newpath, linkto);
1749 succeeded = !link(linkto, newpath);
1756 logprintf(" New link: %s\n", newpath);
1765 const char *newpath, const char *linkto)
1770 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir))
1774 if (0 == symlink(linkto, newpath))
1778 logprintf(" New link: %s\n", newpath);
1740 assertion_make_hardlink(const char *file, int line, const char *newpath, const char *linkto) argument
1764 assertion_make_symlink(const char *file, int line, const char *newpath, const char *linkto) argument
/freebsd-10-stable/sys/cam/scsi/
H A Dscsi_xpt.c2933 struct cam_path newpath; local
2949 status = xpt_compile_path(&newpath, NULL,
2964 cam_freeze_devq(&newpath);
2965 cam_release_devq(&newpath,
2970 scsi_toggle_tags(&newpath);
2981 scsi_scan_lun(newpath.periph, &newpath,
2984 xpt_release_path(&newpath);
/freebsd-10-stable/sys/cam/ata/
H A Data_xpt.c1982 struct cam_path newpath; local
1998 status = xpt_compile_path(&newpath, NULL,
2014 ata_scan_lun(newpath.periph, &newpath,
2018 ata_scan_lun(newpath.periph, &newpath,
2021 xpt_release_path(&newpath);
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c2766 char oldpath[MAXPATHLEN], newpath[MAXPATHLEN]; local
2845 (void) strcpy(newpath, newvd->vdev_path);
2847 (void) snprintf(newpath, sizeof (newpath), ztest_dev_template,
2851 newpath[strlen(newpath) - 1] = 'b';
2852 newvd = vdev_lookup_by_path(rvd, newpath);
2884 else if (vdev_lookup_by_path(rvd, newpath) != NULL)
2896 * Build the nvlist describing newpath.
2898 root = make_vdev_root(newpath, NUL
[all...]

Completed in 323 milliseconds

12