Home
last modified time | relevance | path

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

123

/titanic_51/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 in gl_type()
142 gl_attr(glob_t * gp,const char * path,int flags) gl_attr() argument
152 gl_nextdir(glob_t * gp,char * dir) gl_nextdir() argument
183 errorcheck(register glob_t * gp,const char * path) errorcheck() argument
228 addmatch(register glob_t * gp,const char * dir,const char * pat,register const char * rescan,char * endslash,int meta) addmatch() argument
290 glob_dir(glob_t * gp,globlist_t * ap,int re_flags) glob_dir() argument
580 glob(const char * pattern,int flags,int (* errfn)(const char *,int),register glob_t * gp) glob() argument
824 globfree(glob_t * gp) globfree() argument
[all...]
/titanic_51/usr/src/lib/libast/common/misc/
H A Dglob.c78 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_51/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
463 graph_t *gp; ofdcleanlock() local
541 graph_t *gp; reclock() local
1082 graph_t *gp = request->l_graph; flk_process_request() local
1303 graph_t *gp = request->l_graph; flk_execute_request() local
1355 graph_t *gp = request->l_graph; flk_wait_execute_request() local
1621 graph_t *gp = (lock->l_graph); flk_relation() local
1843 graph_t *gp = new_lock->l_graph; flk_insert_active_lock() local
1885 graph_t *gp = lock->l_graph; flk_delete_active_lock() local
1919 graph_t *gp = request->l_graph; flk_insert_sleeping_lock() local
1948 graph_t *gp = request->l_graph; flk_cancel_sleeping_lock() local
2088 flk_graph_uncolor(graph_t * gp) flk_graph_uncolor() argument
2114 graph_t *gp = lock->l_graph; flk_wakeup() local
2169 graph_t *gp = request->l_graph; flk_recompute_dependencies() local
2386 graph_t *gp = request->l_graph; flk_get_first_blocking_lock() local
2437 graph_t *gp; flk_get_lock_graph() local
2505 graph_t *gp; cl_flk_has_remote_locks_for_nlmid() local
2579 graph_t *gp; flk_has_remote_locks() local
2627 graph_t *gp; flk_has_remote_locks_for_sysid() local
2683 graph_t *gp; flk_sysid_has_locks() local
2733 graph_t *gp; cl_flk_remove_locks_by_sysid() local
2789 graph_t *gp; flk_delete_locks_by_sysid() local
2843 graph_t *gp; cl_flk_delete_pxfs_locks() local
2902 graph_t *gp = request->l_graph; flk_canceled() local
2933 graph_t *gp; cleanlocks() local
3598 graph_t *gp; flk_set_lockmgr_status() local
3669 graph_t *gp; get_lock_list() local
3846 graph_t *gp; /* lock graph */ cl_flk_change_nlm_state_all_locks() local
3911 graph_t *gp; cl_flk_wakeup_sleeping_nlm_locks() local
3959 graph_t *gp; cl_flk_unlock_nlm_granted() local
4009 graph_t *gp; wakeup_sleeping_lockmgr_locks() local
4044 graph_t *gp; unlock_lockmgr_granted() local
4080 graph_t *gp = request->l_graph; wait_for_lock() local
4291 graph_t *gp; nbl_lock_conflict() local
4352 check_active_locks(graph_t * gp) check_active_locks() argument
4462 check_sleeping_locks(graph_t * gp) check_sleeping_locks() argument
4536 check_owner_locks(graph_t * gp,pid_t pid,int sysid,vnode_t * vp) check_owner_locks() argument
[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 in rctlproc_init()
[all...]
H A Dtask.c496 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()
[all...]
/titanic_51/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
744 unsigned char *gp, *p1; vi_compile() local
[all...]
H A Dex_subr.c562 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 Dex_io.c258 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_51/usr/src/lib/libshell/common/sh/
H A Dexpand.c78 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_51/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 in path_expand()
[all...]
/titanic_51/usr/src/cmd/grpck/
H A Dgrpck.c103 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 in main()
[all...]
/titanic_51/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...]
/titanic_51/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
646 register char **gp; global() local
[all...]
/titanic_51/usr/src/cmd/mailx/
H A Dvars.c221 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 Dcmd3.c610 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 in ungroup()
[all...]
H A Dnames.c446 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_51/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); \
/titanic_51/usr/src/lib/libdiskmgt/common/
H A Dcache.c64 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()
603 have_desc(int type,void * gp,char * name,char * secondary_name) have_desc() argument
[all...]
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/
H A Dfinger.c693 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_51/usr/src/lib/watchmalloc/common/
H A Dmalloc.c951 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 in t_splay()
[all...]
/titanic_51/usr/src/lib/libcurses/screen/
H A Dslk_start.c53 * ng: number of groupings. If gp is NULL, it denotes one
57 * gp: groupings.
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_51/usr/src/lib/libc/port/gen/
H A Dmalloc.c754 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 in t_splay()
[all...]
/titanic_51/usr/src/cmd/ed/
H A Ded.c1826 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 in global()
1896 char *gp, *lp; join() local
2542 char *gp; globaln() local
[all...]
/titanic_51/usr/src/lib/libresolv2/common/irs/
H A Dlcl_ng.c239 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_51/usr/src/ucbcmd/install.d/
H A Dinstall.c63 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) {

123