aboutsummaryrefslogtreecommitdiffstats
path: root/src/select.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-05Update doxygen annotations in libosmocoreHarald Welte1-1/+5
This adds and improves doxygen API descriptions all over libosmocore, reducing the 'white spots' that don't have any documentation.
2016-03-31select: Externalize fd_set filling and dispatchHolger Hans Peter Freyther1-32/+51
To integrate with an external event loop (in this case glib) we need to allow an application to get a filled out fd_set and then dispatch it. osmo_fds and maxfds are static and I decided to keep it that way and instead create two routines to fill the fdset and then one to dispatch the result. The public header file does not include sys/select.h and we can compile the library without select, so I didn't want to require having to include this file, and used void * for the parameter. Mark the routines as inline to avoid a call from the select function. I have confirmed that inlining has an effect on x86 using Debian's gcc-4.9.2-10 compiler
2016-03-19Add new osmo_fd_get_by_fd() functionHarald Welte1-0/+12
This function can be used to obtain the osmo_fd corresponding to a given fd. The latter can be useful when integrating libosmocore main loop with other libraries.
2015-11-12fix FSF address in sources/headersJaroslav Škarvada1-1/+2
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2014-11-14select.c: Add missing #include lines for string.h and sys/select.hHarald Welte1-0/+2
This is needed on Nuttx.
2014-05-15select: Fix english in commentHolger Hans Peter Freyther1-1/+1
2012-04-18doc: Fix the Doxygen section endingsSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-08-17some more doxygen work (include the notion of modules)Harald Welte1-0/+19
2011-06-26merge process.[ch] with application.[ch]Harald Welte1-0/+9
2011-05-07select: use namespace prefix osmo_fd* and osmo_select*Pablo Neira Ayuso1-11/+11
Summary of changes: s/struct bsc_fd/struct osmo_fd/g s/bsc_register_fd/osmo_fd_register/g s/bsc_unregister_fd/osmo_fd_unregister/g s/bsc_select_main/osmo_select_main/g
2011-05-07timer: use namespace prefix osmo_timer*Pablo Neira Ayuso1-4/+4
Summary of changes: s/struct timer_list/struct osmo_timer_list/g s/bsc_add_timer/osmo_timer_add/g s/bsc_schedule_timer/osmo_timer_schedule/g s/bsc_del_timer/osmo_timer_del/g s/bsc_timer_pending/osmo_timer_pending/g s/bsc_nearest_timer/osmo_timers_nearest/g s/bsc_prepare_timers/osmo_timers_prepare/g s/bsc_update_timers/osmo_timers_update/g s/bsc_timer_check/osmo_timers_check/g
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]0.2.0Pablo Neira Ayuso1-3/+3
This patch moves all GSM-specific definitions to include/osmocom/gsm. Moreover, the headers in include/osmocore/ have been moved to include/osmocom/core. This has been proposed by Harald Welte and Sylvain Munaunt. Tested with `make distcheck'. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2010-10-31select.c: Change license terms from GPLv2 (from ulogd) to GPLv2+Harald Welte1-2/+3
2010-08-06bsc_fd: Add a build option to be able to debug fd list corruptionHolger Hans Peter Freyther1-0/+12
bsc_register_fd on an already registered fd can corrupt the list in a heavy way and make the select end in an infinite loop, this code will workaround the issue and provide a way to set a breakpoint at the right position in the code.
2010-04-11select.c: Make the ugly hacker uglier...0.1.4Holger Hans Peter Freyther1-1/+2
Right now I'm seeing crashes when removing a link and deleting it and I need this hack to make it not crash. We will have to understand if llist_for_each_entry_safe has a bug or if we are doing something bad with the list (anchors not properly initialized).
2010-02-20fix select.c build (config.h)Harald Welte1-0/+2
2010-02-20intial checkin of the libosmocore projectHarald Welte1-0/+128