Home
last modified time | relevance | path

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

12

/netbsd-src/external/bsd/pcc/dist/pcc/os/win32/
H A Dpcc.iss36 newpath : String;
57 newpath := pathArr[i-1];
59 newpath := newpath + ';' + pathArr[i-1];
64 newpath := newpath + ';' + BinDir;
66 …EY_LOCAL_MACHINE, 'System\CurrentControlSet\Control\Session Manager\Environment', 'Path', newpath);
/netbsd-src/external/bsd/nsd/dist/contrib/bind2nsd/bind2nsd/
H A DNsdConf.py437 def make_zone_copy(self, oldpath, newpath): argument
439 report_info('=> copying "%s" to "%s"' % (oldpath, newpath))
442 os.system('touch ' + newpath)
446 newfd = open(newpath, 'w+')
507 newpath = self.config.getValue('tmpdir') + self.zones[ii].getZonefile()
508 if not os.path.exists(os.path.dirname(newpath)):
509 os.makedirs(os.path.dirname(newpath))
510 self.make_zone_copy(oldpath, newpath)
521 newpath = self.config.getValue('tmpdir') + ii
522 run_cmd('touch ' + newpath, 'touch "%s"' % (newpath))
/netbsd-src/sys/dev/
H A Dfirmload.c83 char newpath[PATH_MAX+1]; in sysctl_hw_firmware_path() local
88 node.sysctl_data = &newpath[0]; in sysctl_hw_firmware_path()
103 if (expected_char != 0 && newpath[i] != expected_char) in sysctl_hw_firmware_path()
105 if (newpath[i] == '\0') in sysctl_hw_firmware_path()
107 else if (newpath[i] == ':') in sysctl_hw_firmware_path()
/netbsd-src/usr.bin/utoppya/
H A Dutoppya.c277 char *oldpath, *newpath, *o, *n; in cmd_rename() local
283 n = newpath = argv[2]; in cmd_rename()
288 for (n = newpath; *n != '\0'; n++) in cmd_rename()
294 for (n = newpath; *n && *n == '\\'; n++) in cmd_rename()
299 oldpath, newpath); in cmd_rename()
307 if (find_toppy_dirent(newpath, &ud)) in cmd_rename()
308 errx(EX_DATAERR, "'%s' already exists", newpath); in cmd_rename()
315 newpath); in cmd_rename()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsftp-server.c1254 char *oldpath, *newpath; in process_rename() local
1259 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0) in process_rename()
1263 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename()
1269 if (link(oldpath, newpath) == -1) { in process_rename()
1277 if (stat(newpath, &st) == -1) { in process_rename()
1278 if (rename(oldpath, newpath) == -1) in process_rename()
1290 unlink(newpath); in process_rename()
1293 } else if (stat(newpath, &sb) == -1) { in process_rename()
1294 if (rename(oldpath, newpath) == -1) in process_rename()
1301 free(newpath); in process_rename()
[all …]
H A Dsftp-client.c1089 sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath) in sftp_copy() argument
1155 (r = sshbuf_put_cstring(msg, newpath)) != 0 || in sftp_copy()
1161 debug3("Sent message SSH2_FXP_OPEN I:%u P:%s", id, newpath); in sftp_copy()
1166 "remote open(\"%s\")", newpath); in sftp_copy()
1186 oldpath, newpath); in sftp_copy()
1191 newpath, fx2txt(status)); in sftp_copy()
1204 sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in sftp_rename() argument
1218 "\"%s\" to \"%s\"", oldpath, newpath); in sftp_rename()
1226 oldpath, newpath); in sftp_rename()
1232 (r = sshbuf_put_cstring(msg, newpath)) != 0) in sftp_rename()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/conf/
H A Dconf_def.c734 char *newpath; in get_next_file() local
738 newpath = OPENSSL_zalloc(newlen); in get_next_file()
739 if (newpath == NULL) { in get_next_file()
752 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
755 if (newpath[0] == '\0') { in get_next_file()
756 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
757 OPENSSL_strlcat(newpath, "/", newlen); in get_next_file()
759 OPENSSL_strlcat(newpath, filename, newlen); in get_next_file()
761 bio = BIO_new_file(newpath, "r"); in get_next_file()
762 OPENSSL_free(newpath); in get_next_file()
/netbsd-src/external/gpl2/lvm2/dist/libdm/
H A Dlibdm-common.c555 char newpath[PATH_MAX]; in _rename_dev_node() local
573 "is present where raw device should be.", newpath); in _rename_dev_node()
595 _build_dev_path(newpath, sizeof(newpath), new_name); in _rename_dev_node()
597 if (stat(newpath, &info) == 0) { in _rename_dev_node()
600 "is already present", newpath); in _rename_dev_node()
612 oldpath, newpath); in _rename_dev_node()
617 if (unlink(newpath) < 0) { in _rename_dev_node()
631 oldpath, newpath); in _rename_dev_node()
633 if (rename(oldpath, newpath) < 0) { in _rename_dev_node()
639 log_debug("Renamed %s to %s", oldpath, newpath); in _rename_dev_node()
/netbsd-src/crypto/external/bsd/openssl/dist/util/perl/OpenSSL/
H A DTest.pm1123 my $newpath = abs2rel($oldpath, $absdir);
1127 print STDERR "DEBUG: [dir $_] resulting new path: $newpath\n";
1129 $tmp_directories{$_} = $newpath;
1139 my $newpath = abs2rel($oldpath, $absdir);
1143 print STDERR "DEBUG: [env $_] resulting new path: $newpath\n";
1145 $tmp_ENV{$_} = $newpath;
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dlog.c1222 char newpath[PATH_MAX + 1]; in remove_old_tsversions()
1270 n = snprintf(newpath, sizeof(newpath), "%s.%u", path, in roll_increment()
1272 if (n >= (int)sizeof(newpath) || n < 0) { in roll_increment()
1277 result = isc_file_rename(current, newpath); in roll_increment()
1287 n = snprintf(newpath, sizeof(newpath), "%s.0", path); in roll_increment()
1288 if (n >= (int)sizeof(newpath) || n < 0) { in roll_increment()
1291 result = isc_file_rename(path, newpath); in roll_increment()
1305 char newpath[PATH_MA in roll_increment()
1257 char newpath[PATH_MAX + 1]; roll_increment() local
1340 char newpath[PATH_MAX + 1]; roll_timestamp() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dlog.c1256 char newpath[PATH_MAX + 1]; in roll_increment() local
1304 n = snprintf(newpath, sizeof(newpath), "%s.%u", path, in roll_increment()
1306 if (n >= (int)sizeof(newpath) || n < 0) { in roll_increment()
1311 result = isc_file_rename(current, newpath); in roll_increment()
1321 n = snprintf(newpath, sizeof(newpath), "%s.0", path); in roll_increment()
1322 if (n >= (int)sizeof(newpath) || n < 0) { in roll_increment()
1325 result = isc_file_rename(path, newpath); in roll_increment()
1339 char newpath[PATH_MAX + 1]; in roll_timestamp() local
1361 n = snprintf(newpath, sizeof(newpath), "%s.%s", path, newts); in roll_timestamp()
1362 if (n >= (int)sizeof(newpath) || n < 0) { in roll_timestamp()
[all …]
/netbsd-src/lib/libpuffs/
H A Dpaths.c221 size_t offset, struct puffs_pathobj *newpath) in puffs_stdpath_buildpath() argument
287 newpath->po_path = path; in puffs_stdpath_buildpath()
288 newpath->po_len = plen; in puffs_stdpath_buildpath()
/netbsd-src/lib/librefuse/refuse/
H A Dfs.h62 int fuse_fs_rename_v27(struct fuse_fs* fs, const char* oldpath, const char* newpath);
63 int fuse_fs_rename_v30(struct fuse_fs* fs, const char* oldpath, const char* newpath, unsigned int f…
67 int fuse_fs_link(struct fuse_fs* fs, const char* oldpath, const char* newpath);
/netbsd-src/external/gpl2/texinfo/dist/info/
H A Dfilesys.c218 char *newpath, *filename_only, *newtemp; in info_file_in_path() local
220 newpath = xstrdup (temp); in info_file_in_path()
222 newtemp = info_file_in_path (filename_only, newpath); in info_file_in_path()
224 free (newpath); in info_file_in_path()
/netbsd-src/external/bsd/openldap/dist/servers/slapd/back-ldif/
H A Dldif.c1561 struct berval newpath; in ldif_move_entry() local
1568 newpath = *oldpath; in ldif_move_entry()
1570 rc = ldif_prepare_create( op, entry, &newpath, in ldif_move_entry()
1577 rc = ldif_write_entry( op, entry, &newpath, parentdir, text ); in ldif_move_entry()
1580 ldif2dir_len( newpath ); in ldif_move_entry()
1585 ldif2dir_name( newpath ); in ldif_move_entry()
1587 rename_res = move_dir( oldpath->bv_val, newpath.bv_val ); in ldif_move_entry()
1591 trash = newpath.bv_val; in ldif_move_entry()
1596 dir2ldif_name( newpath ); in ldif_move_entry()
1604 trash = newpath.bv_val; in ldif_move_entry()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/util/perl/OpenSSL/
H A DTest.pm1049 my $newpath = abs2rel(rel2abs($directories{$_}), rel2abs($dir));
1050 $tmp_directories{$_} = $newpath;
1059 my $newpath = abs2rel(rel2abs($ENV{$_}), rel2abs($dir));
1060 $tmp_ENV{$_} = $newpath;
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_solaris.cpp155 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
156 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_solaris.cc141 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
142 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
H A Dsanitizer_rtems.cc231 bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { in RenameFile() argument
232 uptr res = rename(oldpath, newpath); in RenameFile()
H A Dsanitizer_posix.cc194 bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { in RenameFile() argument
195 uptr res = internal_rename(oldpath, newpath); in RenameFile()
H A Dsanitizer_file.h67 bool RenameFile(const char *oldpath, const char *newpath,
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_solaris.cc141 const char *newpath) { in DECLARE__REAL_AND_INTERNAL() argument
142 return _REAL(rename)(oldpath, newpath); in DECLARE__REAL_AND_INTERNAL()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-go/
H A Dllvm-go.go181 newpath := os.Getenv("PATH")
196 "PATH=" + newpath,
/netbsd-src/sys/rump/librump/rumpvfs/
H A Drumpfs.c735 char *newpath; in rump_vop_lookup() local
743 newpath = malloc(newpathlen, M_TEMP, M_WAITOK); in rump_vop_lookup()
745 strlcpy(newpath, rnd->rn_hostpath, newpathlen); in rump_vop_lookup()
746 strlcat(newpath, "/", newpathlen); in rump_vop_lookup()
747 strlcat(newpath, cnp->cn_nameptr, newpathlen); in rump_vop_lookup()
749 if ((error = rumpuser_getfileinfo(newpath, &fsize, &hft)) != 0){ in rump_vop_lookup()
750 free(newpath, M_TEMP); in rump_vop_lookup()
756 free(newpath, M_TEMP); in rump_vop_lookup()
767 rn->rn_hostpath = newpath; in rump_vop_lookup()
/netbsd-src/external/bsd/file/dist/src/
H A Dmagic.c98 char *newpath; in _w32_append_path() local
116 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path()
121 *hmagicpath = newpath; in _w32_append_path()

12