home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume32
/
pol
/
part01
/
poltest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-18
|
305b
|
21 lines
#include <stdio.h>
#include <fcntl.h>
#include <poll.h>
main()
{
int fd;
struct pollfd pl;
int x;
printf("fd = %d\n",fd);
pl.fd = 0;
pl.events = POLLIN;
printf("Begin ioctl, return\n");
if ((x=pol(&pl, 1, 5000)) == -1)
halt("PERROR : ioctl fail\n");
printf("End ioctl\n");
close(fd);
}