Lines Matching refs:open

114 	if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
147 if ((fd = open(auxfile, O_RDONLY)) < 0) {
148 dprintf("%s: failed to open %s: %s\n",
513 * Exclusive write open advises others not to interfere.
514 * There is no reason for any of these open()s to fail.
517 if ((fd = open(procname, (O_RDWR|O_EXCL))) < 0 ||
519 dprintf("Pcreate: failed to open %s: %s\n",
527 if ((fd = open(procname, O_RDONLY)) < 0 ||
529 dprintf("Pcreate: failed to open %s: %s\n",
537 if ((fd = open(procname, O_WRONLY)) < 0 ||
539 dprintf("Pcreate: failed to open %s: %s\n",
761 * and do not open the process control file.
775 * PGRAB_RDONLY means that we do not open the /proc/<pid>/control file,
816 * Request exclusive open to avoid grabbing someone else's
819 * open non-exclusively.
824 if (((fd = open(procname, omode | O_EXCL)) < 0 &&
825 (fd = ((flags & PGRAB_FORCE)? open(procname, omode) : -1)) < 0) ||
845 dprintf("Pgrab: failed to open %s: %s\n",
855 if ((fd = open(procname, O_RDONLY)) < 0 ||
865 dprintf("Pgrab: failed to open %s: %s\n",
876 if ((fd = open(procname, O_WRONLY)) < 0 ||
886 dprintf("Pgrab: failed to open %s: %s\n",
901 * exec() a setuid/setgid or unreadable object file between the open()
1166 str = "too many open files";
1244 * Return the open address space file descriptor for the process.
1255 * Return the open control file descriptor for the process.
1509 if ((fd = open(procname, O_RDWR)) < 0 ||
1512 dprintf("Preopen: failed to open %s: %s\n",
1521 if ((fd = open(procname, O_RDONLY)) < 0 ||
1524 dprintf("Preopen: failed to open %s: %s\n",
1533 if ((fd = open(procname, O_WRONLY)) < 0 ||
1536 dprintf("Preopen: failed to open %s: %s\n",
2891 if ((fd = open(lpath, O_RDONLY)) < 0 || fstat64(fd, &statb) != 0) {
3213 if ((fd = open(procname, O_RDONLY)) < 0 ||
3220 dprintf("Lgrab: failed to open %s: %s\n",
3244 if ((fd = open(procname, O_WRONLY)) < 0 ||
3251 dprintf("Lgrab: failed to open %s: %s\n",
3342 * Return the open control file descriptor for the LWP.