HomeSort by: relevance | last modified time | path
    Searched defs:newpath (Results 1 - 24 of 24) sorted by relevancy

  /src/sys/dev/
firmload.c 83 char newpath[PATH_MAX+1]; local
88 node.sysctl_data = &newpath[0];
103 if (expected_char != 0 && newpath[i] != expected_char)
105 if (newpath[i] == '\0')
107 else if (newpath[i] == ':')
  /src/usr.bin/utoppya/
utoppya.c 277 char *oldpath, *newpath, *o, *n; local
283 n = newpath = argv[2];
288 for (n = newpath; *n != '\0'; n++)
294 for (n = newpath; *n && *n == '\\'; n++)
299 oldpath, newpath);
307 if (find_toppy_dirent(newpath, &ud))
308 errx(EX_DATAERR, "'%s' already exists", newpath);
315 newpath);
  /src/external/bsd/nsd/dist/contrib/bind2nsd/bind2nsd/
NsdConf.py 437 def make_zone_copy(self, oldpath, newpath):
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() variable in class:NsdConf
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 variable in class:NsdConf
522 run_cmd('touch ' + newpath, 'touch "%s"' % (newpath)
    [all...]
  /src/external/bsd/file/dist/src/
magic.c 98 char *newpath; local
116 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0)
121 *hmagicpath = newpath;
  /src/crypto/external/bsd/openssl.old/dist/crypto/conf/
