diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/core/select.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/osmocom/core/select.h b/include/osmocom/core/select.h index 1ba6b832..e4787b09 100644 --- a/include/osmocom/core/select.h +++ b/include/osmocom/core/select.h @@ -13,11 +13,16 @@ * \file select.h */ /*! Indicate interest in reading from the file descriptor */ -#define BSC_FD_READ 0x0001 +#define OSMO_FD_READ 0x0001 /*! Indicate interest in writing to the file descriptor */ -#define BSC_FD_WRITE 0x0002 +#define OSMO_FD_WRITE 0x0002 /*! Indicate interest in exceptions from the file descriptor */ -#define BSC_FD_EXCEPT 0x0004 +#define OSMO_FD_EXCEPT 0x0004 + +/* legacy naming dating back to early OpenBSC / bsc_hack of 2008 */ +#define BSC_FD_READ OSMO_FD_READ +#define BSC_FD_WRITE OSMO_FD_WRITE +#define BSC_FD_EXCEPT OSMO_FD_EXCEPT /*! Structure representing a file dsecriptor */ struct osmo_fd { @@ -25,8 +30,8 @@ struct osmo_fd { struct llist_head list; /*! actual operating-system level file decriptor */ int fd; - /*! bit-mask or of \ref BSC_FD_READ, \ref BSC_FD_WRITE and/or - * \ref BSC_FD_EXCEPT */ + /*! bit-mask or of \ref OSMO_FD_READ, \ref OSMO_FD_WRITE and/or + * \ref OSMO_FD_EXCEPT */ unsigned int when; /*! call-back function to be called once file descriptor becomes * available */ |