/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | dimm_topo.c | 63 char buf[128]; in inhm_vrank() local 65 (void) snprintf(buf, sizeof (buf), "dimm-rank-base-%d", num); in inhm_vrank() 67 (void) snprintf(buf, sizeof (buf), "dimm-rank-limit-%d", num); in inhm_vrank() 70 (void) snprintf(buf, sizeof (buf), "dimm-socket-interleave-%d", in inhm_vrank() 73 (void) snprintf(buf, sizeof (buf), in inhm_vrank() 75 (void) nvlist_add_uint32(vrank, buf, sway); in inhm_vrank() 78 (void) snprintf(buf, sizeof (buf), "dimm-channel-interleave-%d", in inhm_vrank() 81 (void) snprintf(buf, sizeof (buf), in inhm_vrank() 83 (void) nvlist_add_uint32(vrank, buf, cway); in inhm_vrank() 86 (void) snprintf(buf, sizeof (buf), "dimm-rank-interleave-%d", in inhm_vrank() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm_rules.c | 397 buf[0] = '\0'; in hcport_print() 424 buf[0] = 'E'; in of_rstatus() 426 buf[0] = 'D'; in of_rstatus() 427 buf[1] = '\0'; in of_rstatus() 474 char *buf; member 488 sla->buf += len; in srv2srvID() 501 sla.buf = buf; in of_rl_srvlist() 553 buf[0] = '\0'; in ip2hostname() 746 buf[0] = 'E'; in of_srv2str() 748 buf[0] = 'D'; in of_srv2str() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_stdlib.c | 41 fptos(const char *p, char *buf, size_t buflen, int decpt, int sign, char expchr) in fptos() argument 43 char *q = buf; in fptos() 53 buf[buflen - 1] = '\0'; in fptos() 54 return (buf); in fptos() 74 return (buf); in fptos() 87 static char buf[DECIMAL_STRING_LENGTH]; in doubletos() local 93 return (fptos(p, buf, sizeof (buf), decpt, sign, expchr)); in doubletos() 102 static char buf[DECIMAL_STRING_LENGTH]; in longdoubletos() local 108 return (fptos(p, buf, sizeof (buf), decpt, sign, expchr)); in longdoubletos()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | err.c | 63 sm_strio_init(&f, buf, sizeof(buf)); 323 (void) sm_snprintf(buf, sizeof(buf), 410 (void) sm_snprintf(buf, sizeof(buf), 1001 bp = buf; 1030 bp = buf; 1045 return buf; 1052 return buf; 1059 return buf; 1126 bp = buf; 1135 return buf; [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | ast.c | 49 static char* buf; in sfgetr() local 52 if (!buf) in sfgetr() 55 if (!(buf = newof(0, char, siz, 0))) in sfgetr() 59 return *buf ? buf : (char*)0; in sfgetr() 60 s = buf; in sfgetr() 67 if (!(buf = newof(buf, char, siz, 0))) in sfgetr() 69 s = buf + (siz - CHUNK); in sfgetr() 84 return buf; in sfgetr()
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/ |
H A D | ucs4_to_sb_generator.c | 44 char buf[BUFSIZ], num[100]; in main() local 65 while (fgets(buf, BUFSIZ, stdin)) { in main() 67 while (buf[i] && isspace(buf[i])) in main() 69 if (buf[i] == '#' || buf[i] == '\0') in main() 72 for (j = 0; !isspace(buf[i]); i++, j++) in main() 73 num[j] = buf[i]; in main() 78 while (isspace(buf[i])) in main() 81 if (buf[i] == '#' || buf[i] == '\0') { in main() 87 for (j = 0; !isspace(buf[i]); i++, j++) in main() 88 num[j] = buf[i]; in main()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_ioctl.c | 180 uint8_t *buf; in regdump() local 1197 if (buf == NULL) in regdump() 1260 uint32_t *buf, *b; in read_tid_tab() local 1270 if (buf == NULL) { in read_tid_tab() 1344 uint32_t *buf, *b; in read_card_mem() local 1360 if (buf == NULL) { in read_card_mem() 1383 b = buf; in read_card_mem() 1551 __be64 *buf; in read_cim_ibq() local 1586 __be64 *buf; in read_cim_la() local 1623 __be64 *p, *buf; in read_mbox() local [all …]
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | filesys.h | 26 int ffs_read (char *buf, int len); 36 int ufs_read (char *buf, int len); 46 int ufs2_read (char *buf, int len); 56 int zfs_read (char *buf, int len); 66 int fat_read (char *buf, int len); 75 int ext2fs_read (char *buf, int len); 84 int minix_read (char *buf, int len); 103 int vstafs_read (char *buf, int len); 112 int jfs_read (char *buf, int len); 122 int xfs_read (char *buf, int len); [all …]
|
H A D | disk_io.c | 162 char *buf) in rawread() argument 300 buf += size; in rawread() 1455 while (*buf && (*buf == *name)) in print_a_completion() 1457 buf++; in print_a_completion() 1461 *buf = '\0'; in print_a_completion() 1528 if (*buf == '/' || (ptr = set_device (buf)) || incomplete) in print_completions() 1587 ptr = buf; in print_completions() 1619 ptr = buf + grub_strlen (buf); in print_completions() 1648 dir (buf); in print_completions() 1667 dir (buf); in print_completions() [all …]
|
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/ |
H A D | Drop.java | 264 buf.append("[cpu = "); in toString() 265 buf.append(cpu); in toString() 266 buf.append(", kind = "); in toString() 267 buf.append(kind); in toString() 268 buf.append(", count = "); in toString() 269 buf.append(count); in toString() 270 buf.append(", total = "); in toString() 271 buf.append(total); in toString() 273 buf.append(defaultMessage); in toString() 274 buf.append(']'); in toString() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gai_strerror.c | 52 static char buf[EAI_BUFSIZE]; in gai_strerror() local 60 char *buf; in gai_strerror() 81 buf = pthread_getspecific(key); in gai_strerror() 82 if (buf == NULL) { in gai_strerror() 83 buf = malloc(EAI_BUFSIZE); in gai_strerror() 84 if (buf == NULL) in gai_strerror() 86 if (pthread_setspecific(key, buf) != 0) { in gai_strerror() 87 free(buf); in gai_strerror() 96 sprintf(buf, "%s: %d", gai_errlist[gai_nerr - 1], ecode); in gai_strerror() 97 return (buf); in gai_strerror()
|
/illumos-gate/usr/src/cmd/gss/gsscred/ |
H A D | gsscred_utils.c | 162 unsigned char *buf = NULL; in gsscred_MakeNameHeader() local 178 buf += expNameTokIdLen; in gsscred_MakeNameHeader() 188 *buf++ = (mechOidLength & 0x00FF); in gsscred_MakeNameHeader() 189 *buf++ = 0x06; in gsscred_MakeNameHeader() 246 unsigned char *buf; in gss_getGssCredEntry() local 264 buf += expNameTokIdLen; in gss_getGssCredEntry() 267 buf++; in gss_getGssCredEntry() 268 buf++; in gss_getGssCredEntry() 271 buf++; in gss_getGssCredEntry() 274 len = get_der_length(&buf, in gss_getGssCredEntry() [all …]
|
/illumos-gate/usr/src/test/crypto-tests/tests/longhash/ |
H A D | longhash.c | 42 static void *buf; variable 50 if ((info->si_addr >= buf + pagesize) && in trap_handler() 51 (info->si_addr < (buf + 2 * pagesize))) { in trap_handler() 73 SHA2Update(&ctx, buf, len); in test_update_32() 91 SHA2Update(&ctx, buf, pagesize); in test_update_32() 97 SHA2Update(&ctx, buf, len - pagesize); in test_update_32() 119 SHA2Update(&ctx, buf, len); in test_update_64() 137 SHA2Update(&ctx, buf, pagesize); in test_update_64() 143 SHA2Update(&ctx, buf, len - pagesize); in test_update_64() 164 if (buf == MAP_FAILED) { in main() [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/libsff/ |
H A D | libsff_strings.c | 85 uint8_t buf[256]; in main() local 90 bzero(buf, sizeof (buf)); in main() 91 bcopy(lsfs_bad_vals[i].lss_bytes, &buf[SFF_8472_VENDOR], in main() 95 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main() 109 bzero(buf, sizeof (buf)); in main() 110 bcopy(lsfs_good_vals[i].lss_bytes, &buf[SFF_8472_VENDOR], in main() 113 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, &nvl)) != 0) { in main()
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | setbuffer.c | 52 Uchar *buf = (Uchar *)abuf; in setbuffer() local 60 if (buf == 0) { in setbuffer() 64 buf = (fno == 0) ? _sibuf : _sobuf; in setbuffer() 67 buf = _smbuf[fno]; in setbuffer() 69 } else if ((buf = (Uchar *)malloc(_SMBFSZ * sizeof (Uchar))) != in setbuffer() 78 if (buf == 0) in setbuffer() 80 temp = buf + PUSHBACK; in setbuffer() 94 char *buf; in setlinebuf() local 98 buf = (char *)malloc(128); in setlinebuf() 99 if (buf != NULL) { in setlinebuf() [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/common/ |
H A D | request.c | 125 char buf[100]; /* line buffer for reading *file */ in dumprequest() local 140 while ( fgets(buf, sizeof(buf), fp_in) != NULL ) in dumprequest() 141 if ( buf[0] == '@' && strncmp(want, &buf[1], strlen(want)) == 0 ) in dumprequest() 142 while ( fgets(buf, sizeof(buf), fp_in) != NULL ) in dumprequest() 143 if ( buf[0] == '#' || buf[0] == '%' ) in dumprequest() 145 else if ( buf[0] != '@' ) in dumprequest() 146 fprintf(fp_out, "%s", buf); in dumprequest()
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | log.c | 59 char buf[MAXPATHLEN * 2]; /* enough space for msg including a path */ in cons_printf() local 64 (void) vsnprintf(buf, sizeof (buf), fmt, ap); in cons_printf() 68 (void) write(fd, buf, strlen(buf) + 1); in cons_printf() 106 char buf[SIZE]; /* scratch buffer */ in log() local 111 (void) snprintf(buf, sizeof (buf), "%s; %ld; %s\n", in log() 113 (void) fprintf(Lfp, buf); in log() 171 char buf[SIZE]; /* scratch buffer */ in debug() local 176 (void) sprintf(buf, "%s; %ld; %s\n", timestamp, getpid(), msg); in debug() 177 (void) fprintf(Dfp, buf); in debug()
|
/illumos-gate/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_usbport.c | 111 ACPI_BUFFER buf; in acpidev_usbport_filter_cb() local 125 AcpiOsFree(buf.Pointer); in acpidev_usbport_filter_cb() 161 ACPI_BUFFER buf; in acpidev_usbport_init() local 201 NULL, &buf))) { in acpidev_usbport_init() 207 AcpiOsFree(buf.Pointer); in acpidev_usbport_init() 213 AcpiOsFree(buf.Pointer); in acpidev_usbport_init() 219 AcpiOsFree(buf.Pointer); in acpidev_usbport_init() 230 &buf))) { in acpidev_usbport_init() 242 AcpiOsFree(buf.Pointer); in acpidev_usbport_init() 247 &buf))) { in acpidev_usbport_init() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_listen.c | 123 free(ctlbuf.buf); in _tx_listen() 125 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_listen() 204 (void) memcpy(call->addr.buf, ctlbuf.buf + in _tx_listen() 215 (void) memcpy(call->opt.buf, ctlbuf.buf + in _tx_listen() 225 (void) memcpy(call->udata.buf, databuf.buf, in _tx_listen() 231 free(ctlbuf.buf); in _tx_listen() 235 free(databuf.buf); in _tx_listen() 247 databuf.len, ctlbuf.buf, in _tx_listen() 266 free(ctlbuf.buf); in _tx_listen() 268 tiptr->ti_ctlbuf = ctlbuf.buf; in _tx_listen() [all …]
|
/illumos-gate/usr/src/common/ficl/emu/ |
H A D | loader_emu.c | 437 free(buf); in parse() 470 char *buf; in isadir() local 478 free(buf); in isadir() 696 char *buf; in bf_init() local 713 if (buf == NULL || strcmp(buf, "amd64") != 0) { in bf_init() 722 free(buf); in bf_init() 847 char *buf; in get_dev() local 866 buf++; in get_dev() 884 buf++; in get_dev() 973 *buf = 0; in fgetstr() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | arc.h | 195 boolean_t arc_is_metadata(arc_buf_t *buf); 196 boolean_t arc_is_encrypted(arc_buf_t *buf); 221 void arc_return_buf(arc_buf_t *buf, void *tag); 224 int arc_buf_size(arc_buf_t *buf); 225 int arc_buf_lsize(arc_buf_t *buf); 226 void arc_buf_access(arc_buf_t *buf); 227 void arc_release(arc_buf_t *buf, void *tag); 228 int arc_released(arc_buf_t *buf); 229 void arc_buf_freeze(arc_buf_t *buf); 230 void arc_buf_thaw(arc_buf_t *buf); [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dockdeps.c | 210 char buf[512]; in incompat() local 222 (void) snprintf(buf, sizeof (buf), ERR_INCOMP_VERS, pkginst, pkgname); in incompat() 223 puttext(stderr, buf, 4, 0); in incompat() 231 char buf[512]; in prereq() local 252 (void) snprintf(buf, sizeof (buf), ERR_PRENCI, pkginst, in prereq() 257 (void) snprintf(buf, sizeof (buf), ERR_PREREQ, pkginst, in prereq() 278 char buf[512]; in deponme() local 287 (void) snprintf(buf, sizeof (buf), in deponme() 290 (void) snprintf(buf, sizeof (buf), in deponme() 299 (void) snprintf(buf, sizeof (buf), ERR_DEPONME, pkginst); in deponme() [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/download/ |
H A D | download.c | 342 path = buf; in readresident() 347 if ( buf[0] == '%' ) in readresident() 438 while ( fgets(buf, sizeof(buf), fp_in) != NULL ) { in download() 441 if ( buf[0] != '%' || buf[1] != '%' ) { in download() 442 if ( (buf[0] != '%' || buf[1] != '!') && atend == FALSE ) in download() 446 copyfonts(buf); in download() 449 copyfonts(buf); in download() 513 while ( fgets(buf, sizeof(buf), fp_temp) != NULL ) in copyinput() 514 printf("%s", buf); in copyinput() 520 while ( fgets(buf, sizeof(buf), fp_in) != NULL ) in copyinput() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fstyp/ |
H A D | fstyp.c | 182 uint8_t *buf; in get_attr() local 193 if ((buf = (uint8_t *)malloc(len)) == NULL) { in get_attr() 217 free(buf); in get_attr() 229 uint8_t *buf; in print_vds() local 248 if ((buf = (uint8_t *)malloc(len)) == NULL) { in print_vds() 277 print_pvd(fout, (struct pri_vol_desc *)buf); in print_vds() 291 print_iuvd(fout, (struct iuvd_desc *)buf); in print_vds() 300 if (ud_read_dev(h->udh, off, buf, in print_vds() 307 print_part(fout, (struct part_desc *)buf); in print_vds() 322 print_lvd(fout, (struct log_vol_desc *)buf); in print_vds() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_TW-euc%UTF-8.c | 417 *(buf + size++) = (uchar_t)0xff; in cns_to_utf8() 418 *(buf + size++) = (uchar_t)0xfe; in cns_to_utf8() 425 *(buf + size++) = (uchar_t)(uni_val & 0xff); in cns_to_utf8() 440 *buf = (char)((uni_val >> 6) & 0x1f) | 0xc0; in cns_to_utf8() 441 *(buf+1) = (char)(uni_val & 0x3f) | 0x80; in cns_to_utf8() 443 fprintf(stderr, "%x %x\n", *buf&ONEBYTE, *(buf+1)&ONEBYTE); in cns_to_utf8() 455 *buf = (char)((uni_val >> 12) & 0xf) | 0xe0; in cns_to_utf8() 456 *(buf+1) = (char)((uni_val >>6) & 0x3f) | 0x80; in cns_to_utf8() 457 *(buf+2) = (char)(uni_val & 0x3f) | 0x80; in cns_to_utf8() 459 fprintf(stderr, "%x %x %x\n", *buf&ONEBYTE, *(buf+1)&ONEBYTE, *(buf+2)&ONEBYTE); in cns_to_utf8() [all …]
|