| /onnv-gate/usr/src/cmd/hal/hald/ |
| H A D | hald.c | 367 char newpath[512]; in main() local 384 g_strlcpy (newpath, path, sizeof (newpath)); in main() 385 g_strlcat (newpath, ":", sizeof (newpath)); in main() 388 newpath[0] = '\0'; in main() 391 g_strlcat (newpath, PACKAGE_LIBEXEC_DIR, sizeof (newpath)); in main() 392 g_strlcat (newpath, ":", sizeof (newpath)); in main() 393 g_strlcat (newpath, PACKAGE_SCRIPT_DIR, sizeof (newpath)); in main() 395 setenv ("PATH", newpath, TRUE); in main()
|
| /onnv-gate/usr/src/lib/libdhcpsvc/modules/binfiles/ |
| H A D | dhcptab.c | 347 char newpath[MAXPATHLEN], dtpath[MAXPATHLEN]; in add_dt() local 382 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new"); in add_dt() 383 (void) unlink(newpath); in add_dt() 384 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644); in add_dt() 414 if (rename(newpath, dtpath) == -1) in add_dt() 421 (void) unlink(newpath); in add_dt() 437 char newpath[MAXPATHLEN], dtpath[MAXPATHLEN]; in modify_dt() local 501 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new"); in modify_dt() 502 (void) unlink(newpath); in modify_dt() 503 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644); in modify_dt() [all …]
|
| /onnv-gate/usr/src/tools/scripts/ |
| H A D | validate_flg.pl | 64 my ($expfile, $newpath, $line, $cont, $firstline, $text); 72 $newpath = "$incpath, from $fname:"; 74 $newpath = "from $fname:"; 114 push @execlist, $expfile, "$newpath:$firstline";
|
| /onnv-gate/usr/src/cmd/devfsadm/ |
| H A D | audio_link.c | 179 char newpath[PATH_MAX + 1]; in audio_process() local 243 (void) snprintf(newpath, sizeof (newpath), "sound/%s:%d%s", in audio_process() 245 (void) devfsadm_mklink(newpath, node, minor, flags); in audio_process() 279 (void) strlcpy(devpath, newpath, sizeof (devpath)); in audio_process()
|
| /onnv-gate/usr/src/lib/libdhcpsvc/modules/files0/ |
| H A D | dhcptab.c | 280 char dtpath[MAXPATHLEN], newpath[MAXPATHLEN]; in update_dt() local 303 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new"); in update_dt() 304 (void) unlink(newpath); in update_dt() 305 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644); in update_dt() 399 if (rename(newpath, dtpath) == -1) in update_dt() 406 (void) unlink(newpath); in update_dt()
|
| H A D | dhcp_network.c | 385 char dnpath[MAXPATHLEN], newpath[MAXPATHLEN]; in update_dn() local 408 net2path(newpath, MAXPATHLEN, dhp->dh_location, dhp->dh_net, ".new"); in update_dn() 409 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); in update_dn() 503 if (rename(newpath, dnpath) == -1) in update_dn() 510 (void) unlink(newpath); in update_dn()
|
| /onnv-gate/usr/src/lib/libdevinfo/ |
| H A D | devinfo_devperm.c | 436 char *name, *newpath, *remainder_path; in dir_dev_acc() local 499 newpath = (char *)malloc(MAXPATHLEN); in dir_dev_acc() 500 if (newpath == NULL) { in dir_dev_acc() 507 free(newpath); in dir_dev_acc() 516 free(newpath); in dir_dev_acc() 525 free(newpath); in dir_dev_acc() 536 (void) snprintf(newpath, in dir_dev_acc() 539 (void) snprintf(newpath, in dir_dev_acc() 549 if (dir_dev_acc(newpath, remainder_path, in dir_dev_acc() 557 free(newpath); in dir_dev_acc()
|
| /onnv-gate/usr/src/cmd/ssh/sftp-server/ |
| H A D | sftp-server.c | 987 char *oldpath, *newpath; in process_rename() local 993 newpath = get_string(NULL); in process_rename() 995 log("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename() 1001 if (link(oldpath, newpath) == -1) { in process_rename() 1013 if (stat(newpath, &st) == -1) { in process_rename() 1014 if (rename(oldpath, newpath) == -1) in process_rename() 1026 unlink(newpath); in process_rename() 1029 } else if (stat(newpath, &sb) == -1) { in process_rename() 1030 if (rename(oldpath, newpath) == -1) in process_rename() 1037 xfree(newpath); in process_rename() [all …]
|
| /onnv-gate/usr/src/uts/common/fs/zfs/ |
| H A D | zfs_ctldir.c | 560 char newpath[MAXNAMELEN]; in zfsctl_rename_snap() local 587 (void) strncpy(newpath, refstr_value(pathref), sizeof (newpath)); in zfsctl_rename_snap() 588 VERIFY((tail = strrchr(newpath, '/')) != NULL); in zfsctl_rename_snap() 590 ASSERT3U(strlen(newpath) + strlen(nm), <, sizeof (newpath)); in zfsctl_rename_snap() 591 (void) strcat(newpath, nm); in zfsctl_rename_snap() 593 vfs_setmntpoint(vfsp, newpath, 0); in zfsctl_rename_snap() 596 (void) strncpy(newpath, refstr_value(pathref), sizeof (newpath)); in zfsctl_rename_snap() 597 VERIFY((tail = strrchr(newpath, '@')) != NULL); in zfsctl_rename_snap() 599 ASSERT3U(strlen(newpath) + strlen(nm), <, sizeof (newpath)); in zfsctl_rename_snap() 600 (void) strcat(newpath, nm); in zfsctl_rename_snap() [all …]
|
| /onnv-gate/usr/src/cmd/sh/ |
| H A D | service.c | 135 unsigned char *path, *newpath; local 151 newpath = locstak(); 152 (void) memcpystak(newpath, path, pathlen); 153 newpath[pathlen] = ':'; 154 endstak(newpath + pathlen + 1); 155 return (newpath);
|
| /onnv-gate/usr/src/lib/libdhcpsvc/modules/files/ |
| H A D | dhcptab.c | 315 char dtpath[MAXPATHLEN], newpath[MAXPATHLEN]; in update_dt() local 338 dt2path(newpath, MAXPATHLEN, dhp->dh_location, ".new"); in update_dt() 339 (void) unlink(newpath); in update_dt() 340 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644); in update_dt() 468 if (rename(newpath, dtpath) == -1) in update_dt() 475 (void) unlink(newpath); in update_dt()
|
| H A D | dhcp_network.c | 456 char dnpath[MAXPATHLEN], newpath[MAXPATHLEN]; in update_dn() local 479 net2path(newpath, MAXPATHLEN, dhp->dh_location, dhp->dh_net, ".new"); in update_dn() 480 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644); in update_dn() 600 if (rename(newpath, dnpath) == -1) in update_dn() 607 (void) unlink(newpath); in update_dn()
|
| /onnv-gate/usr/src/lib/libzoneinfo/common/ |
| H A D | libzone.c | 1168 static char newpath[MAXPATHLEN]; in trav_link() local 1174 while ((len = readlink(*path, newpath, sizeof (newpath))) != -1) { in trav_link() 1175 newpath[len] = '\0'; in trav_link() 1176 if (newpath[0] != '/') { in trav_link() 1177 if ((tp = strdup(newpath)) == NULL) { in trav_link() 1182 ret = snprintf(newpath, sizeof (newpath), in trav_link() 1185 if ((ret >= sizeof (newpath)) || (ret < 0)) in trav_link() 1188 (void) strcpy(lastpath, newpath); in trav_link() 1189 *path = newpath; in trav_link()
|
| /onnv-gate/usr/src/lib/libadm/common/ |
| H A D | pkgparam.c | 438 set_PKGADM(char *newpath) in set_PKGADM() argument 440 (void) strcpy(Adm_pkgadm, newpath); in set_PKGADM() 444 set_PKGLOC(char *newpath) in set_PKGLOC() argument 446 (void) strcpy(Adm_pkgloc, newpath); in set_PKGLOC()
|
| /onnv-gate/usr/src/cmd/sendmail/src/ |
| H A D | mci.c | 1136 char newpath[MAXPATHLEN]; variable 1154 len = sizeof(newpath) - 3; 1155 if (sm_strlcpy(newpath, pathname, len) >= len) 1166 newptr = newpath + strlen(newpath); 1168 len = sizeof(newpath) - (newptr - newpath); 1192 newpath, e->d_name); 1199 ret = mci_traverse_persistent(action, newpath); 1228 ret = (*action)(newpath, NULL);
|
| /onnv-gate/usr/src/lib/libpkg/common/ |
| H A D | keystore.c | 1147 char newpath[MAXPATHLEN]; in restore_keystore_file() local 1153 if (((len = snprintf(newpath, MAXPATHLEN, "%s.new", in restore_keystore_file() 1167 if ((newfd = open(newpath, O_RDWR|O_NONBLOCK, 0)) != -1) { in restore_keystore_file() 1176 newpath, backuppath)) { in restore_keystore_file() 1179 newpath, strerror(errno)); in restore_keystore_file() 1188 gettext(ERR_NOT_REG), newpath); in restore_keystore_file() 1195 gettext(ERR_WRITE), newpath, in restore_keystore_file() 2179 char newpath[MAXPATHLEN]; in write_keystore_file() local 2184 (void) snprintf(newpath, MAXPATHLEN, "%s.new", dest); in write_keystore_file() 2187 if ((fd = open(newpath, O_CREAT|O_EXCL|O_WRONLY|O_NONBLOCK, in write_keystore_file() [all …]
|
| /onnv-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
| H A D | did_props.c | 337 char *newpath; in dev_path_fix() local 361 if ((newpath = topo_mod_alloc(mp, need)) == NULL) { in dev_path_fix() 367 (void) snprintf(newpath, need, "%s@%x", path, devno); in dev_path_fix() 369 (void) snprintf(newpath, need, "%s@%x,%x", path, devno, fnno); in dev_path_fix() 372 return (newpath); in dev_path_fix() 383 char *newpath; in dev_for_hostbridge() local 404 if ((newpath = topo_mod_strdup(mp, path)) == NULL) { in dev_for_hostbridge() 411 return (newpath); in dev_for_hostbridge()
|
| /onnv-gate/usr/src/cmd/fs.d/nfs/lib/ |
| H A D | nfs_subr.c | 123 convert_special(char **specialp, char *host, char *oldpath, char *newpath, in convert_special() argument 206 p2 = newpath; in convert_special()
|
| /onnv-gate/usr/src/cmd/device_remap/ |
| H A D | device_remap.pl | 389 my (%newpath, %roots); 425 $newpath{$alias} = $current; 440 fixup $alias, $newpath{$alias};
|
| /onnv-gate/usr/src/cmd/lp/filter/postscript/font/devpost/charlib/ |
| H A D | lc | 32 currentpoint translate newpath 49 bvbbox 1 get lineto closepath clip newpath
|
| H A D | lf | 32 currentpoint translate newpath 49 bvbbox 1 get lineto closepath clip newpath
|
| H A D | rf | 32 currentpoint translate newpath 49 bvbbox 1 get lineto closepath clip newpath
|
| H A D | rc | 32 currentpoint translate newpath 49 bvbbox 1 get lineto closepath clip newpath
|
| /onnv-gate/usr/src/uts/common/syscall/ |
| H A D | corectl.c | 542 corectl_path_t *oldpath, *newpath; in set_core_defaults() local 548 newpath = cg->core_default_path; in set_core_defaults() 551 corectl_path_hold(newpath); in set_core_defaults() 555 p->p_corefile = newpath; in set_core_defaults()
|
| /onnv-gate/usr/src/cmd/boot/bootadm/ |
| H A D | bootadm_hyper.c | 101 char *newpath; in modify_path() local 118 if ((newpath = malloc(len)) == NULL) { in modify_path() 123 (void) strlcpy(newpath, path, (pc - path) + 1); in modify_path() 126 (void) strcat(newpath, new_str); in modify_path() 127 (void) strcat(newpath, pc); in modify_path() 128 return (newpath); in modify_path()
|