Home
last modified time | relevance | path

Searched refs:g (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Dgetgraent.c78 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_44/usr/src/uts/common/os/
H A Dgroup.c45 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_44/usr/src/uts/common/klm/
H A Dklmmod.c74 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 Dnlm_impl.c299 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 Dnlm_service.c78 #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_44/usr/src/lib/libfru/libfru/
H A Dyy-lsed28 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 Dyy-sed28 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_44/usr/src/lib/libc/port/locale/
H A Dregfree.c54 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 Dregcomp.c70 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 Dengine.c79 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&REG_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_44/usr/src/cmd/vi/misc/
H A Dcxref.sh31 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_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DTabbedFolder.java292 public void update(Graphics g) { in update() argument
294 g = getGraphics(); in update()
304 g.setColor(getBackground()); in update()
305 g.fillRect(0, 0, size.width, folderInsets.top); in update()
306 g.fillRect(0, y, size.width, size.height-y); in update()
307 g.fillRect(0, 0, folderInsets.left, size.height); in update()
308 g.fillRect(x, 0, size.width-x, size.height); in update()
310 draw(g); in update()
313 public void paint(Graphics g) { in paint() argument
315 g = getGraphics(); in paint()
[all …]
H A DWinScrollbar.java384 public void update(Graphics g) { in update() argument
386 g = getGraphics(); in update()
387 draw(g); in update()
390 public void paint(Graphics g) { in paint() argument
392 g = getGraphics(); in paint()
393 draw(g); in paint()
396 private void draw(Graphics g) { in draw() argument
401 g.drawImage(buffer, 0, 0, null); in draw()
405 Graphics g = buffer.getGraphics(); in drawScrollbar() local
411 g.setColor(getBackground()); in drawScrollbar()
[all …]
H A DLabelBar.java198 private void checkerStipple(Graphics g, Color c, in checkerStipple() argument
200 Color oldColor = g.getColor(); in checkerStipple()
201 g.setColor(c); in checkerStipple()
205 g.drawLine(x, y, x, y); in checkerStipple()
206 g.setColor(oldColor); in checkerStipple()
212 public void paint(Graphics g) { in paint() argument
214 g = getGraphics(); in paint()
217 super.paint(g); in paint()
242 g.setColor(getForeground()); in paint()
243 g.setFont(getFont()); in paint()
[all …]
H A DStatusBar.java91 public void paint(Graphics g) { in paint() argument
93 g = getGraphics(); in paint()
96 g.setColor(getBackground()); in paint()
98 g.fillRect(0, 0, d.width, d.height); in paint()
99 Global.util.draw3DRect(g, 0, 0, d.width-1, d.height-1, in paint()
103 g.setColor(getForeground()); in paint()
104 g.setFont(getFont()); in paint()
105 FontMetrics fm = g.getFontMetrics(); in paint()
106 g.drawString(text, 5, fm.getAscent() + 3); in paint()
111 Graphics g = getGraphics(); in minimumSize() local
[all …]
/titanic_44/usr/src/cmd/refer/
H A Dhunt2.c42 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_44/usr/src/cmd/sendmail/libmilter/
H A Dengine.c835 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_44/usr/src/cmd/ipf/tools/
H A Dipfcomp.c155 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_44/usr/src/lib/libast/common/uwin/
H A Dlog.c382 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_44/usr/src/common/crypto/sha2/
H A Dsha2.c104 #define SHA256ROUND(a, b, c, d, e, f, g, h, i, w) \ argument
105 T1 = h + BIGSIGMA1_256(e) + Ch(e, f, g) + SHA256_CONST(i) + w; \
115 #define SHA512ROUND(a, b, c, d, e, f, g, h, i, w) \ argument
116 T1 = h + BIGSIGMA1(e) + Ch(e, f, g) + SHA512_CONST(i) + w; \
162 uint32_t g = ctx->state.s32[6]; in SHA256Transform() local
203 SHA256ROUND(a, b, c, d, e, f, g, h, 0, w0); in SHA256Transform()
206 SHA256ROUND(h, a, b, c, d, e, f, g, 1, w1); in SHA256Transform()
209 SHA256ROUND(g, h, a, b, c, d, e, f, 2, w2); in SHA256Transform()
212 SHA256ROUND(f, g, h, a, b, c, d, e, 3, w3); in SHA256Transform()
215 SHA256ROUND(e, f, g, h, a, b, c, d, 4, w4); in SHA256Transform()
[all …]
/titanic_44/usr/src/lib/libm/common/C/
H A Datan.c88 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 …]
/titanic_44/usr/src/lib/libcurses/screen/
H A Dinit_color.c53 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_44/usr/src/cmd/audio/utilities/
H A DAudioGain.cc102 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_44/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c434 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_44/usr/src/lib/libsum/common/
H A Dsum-sha2.c479 #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 …]

12345678910>>...28