| /openbsd-src/gnu/usr.bin/gcc/gcc/ |
| H A D | genextract.c | 191 char *newpath; local 224 newpath = (char *) xmalloc (depth + 2); 225 strcpy (newpath, path); 226 newpath[depth + 1] = 0; 230 newpath[depth] = (code == MATCH_OP_DUP ? '0' : 'a') + i; 231 walk_rtx (XVECEXP (x, 1, i), newpath); 233 free (newpath); 240 newpath = (char *) xmalloc (depth + 2); 241 strcpy (newpath, path); 242 newpath[depth + 1] = 0; [all …]
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | sftp-server.c | 1248 char *oldpath, *newpath; in process_rename() local 1253 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename() 1257 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename() 1263 if (link(oldpath, newpath) == -1) { in process_rename() 1271 if (stat(newpath, &st) == -1) { in process_rename() 1272 if (rename(oldpath, newpath) == -1) in process_rename() 1284 unlink(newpath); in process_rename() 1287 } else if (stat(newpath, &sb) == -1) { in process_rename() 1288 if (rename(oldpath, newpath) == -1) in process_rename() 1295 free(newpath); in process_rename() [all …]
|
| H A D | sftp-client.c | 1083 sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath) in sftp_copy() argument 1149 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy() 1155 debug3("Sent message SSH2_FXP_OPEN I:%u P:%s", id, newpath); in sftp_copy() 1160 "remote open(\"%s\")", newpath); in sftp_copy() 1180 oldpath, newpath); in sftp_copy() 1185 newpath, fx2txt(status)); in sftp_copy() 1198 sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in sftp_rename() argument 1212 "\"%s\" to \"%s\"", oldpath, newpath); in sftp_rename() 1220 oldpath, newpath); in sftp_rename() 1226 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename() [all …]
|
| H A D | PROTOCOL | 504 string newpath 507 rename(oldpath, newpath) and will respond with a SSH_FXP_STATUS message. 561 string newpath 564 link(oldpath, newpath) and will respond with a SSH_FXP_STATUS message.
|
| /openbsd-src/gnu/usr.bin/texinfo/info/ |
| H A D | filesys.c | 216 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()
|
| /openbsd-src/usr.sbin/httpd/ |
| H A D | server_file.c | 68 char *newpath, *encodedpath; in server_file_access() local 105 if (asprintf(&newpath, "%s/", encodedpath) == -1) { in server_file_access() 112 desc->http_path_alias = newpath; in server_file_access() 119 if (asprintf(&newpath, "%s%s", desc->http_path, in server_file_access() 124 desc->http_path_alias = newpath; in server_file_access() 125 if (server_getlocation(clt, newpath) != srv_conf) { in server_file_access()
|
| /openbsd-src/gnu/usr.sbin/mkhybrid/src/ |
| H A D | files.c | 229 FDECL3(look_up_addition,char **, newpath, char *,path, struct dirent **,de) in FDECL3() argument 269 *newpath = tmp->adds[tmp->used].path; in FDECL3() 310 *newpath = tmp->adds[tmp->used].path; in FDECL2()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-Install/lib/ExtUtils/ |
| H A D | Packlist.pm | 142 my $newpath = File::Spec->catpath($vol, $dir, $data->{relocate_as}); 143 $key = Cwd::realpath($newpath);
|
| /openbsd-src/usr.sbin/bgpd/ |
| H A D | rde_peer.c | 248 struct prefix *newpath, struct prefix *oldpath, in peer_generate_update() 279 up_generate_addpath_all(peer, re, newpath, oldpath); 292 rde_generate_updates(struct rib_entry *re, struct prefix *newpath, in peer_adjout_stale_upcall() 298 peer_generate_update(peer, re, newpath, oldpath, mode); in peer_adjout_stale_upcall() 227 peer_generate_update(struct rde_peer * peer,struct rib_entry * re,struct prefix * newpath,struct prefix * oldpath,enum eval_mode mode) peer_generate_update() argument 270 rde_generate_updates(struct rib_entry * re,struct prefix * newpath,struct prefix * oldpath,enum eval_mode mode) rde_generate_updates() argument
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | remote-fileio.c | 906 char *oldpath, *newpath; in remote_fileio_func_rename() local 931 newpath = alloca (length); in remote_fileio_func_rename() 932 retlength = remote_read_bytes (ptrval, newpath, length); in remote_fileio_func_rename() 941 nf = stat (newpath, &nst); in remote_fileio_func_rename() 950 ret = rename (oldpath, newpath); in remote_fileio_func_rename() 974 cygwin_conv_to_full_posix_path (newpath, newfullpath); in remote_fileio_func_rename()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_solaris.cpp | 155 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument 156 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
|
| H A D | sanitizer_netbsd.cpp | 202 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 204 return _REAL(rename, oldpath, newpath); in internal_rename()
|
| H A D | sanitizer_posix.h | 56 uptr internal_rename(const char *oldpath, const char *newpath);
|
| H A D | sanitizer_linux.cpp | 494 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 497 (uptr)newpath, 0); in internal_rename() 500 (uptr)newpath); in internal_rename() 502 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
|
| H A D | sanitizer_mac.cpp | 369 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument 370 return rename(oldpath, newpath); in internal_rename()
|
| /openbsd-src/gnu/usr.bin/cvs/src/ |
| H A D | rcs.c | 619 char *newpath; local 638 newpath = xmalloc (strlen (rcs->path) + sizeof CVSATTIC + 5); 640 strncpy (newpath, rcs->path, p - rcs->path); 641 strcpy (newpath + (p - rcs->path), CVSATTIC); 645 if (CVS_MKDIR (newpath, 0777) < 0 && errno != EEXIST) 646 error (0, errno, "cannot make directory %s", newpath); 649 strcat (newpath, "/"); 650 strcat (newpath, p); 652 if (CVS_RENAME (rcs->path, newpath) < 0) 661 if (isreadable (rcs->path) || !isreadable (newpath)) [all …]
|
| /openbsd-src/regress/usr.sbin/bgpd/unittests/ |
| H A D | rde_decide_test.c | 359 rde_generate_updates(struct rib_entry *re, struct prefix *newpath, in rde_generate_updates() argument
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | doio.c | 1618 S_my_renameat(int olddfd, const char *oldpath, int newdfd, const char *newpath) { in S_dir_unchanged() 1621 assert(PERL_FILE_IS_ABSOLUTE(oldpath) == PERL_FILE_IS_ABSOLUTE(newpath)); in S_dir_unchanged() 1623 return PerlLIO_rename(oldpath, newpath); in S_dir_unchanged() 1626 return renameat(olddfd, oldpath, newdfd, newpath); in S_dir_unchanged() 1575 S_my_renameat(int olddfd,const char * oldpath,int newdfd,const char * newpath) S_my_renameat() argument
|