Lines Matching refs:nfd
278 int nfd;
345 nfd = open(fn, O_CREAT|O_EXCL|O_WRONLY, 0644);
346 if (nfd != -1 && fstat(nfd, &stbuf) == -1) {
347 (void) close(nfd);
351 nfd = open(fn, O_APPEND|O_WRONLY, 0644);
356 if (nfd == -1 || (n_ftrace = fdopen(nfd, "a")) == NULL) {
361 if (nfd != -1)
362 (void) close(nfd);
366 if (fstat(nfd, &stbuf2) == -1 || !S_ISREG(stbuf2.st_mode) ||
375 (void) dup2(nfd, STDOUT_FILENO);
376 (void) dup2(nfd, STDERR_FILENO);