• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/LPRng/src/common/

Lines Matching defs:of_error

741 	int of_error[2], of_fd[2], n, time_left;
753 of_fd[0] = of_fd[1] = of_error[0] = of_error[1] = -1;
777 of_error[0] = of_error[1] = -1;
779 of_error[1] = Checkwrite( Status_file_DYN, &statb, O_WRONLY|O_APPEND, 0, 0 );
780 } else if( pipe( of_error ) == -1 ){
785 Max_open(of_error[0]); Max_open(of_error[1]);
787 DEBUG3("Run_OF_filter: fd of_fd[%d,%d], of_error[%d,%d]",
788 of_fd[0], of_fd[1], of_error[0], of_error[1] );
833 files.list[files.count++] = Cast_int_to_voidstar(of_error[1]); /* stderr */
866 if( of_error[1] > 0 && (close( of_error[1] ) == -1 ) ){
868 LOGERR(LOG_INFO)"Run_OF_filter: X1 close(%d) failed", of_error[1]);
871 of_error[1] = -1;
876 *of_stderr = of_error[0];
1118 * int of_error - read status from this
1136 int of_error, char *msg, int msgmax,
1150 "Write_outbuf_to_OF: len %d, of_fd %d, of_error %d, timeout %d, poll_for_status %d",
1151 outlen, of_fd, of_error, timeout, poll_for_status );
1161 if( of_error > 0 && fstat( of_error, &statb ) ){
1162 LOGERR(LOG_INFO) "Write_outbuf_to_OF: %s, of_error %d closed!",
1163 title, of_error );
1164 of_error = -1;
1166 if( of_error < 0 ){
1181 Set_block_io( of_error );
1182 count = Read_fd_len_timeout( 1, of_error, msg+msglen, msgmax-msglen );
1183 Set_nonblock_io( of_error );
1225 return_status = Read_write_timeout( of_error, msg+msglen, msgmax-msglen, &count,
1247 DEBUG3("Write_outbuf_to_OF: after write return_status %d, of_fd %d, of_error %d",
1248 return_status, of_fd, of_error );
1256 * int of_error, char *msg, int msgmax,
1264 int of_error, char *msg, int msgmax,
1278 DEBUG3( "Get_status_from_OF: pid %d, of_error %d, timeout %d",
1279 of_pid, of_error, timeout );
1283 if( fstat( of_error, &statb ) ){
1285 LOGERR_DIE(LOG_INFO) "Get_status_from_OF: %s, of_error %d closed!",
1286 title, of_error );
1340 Set_nonblock_io( of_error );
1341 count = read( of_error, msg+msglen, msgmax-msglen );
1342 Set_block_io( of_error );
1354 of_error, left );
1361 Set_block_io( of_error );
1362 count = Read_fd_len_timeout( left, of_error, msg+msglen, msgmax-msglen );