Basicly if I set some Amiga Signaled to break on like CTRL+C.. I want the break bits in Mask.. but its simple returning Zero
newlib.library 53.36 (17/09-2016) (A1222 version)
Code: Select all
#include <proto/dos.h>
#include <proto/exec.h>
#include <proto/socket.h>
#include <stdio.h>
#include <string.h>
int main( int argc UNUSED, char **argv UNUSED )
{
unsigned int mask;
fd_set read;
int s;
signal( SIGINT, SIG_IGN );
s = socket( AF_INET, SOCK_STREAM, 0 );
FD_ZERO( &read );
FD_SET( s, &read );
mask = SIGBREAKF_CTRL_C;
int32 val = waitselect( s + 1, & read, NULL, NULL, NULL, & mask );
printf( "Mask : %08lx, Val : %ld\n", mask, val );
return( 0 );
}