Lines Matching refs:ndesc

501 	int ndesc = 0;  in PHP_FUNCTION()  local
596 descriptors[ndesc].index = nindex; in PHP_FUNCTION()
610 descriptors[ndesc].childend = dup_fd_as_handle(fd); in PHP_FUNCTION()
611 if (descriptors[ndesc].childend == NULL) { in PHP_FUNCTION()
616 descriptors[ndesc].childend = dup(fd); in PHP_FUNCTION()
617 if (descriptors[ndesc].childend < 0) { in PHP_FUNCTION()
622 descriptors[ndesc].mode = DESC_FILE; in PHP_FUNCTION()
647 descriptors[ndesc].mode = DESC_PIPE; in PHP_FUNCTION()
655 descriptors[ndesc].parentend = newpipe[1]; in PHP_FUNCTION()
656 descriptors[ndesc].childend = newpipe[0]; in PHP_FUNCTION()
657 descriptors[ndesc].mode |= DESC_PARENT_MODE_WRITE; in PHP_FUNCTION()
659 descriptors[ndesc].parentend = newpipe[0]; in PHP_FUNCTION()
660 descriptors[ndesc].childend = newpipe[1]; in PHP_FUNCTION()
664 descriptors[ndesc].parentend = dup_handle(descriptors[ndesc].parentend, FALSE, TRUE); in PHP_FUNCTION()
666 …descriptors[ndesc].mode_flags = descriptors[ndesc].mode & DESC_PARENT_MODE_WRITE ? O_WRONLY : O_RD… in PHP_FUNCTION()
669 descriptors[ndesc].mode_flags |= O_BINARY; in PHP_FUNCTION()
677 descriptors[ndesc].mode = DESC_FILE; in PHP_FUNCTION()
705 descriptors[ndesc].childend = dup_fd_as_handle(fd); in PHP_FUNCTION()
711 SetFilePointer(descriptors[ndesc].childend, 0, NULL, FILE_END); in PHP_FUNCTION()
714 descriptors[ndesc].childend = fd; in PHP_FUNCTION()
734 descriptors[ndesc].mode = DESC_PIPE; in PHP_FUNCTION()
735 descriptors[ndesc].childend = dup(slave_pty); in PHP_FUNCTION()
736 descriptors[ndesc].parentend = dup(dev_ptmx); in PHP_FUNCTION()
737 descriptors[ndesc].mode_flags = O_RDWR; in PHP_FUNCTION()
749 if (++ndesc == PHP_PROC_OPEN_MAX_DESCRIPTORS) in PHP_FUNCTION()
773 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
817 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
867 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
901 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
935 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()
954 proc->npipes = ndesc; in PHP_FUNCTION()
975 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()