diff options
| author | Andreas Schneider <mail@cynapses.org> | 2010-04-03 21:22:32 +0200 |
|---|---|---|
| committer | Andreas Schneider <mail@cynapses.org> | 2010-05-12 13:11:33 +0200 |
| commit | 10b4654ad54da18cbb1e0780b6b0243dcdfb4942 (patch) | |
| tree | 97eb7bb43a805fe660e52e7972870cc61dee388e /include | |
| parent | 9d7fc9d50b895650f1ec301021b4a202a0fcb3cb (diff) | |
| download | libssh-10b4654ad54da18cbb1e0780b6b0243dcdfb4942.tar.gz libssh-10b4654ad54da18cbb1e0780b6b0243dcdfb4942.tar.xz libssh-10b4654ad54da18cbb1e0780b6b0243dcdfb4942.zip | |
Added a select(2) based poll-emulation if poll(2) is not available.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libssh/poll.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/libssh/poll.h b/include/libssh/poll.h index 4aa2f333..a43cd660 100644 --- a/include/libssh/poll.h +++ b/include/libssh/poll.h @@ -40,7 +40,7 @@ typedef struct ssh_pollfd_struct { /* poll.c */ #ifndef POLLIN -# define POLLIN 0x001 /* There is data to read. */ +#define POLLIN 0x001 /* There is data to read. */ #endif #ifndef POLLPRI #define POLLPRI 0x002 /* There is urgent data to read. */ @@ -59,6 +59,20 @@ typedef struct ssh_pollfd_struct { #define POLLNVAL 0x020 /* Invalid polling request. */ #endif +#ifndef POLLRDNORM +#define POLLRDNORM 0x040 /* mapped to read fds_set */ +#endif +#ifndef POLLRDBAND +#define POLLRDBAND 0x080 /* mapped to exception fds_set */ +#endif +#ifndef POLLWRNORM +#define POLLWRNORM 0x100 /* mapped to write fds_set */ +#endif +#ifndef POLLWRBAND +#define POLLWRBAND 0x200 /* mapped to write fds_set */ +#endif + + typedef unsigned long int nfds_t; #endif /* HAVE_POLL */ |
