/titanic_41/usr/src/cmd/tsol/plabel/ |
H A D | plabel.c | 57 static char procname[64]; variable 141 (void) strncpy(procname, arg, sizeof (procname)); in look() 143 (void) strcpy(procname, "/proc/"); in look() 144 (void) strncat(procname, arg, in look() 145 sizeof (procname) - strlen(procname)); in look() 147 (void) strlcat(procname, "/psinfo", sizeof (procname) in look() 148 - strlen(procname)); in look() 154 if ((fd = open(procname, O_RDONLY)) < 0) { in look() 231 (void) fprintf(stderr, "%s: ", procname); in perr() 233 s = procname; in perr()
|
/titanic_41/usr/src/cmd/sgs/librtld_db/demo/common/ |
H A D | main.c | 56 char procname[PROCSIZE]; in init_proc() local 66 (void) snprintf(procname, PROCSIZE, "/proc/%d/ctl", EC_SWORD(getpid())); in init_proc() 67 if ((pfd = open(procname, O_WRONLY)) < 0) { in init_proc() 68 (void) fprintf(stderr, "can't open %s\n", procname); in init_proc() 132 char procname[PROCSIZE]; in main() local 202 (void) snprintf(procname, PROCSIZE, "/proc/%d/ctl", EC_SWORD(cpid)); in main() 204 EC_SWORD(getpid()), EC_SWORD(cpid), procname); in main() 205 if ((pctlfd = open(procname, O_WRONLY)) < 0) { in main() 206 perror(procname); in main() 208 command, procname); in main() [all …]
|
H A D | ps.c | 130 char procname[PROCSIZE]; in ps_init() local 138 (void) snprintf(procname, PROCSIZE, "/proc/%d/map", in ps_init() 140 if ((procp->pp_mapfd = open(procname, O_RDONLY)) == -1) in ps_init() 143 (void) snprintf(procname, PROCSIZE, "/proc/%d/as", in ps_init() 145 if ((procp->pp_asfd = open(procname, O_RDWR)) == -1) in ps_init() 320 char procname[MAXPATHLEN]; in ps_lgetregs() local 324 (void) snprintf(procname, MAXPATHLEN - 1, in ps_lgetregs() 327 if ((lwpfd = open(procname, O_RDONLY)) == -1) in ps_lgetregs()
|
H A D | maps.c | 230 char procname[MAXPATHLEN]; in load_map() local 232 (void) snprintf(procname, MAXPATHLEN - 1, in load_map() 235 filefd = open(procname, O_RDONLY); in load_map()
|
/titanic_41/usr/src/cmd/newtask/ |
H A D | newtask.c | 109 char *filename, *procname = NULL; in main() local 134 procname = optarg; in main() 144 if ((procname != NULL) && in main() 148 if (procname != NULL) { in main() 150 return (update_running_proc(newproj_flag, procname, projname)); in main() 323 update_running_proc(int newproj_flag, char *procname, char *projname) in update_running_proc() argument 356 if ((p = proc_arg_grab(procname, PR_ARG_PIDS, 0, &gret)) == NULL) { in update_running_proc() 358 procname, Pgrab_error(gret)); in update_running_proc() 363 warn(gettext("cannot control process %s\n"), procname); in update_running_proc() 385 procname); in update_running_proc() [all …]
|
/titanic_41/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 168 char procname[64]; /* /proc/<pid>/ctl */ in ptrace() local 171 MakeProcName(procname, getpid()); in ptrace() 172 (void) strcat(procname, "/ctl"); in ptrace() 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) in ptrace() 468 MakeProcName(char *procname, pid_t pid) in MakeProcName() argument 470 (void) sprintf(procname, "/proc/%ld", pid); in MakeProcName() 479 char procname[64]; /* /proc/nnnnn/fname */ in OpenProc() local 484 MakeProcName(procname, cp->pid); in OpenProc() 485 fname = procname + strlen(procname); in OpenProc() 492 if ((fd = open(procname, omode, 0)) < 0 || in OpenProc() [all …]
|
/titanic_41/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 168 char procname[64]; /* /proc/<pid>/ctl */ in ptrace() local 171 MakeProcName(procname, getpid()); in ptrace() 172 (void) strcat(procname, "/ctl"); in ptrace() 173 if ((fd = open(procname, O_WRONLY, 0)) < 0) in ptrace() 476 MakeProcName(char *procname, pid_t pid) in MakeProcName() argument 478 (void) sprintf(procname, "/proc/%d", (int)pid); in MakeProcName() 487 char procname[64]; /* /proc/nnnnn/fname */ in OpenProc() local 492 MakeProcName(procname, cp->pid); in OpenProc() 493 fname = procname + strlen(procname); in OpenProc() 500 if ((fd = open(procname, omode, 0)) < 0 || in OpenProc() [all …]
|
/titanic_41/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 427 char procname[PATH_MAX]; in Pxcreate() local 497 (void) snprintf(procname, sizeof (procname), "%s/%d/", in Pxcreate() 499 fname = procname + strlen(procname); in Pxcreate() 507 if ((fd = open(procname, (O_RDWR|O_EXCL))) < 0 || in Pxcreate() 510 procname, strerror(errno)); in Pxcreate() 517 if ((fd = open(procname, O_RDONLY)) < 0 || in Pxcreate() 520 procname, strerror(errno)); in Pxcreate() 527 if ((fd = open(procname, O_WRONLY)) < 0 || in Pxcreate() 530 procname, strerror(errno)); in Pxcreate() 760 char procname[PATH_MAX]; in Pgrab() local [all …]
|
/titanic_41/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 53 static char procname[64]; variable 124 (void) sprintf(procname, "%d", (int)pid); /* for perr() */ in main() 238 (void) fprintf(stderr, "%s: ", procname); in perr() 240 s = procname; in perr()
|
/titanic_41/usr/src/cmd/rpcbind/ |
H A D | rpcb_check.c | 156 const char *procname; in rpcb_log() local 177 if ((procname = find_procname(proc, pm)) == NULL) { in rpcb_log() 185 client, procname, (ulong_t)prog); in rpcb_log()
|
/titanic_41/usr/src/cmd/ptools/pcred/ |
H A D | pcred.c | 50 static char *procname; variable 162 procname = arg; /* for perr() */ in look() 238 (void) fprintf(stderr, "%s: ", procname); in perr() 240 s = procname; in perr()
|
/titanic_41/usr/src/cmd/ptools/psig/ |
H A D | psig.c | 53 static char *procname; variable 192 procname = arg; /* for perr() */ in look() 362 (void) fprintf(stderr, "%s: ", procname); in perr() 364 s = procname; in perr()
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | setup.c | 269 procname = ++str; in setup() 271 procname = argvname; in setup() 497 procname = ++str; in setup() 499 procname = argvname; in setup() 743 if ((str = (char *)strdup(procname)) == NULL) in setup() 745 procname = str; in setup()
|
H A D | globals.c | 111 const char *procname = NULL; variable
|
H A D | _rtld.h | 557 extern const char *procname; /* file name of executing process */
|
H A D | util.c | 2943 if (procname) { in veprintf() 2945 rtldname, procname, err_strs[error]) == 0) in veprintf()
|
/titanic_41/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 882 char procname[64]; in proc_to_fd() local 885 (void) sprintf(procname, "/proc/%d/psinfo", (int)pid); in proc_to_fd() 887 if ((fd = open(procname, O_RDONLY)) >= 0) { in proc_to_fd() 915 fatal(procname); /* Only get here on error */ in proc_to_fd()
|
/titanic_41/usr/src/cmd/ptools/ppriv/ |
H A D | ppriv.c | 58 static char *procname; variable 174 procname = arg; /* for perr() */ in look() 308 (void) fprintf(stderr, "%s: ", procname); in perr() 310 s = procname; in perr()
|
/titanic_41/usr/src/cmd/rpcgen/ |
H A D | rpc_cout.c | 125 print_generic_header(char *procname, int pointerp) in print_generic_header() argument 130 f_print(fout, "xdr_%s(", procname); in print_generic_header() 132 f_print(fout, "%s ", procname); in print_generic_header() 137 f_print(fout, "xdr_%s(xdrs, objp)\n", procname); in print_generic_header() 139 f_print(fout, "\t%s ", procname); in print_generic_header()
|
/titanic_41/usr/src/cmd/mdb/common/modules/ptm/ |
H A D | ptm.c | 78 queue_t *peerq, char *procname) in ptms_pr_qinfo() argument 82 pt->pt_minor, peername, peerq, pt->pt_pid, procname); in ptms_pr_qinfo()
|
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.h | 63 char *procname; /* string describing the proc */ member
|
H A D | nfslog_elf.c | 1316 progname, lhp->rh_version, disp->procname); in nfsl_elf_record_header_print() 1415 logrec->re_header.rh_version, disp->procname); in nfsl_elf_rpc_print()
|
/titanic_41/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 149 static char *procname; variable 352 procname = arg; /* for perr() */ in main() 1133 (void) fprintf(stderr, "%s: ", procname); in perr() 1135 s = procname; in perr()
|