/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | glob.c | 78 gl_diropen(glob_t* gp, const char* path) in gl_diropen() argument 80 return (*gp->gl_opendir)(path); in gl_diropen() 88 gl_dirnext(glob_t* gp, void* handle) in gl_dirnext() argument 92 while (dp = (struct dirent*)(*gp->gl_readdir)(handle)) in gl_dirnext() 99 gp->gl_status |= GLOB_NOTDIR; in gl_dirnext() 111 gl_dirclose(glob_t* gp, void* handle) in gl_dirclose() argument 113 (gp->gl_closedir)(handle); in gl_dirclose() 121 gl_type(glob_t* gp, const char* path, int flags) in gl_type() argument 126 if ((flags & GLOB_STARSTAR) ? (*gp->gl_lstat)(path, &st) : (*gp->gl_stat)(path, &st)) in gl_type() 144 gl_attr(glob_t* gp, const char* path, int flags) in gl_attr() argument [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | flock.c | 63 #define CHECK_ACTIVE_LOCKS(gp) if (check_debug) \ argument 64 check_active_locks(gp); 65 #define CHECK_SLEEPING_LOCKS(gp) if (check_debug) \ argument 66 check_sleeping_locks(gp); 67 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp) \ argument 69 check_owner_locks(gp, pid, sysid, vp); 79 #define CHECK_ACTIVE_LOCKS(gp) argument 80 #define CHECK_SLEEPING_LOCKS(gp) argument 81 #define CHECK_OWNER_LOCKS(gp, pid, sysid, vp) argument 256 graph_t *gp; in reclock() local [all …]
|
H A D | rctl_proc.c | 222 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 D | task.c | 496 rctl_alloc_gp_t *gp; in task_create() local 523 gp = rctl_set_dup_prealloc(ancestor_tk->tk_rctls); in task_create() 526 if (rctl_set_dup_ready(ancestor_tk->tk_rctls, gp)) in task_create() 531 rctl_prealloc_destroy(gp); in task_create() 542 set, gp, RCD_DUP); in task_create() 545 rctl_prealloc_destroy(gp); in task_create() 952 rctl_alloc_gp_t *gp; in task_init() local 1001 gp = rctl_set_init_prealloc(RCENTITY_TASK); in task_init() 1005 task0p->tk_rctls = rctl_set_init(RCENTITY_TASK, curproc, &e, set, gp); in task_init() 1007 rctl_prealloc_destroy(gp); in task_init()
|
/titanic_41/usr/src/cmd/vi/port/ |
H A D | ex_re.c | 73 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 D | ex_subr.c | 562 qcolumn(unsigned char *lim, unsigned char *gp) in qcolumn() argument 585 if(length > 1 && !gp) { in qcolumn() 591 if (gp) in qcolumn() 592 while (*gp) { in qcolumn() 593 length = mbtowc(&wchar, (char *)gp, MULTI_BYTE_MAX); in qcolumn() 596 putchar(*gp++); in qcolumn() 600 gp += length; in qcolumn() 609 nqcolumn(unsigned char *lim, unsigned char *gp) in nqcolumn() argument 631 if (gp) in nqcolumn() 632 while (*gp) { in nqcolumn() [all …]
|
H A D | ex_io.c | 258 glob(struct glob *gp) in glob() argument 261 unsigned char **argv = gp->argv; in glob() 262 unsigned char *cp = gp->argspac; in glob() 267 gp->argc0 = 0; in glob() 280 gp->argc0++; in glob() 323 gp->argc0++; in glob() 324 if (gp->argc0 >= NARGS) in glob() 330 if (gp->argc0 == 0) in glob()
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | expand.c | 78 static char *nextdir(glob_t *gp, char *dir) in nextdir() argument 80 Pathcomp_t *pp = (Pathcomp_t*)gp->gl_handle; in nextdir() 85 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 …]
|
/titanic_41/usr/src/cmd/grpck/ |
H A D | grpck.c | 103 struct group *gp; in main() local 344 for (gp = t->groups; gp != NULL; gp = gp->nxt) { in main() 345 if (gid == gp->grp) { in main() 346 if (gp->cnt++ == 1) { in main() 348 if (gp->nxt == NULL) in main() 357 gp = (struct group *)emalloc(sizeof (struct group)); in main() 358 gp->grp = gid; in main() 359 gp->cnt = 1; in main() 360 gp->nxt = t->groups; in main() 361 t->groups = gp; in main()
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 93 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 …]
|
/titanic_41/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 228 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 …]
|
/titanic_41/usr/src/cmd/mailx/ |
H A D | vars.c | 221 register struct mgroup *gp; in printgroup() local 228 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link) in printgroup() 229 printf(" %s", gp->ge_name); in printgroup()
|
H A D | cmd3.c | 610 register struct mgroup *gp; in group() local 653 if ((gp = (struct mgroup *) in group() 654 calloc(sizeof (*gp), 1)) == NULL) { in group() 657 gp->ge_name = vcopy(*ap); in group() 658 gp->ge_link = gh->g_list; in group() 659 gh->g_list = gp; in group() 672 register struct mgroup *gp, *gpnext; in ungroup() local 694 for (gp = gh->g_list; gp != NOGE; gp = gpnext) { in ungroup() 695 gpnext = gp->ge_link; in ungroup() 696 vfree(gp->ge_name); in ungroup() [all …]
|
H A D | names.c | 446 struct mgroup *gp; in gexpand() local 458 for (gp = gh->g_list; gp != NOGE; gp = gp->ge_link) { in gexpand() 459 cp = gp->ge_name; in gexpand() 475 if (gp == gh->g_list && gp->ge_link == NOGE) in gexpand() 477 if (!metoo && samebody(myname, gp->ge_name, FALSE)) in gexpand()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | flock_impl.h | 224 #define ACTIVE_HEAD(gp) (&(gp)->active_locks) argument 226 #define SLEEPING_HEAD(gp) (&(gp)->sleeping_locks) argument 228 #define SET_LOCK_TO_FIRST_ACTIVE_VP(gp, lock, vp) \ argument 233 #define SET_LOCK_TO_FIRST_SLEEP_VP(gp, lock, vp) \ argument 235 for ((lock) = SLEEPING_HEAD((gp))->l_next; ((lock) != SLEEPING_HEAD((gp)) && \ 238 (lock) = ((lock) == SLEEPING_HEAD((gp))) ? NULL : (lock); \
|
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | cache.c | 64 static void clear_descriptors(void *gp); 69 static descriptor_t *have_desc(int type, void *gp, char *name, char *mname); 327 cache_get_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_get_desc() argument 332 if ((dp = have_desc(type, gp, name, secondary_name)) == NULL) { in cache_get_desc() 334 if ((dp = new_descriptor(type, gp, name, secondary_name)) in cache_get_desc() 421 cache_load_desc(int type, void *gp, char *name, char *secondary_name, int *errp) in cache_load_desc() argument 424 if (have_desc(type, gp, name, secondary_name) == NULL) { in cache_load_desc() 426 if (new_descriptor(type, gp, name, secondary_name) == NULL) { in cache_load_desc() 489 clear_descriptors(void *gp) in clear_descriptors() argument 494 if (descp->p.generic == gp) { in clear_descriptors() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 693 char *bp, *gp, *lp; in decode() local 698 gp = pers->pwd->pw_gecos; in decode() 702 *gp == gecos_ignore_c) { in decode() 703 gp++; in decode() 705 while (*gp != '\0' && in decode() 706 *gp != gecos_sep_c) { /* name */ in decode() 707 if (*gp == gecos_samename) { in decode() 714 gp++; in decode() 716 *bp++ = *gp++; in decode() 1073 char *bp, *lp, *gp; in matchcmp() local [all …]
|
/titanic_41/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 951 TREE *tp, *sp, *gp; in t_delete() local 1002 if ((gp = RIGHT(sp)) != NULL) { in t_delete() 1003 unprotect(gp); in t_delete() 1004 TDLEFT2(tp, sp, gp); in t_delete() 1007 tp = gp; in t_delete() 1039 TREE *pp, *gp; in t_splay() local 1045 gp = PARENT(pp); in t_splay() 1046 if (gp) in t_splay() 1047 unprotect(gp); in t_splay() 1051 if (gp && LEFT(gp) == pp) { in t_splay() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 754 TREE *tp, *sp, *gp; in t_delete() local 791 if ((gp = RIGHT(sp)) != NULL) { in t_delete() 792 TDLEFT2(tp, sp, gp); in t_delete() 793 tp = gp; in t_delete() 818 TREE *pp, *gp; in t_splay() local 823 gp = PARENT(pp); in t_splay() 827 if (gp && LEFT(gp) == pp) { in t_splay() 828 BURIGHT2(gp, pp, tp); in t_splay() 834 if (gp && RIGHT(gp) == pp) { in t_splay() 835 BULEFT2(gp, pp, tp); in t_splay()
|
/titanic_41/usr/src/lib/libcurses/screen/ |
H A D | slk_start.c | 65 slk_start(int ng, int *gp) in slk_start() argument 69 if (gp == NULL) { in slk_start() 112 if ((j += gp[i]) > LABMAX) in slk_start() 115 _groups[i] = gp[i]; in slk_start()
|
/titanic_41/usr/src/cmd/ed/ |
H A D | ed.c | 1826 char *gp; in global() local 1845 gp = globuf; in global() 1854 *gp++ = '\\'; in global() 1856 if ((gp + (unsigned int)MB_CUR_MAX) >= &globuf[LBSIZE-1]) in global() 1858 if ((len = wctomb(gp, c)) <= 0) { in global() 1859 *gp = (unsigned char)c; in global() 1862 gp += len; in global() 1864 if (gp == globuf) in global() 1865 *gp++ = 'p'; in global() 1866 *gp++ = '\n'; in global() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/irs/ |
H A D | lcl_ng.c | 239 struct ng_old_struct *gp, *ogp; in freelists() local 254 gp = pvt->grouphead.gr; in freelists() 255 while (gp) { in freelists() 256 ogp = gp; in freelists() 257 gp = gp->ng_next; in freelists()
|
/titanic_41/usr/src/ucbcmd/install.d/ |
H A D | install.c | 63 struct group *gp; variable 120 if (!(gp = getgrnam(group))) { in main() 163 if (gflag && chown(dirname, -1, gp->gr_gid) && errno != EPERM) { in main() 252 if (chown(path, pp->pw_uid, gp->gr_gid) && errno != EPERM) {
|
/titanic_41/usr/src/uts/common/exec/aout/ |
H A D | aout.c | 247 rctl_alloc_gp_t *gp = rctl_rlimit_set_prealloc(1); in aoutexec() local 255 curproc, &fdno_rlim, gp, in aoutexec() 261 curproc, &fdno_rlim, gp, in aoutexec() 267 rctl_prealloc_destroy(gp); in aoutexec()
|
/titanic_41/usr/src/lib/libsqlite/tool/ |
H A D | lemon.c | 1864 struct lemon *gp; /* Global state vector */ member 1917 psp->gp->nrule = 0; 2048 rp->index = psp->gp->nrule++; 2111 psp->declargslot = &(psp->gp->name); 2113 psp->declargslot = &(psp->gp->include); 2114 psp->decllnslot = &psp->gp->includeln; 2116 psp->declargslot = &(psp->gp->extracode); 2117 psp->decllnslot = &psp->gp->extracodeln; 2119 psp->declargslot = &psp->gp->tokendest; 2120 psp->decllnslot = &psp->gp->tokendestln; [all …]
|