/freebsd-11-stable/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-11-stable/contrib/subversion/subversion/libsvn_fs_util/ |
H A D | fs-util.c | 94 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-11-stable/sbin/kldconfig/ |
H A D | kldconfig.c | 125 char *newpath; local 129 if ((newpath = qstring(pathq)) == NULL) { 133 if (sysctl(mib, miblen, NULL, NULL, newpath, strlen(newpath)+1) == -1) 138 modpath = newpath;
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_fcntl.c | 387 char *newpath; local 390 CHECKALTEXIST(td, uap->path, &newpath); 393 error = kern_openat(td, AT_FDCWD, newpath, UIO_SYSSPACE, bsd_flags, 395 free(newpath, M_TEMP); 449 char *newpath; local 452 CHECKALTEXIST(td, uap->path, &newpath); 454 error = kern_openat(td, AT_FDCWD, newpath, UIO_SYSSPACE, 456 free(newpath, M_TEMP); 494 char *newpath; local 497 CHECKALTEXIST(td, uap->path, &newpath); [all...] |
H A D | svr4_misc.c | 663 char *newpath; local 666 CHECKALTEXIST(td, path, &newpath); 669 error = kern_mkfifoat(td, AT_FDCWD, newpath, UIO_SYSSPACE, 672 error = kern_mknodat(td, AT_FDCWD, newpath, UIO_SYSSPACE, 675 free(newpath, M_TEMP);
|
/freebsd-11-stable/stand/ofw/libofw/ |
H A D | ofw_net.c | 260 char newpath[255]; 262 OF_canon(path, newpath, 254); 269 if (strcmp(newpath, ofwninfo[i].ofwn_path) == 0)
|
/freebsd-11-stable/lib/libcam/ |
H A D | camlib.c | 119 char *newpath; local 133 newpath = (char *)strdup(path); 134 if (newpath == NULL) 137 tmpstr = newpath; 153 free(newpath); 182 free(newpath); 194 free(newpath); 206 free(newpath); 240 free(newpath);
|
/freebsd-11-stable/crypto/openssh/ |
H A D | sftp-server.c | 1175 char *oldpath, *newpath; local 1180 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) 1184 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); 1190 if (link(oldpath, newpath) == -1) { 1205 if (stat(newpath, &st) == -1) { 1206 if (rename(oldpath, newpath) == -1) 1218 unlink(newpath); 1221 } else if (stat(newpath, &sb) == -1) { 1222 if (rename(oldpath, newpath) == -1) 1229 free(newpath); 1260 char *oldpath, *newpath; local 1280 char *oldpath, *newpath; local 1338 char *oldpath, *newpath; local [all...] |
H A D | sftp-client.c | 873 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, argument 897 (r = sshbuf_put_cstring(msg, newpath)) != 0) 902 "SSH2_FXP_RENAME", oldpath, newpath); 908 newpath, fx2txt(status)); 914 do_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) argument 934 (r = sshbuf_put_cstring(msg, newpath)) != 0) 938 oldpath, newpath); 944 newpath, fx2txt(status)); 950 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) argument 969 (r = sshbuf_put_cstring(msg, newpath)) ! [all...] |
/freebsd-11-stable/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 | 64 const char *newpath = path_canonicalize (path, pool); local 67 for (i = (strlen(newpath) - 1); i >= 0; i--) {
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | mci.c | 1205 char newpath[MAXPATHLEN]; local 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, NUL [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_solaris.cpp | 141 const char *newpath) { 142 return _REAL(rename)(oldpath, newpath); 140 DECLARE__REAL_AND_INTERNAL(uptr, rename, const char *oldpath, const char *newpath) argument
|
H A D | sanitizer_posix.h | 55 uptr internal_rename(const char *oldpath, const char *newpath);
|
H A D | sanitizer_netbsd.cpp | 191 uptr internal_rename(const char *oldpath, const char *newpath) { argument 193 return _REAL(rename, oldpath, newpath);
|
/freebsd-11-stable/contrib/file/src/ |
H A D | magic.c | 92 char *newpath; local 110 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) 115 *hmagicpath = newpath;
|
/freebsd-11-stable/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-11-stable/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-11-stable/sys/i386/linux/ |
H A D | linux_machdep.c | 104 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-11-stable/usr.sbin/bsnmpd/modules/snmp_pf/ |
H A D | pf_snmp.c | 1564 char newpath[MAXPATHLEN]; local 1589 strlcpy(newpath, path, sizeof(newpath)); 1591 strlcat(newpath, "/", sizeof(newpath)); 1593 strlcat(newpath, prs.name, sizeof(newpath)); 1594 if (pfl_walk_rulesets(newpath))
|
/freebsd-11-stable/sys/cam/ |
H A D | cam_periph.c | 1760 struct cam_path *newpath; local 1939 if (xpt_create_path(&newpath, periph, 1948 xpt_async(AC_LOST_DEVICE, newpath, NULL); 1949 xpt_free_path(newpath); 1959 if (xpt_create_path(&newpath, NULL, 1966 scan_ccb->ccb_h.path = newpath; 1971 xpt_print(newpath, 1973 xpt_free_path(newpath);
|
/freebsd-11-stable/contrib/libarchive/test_utils/ |
H A D | test_common.h | 319 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);
|
/freebsd-11-stable/contrib/libarchive/libarchive/test/ |
H A D | main.c | 1741 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-11-stable/sys/cam/scsi/ |
H A D | scsi_xpt.c | 2965 struct cam_path newpath; local 2981 status = xpt_compile_path(&newpath, NULL, 2996 cam_freeze_devq(&newpath); 2997 cam_release_devq(&newpath, 3002 scsi_toggle_tags(&newpath); 3013 scsi_scan_lun(newpath.periph, &newpath, 3016 xpt_release_path(&newpath);
|
/freebsd-11-stable/sys/cam/ata/ |
H A D | ata_xpt.c | 2038 struct cam_path newpath; local 2054 status = xpt_compile_path(&newpath, NULL, 2070 ata_scan_lun(newpath.periph, &newpath, 2074 ata_scan_lun(newpath.periph, &newpath, 2077 xpt_release_path(&newpath);
|