Lines Matching defs:fd
118 ** Output files are created if they don't exist. &n and /dev/fd/n name
834 int fd;
862 if (*file == '&' && *(file += 1) || strncmp(file, "/dev/fd/", 8) == 0 && *(file += 8))
863 fd = dup((int)atou(&file));
866 fd = open(file, O_WRONLY|O_CREAT|O_TRUNC, CREAT_MODE);
868 fd = creat(file, CREAT_MODE);
874 if (fd >= 0)
875 fcntl(fd, F_SETFD, FD_CLOEXEC);
878 return fd;
909 int fd;
1019 if (v && vm && vm->meth.meth == VM_MTDEBUG && (fd = createfile(v)) >= 0)
1020 vmdebug(fd);
1045 if (trace && (fd = createfile(trace)) >= 0)
1048 vmtrace(fd);