Home | History | Annotate | Download | only in strace

Lines Matching defs:proc

420 			fprintf(stderr, "trouble opening proc file\n");
427 char procdir[sizeof("/proc/%d/task") + sizeof(int) * 3];
430 sprintf(procdir, "/proc/%d/task", tcp->pid);
683 fprintf(stderr, "trouble opening proc file\n");
1141 char proc[32];
1154 /* Open the process pseudo-files in /proc. */
1155 sprintf(proc, "/proc/%d/ctl", tcp->pid);
1156 if ((tcp->pfd = open(proc, O_WRONLY|O_EXCL)) < 0) {
1157 perror("strace: open(\"/proc/...\", ...)");
1163 sprintf(proc, "/proc/%d/status", tcp->pid);
1164 if ((tcp->pfd_stat = open(proc, O_RDONLY|O_EXCL)) < 0) {
1165 perror("strace: open(\"/proc/...\", ...)");
1171 sprintf(proc, "/proc/%d/as", tcp->pid);
1172 if ((tcp->pfd_as = open(proc, O_RDONLY|O_EXCL)) < 0) {
1173 perror("strace: open(\"/proc/...\", ...)");
1180 /* Open the process pseudo-file in /proc. */
1182 sprintf(proc, "/proc/%d", tcp->pid);
1183 tcp->pfd = open(proc, O_RDWR|O_EXCL);
1185 sprintf(proc, "/proc/%d/mem", tcp->pid);
1186 tcp->pfd = open(proc, O_RDWR);
1189 perror("strace: open(\"/proc/...\", ...)");
1197 sprintf(proc, "/proc/%d/regs", tcp->pid);
1198 if ((tcp->pfd_reg = open(proc, O_RDONLY)) < 0) {
1199 perror("strace: open(\"/proc/.../regs\", ...)");
1203 sprintf(proc, "/proc/%d/status", tcp->pid);
1204 if ((tcp->pfd_status = open(proc, O_RDONLY)) < 0) {
1205 perror("strace: open(\"/proc/.../status\", ...)");
1393 sprintf(proc, "/proc/%d/status", tcp->pid);
1394 status = fopen(proc, "r");
1894 fprintf(stderr, "strace: proc miscount\n");
2056 fprintf(stderr, "strace: lost proc\n");