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

12

/freebsd-10.2-release/contrib/subversion/subversion/libsvn_fs_util/
H A Dfs-util.c84 char *newpath; local
104 newpath = apr_palloc(pool, path_len + 2);
109 newpath[newpath_i++] = '/';
132 newpath[newpath_i++] = path[path_i];
137 if ((newpath[newpath_i - 1] == '/') && (newpath_i > 1))
138 newpath[newpath_i - 1] = '\0';
140 newpath[newpath_i] = '\0';
142 return newpath;
/freebsd-10.2-release/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.2-release/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.2-release/crypto/openssh/
H A Dsftp-server.c1139 char *oldpath, *newpath; local
1144 newpath = get_string(NULL);
1146 logit("rename old \"%s\" new \"%s\"", oldpath, newpath);
1152 if (link(oldpath, newpath) == -1) {
1167 if (stat(newpath, &st) == -1) {
1168 if (rename(oldpath, newpath) == -1)
1180 unlink(newpath);
1183 } else if (stat(newpath, &sb) == -1) {
1184 if (rename(oldpath, newpath) == -1)
1191 free(newpath);
1220 char *oldpath, *newpath; local
1238 char *oldpath, *newpath; local
1291 char *oldpath, *newpath; local
[all...]
H A Dsftp-client.c778 do_rename(struct sftp_conn *conn, char *oldpath, char *newpath, argument
798 buffer_put_cstring(&msg, newpath);
802 oldpath, newpath);
808 newpath, fx2txt(status));
814 do_hardlink(struct sftp_conn *conn, char *oldpath, char *newpath) argument
832 buffer_put_cstring(&msg, newpath);
835 oldpath, newpath);
841 newpath, fx2txt(status));
847 do_symlink(struct sftp_conn *conn, char *oldpath, char *newpath) argument
864 buffer_put_cstring(&msg, newpath);
[all...]
/freebsd-10.2-release/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.2-release/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...]
/freebsd-10.2-release/lib/libcam/
H A Dcamlib.c119 char *newpath; local
134 newpath = (char *)strdup(path);
135 tmpstr = newpath;
150 free(newpath);
179 free(newpath);
191 free(newpath);
203 free(newpath);
237 free(newpath);
/freebsd-10.2-release/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.2-release/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.2-release/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.2-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_ctldir.c712 char newpath[MAXNAMELEN]; local
739 (void) strncpy(newpath, refstr_value(pathref), sizeof (newpath));
740 VERIFY((tail = strrchr(newpath, '/')) != NULL);
742 ASSERT3U(strlen(newpath) + strlen(nm), <, sizeof (newpath));
743 (void) strcat(newpath, nm);
745 vfs_setmntpoint(vfsp, newpath, 0);
748 (void) strncpy(newpath, refstr_value(pathref), sizeof (newpath));
[all...]
/freebsd-10.2-release/contrib/libarchive/tar/test/
H A Dtest.h251 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
252 int assertion_make_symlink(const char *, int, const char *newpath, const char *);
H A Dmain.c1616 const char *newpath, const char *linkto)
1622 succeeded = my_CreateHardLinkA(newpath, linkto);
1624 succeeded = !link(linkto, newpath);
1631 logprintf(" New link: %s\n", newpath);
1640 const char *newpath, const char *linkto)
1645 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir))
1649 if (0 == symlink(linkto, newpath))
1653 logprintf(" New link: %s\n", newpath);
1615 assertion_make_hardlink(const char *file, int line, const char *newpath, const char *linkto) argument
1639 assertion_make_symlink(const char *file, int line, const char *newpath, const char *linkto) argument
/freebsd-10.2-release/contrib/libarchive/cpio/test/
H A Dtest.h249 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
250 int assertion_make_symlink(const char *, int, const char *newpath, const char *);
H A Dmain.c1615 const char *newpath, const char *linkto)
1621 succeeded = my_CreateHardLinkA(newpath, linkto);
1623 succeeded = !link(linkto, newpath);
1630 logprintf(" New link: %s\n", newpath);
1639 const char *newpath, const char *linkto)
1644 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir))
1648 if (0 == symlink(linkto, newpath))
1652 logprintf(" New link: %s\n", newpath);
1614 assertion_make_hardlink(const char *file, int line, const char *newpath, const char *linkto) argument
1638 assertion_make_symlink(const char *file, int line, const char *newpath, const char *linkto) argument
/freebsd-10.2-release/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.2-release/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.2-release/contrib/libarchive/libarchive/test/
H A Dtest.h252 int assertion_make_hardlink(const char *, int, const char *newpath, const char *);
253 int assertion_make_symlink(const char *, int, const char *newpath, const char *);
H A Dmain.c1639 const char *newpath, const char *linkto)
1645 succeeded = my_CreateHardLinkA(newpath, linkto);
1647 succeeded = !link(linkto, newpath);
1654 logprintf(" New link: %s\n", newpath);
1663 const char *newpath, const char *linkto)
1668 if (my_CreateSymbolicLinkA(newpath, linkto, targetIsDir))
1672 if (0 == symlink(linkto, newpath))
1676 logprintf(" New link: %s\n", newpath);
1638 assertion_make_hardlink(const char *file, int line, const char *newpath, const char *linkto) argument
1662 assertion_make_symlink(const char *file, int line, const char *newpath, const char *linkto) argument
/freebsd-10.2-release/sys/cam/
H A Dcam_periph.c1610 struct cam_path *newpath; local
1769 if (xpt_create_path(&newpath, periph,
1778 xpt_async(AC_LOST_DEVICE, newpath, NULL);
1779 xpt_free_path(newpath);
1789 if (xpt_create_path(&newpath, NULL,
1796 scan_ccb->ccb_h.path = newpath;
1801 xpt_print(newpath,
1803 xpt_free_path(newpath);
/freebsd-10.2-release/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.2-release/sys/i386/linux/
H A Dlinux_machdep.c131 char *newpath; local
134 LCONVPATHEXIST(td, args->path, &newpath);
138 printf(ARGS(execve, "%s"), newpath);
143 free(newpath, M_TEMP);
146 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE,
148 free(newpath, M_TEMP);
/freebsd-10.2-release/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))

Completed in 310 milliseconds

12