/illumos-gate/usr/src/cmd/mandoc/ |
H A D | man.c | 123 if (buf[i] == '\0') { in man_ptext() 145 i = (int)strlen(buf); in man_ptext() 148 if (' ' == buf[i - 1] || '\t' == buf[i - 1]) { in man_ptext() 156 i += '\\' == buf[i] ? 2 : 1; in man_ptext() 158 buf[i] = '\0'; in man_ptext() 169 if (mandoc_eos(buf, (size_t)i)) in man_ptext() 201 switch (buf[offs]) { in man_pmacro() 203 cp = buf + offs + 1; in man_pmacro() 205 offs = cp - buf; in man_pmacro() 216 while (buf[offs] == ' ') in man_pmacro() [all …]
|
/illumos-gate/usr/src/common/ficl/softcore/ |
H A D | string.fr | 21 c-ptr obj: .buf 22 32 constant min-buf 32 : get-buf ( 2:this -- ptr ) my=[ .buf get-ptr ] ; 39 : clr-buf ( 2:this -- ) 40 0 0 2over my=> set-buf 45 : free-buf { 2:this -- } 46 this my=> get-buf 50 this my=> clr-buf 82 u this --> size-buf 88 this --> get-buf [all …]
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_io.c | 103 obuf = buf; in prom_read() 104 buf = promplat_alloc(len); in prom_read() 105 if (buf == NULL) in prom_read() 128 promplat_bcopy(buf, obuf, len); in prom_read() 129 promplat_free(buf, len); in prom_read() 153 ASSERT(buf); in prom_write() 182 obuf = buf; in prom_write() 183 buf = promplat_alloc(len); in prom_write() 184 if (buf == NULL) { in prom_write() 213 buf = smallbuf; in prom_write() [all …]
|
H A D | prom_2path.c | 35 prom_ihandle_to_path(ihandle_t instance, char *buf, uint_t len) in prom_ihandle_to_path() argument 41 prom_phandle_to_path(phandle_t package, char *buf, uint_t len) in prom_phandle_to_path() argument 43 return (token2path("package-to-path", (uint_t)package, buf, len)); in prom_phandle_to_path() 47 token2path(char *service, uint_t token, char *buf, uint_t len) in token2path() argument 54 if ((uintptr_t)buf > (uint32_t)-1) { in token2path() 55 obuf = buf; in token2path() 56 buf = promplat_alloc(len); in token2path() 57 if (buf == NULL) { in token2path() 69 ci[4] = p1275_ptr2cell(buf); /* Arg2: Result buffer */ in token2path() 77 promplat_bcopy(buf, obuf, len); in token2path() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 153 dst_s_get_int16(const u_char *buf) in dst_s_get_int16() argument 156 a = ((u_int16_t)(buf[0] << 8)) | ((u_int16_t)(buf[1])); in dst_s_get_int16() 172 dst_s_get_int32(const u_char *buf) in dst_s_get_int32() argument 175 a = ((u_int32_t)(buf[0] << 24)) | ((u_int32_t)(buf[1] << 16)) | in dst_s_get_int32() 176 ((u_int32_t)(buf[2] << 8)) | ((u_int32_t)(buf[3])); in dst_s_get_int32() 194 buf[0] = (u_int8_t)(val >> 8); in dst_s_put_int16() 195 buf[1] = (u_int8_t)(val); in dst_s_put_int16() 212 buf[0] = (u_int8_t)(val >> 24); in dst_s_put_int32() 213 buf[1] = (u_int8_t)(val >> 16); in dst_s_put_int32() 214 buf[2] = (u_int8_t)(val >> 8); in dst_s_put_int32() [all …]
|
/illumos-gate/usr/src/uts/sparc/io/ |
H A D | consplat.c | 72 static char buf[MAXPATHLEN]; in plat_kbdpath() local 98 static char buf[MAXPATHLEN]; in plat_fbpath() local 118 static char buf[MAXPATHLEN]; in plat_mousepath() local 126 path = get_alias("mouse", buf); in plat_mousepath() 154 (void) strcpy(buf, path); in plat_mousepath() 161 mousepath = buf; in plat_mousepath() 177 static char buf[MAXPATHLEN]; in plat_stdoutpath() local 193 prom_strip_options(p, buf); in plat_stdoutpath() 194 p = buf; in plat_stdoutpath() 276 if ((buflen = prom_phandle_to_path(pnode, buf, sizeof (buf))) < 0) in plat_virtual_console_path() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/java_api/src/ |
H A D | TestProbeData.java | 58 buf.append("[probe "); in getString() 60 buf.append(' '); in getString() 62 buf.append("pid$target"); in getString() 63 buf.append(':'); in getString() 64 buf.append(d.getModule()); in getString() 65 buf.append(':'); in getString() 67 buf.append(':'); in getString() 68 buf.append(d.getName()); in getString() 69 buf.append(' '); in getString() 71 buf.append("]"); in getString() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | lpsched-jobs.c | 63 char buf[256]; in job_attributes_to_lpsched_request() local 111 papiAttributeListToString(tmp, " ", buf, sizeof (buf)); in job_attributes_to_lpsched_request() 148 snprintf(buf, sizeof (buf), "%s%s%s", user, in job_attributes_to_lpsched_request() 150 user = buf; in job_attributes_to_lpsched_request() 183 snprintf(buf, sizeof (buf), "prtitle='%s'", pr_title); in job_attributes_to_lpsched_request() 188 snprintf(buf, sizeof (buf), "prwidth=%d", pr_width); in job_attributes_to_lpsched_request() 193 snprintf(buf, sizeof (buf), "indent=%d", pr_indent); in job_attributes_to_lpsched_request() 212 snprintf(buf, sizeof (buf), "%s%s%s", in job_attributes_to_lpsched_request() 229 snprintf(buf, sizeof (buf), "group=%d", numberUp); in job_attributes_to_lpsched_request() 279 buf = realloc(buf, size); in job_attributes_to_lpsched_request() [all …]
|
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | rdr_messages.c | 1567 if (!buf) { in rdr_rcv() 1582 *data = buf; in rdr_rcv() 1769 bufptr = *buf; in pack_ses_req_request() 1972 bufptr = *buf; in pack_change_state_request() 2144 bufptr = *buf; in pack_change_state_reply() 2297 bufptr = *buf; in pack_private_func_request() 2482 bufptr = *buf; in pack_private_func_reply() 2616 bufptr = *buf; in pack_test_request() 2772 bufptr = *buf; in pack_test_reply() 2908 bufptr = *buf; in pack_list_ext_request() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | status.c | 77 buf[BUFSIZ], in load_pstatus() local 129 name = Strdup(buf); in load_pstatus() 151 len = strlen(buf); in load_pstatus() 170 len = strlen(buf); in load_pstatus() 189 if (*buf) { in load_pstatus() 274 buf[BUFSIZ], in load_fault_status() local 298 len = strlen(buf); in load_fault_status() 340 buf[BUFSIZ], in load_cstatus() local 460 char buf[100]; in showForms() local 470 snprintf(buf, sizeof (buf), "%s%c", in showForms() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | chk_trans.c | 149 memmove (buf->data+last->length, buf->data, buf->length); in maybe_join() 152 } else if (buf->data[buf->length-1] == '.') { in maybe_join() 160 memcpy (buf->data + buf->length, last->data, last->length); in maybe_join() 192 memset (buf, 0, sizeof (buf)); in foreach_realm() 208 bufp = buf; in foreach_realm() 212 if (bufp == buf+sizeof(buf)) in foreach_realm() 238 memcpy (last, buf, sizeof (buf)); in foreach_realm() 240 memset (buf, 0, sizeof (buf)); in foreach_realm() 241 bufp = buf; in foreach_realm() 260 if (bufp == buf+sizeof(buf)) in foreach_realm() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | cnv_ibmutf8.c | 142 int ibm_to_utf8(st, buf, buflen) in ibm_to_utf8() argument 144 char *buf; 180 *buf = (char)((uni_val >> 6) & 0x1f) | 0xc0; 181 *(buf+1) = (char)(uni_val & 0x3f) | 0x80; 183 fprintf(stderr, "%x %x\n", *buf&ONEBYTE, *(buf+1)&ONEBYTE); 197 *(buf+2) = (char)(uni_val & 0x3f) | 0x80; 199 fprintf(stderr, "%x %x %x\n", *buf&ONEBYTE, *(buf+1)&ONEBYTE, *(buf+2)&ONEBYTE); 214 *buf = (char)UTF8_NON_ID_CHAR1; 215 *(buf+1) = (char)UTF8_NON_ID_CHAR2; 216 *(buf+2) = (char)UTF8_NON_ID_CHAR3; [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | dis.c | 69 static char buf[256]; in print_address_ps() local 85 (void) strcat(buf, ":"); in print_address_ps() 89 buf[0] = '\0'; in print_address_ps() 109 len = strlen(buf); in print_address_ps() 114 return (buf); in print_address_ps() 119 len = strlen(buf); in print_address_ps() 123 return (buf); in print_address_ps() 128 len = strlen(buf); in print_address_ps() 135 return (buf); in print_address_ps() 139 buf[0] = '\0'; in print_address_ps() [all …]
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_nicenum.c | 49 zfs_nicenum_format(uint64_t num, char *buf, size_t buflen, in zfs_nicenum_format() argument 78 (void) snprintf(buf, buflen, "%s", "-"); in zfs_nicenum_format() 91 (void) snprintf(buf, buflen, "-"); in zfs_nicenum_format() 124 if (snprintf(buf, buflen, "%d%s", in zfs_nicenum_format() 129 if (snprintf(buf, buflen, "%.*f%s", i, in zfs_nicenum_format() 141 zfs_nicenum(uint64_t num, char *buf, size_t buflen) in zfs_nicenum() argument 143 zfs_nicenum_format(num, buf, buflen, ZFS_NICENUM_1024); in zfs_nicenum() 151 zfs_nicetime(uint64_t num, char *buf, size_t buflen) in zfs_nicetime() argument 160 zfs_niceraw(uint64_t num, char *buf, size_t buflen) in zfs_niceraw() argument 162 zfs_nicenum_format(num, buf, buflen, ZFS_NICENUM_RAW); in zfs_niceraw() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathpath.c | 55 char buf[PATH_MAX]; in pathpath_20100601() local 61 path = buf; in pathpath_20100601() 62 if (!size || size > sizeof(buf)) in pathpath_20100601() 63 size = sizeof(buf); in pathpath_20100601() 79 getcwd(buf, sizeof(buf)); in pathpath_20100601() 80 s = buf + strlen(buf); in pathpath_20100601() 81 sfsprintf(s, sizeof(buf) - (s - buf), "/%s", p); in pathpath_20100601() 82 if (path != buf) in pathpath_20100601() 83 strcpy(path, buf); in pathpath_20100601() 104 if (strlen(s) < (sizeof(buf) - 6)) in pathpath_20100601() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/utf-8/utils/ |
H A D | cp720_to_ucs4_generator.c | 39 char buf[BUFSIZ], num[100]; in main() local 60 while (fgets(buf, BUFSIZ, stdin)) { in main() 62 while (buf[i] && isspace(buf[i])) in main() 65 if (strncmp(buf + i, "<U", 2) != 0) in main() 69 for (j = 0; isxdigit(buf[i]); i++, j++) in main() 70 num[j] = buf[i]; in main() 75 while (!isxdigit(buf[i])) in main() 78 for (j = 0; isxdigit(buf[i]); i++, j++) in main() 79 num[j] = buf[i]; in main() 84 while (buf[i] == ' ' || buf[i] == '\t') in main() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_stat.c | 112 adp->arg_object = buf; in pr_stat() 116 adp->arg_object = buf; in pr_stat() 187 adp->arg_object = buf; in pr_lstat() 191 adp->arg_object = buf; in pr_lstat() 262 adp->arg_object = buf; in pr_fstat() 266 adp->arg_object = buf; in pr_fstat() 341 adp->arg_object = buf; in pr_stat64() 345 adp->arg_object = buf; in pr_stat64() 420 adp->arg_object = buf; in pr_lstat64() 424 adp->arg_object = buf; in pr_lstat64() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | lfmt_log.c | 64 char buf[MAXMSG]; in __lfmt_log() member 81 msg_offset += strlcpy(msg.buf + msg_offset, __pfmt_label, in __lfmt_log() 82 sizeof (msg.buf) - msg_offset); in __lfmt_log() 88 msg_offset += 1 + vsprintf(msg.buf + msg_offset, text, args); in __lfmt_log() 89 msg.buf[msg_offset++] = '\0'; in __lfmt_log() 98 dat.buf = msg.buf; in __lfmt_log() 111 char buf[128]; in __lfmt_log() local 119 (void) ctime_r(&t, buf, sizeof (buf)); in __lfmt_log() 120 p = (char *)strrchr(buf, '\n'); in __lfmt_log() 123 (void) write(fdd, buf, strlen(buf)); in __lfmt_log() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_enc.c | 153 buf = malloc(buf_len); in hmac_sha1_vector() 154 ptr = buf; in hmac_sha1_vector() 163 free(buf); in hmac_sha1_vector() 216 uint8_t *buf; in rc4_skip() local 220 buf = malloc(buf_len); in rc4_skip() 222 bzero(buf, buf_len); in rc4_skip() 228 free(buf); in rc4_skip() 237 RC4(&k, len, buf, buf); in rc4() 251 buf = malloc(buf_len); in hmac_md5_vector() 252 ptr = buf; in hmac_md5_vector() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipmpstat/ |
H A D | ipmpstat.c | 615 (void) strlcat(buf, "(", bufsize); in sfunc_group_interfaces() 617 (void) strlcat(buf, ")", bufsize); in sfunc_group_interfaces() 624 (void) strlcat(buf, "[", bufsize); in sfunc_group_interfaces() 685 buf[IPMPSTAT_NUM_FLAGS] = '\0'; in sfunc_if_flags() 688 buf[IPMPSTAT_SFLAG_INDEX] = 's'; in sfunc_if_flags() 691 buf[IPMPSTAT_IFLAG_INDEX] = 'i'; in sfunc_if_flags() 694 buf[IPMPSTAT_DFLAG_INDEX] = 'd'; in sfunc_if_flags() 697 buf[IPMPSTAT_HFLAG_INDEX] = 'h'; in sfunc_if_flags() 707 buf[IPMPSTAT_M4FLAG_INDEX] = 'm'; in sfunc_if_flags() 710 buf[IPMPSTAT_M6FLAG_INDEX] = 'M'; in sfunc_if_flags() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpc_prot.c | 143 int32_t *buf; in xdr_replymsg() local 162 buf = (int32_t *)(((caddr_t)buf) + oa->oa_length); in xdr_replymsg() 164 bzero(buf, rndup); in xdr_replymsg() 165 buf = (int32_t *)(((caddr_t)buf) + rndup); in xdr_replymsg() 171 IXDR_PUT_ENUM(buf, ar->ar_stat); in xdr_replymsg() 200 if (buf != NULL) { in xdr_replymsg() 216 if (buf == NULL) { in xdr_replymsg() 258 int32_t *buf; in xdr_replymsg_hdr() local 279 buf = (int32_t *)(((caddr_t)buf) + oa->oa_length); in xdr_replymsg_hdr() 281 bzero(buf, rndup); in xdr_replymsg_hdr() [all …]
|
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-port.c | 220 (void) memset(buf, 0, sizeof (buf)); in next_job_id() 221 if (read(fd, buf, sizeof (buf)) > 0) in next_job_id() 227 snprintf(buf, sizeof (buf), "%.3d", next); in next_job_id() 230 write(fd, buf, strlen(buf)); in next_job_id() 392 size = vsnprintf(buf, sizeof (buf), fmt, ap); in send_lpd_message() 404 if ((read(fd, buf, 1) != 1) || (buf[0] != 0)) in send_lpd_message() 615 snprintf(buf, sizeof (buf), "\04%s", printer); in query() 616 add_args(ac, av, buf, sizeof (buf)); in query() 617 strlcat(buf, "\n", sizeof (buf)); in query() 637 add_args(ac, av, buf, sizeof (buf)); in cancel() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | misc_link.c | 290 free(buf); in display() 323 free(buf); in parallel() 333 char *buf; in ses_callback() local 358 free(buf); in ses_callback() 430 (void) snprintf(buf, sizeof (buf), "%s%s", "wifi/", mn); in wifi_minor_name() 480 free(buf); in fc_port() 516 free(buf); in printer_create() 559 free(buf); in se_hdlc_create() 593 free(buf); in gpio() 620 char *buf; in av_create() local [all …]
|
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | aconvert.c | 83 buf[i] = '0'; in __aconvert() 120 buf[0] = '1'; in __aconvert() 132 buf[i] = '0'; in __aconvert() 133 buf[ndigits] = '\0'; in __aconvert() 164 buf[i] = '0'; in __qaconvert() 261 buf[0] = '1'; in __qaconvert() 283 buf[i] = '0'; in __qaconvert() 284 buf[ndigits] = '\0'; in __qaconvert() 320 buf[i] = '0'; in __qaconvert() 350 buf[0] = '1'; in __qaconvert() [all …]
|
/illumos-gate/usr/src/cmd/tip/aculib/ |
H A D | df.c | 43 struct termios buf; in df_dialer() local 47 (void) ioctl(f, TCGETS, &buf); in df_dialer() 48 buf.c_cflag |= HUPCL; in df_dialer() 49 (void) ioctl(f, TCSETS, &buf); in df_dialer() 62 (void) ioctl(f, TCGETS, &buf); in df_dialer() 64 speed = cfgetospeed(&buf); in df_dialer() 65 (void) cfsetospeed(&buf, B0); in df_dialer() 66 (void) cfsetispeed(&buf, B0); in df_dialer() 86 (void) cfsetospeed(&buf, B0); in df_dialer() 87 (void) cfsetispeed(&buf, B0); in df_dialer() [all …]
|