| /illumos-gate/usr/src/lib/libpkg/common/ |
| H A D | pkgserv.c | 401 const char *pidstr = mode + sizeof (MODE_TIMEOUT) - 1; local 402 if (pidstr[0] != '\0') { 403 master_pid = atoi(pidstr);
|
| /illumos-gate/usr/src/lib/libproc/common/ |
| H A D | proc_arg.c | 431 char pidstr[PATH_MAX]; local 455 (void) snprintf(pidstr, sizeof (pidstr), 457 fd = open(pidstr, O_RDONLY); 472 (void) snprintf(pidstr, sizeof (pidstr), 474 fd = open(pidstr, O_RDONLY);
|
| /illumos-gate/usr/src/cmd/power/ |
| H A D | conf.c | 224 char pidstr[16]; local 229 bzero(pidstr, sizeof (pidstr)); 230 if (read(fd, pidstr, sizeof (pidstr)) > 0) { 231 powerd_pid = atoi(pidstr);
|
| /illumos-gate/usr/src/cmd/prstat/ |
| H A D | prstat.c | 849 read_procfile(fd_t **fd, char *pidstr, char *file, void *buf, size_t bufsize) argument 854 "/proc/%s/%s", pidstr, file); 899 char *pidstr; local 923 pidstr = direntp->d_name; 924 if (pidstr[0] == '.') /* skip "." and ".." */ 926 pid = atoi(pidstr); 933 if (read_procfile(&fds->fds_psinfo, pidstr, 949 if (read_procfile(&fds->fds_lpsinfo, pidstr, "lpsinfo", 1023 if (read_procfile(&fds->fds_lusage, pidstr, "lusage", 1056 if (read_procfile(&fds->fds_usage, pidstr, "usag [all...] |
| /illumos-gate/usr/src/cmd/psrset/ |
| H A D | psrset.c | 201 char pidstr[21]; local 204 (void) snprintf(pidstr, 20, "%d", pid); 207 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid); 213 proclwp, pidstr); 215 (void) printf(gettext("%s id %s: %d\n"), proclwp, pidstr, pset); 259 char pidstr[21]; local 262 (void) snprintf(pidstr, 20, "%d", pid); 265 (void) snprintf(pidstr, 20, "%d/%d", pid, lwpid); 272 "now not bound\n"), proclwp, pidstr); 275 "now %d\n"), proclwp, pidstr, ne [all...] |
| /illumos-gate/usr/src/cmd/lms/tools/ |
| H A D | ATVersion.cpp | 160 char *pidstr = namelist[num_entries]->d_name; local 161 if ((pidstr) && (pidstr[0] > '0') && (pidstr[0] <= '9')) { 162 pid = std::atol(pidstr);
|
| /illumos-gate/usr/src/cmd/pbind/ |
| H A D | pbind.c | 103 char pidstr[21]; local 106 (void) snprintf(pidstr, 20, "%d", (int)pid); 109 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid); 115 proclwp, pidstr); 118 proclwp, pidstr, cpu); 155 char pidstr[21]; local 158 (void) snprintf(pidstr, 20, "%d", (int)pid); 161 (void) snprintf(pidstr, 20, "%d/%d", (int)pid, (int)lwpid); 168 "now not bound\n"), proclwp, pidstr); 171 "now %d\n"), proclwp, pidstr, ne [all...] |
| /illumos-gate/usr/src/cmd/ptools/ptime/ |
| H A D | ptime.c | 65 ptime_pid(const char *pidstr) argument 71 if ((Pr = proc_arg_grab(pidstr, PR_ARG_PIDS, 74 command, pidstr, Pgrab_error(gret));
|