| /osnet-11/usr/src/lib/libsocket/inet/ |
| H A D | inet6_opt.c | 68 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, uint8_t type, argument 91 remainder = (offset + 2 + len) % align; 98 endlen = offset + padbytes + 2 + len; 107 p = (uint8_t *)extbuf + offset; 140 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) argument 155 padbytes = 8 - (offset % 8); 159 if ((offset + padbytes > extlen) || !extbuf) { 163 return (offset + padbytes); 167 p = (uint8_t *)extbuf + offset; 186 return (offset 194 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) argument 209 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, uint8_t *typep, socklen_t *lenp, void **databufp) argument 270 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, uint8_t type, socklen_t *lenp, void **databufp) argument 293 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) argument 295 (void) memcpy(val, (uint8_t *)databuf + offset, vallen); local [all...] |
| /osnet-11/usr/src/lib/libdisasm/sparc/ |
| H A D | dis_sparc.c | 291 dis_get_bits(uint32_t instr, int offset, int length) argument 293 uint32_t mask, val; local 299 mask = mask << (offset - length + 1); 301 val = instr & mask; 303 val = val >> (offset - length + 1); 305 return (val);
|
| /osnet-11/usr/src/lib/libshell/common/sh/ |
| H A D | arith.c | 74 int offset; local 78 if((!(np = nv_open(cp,shp->var_tree,assign|NV_VARNAME|NV_NOADD|NV_NOFAIL)) || nv_isnull(np)) && sh_macfun(shp,cp, offset = staktell())) 80 Fun = sh_arith(shp,sub=stakptr(offset)); 286 int offset = staktell(); local 331 stakset(saveptr,offset); 333 stakseek(offset); 363 char lastbase=0, *val = xp, oerrno = errno; local 366 r = strtonll(val,&str, &lastbase,-1); 371 r = strtonll(val,&str, &lastbase,-1); 375 if(*val [all...] |
| H A D | array.c | 50 union Value val[1]; /* array of value holders */ member in struct:index_array 115 memset(ar->val, 0, ar->maxi*sizeof(char*)); 116 ar->bits = (unsigned char*)&ar->val[ar->maxi]; 143 return (ap->header.fixed || ((ap->cur<aq->maxi) && aq->val[ap->cur].cp)); 145 return ((ap->cur<aq->maxi) && aq->val[ap->cur].cp); 190 while(i>0 && ap->val[--i].cp==0); 229 up = &(ap->val[ap->cur]); 250 up = &(ap->val[ap->cur]); 360 up = &(ap->val[ap->cur]); 490 ar->bits = (unsigned char*)&ar->val[a 856 int offset = staktell(); local [all...] |
| H A D | jobs.c | 270 pid_t val; local 287 val = (csp->id<<16)|n|COPID_BIT; 293 if((cp && val==pw->p_pid) || (pw->p_cojob && pw->p_cojob->local==(void*)csp)) 1206 int offset; local 1210 cp++,flag= &offset; 1284 int val,bg=0; local 1286 int val; local 1374 if ((val = job_chksave(pid)) >= 0) 1376 pw->p_exit = val;
|
| H A D | nvdisc.c | 251 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle) argument 261 if(val && (tp=nv_type(np)) && (nr=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)) && tp==nv_type(nr)) 275 if(val || isblocked(bp,type)) 279 nv_putv(np,val,flags,handle); 290 nv_putval(SH_VALNOD, val, (flags&NV_INTEGER)?flags:NV_NOFREE); 309 if(val) 333 nv_putv(np,val,flags,handle); 342 nv_putv(np, val, flags, handle); 603 static void putdisc(Namval_t* np, const char* val, in argument 781 put_notify(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument 838 num_clone(register Namval_t *np, void *val) argument 908 const char *val = mp->nvalue.cp; local 995 clone_putv(Namval_t *np,const char* val,int flags,Namfun_t *handle) argument 1084 int c,offset = staktell(); local 1161 int offset=staktell(); local 1272 put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp) argument 1430 int offset = stktell(stkp); local [all...] |
| H A D | nvtype.c | 154 size_t nv_datasize(Namval_t *np, size_t *offset) argument 203 if(a>1 && offset) 204 *offset = a*((*offset +a-1)/a); 230 static void put_chtype(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument 232 if(!val && nv_isattr(np,NV_REF)) 234 nv_putv(np,val,flag,fp); 235 if(!val) 238 size_t dsize=0,offset = (char*)np-(char*)pp->ptype; local 239 Namval_t *mp = (Namval_t*)((char*)pp->ttype+offset); 368 int save, offset=staktell(); local 545 put_type(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument 619 int n, i, offset=staktell(); local 852 size_t offset=0; local 1009 char *val=nv_getval(np); local 1217 int offset=staktell(); local 1310 char *val=0; local 1405 int offset; member in struct:_field_ 1434 int nnodes=0, offset=staktell(), n, r, i, j; local 1547 put_stat(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument [all...] |
| H A D | path.c | 298 int offset=staktell();; local 304 sh_addbuiltin(stakptr(offset),np->nvalue.bfp,NiL); 305 stakseek(offset); 427 int offset = staktell(); local 429 path_chkpaths(shp,first,0,pp,offset); 430 stakseek(offset); 490 const char *val; local 494 if(val=sh_scoped(shp,(PATHNOD))->nvalue.cp) 496 shp->pathlist = pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->pathlist,val,PATH_PATH); 504 if(val 915 int offset = staktell()-1; local 1423 int len, offset=staktell(); local 1473 path_chkpaths(Shell_t *shp,Pathcomp_t *first, Pathcomp_t* old,Pathcomp_t *pp, int offset) argument 1574 int offset = staktell(); local 1682 int offset = staktell(); local 1769 talias_put(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument [all...] |
| /osnet-11/usr/src/lib/libndr/common/ |
| H A D | ndr_marshal.c | 501 struct ndr_bind_ack_hdr *val = /*LINTED E_BAD_PTR_CAST_ALIGN*/ local 504 unsigned long offset; local 518 offset = 24UL; 522 val->sec_addr.length = 523 strlen((char *)val->sec_addr.port_spec) + 1; 534 NDR_MEMBER(_ushort, sec_addr.length, offset); 536 offset+2UL, val->sec_addr.length); 538 offset += 2; 539 offset 553 unsigned offset; local 593 ndr_alter_context_rsp_hdr_t *val = /*LINTED E_BAD_PTR_CAST_ALIGN*/ local 596 unsigned long offset; local 641 unsigned offset; local [all...] |
| /osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | mem.c | 51 #define MEMFMRI_OFFSET 0x0002 /* Valid offset */ 197 uint64_t val; local 214 * If we have a DIMM offset, include it in the string. If we have a 217 if (nvlist_lookup_uint64(in, FM_FMRI_MEM_OFFSET, &val) == 0) { 220 } else if (nvlist_lookup_uint64(in, FM_FMRI_MEM_PHYSADDR, &val) == 0) { 256 len = snprintf(NULL, 0, format, prefix, escunum, val) + 1; 264 (void) snprintf(buf, len, format, prefix, escunum, val); 285 uint64_t offset, paddr; local 333 * Look for "offset=<offset>" an [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/gettext/ |
| H A D | gettext.c | 66 grub_off_t offset) 68 if (grub_file_seek (file, offset) == (grub_off_t) - 1) 76 grub_gettext_get_info (int offset) argument 80 grub_gettext_pread (fd_mo, (char *) &value, 4, offset); 87 grub_gettext_getstring_from_offset (grub_uint32_t offset, argument 90 grub_gettext_pread (fd_mo, translation, length, offset); 99 grub_uint32_t length, offset; local 109 grub_gettext_pread (fd_mo, (char *) &offset, 4, internal_position + 4); 110 offset = grub_cpu_to_le32 (offset); 65 grub_gettext_pread(grub_file_t file, void *buf, grub_size_t len, grub_off_t offset) argument 122 int length, offset; local 351 grub_gettext_env_write_lang(struct grub_env_var *var __attribute__ ((unused)), const char *val) argument [all...] |
| /osnet-11/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/common/ |
| H A D | pi_meth.c | 514 uint64_t pa, offset; local 546 * specifies physaddr and/or offset. Set them in asru as well. 555 FM_FMRI_HC_SPECIFIC_OFFSET, &offset) == 0) 557 offset); 584 uint64_t val; local 588 &val) == 0 || 590 &val) == 0 || 592 &val) == 0 || 594 &val) == 0))
|
| /osnet-11/usr/src/lib/libast/common/misc/ |
| H A D | stk.c | 144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) argument 147 NoP(val); 335 * otherwise, the top of the stack is set to stkbot+<offset> 338 char *stkset(register Sfio_t * stream, register char* loc, unsigned offset) argument 346 stkinit(offset+1); 367 stream->_next = (unsigned char*)loc+offset;
|
| /osnet-11/usr/src/lib/libshell/common/bltins/ |
| H A D | shiocmd_solaris.c | 57 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 61 if(val) 67 t = *(Sfdouble_t*)val; 69 t = *(double*)val; 73 t = tmdate(val, &last, (time_t*)0); 75 errormsg(SH_DICT, ERROR_exit(1),"%s: invalid date/time string", val); 83 nv_putv(np, val, flag, nfp); 108 int offset = stktell(stkstd); local 115 dp->format = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD); 130 static void put_mode(Namval_t* np, const char* val, in argument 180 short offset; /* offset of field into data */ member in struct:_field_ 226 char *val = np->nvalue + fp->offset; local 229 int offset = stktell(stkstd); local 352 put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument [all...] |
| /osnet-11/usr/src/lib/libipmi/common/ |
| H A D | ipmi_sdr.c | 39 #define tos32(val, bits) ((val & ((1<<((bits)-1)))) ? (-((val) & \ 40 (1<<((bits)-1))) | (val)) : (val)) 461 uint8_t offset = IPMI_SDR_HDR_SZ, count = 0, chunksz = 16, sdr_sz; local 513 req.ic_gs_offset = offset; 523 (void) memcpy(buf+offset, (void *)sdr, chunksz); 524 offset += chunksz; 635 ipmi_sdr_conv_reading(ipmi_sdr_full_sensor_t *sensor, uint8_t val, argument [all...] |
| /osnet-11/usr/src/lib/efcode/engine/ |
| H A D | properties.c | 44 create_int_prop(fcode_env_t *env, char *name, int val) argument 46 PUSH(DS, val); 52 create_string_prop(fcode_env_t *env, char *name, char *val) argument 54 push_a_string(env, val); 372 int offset; local 379 offset = sizeof (uint32_t) * adr_cells; 381 PUSH(DS, (fstack_t)(ptr + offset)); 382 PUSH(DS, len + offset); 386 offset -= sizeof (uint32_t); 387 d = get_decoded_int((uchar_t *)(ptr + offset)); 654 int offset; local [all...] |
| /osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
| H A D | chip_subr.c | 89 boolean_t val; local 91 if (nvpair_value_boolean_value(nvp, &val) == 0 && 93 TOPO_PROP_IMMUTABLE, val ? "true" : "false", &err) == 0) 99 uint32_t val; local 101 if (nvpair_value_uint32(nvp, &val) == 0 && 103 TOPO_PROP_IMMUTABLE, val, &err) == 0) 109 uint64_t val; local 111 if (nvpair_value_uint64(nvp, &val) == 0 && 113 TOPO_PROP_IMMUTABLE, val, &err) == 0) 279 uint64_t pa, offset; local 660 uint64_t val; local [all...] |
| /osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/ |
| H A D | hash_page.c | 91 __get_item(hashp, cursorp, key, val, item_info) 94 DBT *key, *val; 156 val->size = KEY_OFF(cursorp->pagep, cursorp->pgndx) - 159 val->data = DATA(cursorp->pagep, cursorp->pgndx); 203 __get_item_first(hashp, cursorp, key, val, item_info) 206 DBT *key, *val; 211 return (__get_item_next(hashp, cursorp, key, val, item_info)); 219 __get_item_next(hashp, cursorp, key, val, item_info) 222 DBT *key, *val; 227 status = __get_item(hashp, cursorp, key, val, item_inf 454 DBT key, val; local 535 __addel(HTAB *hashp, ITEM_INFO *item_info, const DBT *key, const DBT *val, u_int32_t num_items, const u_int8_t expanding) argument 1091 int32_t max_free, offset, splitnum; local [all...] |
| /osnet-11/usr/src/lib/fm/libdiagcode/common/ |
| H A D | diagcode.c | 76 unsigned long long offset; /* databits==0 stands for this value */ member in struct:info 112 static void bitv_setlo(bitv *bv, unsigned bits, unsigned val); 113 static void bitv_shiftin(bitv *bv, unsigned bits, unsigned val); 117 static int bitv_mul(bitv *bv, unsigned long long val); 118 static int bitv_add(bitv *bv, unsigned long long val); 119 static int bitv_sub(bitv *bv, unsigned long long val); 120 static int bitv_ge(const bitv *bv, unsigned long long val); 123 static void crc(unsigned long *crcp, unsigned val); 594 if (!bitv_ge(bv, Info[i + 1].offset)) 697 * buildcode -- given the val fro 865 unsigned val; local 1153 bitv_setlo(bitv *bv, unsigned bits, unsigned val) argument 1185 bitv_shiftin(bitv *bv, unsigned bits, unsigned val) argument 1256 bitv_mul(bitv *bv, unsigned long long val) argument 1308 bitv_add(bitv *bv, unsigned long long val) argument 1339 bitv_sub(bitv *bv, unsigned long long val) argument 1372 bitv_ge(const bitv *bv, unsigned long long val) argument 1399 unsigned long long val; local 1520 crc(unsigned long *crcp, unsigned val) argument [all...] |
| /osnet-11/usr/src/lib/fm/libldom/sparc/ |
| H A D | ldmsvcs_utils.c | 136 int64_t val; /* prop value to return */ local 138 val = default_val; 142 val = *valp; 143 if (val < min) 144 val = min; 145 else if (val > max) 146 val = max; 150 return ((int)val); 1685 int offset; local 1717 offset [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/font/ |
| H A D | font.c | 47 grub_uint32_t offset; member in struct:char_index_entry 355 /* Read glyph data offset; convert to native byte order. */ 356 if (grub_file_read (file, &entry->offset, 4) != 4) 358 entry->offset = grub_be_to_cpu32 (entry->offset); 366 grub_printf ("c=%d o=%d\n", entry->code, entry->offset); 738 grub_file_seek (font->file, index_entry->offset); 1158 auto void add_device_width (int val); 1159 void add_device_width (int val) argument 1162 glyph->device_width += val; [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/fs/ |
| H A D | ntfs.c | 97 unsigned offset, 106 unsigned offset, 292 read_run_data (char *run, int nn, grub_disk_addr_t * val, int sig) argument 308 *val = r; 316 grub_disk_addr_t val; local 328 unsigned offset, 348 run = read_run_data (run + 1, c1, &val, 0); /* length of current VCN */ 350 ctx->next_vcn += val; 351 run = read_run_data (run, c2, &val, 1); /* offset t 379 read_data(struct grub_ntfs_attr *at, char *pa, char *dest, grub_disk_addr_t ofs, grub_size_t len, int cached, void NESTED_FUNC_ATTR (*read_hook) (grub_disk_addr_t sector, unsigned offset, unsigned length)) argument 496 read_attr(struct grub_ntfs_attr *at, char *dest, grub_disk_addr_t ofs, grub_size_t len, int cached, void NESTED_FUNC_ATTR (*read_hook) (grub_disk_addr_t sector, unsigned offset, unsigned length)) argument [all...] |
| /osnet-11/usr/src/grub/grub2/util/ |
| H A D | grub-mkimagexx.c | 34 # define ELF_R_SYM(val) ELF32_R_SYM(val) 35 # define ELF_R_TYPE(val) ELF32_R_TYPE(val) 47 # define ELF_R_SYM(val) ELF64_R_SYM(val) 48 # define ELF_R_TYPE(val) ELF64_R_TYPE(val) 143 SUFFIX (get_target_address) (Elf_Ehdr *e, Elf_Shdr *s, Elf_Addr offset, argument 146 return (Elf_Addr *) ((char *) e + grub_target_to_host32 (s->sh_offset) + offset); 177 grub_uint32_t val; member in struct:unaligned_uint32 351 Elf_Addr offset; local 660 Elf_Addr offset; local [all...] |
| /osnet-11/usr/src/grub/grub-0.97/stage2/ |
| H A D | graphics.c | 114 static inline void outb(unsigned short port, unsigned char val) argument 116 __asm __volatile ("outb %0,%1"::"a" (val), "d" (port)); 663 int i, ch, invert, offset; local 668 offset = cursorY * ROWBYTES + fontx; 673 mem = (unsigned char*)VIDEOMEM + offset; 680 chr[i ] = ((unsigned char*)VSHADOW1)[offset]; 681 chr[16 + i] = ((unsigned char*)VSHADOW2)[offset]; 682 chr[32 + i] = ((unsigned char*)VSHADOW4)[offset]; 683 chr[48 + i] = ((unsigned char*)VSHADOW8)[offset]; 718 offset [all...] |
| /osnet-11/usr/src/lib/libsqlite/src/ |
| H A D | btree_rb.c | 261 * NULL) a copy of val is returned. If (orig != NULL) then a copy of the * 262 * concatenation of orig and val is returned. The original orig is deleted 265 static char *append_val(char * orig, char const * val){ argument 268 z = sqliteStrDup( val ); 271 sqliteSetString(&z, orig, val, (char*)0); 1178 static int memRbtreeKey(RbtCursor* pCur, int offset, int amt, char *zBuf) argument 1181 if( !pCur->pNode->pKey || ((amt + offset) <= pCur->pNode->nKey) ){ 1182 memcpy(zBuf, ((char*)pCur->pNode->pKey)+offset, amt); 1184 memcpy(zBuf, ((char*)pCur->pNode->pKey)+offset, pCur->pNode->nKey-offset); 1200 memRbtreeData(RbtCursor *pCur, int offset, int amt, char *zBuf) argument [all...] |