/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | tasksys.c | 38 #include <project.h> 41 settaskid(projid_t project, uint_t flags) argument 45 while ((newtaskid = syscall(SYS_tasksys, 0, project, flags, NULL, 0))
|
/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | vproj.c | 35 #include <project.h> 40 valid_projid(projid_t, struct project *, void *, size_t); 43 * validate a project name or number and return the appropriate 44 * project structure for it. 47 valid_project(char *project, struct project *pptr, void *buf, size_t len, argument 54 if (isdigit(*project)) { 55 projid = (projid_t)strtol(project, &ptr, (int)10); 59 for (ptr = project; *ptr != NULL; ptr++) { 65 return (valid_projname(project, ppt [all...] |
H A D | vprojname.c | 37 #include <project.h> 40 * validate string given as project name. 43 valid_projname(char *project, struct project *pptr, void *buf, size_t blen, argument 46 struct project *t_pptr; 47 char *ptr = project; 53 if (!project || !*project) 69 if ((t_pptr = getprojbyname(project, pptr, buf, blen)) != NULL)
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_tasksys.c | 36 #include <project.h> 132 pr_settaskid(struct ps_prochandle *Pr, projid_t project, int flags) argument 140 return (settaskid(project, flags)); 150 adp->arg_value = project; 154 adp->arg_size = sizeof (project);
|
/illumos-gate/usr/src/head/ |
H A D | project.h | 39 #define PROJF_PATH "/etc/project" /* pathname of the "project" file */ 40 #define PROJNAME_MAX 64 /* maximum project name size */ 46 struct project { struct 47 char *pj_name; /* name of the project */ 48 projid_t pj_projid; /* numerical project id */ 49 char *pj_comment; /* project description */ 50 char **pj_users; /* vector of pointers to project user names */ 51 char **pj_groups; /* vector of pointers to project group names */ 52 char *pj_attr; /* project attribute [all...] |
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | getprojent.c | 34 #include <project.h> 56 static int ismember(struct project *, const char *, gid_t, int); 82 struct project * 83 _getprojent(struct project *result, void *buffer, size_t buflen) 89 return ((struct project *)NSS_XbyY_FINI(&arg)); 92 struct project * 93 _fgetprojent(FILE *f, struct project *result, void *buffer, size_t buflen) 100 return ((struct project *)NSS_XbyY_FINI(&arg)); 103 struct project * 104 _getprojbyid(projid_t projid, struct project *resul 380 struct project *project = ent; local [all...] |
/illumos-gate/usr/src/cmd/newtask/ |
H A D | newtask.c | 38 #include <project.h> 75 struct ps_prochandle *, struct project *); 83 static int set_ids(struct ps_prochandle *, struct project *, 86 static void setproject_err(char *, char *, int, struct project *); 91 (void) fprintf(stderr, gettext("usage: \n\t%s [-v] [-p project] " 150 /* Change project/task of an existing process */ 155 * Get user data, so that we can confirm project membership as 165 * under the current project, so we can just set the new taskid. 166 * If our project is changing, we need to update any attendant 331 struct project projec local 512 set_ids(struct ps_prochandle *p, struct project *project, struct passwd *passwd_entry) argument [all...] |
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.h | 281 char *project; /* NULL for no change */ member in struct:method_context 282 char *resource_pool; /* NULL for project default */
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 52 #include <project.h> 82 "usage: at [-c|-k|-s] [-m] [-f file] [-p project] [-q queuename] "\ 84 " at [-c|-k|-s] [-m] [-f file] [-p project] [-q queuename] "\ 86 " at -l [-p project] [-q queuename] [at_job_id...]\n"\ 145 static projid_t project; variable 169 struct project prj, *pprj; 214 project = pprj->pj_projid; 222 "project %s (%d)\n"), 224 project); 233 project [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | genunix.c | 57 #include <sys/project.h> 517 project(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function 522 if (mdb_walk_dcmd("projects", "project", argc, argv) == -1) { 2800 mdb_warn("failed to read project at %p", addr); 3951 { "project", NULL, "display kernel project(s)", project },
|