convert_tcpls.c
/**
 * returns 1 and set modifies readfds/writefds appropriatly if we still
 * have something to read/write in tcpls
 *
 */
returns 1 and set modifies readfds/writefds appropriatly if we still
have something to read/write in tcpls
returns 1 and set modifies readfds / writefds appropriatly if we still have something to read / write in tcpls
int handle_select(long arg1, long arg2, long *result) {
  fd_set *readfds = (fd_set*) arg1;
  fd_set *writefds = (fd_set*) arg2;
  if ((*result = tcpls_hold_data_to_read_or_write(readfds, writefds)) > 0) {
    return SYSCALL_SKIP;
  }
  return SYSCALL_RUN;
}
int handle_select ( long arg1 , long arg2 , long * result ) { fd_set * readfds = ( fd_set * ) arg1 ; fd_set * writefds = ( fd_set * ) arg2 ; if ( ( * result = tcpls_hold_data_to_read_or_write ( readfds , writefds ) ) > 0 ) { return SYSCALL_SKIP ; } return SYSCALL_RUN ; }
returns 1 and set modifies readfds/writefds appropriatly if we still
 have something to read/write in tcpls
returns 1 and set modifies readfds / writefds appropriatly if we still have something to read / write in tcpls