Lines Matching defs:nout
75 static char nout[PATH_MAX] = "nohup.out";
84 if ((fd = open(nout, flags, NOHUP_PERM)) < 0) {
88 if ((snprintf(nout, sizeof (nout),
89 "%s/nohup.out", home) >= sizeof (nout)) ||
90 (fd = open(nout, flags, NOHUP_PERM)) < 0) {
96 (void) fprintf(stderr, gettext("Sending output to %s\n"), nout);
280 file = &nout[0];
549 if (pr_access(P, nout, R_OK | W_OK) != 0) {
551 "access %s: %s\n"), psp->pr_pid, nout, strerror(errno));
614 * Set nout to be the full path name of nohup.out and fname to be
616 * nout = /cwd/nohup.out fname = nohup.out
617 * nout = $HOME/nohup.out fname = $HOME/nohup.out
619 if (getcwd(nout, sizeof (nout) - strlen("/nohup.out") - 1) != NULL) {
620 fname = &nout[strlen(nout)];
624 nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
628 if (snprintf(nout, sizeof (nout),
629 "%s/nohup.out", home) < sizeof (nout)) {
630 nh_fd = open(nout, O_WRONLY | O_CREAT, NOHUP_PERM);
631 fname = &nout[0];