Lines Matching refs:open
34 * The basic idea is to open the script as standard input, set the effective
38 * may pass file descriptor FDIN as an open file with mode SPECIAL if
41 * open file. On systems without the setreuid() call, e[ug]id is set
83 static const char badopen[] = "cannot open";
156 n = open(p,0);
381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 ||
384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) < 0)
422 if((m = open(THISPROG, O_RDONLY)) < 0)
429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0)
432 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0)
491 * copy THISPROG into the open file number <fdo> and close <fdo>