Lines Matching defs:project
37 #include <project.h>
74 struct ps_prochandle *, struct project *);
82 static int set_ids(struct ps_prochandle *, struct project *,
85 static void setproject_err(char *, char *, int, struct project *);
90 (void) fprintf(stderr, gettext("usage: \n\t%s [-v] [-p project] "
149 /* Change project/task of an existing process */
154 * Get user data, so that we can confirm project membership as
164 * under the current project, so we can just set the new taskid.
165 * If our project is changing, we need to update any attendant
330 struct project project;
351 * it, such as its current project (which is achieved via an injected
389 preserve_error(gettext("cannot get process project id %s\n"),
412 * project of the running process.
414 if (getprojbyid(prprojid, &project, &prbuf,
416 warn(gettext("unable to get project name "
420 projname = project.pj_name;
423 * cache info for the project which user passed in via the
426 if (getprojbyname(projname, &project, &prbuf,
428 warn(gettext("unknown project \"%s\"\n"), projname);
445 * project and taskid as required.
462 * project. If our ruid has changed, then match_user()'s conclusion may
484 error = set_ids(p, &project, passwd_entry);
511 set_ids(struct ps_prochandle *p, struct project *project,
584 if ((error = setproject_proc(project->pj_name,
585 passwd_entry->pw_name, 0, Pstatus(p)->pr_pid, p, project)) != 0) {
587 setproject_err(passwd_entry->pw_name, project->pj_name,
588 error, project);
658 struct project prj;
693 * join any project, and the subsequent call to setproject() will
707 * project members and test for UID-equivalence.
712 preserve_error(gettext("unknown project \"%s\""),
729 "project \"%s\""), username, projname);
738 setproject_err(char *username, char *projname, int error, struct project *proj)
742 struct project local_proj;
751 "project \"%s\""), username, projname);
756 gettext("could not join project \"%s\""),
762 "default bindings exists for project \"%s\""),
766 "not exist for project \"%s\""), projname);
769 "resource pool for project \"%s\""), projname);
774 "project \"%s\""), projname);
780 * to access the project table, so only do that if the caller
781 * hasn't provided a cached version of the project structure.
791 "assignment failed for project \"%s\" "
799 "assignment failed for project \"%s\""),