/freebsd-10.2-release/contrib/subversion/subversion/libsvn_fs_util/ |
H A D | fs-util.c | 84 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 D | popen.c | 84 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 D | kldconfig.c | 132 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 D | sftp-server.c | 1139 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 D | sftp-client.c | 778 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 D | ofw_net.c | 245 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 D | svr4_fcntl.c | 387 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 D | camlib.c | 119 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 D | filepath.c | 81 APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath, 288 *newpath = path;
|
H A D | dir.c | 60 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 D | mci.c | 1162 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 D | filesys.c | 216 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 D | zfs_ctldir.c | 712 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 D | test.h | 251 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 D | main.c | 1616 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 D | test.h | 249 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 D | main.c | 1615 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 D | magic.c | 94 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 D | apr_file_info.h | 343 * @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 D | test.h | 252 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 D | main.c | 1639 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 D | cam_periph.c | 1610 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 D | remote-fileio.c | 906 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 D | linux_machdep.c | 131 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 D | pf_snmp.c | 1562 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))
|