/titanic_41/usr/src/cmd/users/ |
H A D | users.c | 645 struct reqgrp *pgrp; /* Current item in the req'd group list */ in main() local 722 pgrp = (struct reqgrp *) in main() 724 pgrp->groupname = token; in main() 725 pgrp->found = FALSE; in main() 726 pgrp->next = NULL; in main() 728 reqgrphead = pgrp; in main() 729 qgrp = pgrp; in main() 745 pgrp = (struct reqgrp *) in main() 747 pgrp->groupname = token; in main() 748 pgrp->found = FALSE; in main() [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | pg.h | 133 #define PG_CPU_ITR_INIT(pgrp, itr) \ argument 136 (itr).pg = ((pg_t *)pgrp); \ 142 #define PG_CPU_GET_FIRST(pgrp) \ argument 143 (GROUP_SIZE(&((pg_t *)pgrp)->pg_cpus) > 0 ? \ 144 GROUP_ACCESS(&((pg_t *)pgrp)->pg_cpus, 0) : NULL) 149 #define PG_NUM_CPUS(pgrp) \ argument 150 (GROUP_SIZE(&(pgrp)->pg_cpus))
|
/titanic_41/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | setpgrp.c | 29 int setpgrp(pid, pgrp) in setpgrp() argument 30 int pid, pgrp; in setpgrp() 32 if ((pgrp == 0) && (pid == getpid())) { 35 return(setpgid(pid, pgrp));
|
/titanic_41/usr/src/cmd/logins/ |
H A D | logins.c | 1250 struct reqgrp *pgrp; /* Current item in req'd group list */ in main() local 1515 pgrp = malloc(sizeof (struct reqgrp)); in main() 1516 pgrp->groupname = token; in main() 1517 pgrp->next = NULL; in main() 1519 reqgrphead = pgrp; in main() 1520 qgrp = pgrp; in main() 1522 pgrp = malloc(sizeof (struct reqgrp)); in main() 1523 pgrp->groupname = token; in main() 1524 pgrp->next = NULL; in main() 1526 qgrp->next = pgrp; in main() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | jcsetpgrp.c | 37 jcsetpgrp(pgrp) in jcsetpgrp() argument 38 int pgrp; in jcsetpgrp() 40 return (setpgid(0,pgrp));
|
/titanic_41/usr/src/ucblib/libucb/port/sys/ |
H A D | killpg.c | 49 killpg(int pgrp, int sig) in killpg() argument 54 if (pgrp < 0) { in killpg() 58 return (kill(-pgrp, sig)); in killpg()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | killpg.c | 44 killpg(pid_t pgrp, int sig) in killpg() argument 49 if (pgrp < 0) { in killpg() 53 return (kill(-pgrp, sig)); in killpg()
|
H A D | tcgetpgrp.c | 42 pid_t pgrp; in tcgetpgrp() local 44 if (tcgetsid(fd) < 0 || ioctl(fd, TIOCGPGRP, &pgrp) < 0) in tcgetpgrp() 46 return (pgrp); in tcgetpgrp()
|
H A D | tcsetpgrp.c | 40 tcsetpgrp(int fd, pid_t pgrp) in tcsetpgrp() argument 44 return (ioctl(fd, TIOCSPGRP, &pgrp)); in tcsetpgrp()
|
/titanic_41/usr/src/lib/libast/common/misc/ |
H A D | procopen.c | 263 proc->pgrp = arg1; in modify() 424 proc->pgrp = 0; in procopen() 685 else if ((proc->pid = spawnveg(path, p, environ, proc->pgrp)) != -1) in procopen() 714 proc->pid = spawnveg(env + 2, p, environ, proc->pgrp); in procopen() 775 if (proc->pgrp < 0) in procopen() 776 proc->pgrp = proc->pid; in procopen() 777 else if (proc->pgrp > 0) in procopen() 779 if (proc->pgrp == 1) in procopen() 780 proc->pgrp = proc->pid; in procopen() 781 if (setpgid(proc->pid, proc->pgrp) < 0 && proc->pid != proc->pgrp && errno == EPERM) in procopen()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | audit_scf.c | 329 if (scf_iter_instance_pgs_typed(handle_iter->pgrp, handle->inst, in get_plugin_kva() 335 while (scf_iter_next_pg(handle_iter->pgrp, handle->pgrp) == 1) { in get_plugin_kva() 336 if (scf_pg_get_name(handle->pgrp, plugin_str_tmp, in get_plugin_kva() 367 handle->pgrp) != 0) { in get_plugin_kva() 417 if (handle->pgrp != NULL) { in scf_free() 418 scf_pg_destroy(handle->pgrp); in scf_free() 447 if ((handle->pgrp = scf_pg_create(handle->hndl)) == NULL) { in scf_init() 472 if (handle_iter->pgrp != NULL) { in scf_free_iter() 473 scf_iter_destroy(handle_iter->pgrp); in scf_free_iter() 492 if ((handle_iter->pgrp = scf_iter_create(handle->hndl)) == NULL) { in scf_init_iter() [all …]
|
H A D | audit_scf.h | 72 scf_propertygroup_t *pgrp; /* property group handle */ member 78 scf_iter_t *pgrp; /* property group iter handle */ member
|
/titanic_41/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_xml.c | 374 new_bool_prop_from_attr(pgroup_t *pgrp, const char *pname, xmlNodePtr n, in new_bool_prop_from_attr() argument 398 r = internal_attach_property(pgrp, p); in new_bool_prop_from_attr() 407 new_str_prop_from_attr(pgroup_t *pgrp, const char *pname, scf_type_t ty, in new_str_prop_from_attr() argument 417 r = internal_attach_property(pgrp, p); in new_str_prop_from_attr() 426 new_opt_str_prop_from_attr(pgroup_t *pgrp, const char *pname, scf_type_t ty, in new_opt_str_prop_from_attr() argument 450 r = internal_attach_property(pgrp, p); in new_opt_str_prop_from_attr() 658 lxml_get_propval(pgroup_t *pgrp, xmlNodePtr propval) in lxml_get_propval() argument 664 int op = pgrp->sc_parent->sc_op; in lxml_get_propval() 671 pgrp->sc_pgroup_name); in lxml_get_propval() 684 "property '%s/%s'\n"), pgrp->sc_pgroup_name, in lxml_get_propval() [all …]
|
H A D | svccfg_internal.c | 674 internal_attach_pgroup(entity_t *ent, pgroup_t *pgrp) in internal_attach_pgroup() argument 676 if (uu_list_find(ent->sc_pgroups, pgrp, NULL, NULL) != NULL) { in internal_attach_pgroup() 678 "entity %s.\n"), pgrp->sc_pgroup_name, ent->sc_name); in internal_attach_pgroup() 682 (void) uu_list_append(ent->sc_pgroups, pgrp); in internal_attach_pgroup() 684 pgrp->sc_parent = ent; in internal_attach_pgroup() 690 internal_detach_pgroup(entity_t *ent, pgroup_t *pgrp) in internal_detach_pgroup() argument 692 uu_list_remove(ent->sc_pgroups, pgrp); in internal_detach_pgroup() 717 internal_attach_property(pgroup_t *pgrp, property_t *prop) in internal_attach_property() argument 721 if (uu_list_find(pgrp->sc_pgroup_props, prop, NULL, &idx) != NULL) { in internal_attach_property() 724 pgrp->sc_pgroup_name); in internal_attach_property() [all …]
|
/titanic_41/usr/src/cmd/wall/ |
H A D | wall.c | 73 static struct group *pgrp; variable 121 if ((pgrp = getgrnam(grpname = optarg)) == NULL) { in main() 471 for (i = 0; pgrp->gr_mem[i] && pgrp->gr_mem[i][0]; i++) { in chkgrp() 472 if (strcmp(user, pgrp->gr_mem[i]) == 0) in chkgrp()
|
/titanic_41/usr/src/cmd/rexd/ |
H A D | unix_login.c | 303 int pgrp; local 560 pid_t pgrp; in SendSignal() local 562 pgrp = getpgid(child); in SendSignal() 563 if (pgrp != (pid_t)-1) in SendSignal() 564 (void) kill((-pgrp), sig); in SendSignal()
|
/titanic_41/usr/src/cmd/sh/ |
H A D | jobs.c | 908 int pgrp = 0; in sigv() local 916 pgrp++; in sigv() 919 pgrp++; in sigv() 932 pgrp++; in sigv() 948 if (pgrp) in sigv() 963 if (pgrp) in sigv() 970 } else if (sig == SIGTERM && pgrp) in sigv()
|
/titanic_41/usr/src/cmd/csh/ |
H A D | sh.sem.c | 218 int pgrp; local 226 pgrp = pcurrjob ? pcurrjob->p_jobid : getpid(); 248 (void) setpgid(0, pgrp); 255 (tchar *)&pgrp);
|
/titanic_41/usr/src/cmd/mdb/common/modules/libtopo/ |
H A D | libtopo.c | 47 static char *pgrp; variable 435 if ((strncmp(pgrp, buf, sizeof (buf)) == 0) || in dump_pgroup() 436 (strncmp(pgrp, "all", sizeof (buf)) == 0)) { in dump_pgroup() 486 if (pgrp) in dump_tnode() 530 pgrp = opt_P; in fmtopo()
|
/titanic_41/usr/src/cmd/w/ |
H A D | w.c | 162 struct uproc *up, *parent, *pgrp; in main() local 452 pgrp = findhash(info.pr_pgid); in main() 453 up->p_pgrpl = pgrp->p_pgrpl; in main() 454 pgrp->p_pgrpl = up; in main()
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 364 int pgrp; in runve() local 389 pgrp = 1; in runve() 392 pgrp = 0; in runve() 528 if (pid > 0 && pgrp) in runve() 536 if (pgrp) in runve()
|
/titanic_41/usr/src/cmd/whodo/ |
H A D | whodo.c | 167 struct uproc *up, *parent, *pgrp; in main() local 437 pgrp = findhash(info.pr_pgid); in main() 438 up->p_pgrplink = pgrp->p_pgrplink; in main() 439 pgrp->p_pgrplink = up; in main()
|
/titanic_41/usr/src/lib/libast/common/include/ |
H A D | proc.h | 83 pid_t pgrp; /* process group id */ member
|
/titanic_41/usr/src/lib/libast/amd64/include/ast/ |
H A D | proc.h | 92 pid_t pgrp; /* process group id */ member
|
/titanic_41/usr/src/lib/libast/i386/include/ast/ |
H A D | proc.h | 92 pid_t pgrp; /* process group id */ member
|