Home
last modified time | relevance | path

Searched refs:gp (Results 1 – 25 of 49) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dglob.c245 if ((*gp->gl_type)(gp, stakptr(MATCHPATH(gp)), 0) != GLOB_DIR) in addmatch()
263 …if (!endslash && (gp->gl_flags & GLOB_MARK) && (type = (*gp->gl_type)(gp, stakptr(MATCHPATH(gp)), … in addmatch()
350 c = (*gp->gl_type)(gp, prefix, 0); in glob_dir()
483 …if ((!starstar && !gp->gl_starstar || (*gp->gl_type)(gp, dirname, GLOB_STARSTAR) == GLOB_DIR) && (… in glob_dir()
485 if (!(gp->re_flags & REG_ICASE) && ((*gp->gl_attr)(gp, dirname, 0) & GLOB_ICASE)) in glob_dir()
524 gp->gl_ignorei = &gp->re_ignorei; in glob_dir()
530 while ((name = (*gp->gl_dirnext)(gp, dirf)) && !*gp->gl_intr) in glob_dir()
547 (*gp->gl_dirclose)(gp, dirf); in glob_dir()
671 if (regcomp(&gp->re_ignore, gp->gl_fignore, gp->re_flags)) in glob()
673 gp->gl_ignore = &gp->re_ignore; in glob()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c301 graph_t *gp; in ofdlock() local
463 graph_t *gp; in ofdcleanlock() local
541 graph_t *gp; in reclock() local
2104 gp->mark++; in flk_graph_uncolor()
2439 graph_t *gp; in flk_get_lock_graph() local
2496 return (gp); in flk_get_lock_graph()
2507 graph_t *gp; in cl_flk_has_remote_locks_for_nlmid() local
2581 graph_t *gp; in flk_has_remote_locks() local
2629 graph_t *gp; in flk_has_remote_locks_for_sysid() local
2735 graph_t *gp; in cl_flk_remove_locks_by_sysid() local
[all …]
H A Drctl_proc.c222 rctlproc_default_init(struct proc *initp, rctl_alloc_gp_t *gp) in rctlproc_default_init() argument
230 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_CPU], initp, &rlp64, gp, in rctlproc_default_init()
237 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_FSIZE], initp, &rlp64, gp, in rctlproc_default_init()
244 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_DATA], initp, &rlp64, gp, in rctlproc_default_init()
264 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_CORE], initp, &rlp64, gp, in rctlproc_default_init()
273 gp, RCTL_LOCAL_DENY, 0, kcred); in rctlproc_default_init()
279 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_VMEM], initp, &rlp64, gp, in rctlproc_default_init()
295 rctl_alloc_gp_t *gp; in rctlproc_init() local
391 gp = rctl_set_init_prealloc(RCENTITY_PROCESS); in rctlproc_init()
396 set, gp); in rctlproc_init()
[all …]
H A Dtask.c497 rctl_alloc_gp_t *gp; in task_create() local
524 gp = rctl_set_dup_prealloc(ancestor_tk->tk_rctls); in task_create()
527 if (rctl_set_dup_ready(ancestor_tk->tk_rctls, gp)) in task_create()
532 rctl_prealloc_destroy(gp); in task_create()
543 set, gp, RCD_DUP); in task_create()
546 rctl_prealloc_destroy(gp); in task_create()
953 rctl_alloc_gp_t *gp; in task_init() local
1002 gp = rctl_set_init_prealloc(RCENTITY_TASK); in task_init()
1006 task0p->tk_rctls = rctl_set_init(RCENTITY_TASK, curproc, &e, set, gp); in task_init()
1008 rctl_prealloc_destroy(gp); in task_init()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_re.c107 gp = globuf;
121 gp += len;
157 *gp++ = c;
164 *gp++ = c;
165 *gp++ = 0;
759 gp = genbuf; in vi_compile()
798 gp = genbuf; in vi_compile()
800 *gp++ = c; in vi_compile()
824 gp += len; in vi_compile()
859 *gp++ = c; in vi_compile()
[all …]
H A Dex_subr.c569 qcolumn(unsigned char *lim, unsigned char *gp) in qcolumn() argument
592 if(length > 1 && !gp) { in qcolumn()
598 if (gp) in qcolumn()
599 while (*gp) { in qcolumn()
603 putchar(*gp++); in qcolumn()
607 gp += length; in qcolumn()
616 nqcolumn(unsigned char *lim, unsigned char *gp) in nqcolumn() argument
638 if (gp) in nqcolumn()
639 while (*gp) { in nqcolumn()
643 putchar(*gp++); in nqcolumn()
[all …]
H A Dex_io.c259 glob(struct glob *gp) in glob() argument
262 unsigned char **argv = gp->argv; in glob()
263 unsigned char *cp = gp->argspac; in glob()
268 gp->argc0 = 0; in glob()
281 gp->argc0++; in glob()
324 gp->argc0++; in glob()
325 if (gp->argc0 >= NARGS) in glob()
331 if (gp->argc0 == 0) in glob()
/illumos-gate/usr/src/cmd/mandoc/
H A Dout.c151 gp = &first_group; in tblcalc()
197 while (*gp != NULL && ((*gp)->startcol < icol || in tblcalc()
199 gp = &(*gp)->next; in tblcalc()
200 if (*gp == NULL || (*gp)->startcol > icol || in tblcalc()
203 g->next = *gp; in tblcalc()
207 *gp = g; in tblcalc()
239 gp = &first_group; in tblcalc()
253 *gp = g->next; in tblcalc()
256 gp = &(*gp)->next; in tblcalc()
314 *gp = g->next; in tblcalc()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dexpand.c86 gp->gl_handle = (void*)pp; in nextdir()
97 register glob_t *gp= &gdata; in path_expand() local
104 memset(gp,0,sizeof(gdata)); in path_expand()
126 gp->gl_nextdir = nextdir; in path_expand()
181 gp->gl_fignore = stakfreeze(1); in path_expand()
184 gp->gl_fignore = ""; in path_expand()
190 gp->gl_suffix = sufstr; in path_expand()
191 gp->gl_intr = &shp->trapnote; in path_expand()
195 glob(pattern, flags, 0, gp); in path_expand()
209 if(gp->gl_list) in path_expand()
[all …]
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c100 struct group *gp; in main() local
341 for (gp = t->groups; gp != NULL; gp = gp->nxt) { in main()
342 if (gid == gp->grp) { in main()
343 if (gp->cnt++ == 1) { in main()
345 if (gp->nxt == NULL) in main()
354 gp = (struct group *)emalloc(sizeof (struct group)); in main()
355 gp->grp = gid; in main()
356 gp->cnt = 1; in main()
357 gp->nxt = t->groups; in main()
358 t->groups = gp; in main()
/illumos-gate/usr/src/uts/common/syscall/
H A Drlimit.c93 rctl_alloc_gp_t *gp = rctl_rlimit_set_prealloc(1); in ulimit() local
106 rctl_prealloc_destroy(gp); in ulimit()
110 rctl_prealloc_destroy(gp); in ulimit()
374 rctl_alloc_gp_t *gp; in setrlimit32() local
381 gp = rctl_rlimit_set_prealloc(1); in setrlimit32()
430 rctl_prealloc_destroy(gp); in setrlimit32()
434 rctl_prealloc_destroy(gp); in setrlimit32()
465 rctl_alloc_gp_t *gp; in setrlimit64() local
472 gp = rctl_rlimit_set_prealloc(1); in setrlimit64()
478 rctl_prealloc_destroy(gp); in setrlimit64()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c228 register char **gp; variable
230 for (gp = gr->gr_mem; *gp != NULL; gp++)
233 if (*gp == NULL)
341 register char **gp; variable
343 for (gp = gr->gr_mem; *gp != NULL; gp++)
344 if (strcmp(*gp, user) == 0)
346 if (*gp == NULL)
646 register char **gp; local
648 for (gp = gr->gr_mem; gp != NULL && *gp != NULL; gp++)
649 if (strcmp(*gp, user) == 0)
[all …]
/illumos-gate/usr/src/cmd/mailx/
H A Dvars.c219 register struct mgroup *gp; in printgroup() local
226 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link) in printgroup()
227 printf(" %s", gp->ge_name); in printgroup()
H A Dcmd3.c608 struct mgroup *gp; in group() local
651 if ((gp = (struct mgroup *) in group()
652 calloc(sizeof (*gp), 1)) == NULL) { in group()
655 gp->ge_name = vcopy(*ap); in group()
656 gp->ge_link = gh->g_list; in group()
657 gh->g_list = gp; in group()
670 struct mgroup *gp, *gpnext; in ungroup() local
692 for (gp = gh->g_list; gp != NOGE; gp = gpnext) { in ungroup()
693 gpnext = gp->ge_link; in ungroup()
694 vfree(gp->ge_name); in ungroup()
[all …]
H A Dnames.c447 struct mgroup *gp; in gexpand() local
459 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link) { in gexpand()
460 cp = gp->ge_name; in gexpand()
476 if (gp == gh->g_list && gp->ge_link == NOGE) in gexpand()
478 if (!metoo && samebody(myname, gp->ge_name, FALSE)) in gexpand()
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v/
H A Dtst.regs.s28 add gp, gp, gp
59 add ra, sp, gp
60 add sp, gp, tp
61 add gp, tp, t0
H A Dtst.regs.out4 libdis_test+0xc: b3 81 31 00 add gp,gp,gp
34 libdis_test+0x84: b3 00 31 00 add ra,sp,gp
35 libdis_test+0x88: 33 81 41 00 add sp,gp,tp
36 libdis_test+0x8c: b3 01 52 00 add gp,tp,t0
/illumos-gate/usr/src/uts/common/sys/
H A Dflock_impl.h225 #define ACTIVE_HEAD(gp) (&(gp)->active_locks) argument
227 #define SLEEPING_HEAD(gp) (&(gp)->sleeping_locks) argument
229 #define SET_LOCK_TO_FIRST_ACTIVE_VP(gp, lock, vp) \ argument
234 #define SET_LOCK_TO_FIRST_SLEEP_VP(gp, lock, vp) \ argument
236 for ((lock) = SLEEPING_HEAD((gp))->l_next; ((lock) != SLEEPING_HEAD((gp)) && \
239 (lock) = ((lock) == SLEEPING_HEAD((gp))) ? NULL : (lock); \
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dcache.c62 static void clear_descriptors(void *gp);
67 static descriptor_t *have_desc(int type, void *gp, char *name, char *mname);
325 cache_get_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_get_desc() argument
330 if ((dp = have_desc(type, gp, name, secondary_name)) == NULL) { in cache_get_desc()
332 if ((dp = new_descriptor(type, gp, name, secondary_name)) in cache_get_desc()
422 if (have_desc(type, gp, name, secondary_name) == NULL) { in cache_load_desc()
424 if (new_descriptor(type, gp, name, secondary_name) == NULL) { in cache_load_desc()
487 clear_descriptors(void *gp) in clear_descriptors() argument
492 if (descp->p.generic == gp) { in clear_descriptors()
601 have_desc(int type, void *gp, char *name, char *secondary_name) in have_desc() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c697 char *bp, *gp, *lp; in decode() local
707 gp++; in decode()
709 while (*gp != '\0' && in decode()
718 gp++; in decode()
720 *bp++ = *gp++; in decode()
1077 char *bp, *lp, *gp; in matchcmp() local
1086 gp = gname; in matchcmp()
1094 gp++; in matchcmp()
1098 *bp++ = *gp++; in matchcmp()
1105 gp++; in matchcmp()
[all …]
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c1005 tp = gp; in t_delete()
1037 TREE *pp, *gp; in t_splay() local
1044 if (gp) in t_splay()
1045 unprotect(gp); in t_splay()
1049 if (gp && LEFT(gp) == pp) { in t_splay()
1051 protect(gp); in t_splay()
1053 if (gp) in t_splay()
1054 protect(gp); in t_splay()
1059 if (gp && RIGHT(gp) == pp) { in t_splay()
1061 protect(gp); in t_splay()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmalloc.c752 TREE *tp, *sp, *gp; in t_delete() local
789 if ((gp = RIGHT(sp)) != NULL) { in t_delete()
790 TDLEFT2(tp, sp, gp); in t_delete()
791 tp = gp; in t_delete()
816 TREE *pp, *gp; in t_splay() local
821 gp = PARENT(pp); in t_splay()
825 if (gp && LEFT(gp) == pp) { in t_splay()
826 BURIGHT2(gp, pp, tp); in t_splay()
832 if (gp && RIGHT(gp) == pp) { in t_splay()
833 BULEFT2(gp, pp, tp); in t_splay()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dslk_start.c63 slk_start(int ng, int *gp) in slk_start() argument
67 if (gp == NULL) { in slk_start()
110 if ((j += gp[i]) > LABMAX) in slk_start()
113 _groups[i] = gp[i]; in slk_start()
/illumos-gate/usr/src/cmd/ed/
H A Ded.c1843 char *gp; in global() local
1862 gp = globuf; in global()
1879 gp += len; in global()
1882 *gp++ = 'p'; in global()
1883 *gp++ = '\n'; in global()
1884 *gp++ = 0; in global()
1918 gp = genbuf; in join()
1926 gp = genbuf; in join()
2563 char *gp; in globaln() local
2623 gp += len; in globaln()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c235 struct ng_old_struct *gp, *ogp; in freelists() local
250 gp = pvt->grouphead.gr; in freelists()
251 while (gp) { in freelists()
252 ogp = gp; in freelists()
253 gp = gp->ng_next; in freelists()

12