Change in libosmocore[master]: select: Migrate over to poll()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Oct 20 07:51:57 UTC 2020


laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/20732 )

Change subject: select: Migrate over to poll()
......................................................................


Patch Set 5:

(2 comments)

https://gerrit.osmocom.org/c/libosmocore/+/20732/5/src/select.c 
File src/select.c:

https://gerrit.osmocom.org/c/libosmocore/+/20732/5/src/select.c@46 
PS5, Line 46: #include <poll.h>
> #ifndef FORCE_IO_SELECT […]
I'm sure they have different fails already :)  In terms of files: libosmocore doesn't use a .map file, and hence all non-static symbols are public.  As there is some global variables and functions that both implementations need, we'd be  making those public.  I think the #ifdef is the lesser evil here at the moment.


https://gerrit.osmocom.org/c/libosmocore/+/20732/5/src/select.c@159 
PS5, Line 159: 		memset(p + g_poll.poll_size, 0, new_size - g_poll.poll_size);
> so is talloc_realloc doing a memcpy of previous chunk into the new chunk?
Sure, it doesn't just use the realloc name, but also inherits it's well-known semantics.  Unfortunately libtalloc doesn't have a talloc_realloc_zero() or the like...



-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/20732
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9e80da68a144b36926066610d0d3df06abe09bca
Gerrit-Change-Number: 20732
Gerrit-PatchSet: 5
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Tue, 20 Oct 2020 07:51:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin at sysmocom.de>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201020/bcff4a91/attachment.htm>


More information about the gerrit-log mailing list