Lines Matching refs:procname
186 char procname[PATH_MAX];
256 (void) snprintf(procname, sizeof (procname), "%s/%d/",
258 fname = procname + strlen(procname);
266 if ((fd = open(procname, (O_RDWR|O_EXCL))) < 0 ||
269 procname, strerror(errno));
276 if ((fd = open(procname, O_RDONLY)) < 0 ||
279 procname, strerror(errno));
286 if ((fd = open(procname, O_WRONLY)) < 0 ||
289 procname, strerror(errno));
519 char procname[PATH_MAX];
559 (void) snprintf(procname, sizeof (procname), "%s/%d/",
561 fname = procname + strlen(procname);
573 if (((fd = open(procname, omode | O_EXCL)) < 0 &&
574 (fd = ((flags & PGRAB_FORCE)? open(procname, omode) : -1)) < 0) ||
595 procname, strerror(errno));
604 if ((fd = open(procname, O_RDONLY)) < 0 ||
615 procname, strerror(errno));
625 if ((fd = open(procname, O_WRONLY)) < 0 ||
636 procname, strerror(errno));
1298 char procname[PATH_MAX];
1309 (void) snprintf(procname, sizeof (procname), "%s/%d/",
1311 fname = procname + strlen(procname);
1314 if ((fd = open(procname, O_RDWR)) < 0 ||
1318 procname, strerror(errno));
1326 if ((fd = open(procname, O_RDONLY)) < 0 ||
1330 procname, strerror(errno));
1338 if ((fd = open(procname, O_WRONLY)) < 0 ||
1342 procname, strerror(errno));
2965 char procname[PATH_MAX];
3008 (void) snprintf(procname, sizeof (procname), "%s/%d/lwp/%d/",
3010 fname = procname + strlen(procname);
3014 if ((fd = open(procname, O_RDONLY)) < 0 ||
3022 procname, strerror(errno));
3037 procname, strerror(errno));
3045 if ((fd = open(procname, O_WRONLY)) < 0 ||
3053 procname, strerror(errno));