Searched +defs:val +defs:sp (Results 1 - 25 of 44) sorted by relevance

12

/osnet-11/usr/src/lib/libc/sparc/gen/
H A Dsiglongjmp.c45 siglongjmp(sigjmp_buf env, int val) argument
76 if (val)
77 reg[REG_O0] = (greg_t)val;
93 struct frame *sp = (struct frame *)(bp->sjs_sp + STACK_BIAS); local
94 sp->fr_savfp = (struct frame *)fp;
95 sp->fr_savpc = i7;
/osnet-11/usr/src/lib/libc/sparcv9/gen/
H A Dsiglongjmp.c42 siglongjmp(sigjmp_buf env, int val) argument
75 if (val)
76 reg[REG_O0] = (greg_t)val;
92 struct frame *sp = (struct frame *)(bp->sjs_sp + STACK_BIAS); local
93 sp->fr_savfp = (struct frame *)fp;
94 sp->fr_savpc = i7;
/osnet-11/usr/src/lib/libc/port/gen/
H A Dstr2sig.c126 str2long(const char *p, long *val) argument
133 *val = strtol(p, &q, 10);
144 const struct signame *sp; local
147 long val; local
149 if (str2long(s, &val) == -1)
152 for (sp = signames; sp < &signames[SIGCNT]; sp++) {
153 if (sp->signum == val) {
173 const struct signame *sp; local
[all...]
H A Dnftw.c179 int val; member in struct:local_vars
196 v->val = val; \
209 val = v->val; \
228 val = -1; \
284 int val = -1; local
423 val = rc;
464 struct Save *sp = last; local
465 while (sp) {
881 oldclose(struct Save *sp) argument
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dtokline.c48 Sfio_t* sp; member in struct:__anon1188
58 spliceline(Sfio_t* s, int op, void* val, Sfdisc_t* ad) argument
69 NoP(val);
73 sfclose(d->sp);
81 if (!(buf = sfgetr(d->sp, '\n', 0)) && !(buf = sfgetr(d->sp, '\n', -1)))
83 n = sfvalue(d->sp);
189 d->sp = f;
/osnet-11/usr/src/lib/libpp/common/
H A Dppop.c44 set(register long* p, register long op, int val) argument
53 if (val)
275 context(Sfio_t* sp, int level, int flags) argument
284 sfprintf(sp, " %s", ppstatestr(pp.state));
343 Sfio_t* sp; local
498 sfputc(pp.filedeps.sp, '\n');
499 if (pp.filedeps.sp == sfstdout)
500 sfsync(pp.filedeps.sp);
502 sfclose(pp.filedeps.sp);
816 if (!(sp
[all...]
/osnet-11/usr/src/lib/libshell/common/bltins/
H A Denum.c131 static void put_enum(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
136 if(!val)
141 nv_putv(np, val, flags,fp);
146 nv_putv(np,val,flags,fp);
152 n = strcasecmp(v,val);
154 n = strcmp(v,val);
163 error(ERROR_exit(1), "%s: invalid value %s",nv_name(np),val); local
193 char *cp,*sp; local
254 sp = nv_getval(np);
255 n = strlen(sp);
[all...]
H A Dmkservice.c136 static int fdclose(Service_t *sp, register int fd) argument
140 if(sp->fd==fd)
141 sp->fd = -1;
147 if(sp->actionf)
148 (*sp->actionf)(sp, fd, 1);
157 Service_t *sp; local
174 else if(sp = service_list[fd1])
176 fdclose(sp,fd1);
177 if(--sp
186 Service_t * sp = service_list[fd]; local
273 service_add(Service_t *sp) argument
282 Accept(register Service_t *sp, int accept_fd) argument
310 Action(Service_t *sp, int fd, int close) argument
333 Error(Service_t *sp, int level, const char* arg, ...) argument
348 register Service_t* sp = (Service_t*)fp; local
375 putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
377 register Service_t* sp = (Service_t*)fp; local
412 register Service_t* sp; local
[all...]
H A Dread.c209 register char *name, *val; local
234 if(val= strchr(name,'?'))
235 *val = 0;
252 char *sp = np->nvenv; local
256 np->nvenv = sp;
261 if(val)
262 *val = '?';
509 /* val==0 at the start of a field */
510 val = 0;
518 if(val
[all...]
H A Dshiocmd_solaris.c57 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);
130 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
132 if(val)
139 mode = *(Sfdouble_t*)val;
226 char *val = np->nvalue + fp->offset; local
244 Shclass_t *sp = &dcp->sclass; local
260 genvalue(Sfio_t *out, Shclass_t *sp, int indent, Namval_t *npar) argument
352 put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
375 mkclass(Namval_t *np, Shclass_t *sp) argument
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dfault.c52 static int malloc_done(Vmalloc_t* vm, int type, Void_t* val, Vmdisc_t* dp) argument
470 Sfio_t *sp; local
472 sp = (Sfio_t*)trap;
474 sp = sfopen(NIL(Sfio_t*),trap,"s");
475 sh_eval(sp,0);
H A Dnvtree.c58 Sfio_t *sp; local
67 sp = sfopen((Sfio_t*)0,cp,"s");
68 sfstack(iop,sp);
417 register unsigned val,mask,attr; local
468 val = tp->sh_number;
469 mask = val;
470 if(fp && (val&NV_INTEGER))
477 if(val==NV_DOUBLE && (attr&(NV_EXPNOTE|NV_HEXFLOAT)))
479 if(val&NV_INTEGER)
481 else if(val
844 char *sp; local
1094 put_tree(register Namval_t *np, const char *val, int flags,Namfun_t *fp) argument
[all...]
H A Darray.c50 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
1129 nv_putsub(Namval_t *np,register char *sp,register long mode) argument
1441 register char *sp = cp+1; local
1605 nv_associative(register Namval_t *np,const char *sp,int mode) argument
[all...]
H A Dnvdisc.c37 int nv_compare(Dt_t* dict, Void_t *sp, Void_t *dp, Dtdisc_t *disc) argument
39 if(sp==dp)
41 return(strcmp((char*)sp,(char*)dp));
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)
603 putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp) 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
1085 register char *sp, *cp=0; local
1272 put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp) argument
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_encode.c34 asn1_encode_boolean(asn1buf *buf, asn1_intmax val, unsigned int *retlen) argument
41 bval = val ? 0xFF : 0x00;
56 asn1_encode_integer_internal(asn1buf *buf, asn1_intmax val, argument
64 valcopy = val;
73 if ((val > 0) && ((digit&0x80) == 0x80)) { /* make sure the high bit is */
77 } else if ((val < 0) && ((digit&0x80) != 0x80)) {
89 asn1_encode_integer(asn1buf * buf, asn1_intmax val, unsigned int *retlen) argument
94 retval = asn1_encode_integer_internal(buf, val, &partlen);
108 asn1_encode_enumerated(asn1buf * buf, long val,
114 retval = asn1_encode_integer_internal(buf, val,
128 asn1_encode_unsigned_integer(asn1buf *buf, asn1_uintmax val, unsigned int *retlen) argument
161 encode_bytestring_with_tag(asn1buf *buf, unsigned int len, const void *val, int tag, unsigned int *retlen) argument
180 asn1_encode_oid(asn1buf *buf, unsigned int len, const asn1_octet *val, unsigned int *retlen) argument
188 asn1_encode_octetstring(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument
225 asn1_encode_generaltime(asn1buf *buf, time_t val, unsigned int *retlen) argument
228 char s[16], *sp; local
278 asn1_encode_generalstring(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument
286 asn1_encode_bitstring(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument
304 asn1_encode_opaque(asn1buf *buf, unsigned int len, const void *val, unsigned int *retlen) argument
362 encode_nullterm_sequence_of(asn1buf *buf, const void *val, const struct atype_info *type, int can_be_empty, unsigned int *retlen) argument
382 krb5int_asn1_encode_a_thing(asn1buf *buf, const void *val, const struct atype_info *a, unsigned int *retlen) argument
436 encode_a_field(asn1buf *buf, const void *val, const struct field_info *field, unsigned int *retlen) argument
588 encode_fields(asn1buf *buf, const void *val, const struct field_info *fields, size_t nfields, unsigned int optional, unsigned int *retlen) argument
618 just_encode_sequence(asn1buf *buf, const void *val, const struct seq_info *seq, unsigned int *retlen) argument
653 encode_sequence_of(asn1buf *buf, int seqlen, const void *val, const struct atype_info *eltinfo, unsigned int *retlen) argument
[all...]
/osnet-11/usr/src/lib/nsswitch/nis/common/
H A Dgetexecattr.c98 void *sp; local
116 sp = argp->returnval;
119 argp->returnval = sp;
268 char *val; local
282 key, &val, &vallen, &ypstatus);
293 char *val_save = val;
295 massage_netdb((const char **)&val, &vallen);
296 res = _exec_nis_parse((const char *)val,
/osnet-11/usr/src/lib/libcmd/common/
H A Dstty.c127 unsigned long val; member in struct:tty_s
361 static void sane(register struct termios *sp) argument
375 sp->c_cflag |= tp->mask;
377 sp->c_cflag &= ~tp->mask;
381 sp->c_iflag |= tp->mask;
383 sp->c_iflag &= ~tp->mask;
387 sp->c_oflag |= tp->mask;
389 sp->c_oflag &= ~tp->mask;
393 sp->c_lflag |= tp->mask;
395 sp
405 gin(char *arg,struct termios *sp) argument
447 gout(struct termios *sp) argument
466 output(struct termios *sp, int flags) argument
601 getspeed(unsigned long val) argument
633 set(char *argv[], struct termios *sp) argument
788 listchars(Sfio_t *sp,int type) argument
799 listgroup(Sfio_t *sp,int type, const char *description) argument
811 listmask(Sfio_t *sp,unsigned int mask,const char *description) argument
823 listfields(Sfio_t *sp,int field) argument
833 listmode(Sfio_t *sp,const char *name) argument
838 infof(Opt_t* op, Sfio_t* sp, const char* s, Optdisc_t* dp) argument
[all...]
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/
H A Dx86pi_subr.c119 const smb_struct_t *sp; local
131 sp = shp->sh_structs;
133 for (i = 0, cnt = 0; i < nstructs; i++, sp++) {
134 if (sp->smbst_hdr->smbh_type == stype->type) {
136 stype->ids[cnt].id = sp->smbst_hdr->smbh_hdl;
685 int *val; local
687 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg", &val) < 0) {
693 return (uint16_t)((*val & PCI_REG_BDFR_M) >> PCI_REG_FUNC_SHIFT);
/osnet-11/usr/src/lib/libast/common/misc/
H A Dstk.c91 #define stk2stream(sp) ((Sfio_t*)(((char*)(sp))-STK_HDRSIZE))
137 register Sfio_t *sp; local
139 sp = stkopen(0);
141 stkinstall(sp,overflow);
144 static int stkexcept(register Sfio_t *stream, int type, void* val, Sfdisc_t* dp) argument
147 NoP(val);
152 register struct stk *sp = stream2stk(stream); local
153 register char *cp = sp->stkbase;
155 if(--sp
217 register struct stk *sp; local
266 register struct stk *sp; local
299 register struct stk *sp = stream2stk(stream); local
311 register struct stk *sp = stream2stk(stream); local
325 register struct stk *sp = stream2stk(stream); local
340 register struct stk *sp = stream2stk(stream); local
462 struct stk *sp = stream2stk(stream); local
498 register struct stk *sp = stream2stk(stream); local
[all...]
/osnet-11/usr/src/lib/libdhcpdu/common/
H A Drfc2136.c151 struct childstat *sp; local
208 if ((sp = malloc(sizeof (struct childstat))) == NULL) {
215 * From this point on, both hp and sp are cleaned up and freed via
220 sp->hp = hp;
223 sp->synchflag = B_TRUE;
225 sp->synchflag = B_FALSE;
226 sp->done = B_FALSE;
227 sp->ret = 0;
228 sp->nusers = 1;
229 (void) mutex_init(&sp
307 struct childstat *sp; local
855 unsigned short val; local
870 unsigned int val; local
883 childstat_cleanup(struct childstat *sp) argument
[all...]
/osnet-11/usr/src/lib/libdladm/common/
H A Dsecobj.c72 secobj_class_info_t *sp; local
75 sp = &secobj_class_table[i];
76 if (strcasecmp(str, sp->sc_name) == 0) {
114 secobj_class_info_t *sp; local
117 sp = &secobj_class_table[i];
118 if (dldclass == sp->sc_dldclass) {
425 uint8_t val[DLADM_SECOBJ_VAL_MAX]; local
485 sinfo.si_val = val;
/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_cong.c297 scf_value_t *val = NULL; local
302 (val = scf_value_create(h)) == NULL)
308 scf_property_get_value(prop, val) < 0 ||
309 scf_value_get_boolean(val, &vbool) < 0)
322 scf_property_get_value(prop, val) == -1 ||
323 scf_value_get_as_string(val, vstr, sizeof (vstr)) == -1)
331 scf_value_destroy(val);
588 scf_value_t *val = NULL; local
600 (val = scf_value_create(ss.h)) == NULL) {
607 scf_property_get_value(prop, val) !
637 scf_value_t *val = NULL; local
976 char **sp; local
[all...]
/osnet-11/usr/src/lib/efcode/engine/
H A Dproperties.c44 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);
179 static prop_t sp; local
190 sp.size = POP(DS);
191 sp.data = (uchar_t *)POP(DS);
192 sp.name = propname;
193 sp.next = NULL;
194 return (&sp);
[all...]
/osnet-11/usr/src/lib/krb5/kadm5/
H A Dalt_prof.c192 krb5_boolean val; local
204 kret = string_to_boolean (valp, &val);
208 *retdata = val;
794 char *sp, *ep, *tp; local
796 sp = svalue;
798 while (sp) {
799 if ((ep = strchr(sp, (int) ',')) ||
800 (ep = strchr(sp, (int) ' ')) ||
801 (ep = strchr(sp, (int) '\t'))) {
802 /* Fill in trailing whitespace of sp */
1269 char *sp, *ep, *tp; local
[all...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_page.c91 __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
1279 int32_t sp, ret_val; local
[all...]

Completed in 395 milliseconds

12