conf_def.c 734 char *newpath; local
738 newpath = OPENSSL_zalloc(newlen);
739 if (newpath == NULL) {
752 OPENSSL_strlcpy(newpath, path, newlen);
755 if (newpath[0] == '\0') {
756 OPENSSL_strlcpy(newpath, path, newlen);
757 OPENSSL_strlcat(newpath, "/", newlen);
759 OPENSSL_strlcat(newpath, filename, newlen);
761 bio = BIO_new_file(newpath, "r");
762 OPENSSL_free(newpath);
    [all...]
  /src/external/gpl2/texinfo/dist/info/
filesys.c 218 char *newpath, *filename_only, *newtemp; local
220 newpath = xstrdup (temp);
222 newtemp = info_file_in_path (filename_only, newpath);
224 free (newpath);
  /src/crypto/external/apache2/openssl/dist/crypto/conf/
conf_def.c 853 char *newpath; local
857 newpath = OPENSSL_zalloc(newlen);
858 if (newpath == NULL)
869 OPENSSL_strlcpy(newpath, path, newlen);
872 if (newpath[0] == '\0') {
873 OPENSSL_strlcpy(newpath, path, newlen);
874 OPENSSL_strlcat(newpath, "/", newlen);
876 OPENSSL_strlcat(newpath, filename, newlen);
878 bio = BIO_new_file(newpath, "r");
879 OPENSSL_free(newpath);
    [all...]
  /src/crypto/external/bsd/openssl/dist/crypto/conf/
conf_def.c 864 char *newpath; local
868 newpath = OPENSSL_zalloc(newlen);
869 if (newpath == NULL) {
882 OPENSSL_strlcpy(newpath, path, newlen);
885 if (newpath[0] == '\0') {
886 OPENSSL_strlcpy(newpath, path, newlen);
887 OPENSSL_strlcat(newpath, "/", newlen);
889 OPENSSL_strlcat(newpath, filename, newlen);
891 bio = BIO_new_file(newpath, "r");
892 OPENSSL_free(newpath);
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/
remote-fileio.c 724 char *oldpath, *newpath; local
735 /* 2. Parameter: Ptr to newpath / length incl. trailing zero */
750 /* Request newpath using 'm' packet */
751 newpath = (char *) alloca (new_len);
752 if (target_read_memory (new_ptr, (gdb_byte *) newpath, new_len) != 0)
760 nf = stat (newpath, &nst);
768 ret = rename (oldpath, newpath);
772 /* Special case: newpath is a non-empty directory. Some systems
793 cygwin_conv_path (CCP_WIN_A_TO_POSIX, newpath, newfullpath,
  /src/external/gpl3/gdb/dist/gdb/
remote-fileio.c 724 char *oldpath, *newpath; local
735 /* 2. Parameter: Ptr to newpath / length incl. trailing zero */
750 /* Request newpath using 'm' packet */
751 newpath = (char *) alloca (new_len);
752 if (target_read_memory (new_ptr, (gdb_byte *) newpath, new_len) != 0)
760 nf = stat (newpath, &nst);
768 ret = rename (oldpath, newpath);
772 /* Special case: newpath is a non-empty directory. Some systems
793 cygwin_conv_path (CCP_WIN_A_TO_POSIX, newpath, newfullpath,
  /src/sys/fs/hfs/
libhfs.c 384 char* newpath; local
412 newpath = hfslib_realloc(path, 514 + total_path_length*2, cbargs);
413 if (newpath == NULL)
415 path = newpath;
  /src/external/gpl2/lvm2/dist/libdm/
libdm-common.c 555 char newpath[PATH_MAX]; local
573 "is present where raw device should be.", newpath);
595 _build_dev_path(newpath, sizeof(newpath), new_name);
597 if (stat(newpath, &info) == 0) {
600 "is already present", newpath);
612 oldpath, newpath);
617 if (unlink(newpath) < 0) {
631 oldpath, newpath);
633 if (rename(oldpath, newpath) < 0)
    [all...]
  /src/external/mit/libuv/dist/test/
test-spawn.c 1353 char newpath[2048]; local
1356 snprintf(newpath, 2048, ";.;%s", path);
1357 SetEnvironmentVariable("PATH", newpath);
  /src/external/mpl/bind/dist/lib/isc/
log.c 1222 char newpath[PATH_MAX + 1]; local
1270 n = snprintf(newpath, sizeof(newpath), "%s.%u", path,
1272 if (n >= (int)sizeof(newpath) || n < 0) {
1277 result = isc_file_rename(current, newpath);
1287 n = snprintf(newpath, sizeof(newpath), "%s.0", path);
1288 if (n >= (int)sizeof(newpath) || n < 0) {
1291 result = isc_file_rename(path, newpath);
1305 char newpath[PATH_MAX + 1] local
    [all...]
  /src/external/mpl/dhcp/bind/dist/lib/isc/
log.c 1256 char newpath[PATH_MAX + 1]; local
1304 n = snprintf(newpath, sizeof(newpath), "%s.%u", path,
1306 if (n >= (int)sizeof(newpath) || n < 0) {
1311 result = isc_file_rename(current, newpath);
1321 n = snprintf(newpath, sizeof(newpath), "%s.0", path);
1322 if (n >= (int)sizeof(newpath) || n < 0) {
1325 result = isc_file_rename(path, newpath);
1339 char newpath[PATH_MAX + 1] local
    [all...]
  /src/lib/libukfs/
ukfs.c 1029 char *newpath, *oldpath; local
1037 newpath = malloc(MAXPATHLEN);
1038 if (rump_sys___getcwd(newpath, MAXPATHLEN) == -1) {
1044 ukfs->ukfs_cwd = newpath;
  /src/sys/rump/librump/rumpvfs/
rumpfs.c 735 char *newpath; local
743 newpath = malloc(newpathlen, M_TEMP, M_WAITOK);
745 strlcpy(newpath, rnd->rn_hostpath, newpathlen);
746 strlcat(newpath, "/", newpathlen);
747 strlcat(newpath, cnp->cn_nameptr, newpathlen);
749 if ((error = rumpuser_getfileinfo(newpath, &fsize, &hft)) != 0){
750 free(newpath, M_TEMP);
756 free(newpath, M_TEMP);
767 rn->rn_hostpath = newpath;
  /src/external/bsd/openldap/dist/servers/slapd/back-ldif/
ldif.c 1668 struct berval newpath; local
1675 newpath = *oldpath;
1677 rc = ldif_prepare_create( op, entry, &newpath,
1684 rc = ldif_write_entry( op, entry, &newpath, parentdir, text );
1687 ldif2dir_len( newpath );
1692 ldif2dir_name( newpath );
1694 rename_res = move_dir( oldpath->bv_val, newpath.bv_val );
1698 trash = newpath.bv_val;
1703 dir2ldif_name( newpath );
1711 trash = newpath.bv_val
    [all...]
  /src/external/cddl/osnet/dist/lib/libzfs/common/
libzfs_pool.c 3409 char *newpath; local
3411 if ((newpath = devid_to_path(devid)) != NULL) {
3415 set_path(zhp, nv, newpath);
3417 ZPOOL_CONFIG_PATH, newpath) == 0)
3421 free(newpath);
  /src/external/gpl3/gdb/dist/sim/v850/
simops.c 1818 char *newpath = fetch_str (simulator, PARM2);
1819 RETVAL = sim_io_rename (simulator, oldpath, newpath);
1821 free (newpath);
1815 char *newpath = fetch_str (simulator, PARM2); local
  /src/external/gpl3/gdb.old/dist/sim/v850/
simops.c 1818 char *newpath = fetch_str (simulator, PARM2);
1819 RETVAL = sim_io_rename (simulator, oldpath, newpath);
1821 free (newpath);
1815 char *newpath = fetch_str (simulator, PARM2); local
  /src/crypto/external/bsd/openssh/dist/
sftp-server.c 1254 char *oldpath, *newpath; local
1259 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1263 logit("rename old \"%s\" new \"%s\"", oldpath, newpath);
1269 if (link(oldpath, newpath) == -1) {
1277 if (stat(newpath, &st) == -1) {
1278 if (rename(oldpath, newpath) == -1)
1290 unlink(newpath);
1293 } else if (stat(newpath, &sb) == -1) {
1294 if (rename(oldpath, newpath) == -1)
1301 free(newpath);
1332 char *oldpath, *newpath; local
1352 char *oldpath, *newpath; local
1410 char *oldpath, *newpath; local
    [all...]
  /src/external/gpl2/xcvs/dist/src/
rcs.c 655 char *newpath; local
674 newpath = xmalloc (strlen (rcs->path) + sizeof CVSATTIC + 5);
676 strncpy (newpath, rcs->path, p - rcs->path);
677 strcpy (newpath + (p - rcs->path), CVSATTIC);
681 if (CVS_MKDIR (newpath, 0777) < 0 && errno != EEXIST)
682 error (0, errno, "cannot make directory %s", newpath);
685 strcat (newpath, "/");
686 strcat (newpath, p);
688 if (CVS_RENAME (rcs->path, newpath) < 0)
697 if (isreadable (rcs->path) || !isreadable (newpath))
    [all...]
  /src/external/cddl/osnet/dist/cmd/ztest/
ztest.c 2757 char oldpath[MAXPATHLEN], newpath[MAXPATHLEN]; local
2836 (void) strcpy(newpath, newvd->vdev_path);
2838 (void) snprintf(newpath, sizeof (newpath), ztest_dev_template,
2842 newpath[strlen(newpath) - 1] = 'b';
2843 newvd = vdev_lookup_by_path(rvd, newpath);
2875 else if (vdev_lookup_by_path(rvd, newpath) != NULL)
2887 * Build the nvlist describing newpath.
2889 root = make_vdev_root(newpath, NULL, NULL, newvd == NULL ? newsize : 0
    [all...]

Completed in 71 milliseconds