Re: multiple symbols of select(), do they matter?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 07/09/2008, at 6:42 PM, Jean-Daniel Dupas wrote: for example -- LD. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Why you do no simply call the matching function instead of using the same select call for all variants ? int select_unix2003(int nfds, fd_set * __restrict readfds, fd_set * __restrict writefds, fd_set * __restrict errorfds, struct timeval * __restrict timeout) { my_before_select(); int result; int (*real_select)(int nfds, fd_set * __restrict readfds, fd_set * __restrict writefds, fd_set * __restrict errorfds, struct timeval * __restrict timeout) = dlsym(RTLD_NEXT, "select$UNIX2003"); result = real_select(nfds, readfds, writefds, errorfds, timeout); my_after_select(); return result; } That's what I am looking to do, was more curious about what the _actual_ differences are with the different symbols. This email sent to site_archiver@lists.apple.com
participants (1)
-
Luke Daley