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.c79 gl_diropen(glob_t* gp, const char* path) in gl_diropen() argument
81 return (*gp->gl_opendir)(path); in gl_diropen()
89 gl_dirnext(glob_t* gp, void* handle) in gl_dirnext() argument
93 while (dp = (struct dirent*)(*gp->gl_readdir)(handle)) in gl_dirnext()
97 gp->gl_status |= GLOB_NOTDIR; in gl_dirnext()
109 gl_dirclose(glob_t* gp, void* handle) in gl_dirclose() argument
111 (gp->gl_closedir)(handle); in gl_dirclose()
119 gl_type(glob_t* gp, const char* path, int flags) in gl_type() argument
124 if ((flags & GLOB_STARSTAR) ? (*gp->gl_lstat)(path, &st) : (*gp->gl_stat)(path, &st)) in gl_type()
142 gl_attr(glob_t* gp, const char* path, int flags) in gl_attr() argument
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c64 #define CHECK_ACTIVE_LOCKS(gp) if (check_debug) \ argument
65 check_active_locks(gp);
66 #define CHECK_SLEEPING_LOCKS(gp) if (check_debug) \ argument
67 check_sleeping_locks(gp);
68 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp) \ argument
70 check_owner_locks(gp, pid, sysid, vp);
80 #define CHECK_ACTIVE_LOCKS(gp) argument
81 #define CHECK_SLEEPING_LOCKS(gp) argument
82 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp) argument
301 graph_t *gp; in ofdlock() 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()
257 (void) rctl_rlimit_set(rctlproc_legacy[RLIMIT_STACK], 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()
[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.c73 unsigned char *gp; local
107 gp = globuf;
118 if ((gp + len) >= &globuf[GBSIZE - 2])
120 strncpy(gp, multi, len);
121 gp += len;
137 *gp++ = '\\';
152 *gp++ = '\\';
157 *gp++ = c;
158 if (gp >= &globuf[GBSIZE - 2])
164 *gp++ = c;
[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()
600 length = mbtowc(&wchar, (char *)gp, MULTI_BYTE_MAX); 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()
[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.c125 struct tbl_colgroup *first_group, **gp, *g; in tblcalc() local
151 gp = &first_group; in tblcalc()
197 while (*gp != NULL && ((*gp)->startcol < icol || in tblcalc()
198 (*gp)->endcol < icol + dp->hspans)) in tblcalc()
199 gp = &(*gp)->next; in tblcalc()
200 if (*gp == NULL || (*gp)->startcol > icol || in tblcalc()
201 (*gp)->endcol > icol + dp->hspans) { in tblcalc()
203 g->next = *gp; in tblcalc()
207 *gp = g; in tblcalc()
208 } else if ((*gp)->wanted < width) in tblcalc()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dexpand.c78 static char *nextdir(glob_t *gp, char *dir) in nextdir() argument
81 Pathcomp_t *pp = (Pathcomp_t*)gp->gl_handle; in nextdir()
86 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()
188 gp->gl_fignore = nv_getval(sh_scoped(shp,FIGNORENOD)); in path_expand()
190 gp->gl_suffix = sufstr; 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
103 &rl64, gp, RCTL_LOCAL_DENY | RCTL_LOCAL_SIGNAL, SIGXFSZ, in ulimit()
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()
427 if (error = rctl_rlimit_set(rctlproc_legacy[resource], p, &rlim64, gp, 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
[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++)
231 if (strcmp(*gp, user) == 0)
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++)
[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.c66 static void clear_descriptors(void *gp);
71 static descriptor_t *have_desc(int type, void *gp, char *name, char *mname);
330 cache_get_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_get_desc() argument
335 if ((dp = have_desc(type, gp, name, secondary_name)) == NULL) { in cache_get_desc()
337 if ((dp = new_descriptor(type, gp, name, secondary_name)) in cache_get_desc()
424 cache_load_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_load_desc() argument
427 if (have_desc(type, gp, name, secondary_name) == NULL) { in cache_load_desc()
429 if (new_descriptor(type, gp, name, secondary_name) == NULL) { in cache_load_desc()
492 clear_descriptors(void *gp) in clear_descriptors() argument
497 if (descp->p.generic == gp) { in clear_descriptors()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c697 char *bp, *gp, *lp; in decode() local
702 gp = pers->pwd->pw_gecos; in decode()
706 *gp == gecos_ignore_c) { in decode()
707 gp++; in decode()
709 while (*gp != '\0' && in decode()
710 *gp != gecos_sep_c) { /* name */ in decode()
711 if (*gp == gecos_samename) { in decode()
718 gp++; in decode()
720 *bp++ = *gp++; in decode()
1077 char *bp, *lp, *gp; in matchcmp() local
[all …]
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c949 TREE *tp, *sp, *gp; in t_delete() local
1000 if ((gp = RIGHT(sp)) != NULL) { in t_delete()
1001 unprotect(gp); in t_delete()
1002 TDLEFT2(tp, sp, gp); in t_delete()
1005 tp = gp; in t_delete()
1037 TREE *pp, *gp; in t_splay() local
1043 gp = PARENT(pp); in t_splay()
1044 if (gp) in t_splay()
1045 unprotect(gp); in t_splay()
1049 if (gp && LEFT(gp) == pp) { 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/cmd/ed/
H A Ded.c1843 char *gp; in global() local
1862 gp = globuf; in global()
1871 *gp++ = '\\'; in global()
1873 if ((gp + (unsigned int)MB_CUR_MAX) >= &globuf[LBSIZE-1]) in global()
1875 if ((len = wctomb(gp, c)) <= 0) { in global()
1876 *gp = (unsigned char)c; in global()
1879 gp += len; in global()
1881 if (gp == globuf) in global()
1882 *gp++ = 'p'; in global()
1883 *gp++ = '\n'; in global()
[all …]
/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/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