summaryrefslogtreecommitdiff
path: root/pfinet/glue-include/linux
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-14 00:59:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-14 00:59:54 +0100
commit0e023ff2146d086d10c63b8e19bd263ce40d05fe (patch)
tree9554d2e4ee77052c86f37a0441f8a9232e1c0b0c /pfinet/glue-include/linux
parent1d66e33cd8420401b3431aaefe5a479d9679f277 (diff)
Pass pfinet errors to io_select callers
This will be needed to properly support poll in glibc. * pfinet/glue-include/linux/poll.h (POLLERR): Define to 0x1000. * pfinet/io-ops.c (S_io_select): Look for POLLERR condition. On such condition, return EIO.
Diffstat (limited to 'pfinet/glue-include/linux')
-rw-r--r--pfinet/glue-include/linux/poll.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/glue-include/linux/poll.h b/pfinet/glue-include/linux/poll.h
index b21c3c71..c785ea74 100644
--- a/pfinet/glue-include/linux/poll.h
+++ b/pfinet/glue-include/linux/poll.h
@@ -9,7 +9,7 @@
#define POLLWRNORM SELECT_WRITE
#define POLLWRBAND SELECT_WRITE
#define POLLPRI SELECT_URG
-#define POLLERR SELECT_READ | SELECT_WRITE
+#define POLLERR 0x1000
#define POLLHUP SELECT_READ
typedef struct poll_table_struct { } poll_table;