Lines Matching refs:proc
413 fprintf(stderr, "trouble opening proc file\n");
424 sprintf(procdir, "/proc/%d/task", tcp->pid);
639 fprintf(stderr, "trouble opening proc file\n");
779 char proc[32];
792 /* Open the process pseudo-files in /proc. */
793 sprintf(proc, "/proc/%d/ctl", tcp->pid);
794 if ((tcp->pfd = open(proc, O_WRONLY|O_EXCL)) < 0) {
795 perror("strace: open(\"/proc/...\", ...)");
806 sprintf(proc, "/proc/%d/status", tcp->pid);
807 if ((tcp->pfd_stat = open(proc, O_RDONLY|O_EXCL)) < 0) {
808 perror("strace: open(\"/proc/...\", ...)");
819 sprintf(proc, "/proc/%d/as", tcp->pid);
820 if ((tcp->pfd_as = open(proc, O_RDONLY|O_EXCL)) < 0) {
821 perror("strace: open(\"/proc/...\", ...)");
833 /* Open the process pseudo-file in /proc. */
835 sprintf(proc, "/proc/%d", tcp->pid);
836 if ((tcp->pfd = open(proc, O_RDWR|O_EXCL)) < 0) {
838 sprintf(proc, "/proc/%d/mem", tcp->pid);
839 if ((tcp->pfd = open(proc, O_RDWR)) < 0) {
841 perror("strace: open(\"/proc/...\", ...)");
854 sprintf(proc, "/proc/%d/regs", tcp->pid);
855 if ((tcp->pfd_reg = open(proc, O_RDONLY)) < 0) {
856 perror("strace: open(\"/proc/.../regs\", ...)");
860 sprintf(proc, "/proc/%d/status", tcp->pid);
861 if ((tcp->pfd_status = open(proc, O_RDONLY)) < 0) {
862 perror("strace: open(\"/proc/.../status\", ...)");
1050 sprintf(proc, "/proc/%d/status", tcp->pid);
1051 status = fopen(proc, "r");
1513 fprintf(stderr, "strace: proc miscount\n");
1681 fprintf(stderr, "strace: lost proc\n");
2069 fprintf(stderr, "strace: proc miscount\n");