Lines Matching refs:ndesc
627 static void init_startup_info(STARTUPINFOW *si, descriptorspec_item *descriptors, int ndesc) in init_startup_info() argument
638 for (int i = 0; i < ndesc; i++) { in init_startup_info()
898 descriptorspec_item *descriptors, int ndesc, int nindex) in redirect_proc_descriptor() argument
902 for (int i = 0; i < ndesc; i++) { in redirect_proc_descriptor()
934 int ndesc, int nindex, int *pty_master_fd, int *pty_slave_fd) { in set_proc_descriptor_from_array() argument
949 retval = set_proc_descriptor_to_pipe(&descriptors[ndesc], zmode); in set_proc_descriptor_from_array()
952 retval = set_proc_descriptor_to_socket(&descriptors[ndesc]); in set_proc_descriptor_from_array()
961 retval = set_proc_descriptor_to_file(&descriptors[ndesc], zfile, zmode); in set_proc_descriptor_from_array()
975 &descriptors[ndesc], (int)Z_LVAL_P(ztarget), descriptors, ndesc, nindex); in set_proc_descriptor_from_array()
978 retval = set_proc_descriptor_to_blackhole(&descriptors[ndesc]); in set_proc_descriptor_from_array()
981 retval = set_proc_descriptor_to_pty(&descriptors[ndesc], pty_master_fd, pty_slave_fd); in set_proc_descriptor_from_array()
1018 static zend_result close_parentends_of_pipes(descriptorspec_item *descriptors, int ndesc) in close_parentends_of_pipes() argument
1024 for (int i = 0; i < ndesc; i++) { in close_parentends_of_pipes()
1042 static void close_all_descriptors(descriptorspec_item *descriptors, int ndesc) in close_all_descriptors() argument
1044 for (int i = 0; i < ndesc; i++) { in close_all_descriptors()
1075 int ndesc = 0; in PHP_FUNCTION() local
1164 descriptors[ndesc].index = (int)nindex; in PHP_FUNCTION()
1168 if (set_proc_descriptor_from_resource(descitem, &descriptors[ndesc], ndesc) == FAILURE) { in PHP_FUNCTION()
1172 if (set_proc_descriptor_from_array(descitem, descriptors, ndesc, (int)nindex, in PHP_FUNCTION()
1180 ndesc++; in PHP_FUNCTION()
1198 init_startup_info(&si, descriptors, ndesc); in PHP_FUNCTION()
1245 close_all_descriptors(descriptors, ndesc); in PHP_FUNCTION()
1260 if (close_parentends_of_pipes(descriptors, ndesc) == FAILURE) { in PHP_FUNCTION()
1291 close_all_descriptors(descriptors, ndesc); in PHP_FUNCTION()
1308 proc->pipes = emalloc(sizeof(zend_resource *) * ndesc); in PHP_FUNCTION()
1309 proc->npipes = ndesc; in PHP_FUNCTION()
1318 for (i = 0; i < ndesc; i++) { in PHP_FUNCTION()