Searched +defs:val +defs:len (Results 1 - 25 of 543) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/head/
H A Dmp.h45 int len; member in struct:mint
46 short *val; member in struct:mint
/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Dcmn_test.c40 xstrtoi(char *str, int len) { argument
41 int val; local
45 val = 0;
46 for (i = 0, c = *str++; len-- > 0; i++, c = *str++) {
56 val *= 16;
57 val += c;
59 return (val);
67 getxdata(unsigned char *cp, char *field, int len) argument
72 for (i = 0; i < len; i++) {
84 putxdata(unsigned char *cp, int len) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkmdb_promif_isadep.c47 kmdb_prom_obp_writer(caddr_t buf, size_t len) argument
51 for (i = 0; i < len; i++)
54 return (len);
83 kmdb_prom_free_ddi_prop(char *val) argument
/illumos-gate/usr/src/cmd/listen/
H A Dnlsaddr.c168 * rcv buffer must be at least (2*len)+1 bytes.
175 nlsaddr2c(charaddr, addr, len)
177 int len;
181 while (len--) {
216 int len; local
219 unsigned char val; local
224 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
225 for (i = 2, val = 0; i--; ) {
229 val
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Duuid_to_string.c40 * Dump len characters into *buf from val as hex and update *buf
43 tohex(char **buf, int len, uint32_t val) argument
49 for (i = len - 1; i >= 0; i--) {
50 walker[i] = hexstr[val & 0xf];
51 val >>= 4;
53 *buf = walker + len;
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmlsetup.c84 set_console_mode(uint8_t val) argument
89 rp.eax.byte.al = val;
483 int len; local
488 len = strlen(SYSTEM_BOOT_PATH "/kernel");
490 path += len + 1;
504 len = p - filename;
505 if (len > isalen &&
506 strncmp(&filename[len - isalen], isastr, isalen) == 0)
512 len += (p - filename) + 1 + strlen(MOD_DEFPATH) + 1;
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c84 fprintf(stderr, "nlsenv: environ %s = %s len = %d\n",
122 * by a negative 'len' field in the approp.
141 call->addr.len = nlsenv(&call->addr, NLSADDR);
142 call->opt.len = nlsenv(&call->opt, NLSOPT);
143 call->udata.len = nlsenv(&call->udata, NLSUDATA);
206 int len; local
209 unsigned char val; local
214 for (len = 0; ((maxlen--) && (*charaddr)); ++len) {
215 for (i = 2, val
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dckparam.c49 static int too_long(char *param, char *pt, int len);
53 ckparam(char *param, char *val) argument
55 char *value = strdup(val);
162 too_long(char *param, char *pt, int len) argument
164 if (strlen(pt) > (size_t)len) {
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dcap_machelf.c38 conv_cap(Xword val, char *str, size_t len, Half mach, argument
51 _len = sprintf(str, MSG_ORIG(MSG_GBL_OSQBRKT), EC_XWORD(val));
53 len -= _len;
57 if ((*fptr)(ELFCAP_STYLE_UC, val, str, len, ELFCAP_FMT_SNGSPACE,
63 if ((len - _len) >= MSG_GBL_CSQBRKT_SIZE) {
72 conv_cap_val_hw1(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, argument
75 if (val == 0)
78 if (conv_cap(val, cap_val_hw1_bu
85 conv_cap_val_hw2(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, Conv_cap_val_hw2_buf_t *cap_val_hw2_buf) argument
98 conv_cap_val_sf1(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, Conv_cap_val_sf1_buf_t *cap_val_sf1_buf) argument
131 conv_cap_val(Xword tag, Xword val, Half mach, Conv_fmt_flags_t fmt_flags, Conv_cap_val_buf_t *cap_val_buf) argument
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinet6_opt.c72 socklen_t len, uint_t align, void **databufp)
78 if (align > len ||
80 len < 0 || len > 255 || type < 2) {
94 remainder = (offset + 2 + len) % align;
101 endlen = offset + padbytes + 2 + len;
130 *p++ = len;
197 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) argument
199 memcpy((uint8_t *)databuf + offset, val, vallen);
246 /* type, len, an
71 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type, socklen_t len, uint_t align, void **databufp) argument
296 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) argument
[all...]
/illumos-gate/usr/src/cmd/uname/
H A Duname.c130 int len = strlen(nodename); local
132 if (len > SYS_NMLN - 1) {
138 if (sysinfo(SI_SET_HOSTNAME, nodename, len) < 0) {
193 int val; local
215 val = sysconf(_SC_NPROCESSORS_CONF);
216 (void) fprintf(stdout, "NumCPU = %d\n", val);
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypmatch.c228 char *val; local
229 int len; local
233 error = match_one(keys[n], &val, &len);
236 print_one(keys[n], val, len);
237 free(val);
255 match_one(key, val, len)
257 char **val;
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_prop.c144 int len; local
147 len = strlen(value);
149 curval = realloc(cfg->sc_value, (len + 1));
151 curval = ndmp_malloc(len + 1);
215 char *val; local
217 val = ndmpd_get_prop(id);
218 if (val) {
219 if (strcasecmp(val, "yes") == 0)
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/
H A Dbaddof.c55 corrupt(int fd, unsigned char *buf, int len) argument
60 int val[LEAP_DISTANCE], pos[LEAP_DISTANCE]; local
70 for (bit = 0; bit < len * 8; bit++) {
125 bit = lrand48() % (len * 8);
127 val[i] = buf[bit / 8];
149 buf[pos[i]] = val[i];
159 int err, fd, len; local
186 len = ((dof_hdr_t *)dof)->dofh_loadsz;
188 if ((copy = malloc(len)) == NULL)
189 fatal("could not allocate copy of %d bytes", len);
[all...]
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dleb128.c103 uleb_extract(unsigned char *data, uint64_t *dotp, size_t len, uint64_t *ret) argument
109 int val; local
114 if (dot > len)
120 val = (*data) & 0x7f;
125 res = res | (val << shift);
145 sleb_extract(unsigned char *data, uint64_t *dotp, size_t len, int64_t *ret) argument
151 int val; local
156 if (dot > len)
162 val = (*data) & 0x7f;
167 res = res | (val << shif
207 dwarf_ehe_extract(unsigned char *data, size_t len, uint64_t *dotp, uint64_t *ret, uint_t ehe_flags, unsigned char *eident, boolean_t frame_hdr, uint64_t sh_base, uint64_t sh_offset, uint64_t dbase) argument
265 uint64_t val; local
280 uint64_t val; local
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_create.c86 char *opt = NULL, *val = NULL; local
88 if ((status = krb5_ldap_get_db_opt(*t_ptr, &opt, &val)) != 0) {
94 free (val);
99 if (val == NULL) {
105 ldap_context->bind_dn = strdup(val);
108 free (val);
115 free (val);
120 if (val == NULL) {
126 ldap_context->max_server_conns = atoi(val) ? atoi(val)
206 unsigned int len=0; local
[all...]
/illumos-gate/usr/src/lib/libtsol/common/
H A Dbtos.c59 return_string(char **string, int str_len, char *val) argument
62 size_t val_len = strlen(val) + 1;
73 bcopy(val, cpyptr, val_len);
89 alloc_string(char **string, size_t size, char val) argument
96 **string = val;
100 **string = val;
299 * len = Maximum length of translated string, excluding NULL.
307 * Returns NULL, If error, len too small, unable to translate, or get
317 sbsltos(const bslabel_t *label, size_t len) argument
349 if (len
413 sbcleartos(const bclear_t *clearance, size_t len) argument
[all...]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c142 ipmi_entity_name(uint8_t id, char *buf, size_t len) argument
148 (void) strlcpy(buf, ntp->int_name, len);
153 (void) snprintf(buf, len, "0x%02x", id);
157 ipmi_sensor_type_name(uint8_t type, char *buf, size_t len) argument
163 (void) strlcpy(buf, ntp->int_name, len);
168 (void) snprintf(buf, len, "0x%02x", type);
172 ipmi_sensor_units_name(uint8_t type, char *buf, size_t len) argument
178 (void) strlcpy(buf, ntp->int_name, len);
183 (void) snprintf(buf, len, "0x%02x", type);
188 char *buf, size_t len)
187 ipmi_sensor_reading_name(uint8_t sensor_type, uint8_t reading_type, char *buf, size_t len) argument
190 uint8_t val; local
242 ipmi_decode_string(uint8_t type, uint8_t len, char *data, char *buf) argument
[all...]
/illumos-gate/usr/src/cmd/profiles/
H A Dprofiles.c201 int len; local
204 char *val; local
222 len = printf(" %s ", exec->id);
235 if (len >= ATTR_COL)
238 (void) printf("%*s", ATTR_COL-len, " ");
239 len = ATTR_COL;
245 val = kv_pair[i].value;
246 if (key == NULL || val == NULL)
250 (void) printf("%*s", len, " ");
251 (void) printf("%s=%s\n", key, val);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dannounce.c74 pid_t pid, val; local
90 val = wait(&status);
91 if (val == (pid_t)-1) {
100 } while (val != pid);
204 int len, k; local
226 len = (strlen(request->l_name) > NAME_SIZE - 1) ? (NAME_SIZE - 1) :
228 for (j = 0, k = 0; j < len; j++) {
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/kctl/
H A Dkctl_isadep.c45 int len; local
47 len = BOP_GETPROPLEN(ops, pname);
48 if (len > 0 && len <= buf_len) {
60 char *val; local
64 DDI_PROP_DONTPASS, pname, &val) != DDI_SUCCESS)
67 if (strlen(val) < buf_len) {
68 (void) strcpy(prop_buf, val);
72 ddi_prop_free(val);
/illumos-gate/usr/src/uts/common/io/sdcard/impl/
H A Dsda_mem.c217 sda_mem_getbits(uint32_t *resp, int hibit, int len) argument
219 uint32_t val = 0; local
222 for (bit = hibit; len--; bit--) {
223 val <<= 1;
224 val |= ((resp[bit / 32]) >> (bit % 32)) & 1;
226 return (val);
230 sda_mem_getstring(uint32_t *resp, char *s, int hibit, int len) argument
232 while (len--) {
/illumos-gate/usr/src/uts/common/io/
H A Dtty_common.c446 uint_t val; local
447 uint_t len; local
461 property, (char ***)&modesp, &len) != DDI_PROP_SUCCESS) {
491 if (termioval(&cp, &val, *modesp+strlen(*modesp)) == -1) {
500 new_termios.c_iflag = (tcflag_t)val;
503 new_termios.c_oflag = (tcflag_t)val;
506 new_termios.c_cflag = (tcflag_t)val;
509 new_termios.c_lflag = (tcflag_t)val;
512 new_termios.c_cc[i - 4] = (cc_t)val;
/illumos-gate/usr/src/uts/intel/promif/
H A Dprom_emul.c42 promif_create_prop(prom_node_t *pnp, char *name, void *val, int len, int flags) argument
49 q->pp_val = kmem_alloc(len, KM_SLEEP);
50 q->pp_len = len;
65 (void) bcopy(val, q->pp_val, len);
200 * Retrieve a PROM property (len and value)
244 int len; local
250 len = getproplen(pnp, name);
251 if (len >
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dinstall.c55 setpath(char **what, char *val) argument
58 size_t len; local
61 len = strlen(val) + 1;
62 rel = (val[0] != '/') ? 1 : 0;
63 path = malloc(len + rel);
67 strcpy(path + rel, val);
74 setmultipath(char ***what, char *val) argument
80 v = val;
92 s = strchr(val, ',');
108 char *p, *tag, *val; local
[all...]

Completed in 385 milliseconds

1234567891011>>