Home
last modified time | relevance | path

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

/mirbsd/src/usr.bin/ssh/
Dsftp-server.c1011 char *oldpath, *newpath; in process_rename() local
1017 newpath = get_string(NULL); in process_rename()
1019 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename()
1025 if (link(oldpath, newpath) == -1) { in process_rename()
1033 if (stat(newpath, &st) == -1) { in process_rename()
1034 if (rename(oldpath, newpath) == -1) in process_rename()
1046 unlink(newpath); in process_rename()
1049 } else if (stat(newpath, &sb) == -1) { in process_rename()
1050 if (rename(oldpath, newpath) == -1) in process_rename()
1057 xfree(newpath); in process_rename()
[all …]
Dsftp-client.c734 do_rename(struct sftp_conn *conn, char *oldpath, char *newpath) in do_rename() argument
752 buffer_put_cstring(&msg, newpath); in do_rename()
756 "SSH2_FXP_RENAME", oldpath, newpath); in do_rename()
762 newpath, fx2txt(status)); in do_rename()
768 do_symlink(struct sftp_conn *conn, char *oldpath, char *newpath) in do_symlink() argument
785 buffer_put_cstring(&msg, newpath); in do_symlink()
788 newpath); in do_symlink()
794 newpath, fx2txt(status)); in do_symlink()
DPROTOCOL206 string newpath
209 rename(oldpath, newpath) and will respond with a SSH_FXP_STATUS message.
/mirbsd/src/gnu/usr.bin/lynx/src/
DLYLocal.c88 char **newpath);
890 char *newpath = NULL; in modify_name() local
922 HTSprintf0(&newpath, "%.*s%s", in modify_name()
926 StrAllocCopy(newpath, tmpbuf->str); in modify_name()
932 if (not_already_exists(newpath)) { in modify_name()
933 code = move_file(testpath, newpath); in modify_name()
935 FREE(newpath); in modify_name()
951 char *newpath = NULL; in modify_location() local
981 StrAllocCopy(newpath, testpath); in modify_location()
988 StrAllocCopy(newpath, Home_Dir()); in modify_location()
[all …]
DLYLocal.h14 extern int local_modify(DocInfo *doc, char **newpath);
18 extern BOOLEAN local_install(char *destpath, char *srcpath, char **newpath);
/mirbsd/src/gnu/usr.sbin/sendmail/sendmail/
Dmci.c1161 char newpath[MAXPATHLEN]; variable
1179 len = sizeof(newpath) - 3;
1180 if (sm_strlcpy(newpath, pathname, len) >= len)
1191 newptr = newpath + strlen(newpath);
1193 len = sizeof(newpath) - (newptr - newpath);
1217 newpath, e->d_name);
1224 ret = mci_traverse_persistent(action, newpath);
1253 ret = (*action)(newpath, NULL);
/mirbsd/src/gnu/usr.bin/texinfo/info/
Dfilesys.c216 char *newpath, *filename_only, *newtemp; in info_file_in_path() local
218 newpath = xstrdup (temp); in info_file_in_path()
220 newtemp = info_file_in_path (filename_only, newpath); in info_file_in_path()
222 free (newpath); in info_file_in_path()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dremote-fileio.c934 char *oldpath, *newpath; in remote_fileio_func_rename() local
959 newpath = alloca (length); in remote_fileio_func_rename()
960 retlength = remote_read_bytes (ptrval, newpath, length); in remote_fileio_func_rename()
969 nf = stat (newpath, &nst); in remote_fileio_func_rename()
978 ret = rename (oldpath, newpath); in remote_fileio_func_rename()
1002 cygwin_conv_to_full_posix_path (newpath, newfullpath); in remote_fileio_func_rename()
/mirbsd/src/gnu/usr.bin/cvs/src/
Drcs.c656 char *newpath; in RCS_setattic() local
675 newpath = xmalloc (strlen (rcs->path) + sizeof CVSATTIC + 5); in RCS_setattic()
677 strncpy (newpath, rcs->path, p - rcs->path); in RCS_setattic()
678 strcpy (newpath + (p - rcs->path), CVSATTIC); in RCS_setattic()
682 if (CVS_MKDIR (newpath, 0777) < 0 && errno != EEXIST) in RCS_setattic()
683 error (0, errno, "cannot make directory %s", newpath); in RCS_setattic()
686 strcat (newpath, "/"); in RCS_setattic()
687 strcat (newpath, p); in RCS_setattic()
689 if (CVS_RENAME (rcs->path, newpath) < 0) in RCS_setattic()
698 if (isreadable (rcs->path) || !isreadable (newpath)) in RCS_setattic()
[all …]
/mirbsd/src/gnu/usr.bin/binutils/gdb/doc/
Dgdb.texinfo23685 int rename(const char *oldpath, const char *newpath);
23698 newpath is an existing directory, but oldpath is not a
23702 newpath is a non-empty directory.
23705 oldpath or newpath is a directory that is in use by some
23715 and newpath exists but is not a directory.
23725 oldpath or newpath was too long.
23728 A directory component in oldpath or newpath does not exist.