/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cputrack.c | 291 char *pevent, cpc_buf_t *buf, int nreq, const char *evname) in print_sample() argument 297 mstimestamp(cpc_buf_hrtime(cpc, buf))); in print_sample() 303 cpc_buf_tick(cpc, buf)); in print_sample() 305 (void) cpc_buf_get(cpc, buf, i, &val); in print_sample()
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfsimpl.c | 143 static int zio_read(const spa_t *spa, const blkptr_t *bp, void *buf); 224 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_read_phys() argument 239 rc = vdev->v_phys_read(vdev, vdev->v_priv, offset, buf, psize); in vdev_read_phys() 242 rc = zio_checksum_verify(vdev->v_spa, bp, buf); in vdev_read_phys() 249 vdev_write_phys(vdev_t *vdev, void *buf, off_t offset, size_t size) in vdev_write_phys() argument 254 return (vdev->v_phys_write(vdev, offset, buf, size)); in vdev_write_phys() 689 vdev_indirect_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_indirect_read() argument 708 zio.io_data = buf; in vdev_indirect_read() 777 vdev_disk_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_disk_read() argument 781 return (vdev_read_phys(vdev, bp, buf, in vdev_disk_read() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4x_srv.c | 274 cid.cl_addr = (struct sockaddr *)svc_getrpccaller(req->rq_xprt)->buf; in rfs4x_op_exchange_id()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | microcode.c | 120 ucode_free(processorid_t id, void *buf, size_t size) in ucode_free() argument 122 if (id != 0 && buf != NULL) in ucode_free() 123 kmem_free(buf, size); in ucode_free()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.c | 217 char buf[MAXPATHLEN * 2]; /* enough space for err msg with a path */ in zerror() local 224 (void) snprintf(buf, sizeof (buf), "[zone '%s'] ", in zerror() 227 buf[0] = '\0'; in zerror() 228 bp = &(buf[strlen(buf)]); in zerror() 239 (void) vsnprintf(bp, sizeof (buf) - (bp - buf), fmt, alist); in zerror() 241 bp = &(buf[strlen(buf)]); in zerror() 243 (void) snprintf(bp, sizeof (buf) - (bp - buf), ": %s", in zerror() 246 (void) syslog(LOG_ERR, "%s", buf); in zerror() 248 (void) fprintf(zlogp->logfile, "%s\n", buf); in zerror() 253 buflen = snprintf(zlogp->log, zlogp->loglen, "%s\n", buf); in zerror() [all …]
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 1281 char *strptr, *buf = NULL; in zpool_do_create() local 1286 (void) asprintf(&buf, "%" PRIu64, boot_size); in zpool_do_create() 1287 if (buf == NULL) { in zpool_do_create() 1292 rv = add_prop_list(propname, buf, &props, B_TRUE); in zpool_do_create() 1293 free(buf); in zpool_do_create() 1336 char buf[MAXPATHLEN]; in zpool_do_create() local 1348 (void) snprintf(buf, sizeof (buf), "%s/%s", in zpool_do_create() 1351 (void) snprintf(buf, sizeof (buf), "/%s", in zpool_do_create() 1355 (void) snprintf(buf, sizeof (buf), "%s%s", in zpool_do_create() 1358 (void) snprintf(buf, sizeof (buf), "%s", in zpool_do_create() [all …]
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 1479 char buf[16]; in zfs_do_destroy() local 1480 zfs_nicebytes(cb.cb_snapused, buf, sizeof (buf)); in zfs_do_destroy() 1486 buf); in zfs_do_destroy() 1489 buf); in zfs_do_destroy() 1661 char buf[ZFS_MAXPROPLEN]; in get_callback() local 1684 if (zfs_prop_get(zhp, pl->pl_prop, buf, in get_callback() 1685 sizeof (buf), &sourcetype, source, in get_callback() 1698 (void) strlcpy(buf, "-", sizeof (buf)); in get_callback() 1708 buf, sourcetype, source, recvdval); in get_callback() 1713 buf, sizeof (buf), cbp->cb_literal) != 0) { in get_callback() [all …]
|
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 230 char buf[BUFSZ]; in msg() local 234 count = vsnprintf(buf, BUFSZ, msg, args); in msg() 238 if (count >= sizeof (buf)) in msg() 240 buf[count] = '\0'; in msg() 241 (void) fprintf(errfile, "%s", buf); in msg() 1752 char buf[MAXPATHLEN]; in test_driver() local 1782 (void) snprintf(buf, sizeof (buf), in test_driver() 1784 (void) system(buf); in test_driver() 1785 (void) snprintf(buf, sizeof (buf), in test_driver() 1787 (void) system(buf); in test_driver() [all …]
|
/illumos-gate/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 367 char *buf, root[MAXPATHLEN]; in pg_get_single_val() local 457 buf = safe_malloc(buf_sz); in pg_get_single_val() 458 if (scf_property_to_fmri(g_prop, buf, buf_sz) == -1) in pg_get_single_val() 461 uu_warn(gettext("Property \"%s\" is misconfigured.\n"), buf); in pg_get_single_val() 463 free(buf); in pg_get_single_val() 553 char *buf, size_t buf_sz) in get_restarter_string_prop() argument 556 SCF_TYPE_ASTRING, buf, buf_sz, 0, 0, 1) != 0) in get_restarter_string_prop() 557 *buf = '\0'; in get_restarter_string_prop() 984 reverse_bytes(char *buf, size_t len) in reverse_bytes() argument 989 buf[i] = ~buf[i]; in reverse_bytes() [all …]
|
/illumos-gate/usr/src/cmd/stmsboot/ |
H A D | stmsboot_util.c | 1438 char *buf, *tmpbuf; in update_vfstab() local 1456 buf = calloc(1, MAXPATHLEN); in update_vfstab() 1458 if (buf == NULL || tmpbuf == NULL) in update_vfstab() 1476 while (fgets(buf, MAXPATHLEN, fdin) != NULL) { in update_vfstab() 1477 if (strlen(buf) == (MAXPATHLEN - 1) && in update_vfstab() 1478 buf[MAXPATHLEN-2] != '\n') { in update_vfstab() 1482 MAXPATHLEN - 2, buf); in update_vfstab() 1493 rv = sscanf(buf, fmt, bdev, cdev, mntpt, fstype, fsckpass, in update_vfstab() 1517 "# DEVICE NOT FOUND %s", buf); in update_vfstab() 1551 (void) fprintf(fdout, "%s", buf); in update_vfstab() [all …]
|
/illumos-gate/usr/src/cmd/srptadm/ |
H A D | srptadm.c | 476 char buf[32]; in print_target_props() local 483 ret = srpt_NormalizeGuid(hca, buf, sizeof (buf), &hcaguid); in print_target_props() 491 ret = srpt_GetTargetState(buf, &enabled); in print_target_props() 495 buf, ret); in print_target_props() 499 (void) printf("Target HCA %s:\n", buf); in print_target_props()
|
/illumos-gate/usr/src/cmd/pools/pooladm/ |
H A D | pooladm.c | 72 char *buf; in config_print() local 87 if ((buf = pool_conf_info(conf, PO_TRUE)) == NULL) in config_print() 91 (void) printf("%s", buf); in config_print() 92 free(buf); in config_print()
|
/illumos-gate/usr/src/cmd/pools/poold/ |
H A D | poold.c | 286 char buf[SIG2STR_MAX]; in handle_sig() local 304 (void) sig2str(sig, buf); in handle_sig() 350 pu_terminate("terminating due to signal: SIG%s\n", buf); in handle_sig()
|
/illumos-gate/usr/src/cmd/plockstat/ |
H A D | plockstat.c | 498 getsym(struct ps_prochandle *P, uintptr_t addr, char *buf, size_t size, in getsym() argument 508 (void) snprintf(buf, size, "%#lx", addr); in getsym() 515 len = snprintf(buf, size, "LM%lu`", info.prs_lmid); in getsym() 516 buf += len; in getsym() 520 len = snprintf(buf, size, "%s`%s", info.prs_object, info.prs_name); in getsym() 521 buf += len; in getsym() 525 len = snprintf(buf, size, "+%#lx", addr - sym.st_value); in getsym() 545 char buf[256]; in process_aggregate() local 590 (void) getsym(P, lock, buf, sizeof (buf), 0); in process_aggregate() 591 (void) printf("%-28s ", buf); in process_aggregate() [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/ |
H A D | ksetpw.c | 192 char buf[PASS_MAX + 1]; in main() local 194 if (scanf("%" VAL2STR(PASS_MAX) "s", &buf) != 1) { in main() 200 newpw = strdup(buf); in main()
|
H A D | ksmb.c | 93 char buf[PASS_MAX + 1]; in main() local 95 if (scanf("%" VAL2STR(PASS_MAX) "s", &buf) != 1) { in main() 101 newpw = strdup(buf); in main()
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 208 char buf[BUFSIZ]; local 275 snprintf(buf, sizeof (buf), "FILE:%s", tkstring); 277 retval = krb5_cc_resolve(context, buf, &ccache); 280 buf); 287 buf); 641 char buf[KPROP_BUFSIZ]; local 684 inbuf.data = buf; 686 while ((n = read(database_fd, buf, sizeof(buf)))) { 691 snprintf(buf, sizeof (buf), 694 com_err(progname, retval, buf); [all …]
|
/illumos-gate/usr/src/cmd/itadm/ |
H A D | itadm.c | 2013 char buf[1024]; in itadm_get_password() local 2042 rd = read(fd, buf, sbuf.st_size); in itadm_get_password() 2055 buf[rd] = '\0'; in itadm_get_password() 2058 if (buf[rd - 1] == '\n') { in itadm_get_password() 2059 buf[rd - 1] = '\0'; in itadm_get_password() 2063 if ((strlen(buf) > 255) || (strlen(buf) < 12)) { in itadm_get_password() 2091 (void) strlcpy(buf, pass, sizeof (buf)); in itadm_get_password() 2102 if (strcmp(buf, pass) != 0) { in itadm_get_password() 2111 ret = nvlist_add_string(nvl, key, buf); in itadm_get_password() 2230 char buf[80] = ""; in output_config_error() local [all …]
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | lockstat.c | 563 char buf[256], *c = buf, *new; in filter_add() local 627 char buf[80]; in dprog_addevent() local 676 (void) sprintf(buf, "self->ev%d[(uintptr_t)arg0]", event); in dprog_addevent() 679 dprog_add("\t%s = timestamp;\n", buf); in dprog_addevent() 686 dprog_add("\t%s++;\n", buf); in dprog_addevent() 702 dprog_add("/%s/\n{\n\t%s--;\n}\n\n", buf, buf); in dprog_addevent() 705 predicate_add(&pred, buf, NULL, 0); in dprog_addevent() 708 (void) sprintf(buf, "timestamp -\n\t " in dprog_addevent() 712 arg1 = buf; in dprog_addevent() 1594 format_symbol(char *buf, uintptr_t addr, int show_size) in format_symbol() argument [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap_engine.c | 162 char *buf = (char *)malloc(buf_size * sizeof (char)); in get_param() local 173 buf = (char *)realloc(buf, buf_size * sizeof (char)); in get_param() 189 buf[to_i++] = from[from_i]; in get_param() 195 free(buf); in get_param() 200 buf[to_i] = '\0'; in get_param() 201 *to = buf; in get_param()
|
/illumos-gate/usr/src/cmd/fs.d/udfs/labelit/ |
H A D | labelit.c | 47 static uint8_t buf[MAXBSIZE]; variable 268 if (ud_read_dev(udh, off, buf, in label() 274 fsd = (struct file_set_desc *)buf; in label() 285 (void) ud_write_dev(udh, off, buf, udh->udfs.fsd_len); in label() 297 if (ud_read_dev(udh, off, buf, in print_info() 303 pvd = (struct pri_vol_desc *)buf; in print_info() 327 if (ud_read_dev(udh, off, buf, in print_info() 333 iud = (struct iuvd_desc *)buf; in print_info() 377 if (ud_read_dev(udh, off, buf, in label_vds() 383 pvd = (struct pri_vol_desc *)buf; in label_vds() [all …]
|
/illumos-gate/usr/src/cmd/fuser/ |
H A D | fuser.c | 69 extern int utssys(void *buf, int arg, int type, void *outbp);
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | mkfs.c | 157 static char buf[MAXBSIZE]; variable 454 rdfs(fssize - 1, sectorsize, buf); in main() 601 wtfs(blk2, sectorsize, buf); in wtvolseq() 632 bzero(buf, MAXBSIZE); in volseqinit() 638 wtfs(i, sectorsize, buf); in volseqinit() 642 wtfs(fssize - 256, sectorsize, buf); in volseqinit() 653 nsp = (struct nsr_desc *)buf; in volseqinit() 658 nsp = (struct nsr_desc *)&buf[2048]; in volseqinit() 663 nsp = (struct nsr_desc *)&buf[4096]; in volseqinit() 668 wtfs(nextblock, 8192, buf); in volseqinit() [all …]
|
/illumos-gate/usr/src/cmd/flowadm/ |
H A D | flowadm.c | 971 char buf[DLADM_STRSIZE]; in print_flowprop() local 1010 ptr = buf; in print_flowprop() 1011 lim = buf + DLADM_STRSIZE; in print_flowprop() 1021 buf[strlen(buf) - 1] = '\0'; in print_flowprop() 1026 "%s", buf); in print_flowprop() 1028 *pptr += snprintf(*pptr, lim - *pptr, format, buf); in print_flowprop() 1033 print_flowprop_cb(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in print_flowprop_cb() argument 1080 (void) strlcpy(buf, ptr, bufsize); in print_flowprop_cb() 1083 buf[0] = '\0'; in print_flowprop_cb() 1218 char *buf; in show_flowprop_one_flow() local [all …]
|
/illumos-gate/usr/src/cmd/fm/fmtopo/common/ |
H A D | fmtopo.c | 194 char buf[PATH_MAX], numbuf[64]; in print_everstyle() local 215 buf[0] = '\0'; in print_everstyle() 238 (void) strlcat(buf, "/", sizeof (buf)); in print_everstyle() 239 (void) strlcat(buf, name, sizeof (buf)); in print_everstyle() 241 (void) strlcat(buf, numbuf, sizeof (buf)); in print_everstyle() 245 (void) printf("%s\n", buf); in print_everstyle() 1022 char buf[32]; in walk_topo() local 1026 (void) strftime(buf, sizeof (buf), "%b %d %T", localtime(&tod)); in walk_topo() 1027 (void) printf("%-15s %-32s\n", buf, uuid); in walk_topo() 1137 char buf[32]; in print_fmri() local [all …]
|