/titanic_50/usr/src/lib/libbc/libc/gen/common/ |
H A D | getgraent.c | 78 struct gradata *g = gradata; in _gradata() local 80 if (g == 0) { in _gradata() 81 g = (struct gradata *)calloc(1, sizeof (struct gradata)); in _gradata() 82 gradata = g; in _gradata() 84 return (g); in _gradata() 90 struct gradata *g = _gradata(); in getgranam() local 95 if (g == 0) in getgranam() 97 if (!g->grfa) in getgranam() 99 while (fgets(line, BUFSIZ, g->grfa) != NULL) { in getgranam() 114 struct gradata *g = _gradata(); in setgraent() local [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | group.c | 45 group_create(group_t *g) in group_create() argument 47 bzero(g, sizeof (group_t)); in group_create() 55 group_destroy(group_t *g) in group_destroy() argument 57 ASSERT(g->grp_size == 0); in group_destroy() 59 if (g->grp_capacity > 0) { in group_destroy() 60 kmem_free(g->grp_set, g->grp_capacity * sizeof (void *)); in group_destroy() 61 g->grp_capacity = 0; in group_destroy() 63 g->grp_set = NULL; in group_destroy() 71 group_empty(group_t *g) in group_empty() argument 74 int sz = g->grp_size; in group_empty() [all …]
|
/titanic_50/usr/src/uts/common/klm/ |
H A D | klmmod.c | 74 struct nlm_globals *g; in lm_zone_init() local 76 g = kmem_zalloc(sizeof (*g), KM_SLEEP); in lm_zone_init() 78 avl_create(&g->nlm_hosts_tree, nlm_host_cmp, in lm_zone_init() 82 g->nlm_hosts_hash = mod_hash_create_idhash("nlm_host_by_sysid", in lm_zone_init() 85 TAILQ_INIT(&g->nlm_idle_hosts); in lm_zone_init() 86 TAILQ_INIT(&g->nlm_slocks); in lm_zone_init() 88 mutex_init(&g->lock, NULL, MUTEX_DEFAULT, NULL); in lm_zone_init() 89 cv_init(&g->nlm_gc_sched_cv, NULL, CV_DEFAULT, NULL); in lm_zone_init() 90 cv_init(&g->nlm_gc_finish_cv, NULL, CV_DEFAULT, NULL); in lm_zone_init() 91 mutex_init(&g->clean_lock, NULL, MUTEX_DEFAULT, NULL); in lm_zone_init() [all …]
|
H A D | nlm_impl.c | 299 nlm_globals_register(struct nlm_globals *g) in nlm_globals_register() argument 302 TAILQ_INSERT_TAIL(&nlm_zones_list, g, nlm_link); in nlm_globals_register() 307 nlm_globals_unregister(struct nlm_globals *g) in nlm_globals_unregister() argument 310 TAILQ_REMOVE(&nlm_zones_list, g, nlm_link); in nlm_globals_unregister() 318 struct nlm_globals *g; in nlm_kmem_reclaim() local 321 TAILQ_FOREACH(g, &nlm_zones_list, nlm_link) in nlm_kmem_reclaim() 322 cv_broadcast(&g->nlm_gc_sched_cv); in nlm_kmem_reclaim() 345 nlm_gc(struct nlm_globals *g) in nlm_gc() argument 350 idle_period = SEC_TO_TICK(g->cn_idle_tmo); in nlm_gc() 351 mutex_enter(&g->lock); in nlm_gc() [all …]
|
H A D | nlm_service.c | 78 #define NLM_IN_GRACE(g) (ddi_get_lbolt() < (g)->grace_threshold) argument 282 struct nlm_globals *g; in nlm_do_notify1() local 286 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_notify1() 292 host = nlm_host_find_by_sysid(g, (sysid_t)sysid); in nlm_do_notify1() 298 nlm_host_release(g, host); in nlm_do_notify1() 322 struct nlm_globals *g; in nlm_do_test() local 340 g = zone_getspecific(nlm_zone_key, curzone); in nlm_do_test() 341 host = nlm_host_findcreate(g, name, netid, addr); in nlm_do_test() 360 if (NLM_IN_GRACE(g)) { in nlm_do_test() 439 nlm_host_release(g, host); in nlm_do_test() [all …]
|
/titanic_50/usr/src/lib/libfru/libfru/ |
H A D | yy-lsed | 28 s/yyback/fruback/g 29 s/yybgin/frubgin/g 30 s/yycrank/frucrank/g 31 s/yyerror/fruerror/g 32 s/yyestate/fruestate/g 33 s/yyextra/fruextra/g 34 s/yyfnd/frufnd/g 35 s/yyin/fruin/g 36 s/yyinput/fruinput/g 37 s/yyleng/fruleng/g [all …]
|
H A D | yy-sed | 28 s/yyact/fruact/g 29 s/yychar/fruchar/g 30 s/yychk/fruchk/g 31 s/yydebug/frudebug/g 32 s/yydef/frudef/g 33 s/yyerrflag/fruerrflag/g 34 s/yyerror/fruerror/g 35 s/yyexca/fruexca/g 36 s/yylex/frulex/g 37 s/yylval/frulval/g [all …]
|
/titanic_50/usr/src/lib/libc/port/locale/ |
H A D | regfree.c | 54 struct re_guts *g; in regfree() local 65 g = preg->re_g; in regfree() 66 if (g == NULL || g->magic != MAGIC2) /* oops again */ in regfree() 69 g->magic = 0; /* mark it invalid */ in regfree() 71 if (g->strip != NULL) in regfree() 72 free((char *)g->strip); in regfree() 73 if (g->sets != NULL) { in regfree() 74 for (i = 0; i < g->ncsets; i++) { in regfree() 75 free(g->sets[i].ranges); in regfree() 76 free(g->sets[i].wides); in regfree() [all …]
|
H A D | regcomp.c | 70 struct re_guts *g; member 111 static void stripsnug(struct parse *p, struct re_guts *g); 112 static void findmust(struct parse *p, struct re_guts *g); 114 static void computejumps(struct parse *p, struct re_guts *g); 115 static void computematchjumps(struct parse *p, struct re_guts *g); 116 static sopno pluscount(struct parse *p, struct re_guts *g); 172 struct re_guts *g; in regcomp() local 195 g = (struct re_guts *)malloc(sizeof (struct re_guts)); in regcomp() 196 if (g == NULL) in regcomp() 202 free((char *)g); in regcomp() [all …]
|
H A D | engine.c | 79 struct re_guts *g; member 150 matcher(struct re_guts *g, in matcher() argument 161 const sopno gf = g->firststate+1; /* +1 for OEND */ in matcher() 162 const sopno gl = g->laststate; in matcher() 174 if (g->cflags®_NOSUB) in matcher() 189 if (g->must != NULL) { in matcher() 190 if (g->charjump != NULL && g->matchjump != NULL) { in matcher() 191 mustfirst = g->must; in matcher() 192 mustlast = g->must + g->mlen - 1; in matcher() 193 charjump = g->charjump; in matcher() [all …]
|
/titanic_50/usr/src/cmd/vi/misc/ |
H A D | cxref.sh | 31 g/STATIC/d 32 g/\<static\>/d 33 g/\<long\>/d 34 g/\<short\>/d 35 g/\<line\>/d 36 g/\<switch\>/d 37 g/\<unsigned\>/d 38 g/\<return\>/d 39 g/\<break\>/d 40 g/\<bool\>/d [all …]
|
/titanic_50/usr/src/cmd/refer/ |
H A D | hunt2.c | 42 int nf = 0, best = 0, nterm = 0, i, g, j; in doquery() local 142 g = j = 0; in doquery() 181 assert(g < lmaster); in doquery() 183 master.b[g] = prevdrop.b[j]; in doquery() 185 master.a[g] = prevdrop.a[j]; in doquery() 186 coord[g++] = prevcoord[j++]; in doquery() 191 "%d\n", g, master.b[g-1], in doquery() 192 coord[g-1], master.b[j-1]); in doquery() 196 "%d\n", g, master.a[g-1], in doquery() 197 coord[g-1], nterm); in doquery() [all …]
|
/titanic_50/usr/src/cmd/sendmail/libmilter/ |
H A D | engine.c | 835 st_optionneg(g) in st_optionneg() argument 836 genarg *g; in st_optionneg() 849 if (g == NULL || g->a_ctx->ctx_smfi == NULL) 851 ctx = g->a_ctx; 852 mi_clr_macros(ctx, g->a_idx + 1); 856 if (g->a_len < MILTER_OPTLEN) 861 (long) ctx->ctx_id, (int) g->a_len, 867 (void) memcpy((void *) &i, (void *) &(g->a_buf[0]), MILTER_LEN_BYTES); 887 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES]), 897 (void) memcpy((void *) &i, (void *) &(g->a_buf[MILTER_LEN_BYTES * 2]), [all …]
|
/titanic_50/usr/src/cmd/ipf/tools/ |
H A D | ipfcomp.c | 155 frgroup_t *g; local 177 for (g = groups; g != NULL; g = g->fg_next) 178 if ((strncmp(g->fg_name, f->fr_group, FR_GROUPLEN) == 0) && 179 (g->fg_flags == (f->fr_flags & FR_INOUT))) 182 if (g == NULL) { 183 g = (frgroup_t *)calloc(1, sizeof(*g)); 184 if (g == NULL) { 188 g->fg_next = groups; 189 groups = g; 190 g->fg_head = f; [all …]
|
/titanic_50/usr/src/lib/libast/common/uwin/ |
H A D | log.c | 382 double F, f, g, q, u, u2, v, zero = 0.0, one = 1.0; local 405 g = ldexp(x, -m); 407 j = logb(g), m += j; 408 g = ldexp(g, -j); 410 j = N*(g-1) + .5; 412 f = g - F; 415 g = 1/(2*F+f); 416 u = 2*f*g; 432 u2 = (2.0*(f - F*u1) - u1*f) * g; 459 double F, f, g, q, u, v, u2, one = 1.0; local [all …]
|
/titanic_50/usr/src/common/crypto/sha2/ |
H A D | sha2.c | 107 #define SHA256ROUND(a, b, c, d, e, f, g, h, i, w) \ argument 108 T1 = h + BIGSIGMA1_256(e) + Ch(e, f, g) + SHA256_CONST(i) + w; \ 118 #define SHA512ROUND(a, b, c, d, e, f, g, h, i, w) \ argument 119 T1 = h + BIGSIGMA1(e) + Ch(e, f, g) + SHA512_CONST(i) + w; \ 165 uint32_t g = ctx->state.s32[6]; in SHA256Transform() local 206 SHA256ROUND(a, b, c, d, e, f, g, h, 0, w0); in SHA256Transform() 209 SHA256ROUND(h, a, b, c, d, e, f, g, 1, w1); in SHA256Transform() 212 SHA256ROUND(g, h, a, b, c, d, e, f, 2, w2); in SHA256Transform() 215 SHA256ROUND(f, g, h, a, b, c, d, e, 3, w3); in SHA256Transform() 218 SHA256ROUND(e, f, g, h, a, b, c, d, 4, w4); in SHA256Transform() [all …]
|
/titanic_50/usr/src/lib/libm/common/C/ |
H A D | atan.c | 88 static const double g[] = { variable 107 #define one g[0] 108 #define p1 g[1] 109 #define p2 g[2] 110 #define p3 g[3] 111 #define p4 g[4] 112 #define p5 g[5] 113 #define p6 g[6] 114 #define q1 g[7] 115 #define q2 g[8] [all …]
|
H A D | gamma.c | 37 double g; in gamma() local 42 g = rint(x); in gamma() 43 if (x == g && x <= 0.0) { in gamma() 48 g = __k_lgamma(x, &signgam); in gamma() 49 if (!finite(g)) in gamma() 50 g = _SVID_libm_err(x, x, 40); in gamma() 51 return (g); in gamma()
|
/titanic_50/usr/src/lib/libcurses/screen/ |
H A D | init_color.c | 53 init_color(short color, short r, short g, short b) in init_color() argument 67 if (g > 1000) g = 1000; in init_color() 70 if (g < 0) g = 0; in init_color() 78 if (ctp[color].r == r && ctp[color].g == g && ctp[color].b == b) in init_color() 83 ctp[color].r = r; ctp[color].g = g; ctp[color].b = b; in init_color() 94 _rgb_to_hls((float)r, (float)g, (float)b, &h, &l, &s); in init_color() 98 (void) tputs(tparm_p4(initialize_color, color, r, g, b), in init_color() 125 _rgb_to_hls(float r, float g, float b, int *hh, int *ll, int *ss) in _rgb_to_hls() argument 130 r /= 1000; g /= 1000; b /= 1000; in _rgb_to_hls() 132 max = MAX(r, g, b); in _rgb_to_hls() [all …]
|
/titanic_50/usr/src/cmd/audio/utilities/ |
H A D | AudioGain.cc | 102 double g; in WeightedGain() local 106 g = weighted_avgsum / gain_cache_size; in WeightedGain() 107 g /= weighted_cnt; in WeightedGain() 108 g -= NoSigWeight; in WeightedGain() 109 if (g > HiSigWeightRange) { in WeightedGain() 110 g = 1.; in WeightedGain() 111 } else if (g < 0.) { in WeightedGain() 112 g = 0.; in WeightedGain() 114 g /= HiSigWeightRange; in WeightedGain() 117 g = 0.; in WeightedGain() [all …]
|
/titanic_50/usr/src/cmd/ypcmd/mknetid/ |
H A D | mknetid.c | 434 struct group_list *g; local 439 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next) 441 if (g == NULL) { 442 g = (struct group_list *)malloc(sizeof (struct group_list)); 443 g->user = malloc((unsigned)strlen(user) + 1); 444 (void) strcpy(g->user, user); 445 g->group_len = 1; 446 g->groups[0] = gid; 447 g->next = groups[val]; 448 groups[val] = g; [all …]
|
/titanic_50/usr/src/lib/libsum/common/ |
H A D | sum-sha2.c | 479 #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \ argument 481 T1 = (h) + Sigma1_256(e) + Ch((e), (f), (g)) + \ 490 #define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \ argument 491 T1 = (h) + Sigma1_256(e) + Ch((e), (f), (g)) + \ 499 #define ROUND256(a,b,c,d,e,f,g,h) \ argument 504 T1 = (h) + Sigma1_256(e) + Ch((e), (f), (g)) + K256[j] + \ 511 sha2_word32 a, b, c, d, e, f, g, h, s0, s1; in SHA256_Transform() local 524 g = sha->state[6]; in SHA256_Transform() 530 ROUND256_0_TO_15(a,b,c,d,e,f,g,h); in SHA256_Transform() 531 ROUND256_0_TO_15(h,a,b,c,d,e,f,g); in SHA256_Transform() [all …]
|
/titanic_50/usr/src/cmd/ssh/sftp/ |
H A D | sftp.c | 543 glob_t g; in process_get() local 550 memset(&g, 0, sizeof(g)); in process_get() 552 if (remote_glob(conn, abs_src, 0, NULL, &g)) { in process_get() 559 if (g.gl_matchc > 1 && dst && !is_dir(dst)) { in process_get() 566 for (i = 0; g.gl_pathv[i] && !interrupted; i++) { in process_get() 567 if (infer_path(g.gl_pathv[i], &tmp)) { in process_get() 572 if (g.gl_matchc == 1 && dst) { in process_get() 576 if (infer_path(g.gl_pathv[0], &tmp)) { in process_get() 590 printf(gettext("Fetching %s to %s\n"), g.gl_pathv[i], abs_dst); in process_get() 591 if (do_download(conn, g.gl_pathv[i], abs_dst, pflag) == -1) in process_get() [all …]
|
/titanic_50/usr/src/cmd/fm/notify/smtp-notify/common/ |
H A D | process_msg_template.sh | 58 cat $1 | sed s/\%\<CODE\>/$3/g > $tmpfile1 59 cat $tmpfile1 | sed s/\%\<UUID\>/\%\<uuid\>/g > $tmpfile2 60 cat $tmpfile2 | sed s/\%\<CLASS\>/\%\<class\>/g > $tmpfile1 61 cat $tmpfile1 | sed s/\%\<SEVERITY\>/$4/g > $tmpfile2 62 cat $tmpfile2 | sed s/\%\<FMRI\>/svc\:\\/\%\<attr.svc.svc-name\>\:\%\<attr.svc.svc-instance\>/g > $… 63 cat $tmpfile1 | sed s/\%\<FROM-STATE\>/\%\<attr.from-state\>/g > $tmpfile2 64 cat $tmpfile2 | sed s/\%\<TO-STATE\>/\%\<attr.to-state\>/g > $tmpfile1 65 cat $tmpfile1 | sed s/\%\<HOSTNAME\>/\%h/g > $tmpfile2 66 cat $tmpfile2 | sed s/\%\<URL\>/\%s/g > $tmpfile1
|
/titanic_50/usr/src/lib/libshell/common/tests/ |
H A D | heredoc.sh | 35 g=$tmp/here2 42 cat > $g <<\! 45 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted here doc not working" 46 cat > $g <<- ! 49 cmp $f $g 2> /dev/null || err_exit "'hello world' tabbed here doc not working" 50 cat > $g <<- \! 53 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted tabbed here doc not working" 55 cat > $g <<! 58 cmp $f $g 2> /dev/null || err_exit "'$x world' here doc not working" 59 cat > $g <<! [all …]
|