Lines Matching refs:open
126 * open fd. These tables are kept sorted by process ID for quick lookups.
266 * We open these to avoid accidentally writing to a proc file
268 (void) open("/dev/null", O_RDONLY);
269 (void) open("/dev/null", O_WRONLY);
270 (void) open("/dev/null", O_WRONLY);
300 if ((WTMPXfd = open(WTMPX_FILE, O_RDONLY)) < 0)
301 nonfatal("WARNING: unable to open " WTMPX_FILE " for update.");
347 * Close any open files.
611 Pfd = open(UTMPPIPE, O_RDWR | O_NDELAY);
876 * proc_to_fd - Take a process ID and return an open file descriptor to the
887 if ((fd = open(procname, O_RDONLY)) >= 0) {
1063 if ((fd = open(psinfoname, O_RDONLY)) < 0 ||
1066 * We either couldn't open the proc, or we did but the