summaryrefslogtreecommitdiff
path: root/src/rpc_dtablesize.c
Commit message (Collapse)AuthorAgeFilesLines
* _rpc_dtablesize: use portable system callHsia-Jun(Randy) Li2022-01-201-1/+1
| | | | | | | | getdtablesize() is not specified in POSIX.1, Android won't support it at all. Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com> Signed-off-by: Steve Dickson <steved@redhat.com>
* _rpc_dtablesize cleanupThorsten Kukuk2016-03-031-10/+2
| | | | | | | | | | | Remove old, meanwhile wrong comment about FD_SETSIZE and _rpc_dtablesize(). Remove the local prototype for _rpc_dtablesize() but use the public header instead. Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de> Signed-off-by: Steve Dickson <steved@redhat.com>
* Use poll() instead of select() in svc_run()Thorsten Kukuk2015-08-281-2/+0
| | | | | | | | | | | | | | | | | | | TI-RPC is using select() in svc_run(), while glibc and Solaris are using poll(). This has two drawbacks: poll() is much more efficient then select(), and with select() we are limited to 1024 open filehandles. And applications replacing svc_run on Linux don't work, since they expect svc_pollfd and svc_max_pollfd. Attached patch changes this. It's full backward compatible, API and ABI, so e.g. current rpcbind will continue to work and compile. The only problem could arrive, that we can have more than 1024 open filehandles and applications ignoring higher ones. Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de> Signed-off-by: Steve Dickson <steved@redhat.com>
* Replace the Sun RPC license with the BSD license, with the explicitTom "spot" Callaway2009-05-281-24/+23
| | | | | | | permission of Sun Microsystems Signed-off-by: Tom "spot" Callaway <tcallawa@redhat.com> Signed-off-by: Steve Dickson <steved@redhat.com>
* Initial commit of libtirpc 0.1.7Steve Dickson2007-04-201-0/+58
Signed-off-by: Steve Dickson <steved@redhat.com>