Exemple #1
0
void pollclient(int client) {
	const RonSwansons__fork_impl fork_data;
	printf("pollclient: polling Ron %i.\n",client);
	switch(client) {
		case 1:
			poll1(&fork_data);
			break;
		case 2:
			poll2(&fork_data);
			break;	
		case 3:
			poll3(&fork_data);
			break;	
		case 4:
			poll4(&fork_data);
			break;
		case 5:
			poll5(&fork_data);
			break;	
		case 6:
			poll6(&fork_data);
			break;	
		default:
			printf("pollclient: bad client number received %i.\n",client);
	}
}
Exemple #2
0
static int
poll1_wait (int fd, int ev)
{
    return poll1 (fd, ev, -1);
}
Exemple #3
0
static int
poll1_nowait (int fd, int ev)
{
    return poll1 (fd, ev, 0);
}