/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | wc.c | 36 mbtowc(wchar_t* t, const char* s, size_t n) in mbtowc() argument 38 if (t && n > 0) in mbtowc() 39 *t = *s; in mbtowc() 47 mbrtowc(wchar_t* t, const char* s, size_t n, mbstate_t* q) in mbrtowc() argument 52 return mbtowc(t, s, n); in mbrtowc() 55 if (t && n > 0) in mbrtowc() 56 *t = *s; in mbrtowc() 65 mbstowcs(wchar_t* t, const char* s, size_t n) in mbstowcs() argument 67 register wchar_t* p = t; in mbstowcs() 68 register wchar_t* e = t + n; in mbstowcs() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | schedctl.c | 110 kthread_t *t = curthread; in schedctl() local 115 if (t->t_schedctl == NULL) { in schedctl() 123 ctxop_install(t, &schedctl_ctxop_tpl, ssp); in schedctl() 125 thread_lock(t); /* protect against ts_tick and ts_update */ in schedctl() 126 t->t_schedctl = ssp; in schedctl() 127 t->t_sc_uaddr = uaddr; in schedctl() 128 ssp->sc_cid = t->t_cid; in schedctl() 129 ssp->sc_cpri = t->t_cpri; in schedctl() 130 ssp->sc_priority = DISP_PRIO(t); in schedctl() 131 thread_unlock(t); in schedctl() [all …]
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_tnode.c | 160 tmpnode_init(struct tmount *tm, struct tmpnode *t, vattr_t *vap, cred_t *cred) in tmpnode_init() argument 167 rw_init(&t->tn_rwlock, NULL, RW_DEFAULT, NULL); in tmpnode_init() 168 mutex_init(&t->tn_tlock, NULL, MUTEX_DEFAULT, NULL); in tmpnode_init() 169 t->tn_mode = MAKEIMODE(vap->va_type, vap->va_mode); in tmpnode_init() 170 t->tn_mask = 0; in tmpnode_init() 171 t->tn_type = vap->va_type; in tmpnode_init() 172 t->tn_nodeid = (ino64_t)(uint32_t)((uintptr_t)t >> 3); in tmpnode_init() 173 t->tn_nlink = 1; in tmpnode_init() 174 t->tn_size = 0; in tmpnode_init() 177 t->tn_uid = vap->va_uid; in tmpnode_init() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | release.c | 137 char* t; in date() local 144 y = number(s, &t); in date() 145 if (*t != '-') in date() 147 switch (t - s) in date() 159 if (!(m = number(++t, &s))) in date() 161 if ((s - t) != 2 || *s != '-' || m < 1 || m > 12) in date() 163 if (!(d = number(++s, &t))) in date() 165 if ((t - s) != 2 || d < 1 || d > 31) in date() 170 if (string(s, day, elementsof(day), 3, &t)) in date() 171 s = t; in date() [all …]
|
/illumos-gate/usr/src/lib/libm/common/complex/ |
H A D | catanl.c | 128 long double x, y, t1, ax, ay, t; in catanl() local 174 t = one - ay; in catanl() 180 LD_IM(ans) = half * log1pl(two / (-t)); in catanl() 183 LD_IM(ans) = half * log1pl((ay + ay) / t); in catanl() 212 t = ay / (t1 * t1); in catanl() 214 t = (ay / ax) / ax; in catanl() 216 t = ay / (ax * ax + t1 * t1); in catanl() 217 LD_IM(ans) = t * (one - two * t); in catanl() 239 t = (ay / (ay - one)) / (ay - one); in catanl() 240 LD_IM(ans) = t * (one - (t + t)); in catanl() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | tmx | 29 #define tmxsec(t) ((Tmxsec_t)((t)/1000000000)) 30 #define tmxnsec(t) ((Tmxnsec_t)((t)%1000000000)) 45 #define tmxsec(t) ((Tmxsec_t)(t)) 46 #define tmxnsec(t) (((Tmxnsec_t)(((t)-((uint32_t)(t))+0.0000005)*1000L))*1000000L) 60 #define tmxsec(t) ((Tmxsec_t)(t)) 61 #define tmxnsec(t) (0) 71 #define tmx2tv(t,v) ((v)->tv_nsec=tmxnsec(t),(v)->tv_sec=tmxsec(t)) 80 #define tmxsetatime(s,t) ((s)->st_atime=tmxsec(t),ST_ATIME_NSEC_SET(s,tmxnsec(t))) 81 #define tmxsetctime(s,t) ((s)->st_ctime=tmxsec(t),ST_CTIME_NSEC_SET(s,tmxnsec(t))) 82 #define tmxsetmtime(s,t) ((s)->st_mtime=tmxsec(t),ST_MTIME_NSEC_SET(s,tmxnsec(t)))
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | rndintl.c | 48 long double t, w; in aintl() local 53 t = rintl(w); in aintl() 54 if (t <= w) in aintl() 55 return (copysignl(t, x)); /* NaN or already aint(|x|) */ in aintl() 57 return (copysignl(t - qone, x)); /* |t-1|*sign(x) */ in aintl() 62 long double t, w, z; in anintl() local 67 t = rintl(w); in anintl() 68 if (t == w) in anintl() 69 return (copysignl(t, x)); in anintl() 70 z = t - w; in anintl() [all …]
|
H A D | cbrtl.c | 39 long double s, t, r, w, y; in cbrtl() local 61 t = (long double) dy; in cbrtl() 62 t = scalbnl(t, m); in cbrtl() 63 s = t * t; in cbrtl() 65 w = t + t; in cbrtl() 66 r = (r - t) / (w + r); in cbrtl() 67 t += t * r; in cbrtl() 69 return (sx == 0 ? t : -t); in cbrtl()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 88 kmt_setflags(mdb_tgt_t *t, int flags) in kmt_setflags() argument 95 t->t_flags = (t->t_flags & ~MDB_TGT_F_ALLOWIO) | in kmt_setflags() 103 kmt_name(mdb_tgt_t *t) in kmt_name() argument 110 kmt_platform(mdb_tgt_t *t) in kmt_platform() argument 127 kmt_uname(mdb_tgt_t *t, struct utsname *utsp) in kmt_uname() argument 129 return (mdb_tgt_readsym(t, MDB_TGT_AS_VIRT, utsp, in kmt_uname() 135 kmt_dmodel(mdb_tgt_t *t) in kmt_dmodel() argument 142 kmt_rw(mdb_tgt_t *t, void *buf, size_t nbytes, uint64_t addr, in kmt_rw() argument 234 kmt_read(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) in kmt_read() argument 242 if (!(t->t_flags & MDB_TGT_F_ALLOWIO) && in kmt_read() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | ltable.h | 13 #define gnode(t,i) (&(t)->node[i]) argument 18 #define invalidateTMcache(t) ((t)->flags = 0) argument 25 LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 28 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 32 LUAI_FUNC void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize); 33 LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/ |
H A D | support.c | 343 double t; variable 378 t=s+1; x *= 4; r /= 2; 379 if(t<=x) { 380 s=t+t+2, x -= t; q += r;} 390 t = (x-s)-5; 392 b=1.0+r/4; if(b>1.0) t=1; /* b>1 : Round-to-(+INF) */ 393 if(t>=0) q+=r; } /* else: Round-to-nearest */ 396 t = (x-s)-1; 398 b=1.0+r/4; if(b>1.0) t=1; 399 if(t>=0) q+=r; } [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dttree.c | 94 Dtlink_t *t, *root; local 102 { while((t = root->_rght) ) 103 LROTATE(root,t); 106 { while((t = root->_left) ) 107 RROTATE(root,t); 122 Dtlink_t *root, *t; local 132 { while((t = root->_left) ) 133 RROTATE(root,t); 134 t = root->_rght; 136 } while((root = t) ); [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_tab.c | 28 size_t *t; /* Allocated array of tab positions. */ member 81 tl->t = mandoc_reallocarray(tl->t, tl->s, sizeof(*tl->t)); in term_tab_set() 87 tl->t[tl->n] = pos; in term_tab_set() 89 tl->t[tl->n] += tl->t[tl->n - 1]; in term_tab_set() 102 tabs.a.t = mandoc_reallocarray(tabs.a.t, tabs.a.s, in term_tab_iset() 103 sizeof(*tabs.a.t)); in term_tab_iset() 105 tabs.a.t[tabs.a.n++] = inc; in term_tab_iset() 120 tabs.a.t = mandoc_reallocarray(tabs.a.t, in term_tab_next() 121 tabs.a.s, sizeof(*tabs.a.t)); in term_tab_next() 124 tabs.a.t[i + j] = tabs.p.t[j] + in term_tab_next() [all …]
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | tftp.c | 141 struct tftphdr t; in tftp_senderr() member 151 wbuf.t.th_opcode = htons((ushort_t)ERROR); in tftp_senderr() 152 wbuf.t.th_code = htons(errcode); in tftp_senderr() 154 wtail = wbuf.t.th_msg; in tftp_senderr() 159 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_senderr() 167 struct tftphdr t; in tftp_sendack() member 171 wbuf.t.th_opcode = htons((ushort_t)ACK); in tftp_sendack() 172 wtail = (char *)&wbuf.t.th_block; in tftp_sendack() 173 wbuf.t.th_block = htons(block); in tftp_sendack() 176 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_sendack() [all …]
|
H A D | qdivrem.c | 86 u_int qhat, rhat, t; in __udivmoddi4() local 148 t = v[2]; /* nonzero, by definition */ in __udivmoddi4() 149 q1 = u[1] / t; in __udivmoddi4() 150 rbj = COMBINE(u[1] % t, u[2]); in __udivmoddi4() 151 q2 = rbj / t; in __udivmoddi4() 152 rbj = COMBINE(rbj % t, u[3]); in __udivmoddi4() 153 q3 = rbj / t; in __udivmoddi4() 154 rbj = COMBINE(rbj % t, u[4]); in __udivmoddi4() 155 q4 = rbj / t; in __udivmoddi4() 157 *arq = rbj % t; in __udivmoddi4() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | libld.msg | 38 # Tab characters (\t) are used to align the messages. 40 # Each usage message starts with \t, and if the message has more than one 42 # When you see \n\t\t\t, the first \n is used to change the line, 60 @ MSG_ARG_DETAIL_3 "\t[-32]\t\tenforce a 32-bit link-edit\n" 61 @ MSG_ARG_DETAIL_6 "\t[-64]\t\tenforce a 64-bit link-edit\n" 62 @ MSG_ARG_DETAIL_A "\t[-a]\t\tcreate an absolute file\n" 63 @ MSG_ARG_DETAIL_B "\t[-b]\t\tdo not create special PIC relocations in executables\n" 64 @ MSG_ARG_DETAIL_CBDR "\t[-B direct | nodirect]\n\ 65 \t\t\testablish direct bindings, or inhibit direct \ 67 \t\t\tto, the object being created\n" [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxtime.c | 48 register Time_t t; in tmxtime() local 67 …t = y * 365 + y / 4 - y / 100 + (y + (1900 - 1600)) / 400 - (1970 - 1901) * 365 - (1970 - 1901) / … in tmxtime() 72 t++; in tmxtime() 73 t += tm_data.sum[n] + tm->tm_mday - 1; in tmxtime() 74 t *= 24; in tmxtime() 75 t += tm->tm_hour; in tmxtime() 76 t *= 60; in tmxtime() 77 t += tm->tm_min; in tmxtime() 78 t *= 60; in tmxtime() 79 t += sec = tm->tm_sec; in tmxtime() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer5.c | 45 char t[100], t1[MXSIG], t2[100], format[10], *sd, *stline; in putsig() local 53 sprintf(t, "%s%c", labtab[nref], labc[nref]); in putsig() 55 *t = 0; in putsig() 57 fpar(nf, flds, t, keywant, 1, 0); in putsig() 58 if (science && t[0] == 0) { in putsig() 59 if (fpar(nf, flds, t, 'A', 1, 0) != 0) { in putsig() 62 strcat(t, ", "); in putsig() 63 strcat(t, t2); in putsig() 66 } else if (t[0] == 0) { in putsig() 84 sprintf(t, format, t1, sd); in putsig() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | threads.c | 66 struct tsd_block *t; in krb5int_thread_detach_hook() local 73 t = TlsGetValue(tls_idx); in krb5int_thread_detach_hook() 74 if (t == NULL) in krb5int_thread_detach_hook() 77 if (destructors_set[i] && destructors[i] && t->values[i]) { in krb5int_thread_detach_hook() 78 void *v = t->values[i]; in krb5int_thread_detach_hook() 79 t->values[i] = 0; in krb5int_thread_detach_hook() 184 struct tsd_block *t = tptr; in thread_termination() local 199 if (destructors_set[i] && destructors[i] && t->values[i]) { in thread_termination() 200 void *v = t->values[i]; in thread_termination() 201 t->values[i] = 0; in thread_termination() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_get.c | 69 BTREE *t; local 73 t = dbp->internal; 76 if (t->bt_pinned != NULL) { 77 mpool_put(t->bt_mp, t->bt_pinned, 0); 78 t->bt_pinned = NULL; 87 if ((e = __bt_search(t, key, &exact)) == NULL) 90 mpool_put(t->bt_mp, e->page, 0); 94 status = __bt_ret(t, e, NULL, NULL, data, &t->bt_rdata, 0); 100 if (F_ISSET(t, B_DB_LOCK)) 101 mpool_put(t->bt_mp, e->page, 0); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | stropt.c | 61 register char* t; in stropt() local 91 for (p = (char**)tab; t = *p; p = (char**)((char*)p + siz)) in stropt() 93 for (v = s; *t && *t++ == *v; v++); in stropt() 94 if (!*t || isspace(*v) || *v == ',' || *v == '=') in stropt() 103 if (!t) in stropt() 112 t = 0; in stropt() 117 if (!t) in stropt() 124 if (!t) in stropt() 126 t = s = ++v; in stropt() 132 *t++ = chresc(s - 1, &e); in stropt() [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/ |
H A D | __vsinbigf.c | 72 double tx, tt[3], ty[2], t, w, z, a; in __vlibm_vsin_bigf() local 122 t = z * (q1 + z * (q2 + z * (q3 + z * q4))); in __vlibm_vsin_bigf() 123 a = one + t; in __vlibm_vsin_bigf() 128 HI(&t) = j; in __vlibm_vsin_bigf() 129 LO(&t) = 0; in __vlibm_vsin_bigf() 130 ty[0] = (ty[0] - t) + ty[1]; in __vlibm_vsin_bigf() 132 t = z * (qq1 + z * qq2); in __vlibm_vsin_bigf() 136 t = __vlibm_TBL_sincos_lo[j+1] - (__vlibm_TBL_sincos_hi[j] * w - a * t); in __vlibm_vsin_bigf() 137 a += t; in __vlibm_vsin_bigf() 152 t = z * (p1 + z * (p2 + z * (p3 + z * p4))); in __vlibm_vsin_bigf() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kvm.c | 102 kt_load_module(kt_data_t *kt, mdb_tgt_t *t, kt_module_t *km) in kt_load_module() argument 106 (void) mdb_tgt_vread(t, km->km_data, km->km_datasz, km->km_symspace_va); in kt_load_module() 120 kt_load_modules(kt_data_t *kt, mdb_tgt_t *t) in kt_load_modules() argument 132 if (mdb_tgt_lookup_by_name(t, MDB_TGT_OBJ_EXEC, in kt_load_modules() 138 if (mdb_tgt_readsym(t, MDB_TGT_AS_VIRT, &ctl, sizeof (ctl), in kt_load_modules() 150 if (mdb_tgt_vread(t, &ctl, sizeof (ctl), addr) == -1) { in kt_load_modules() 158 if (mdb_tgt_readstr(t, MDB_TGT_AS_VIRT, name, MAXNAMELEN, in kt_load_modules() 174 if (mdb_tgt_vread(t, &kmod, sizeof (kmod), in kt_load_modules() 191 if (mdb_tgt_vread(t, &symhdr, sizeof (Shdr), in kt_load_modules() 198 if (mdb_tgt_vread(t, &strhdr, sizeof (Shdr), in kt_load_modules() [all …]
|
/illumos-gate/usr/src/lib/libm/common/LD/ |
H A D | __tanl.c | 114 long double a, t, z, w = 0.0, s, c; in __k_tanl() local 115 int *pt = (int *) &t, *px = (int *) &x; in __k_tanl() 118 t = 1.0; in __k_tanl() 132 t = z * (t1 + z * (t2 + z * (t3 + z * t4))); in __k_tanl() 134 t = z * (t1 + z * (t2 + z * (t3 + z * (t4 + in __k_tanl() 138 t = y + x * t; in __k_tanl() 139 w = x + t; in __k_tanl() 151 x = y - (t - x); in __k_tanl() 153 x = (-y) - (t + x); in __k_tanl() 157 t = z * (qq1 + z * (qq2 + z * (qq3 + z * (qq4 + z * qq5)))); in __k_tanl() [all …]
|
H A D | cbrtl.c | 39 long double s, t, r, w, y; in cbrtl() local 64 t = (long double) dy; in cbrtl() 65 t = scalbnl(t, m); in cbrtl() 66 s = t * t; in cbrtl() 68 w = t + t; in cbrtl() 69 r = (r - t) / (w + r); in cbrtl() 70 t += t * r; in cbrtl() 72 return (sx == 0 ? t : -t); in cbrtl()
|