summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove NULL-checks before free() and a few related dead assignments.mmcc2015-12-281-3/+2
| | | | ok and valuable input from millert@
* update NAME section to include all documented functions,jmc2015-11-102-6/+6
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* delete old lint ARGSUSED commentsguenther2015-11-0111-38/+11
|
* user land -> userland; from Rob Piercederaadt2015-10-051-2/+2
|
* __xdrrec_getrec is in the reserved namespace, so it doesn't need to be weakguenther2015-10-041-2/+2
|
* use .Va for global variables, and .Vt where the type is includedschwarze2015-09-141-44/+37
|
* Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internalguenther2015-09-141-1/+3
| | | | calls go direct and all the symbols are weak
* Wrap <rpc/*.h> so that calls go direct and the symbols are all weak.guenther2015-09-1325-33/+106
| | | | | | Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@
* lseek() is in <unistd.h> ok deraadt@guenther2015-09-111-1/+2
|
* _rpc_dtablesize() is not used anywhere, tracking by sthen; ok guentherderaadt2015-09-112-52/+2
|
* rpcdata should not be exported; ok guentherderaadt2015-09-111-2/+2
|
* Use SOCK_NONBLOCK in a couple more placesguenther2015-09-091-22/+3
| | | | ok deraadt@
* Delete 3 more stderr messages, right before returning a proper error.deraadt2015-09-023-6/+6
| | | | Code from way in the past.
* do not printf() on error from libc; ok millertderaadt2015-09-021-3/+1
|
* Remove all bogus writes to stderr. Only explicit requests shouldderaadt2015-09-0110-70/+23
| | | | | go that way. ok miod beck
* Remove calls to perror(); the error returns are sufficient, and thesederaadt2015-09-013-27/+7
| | | | | library may not assume stderr is useable. ok millert miod beck
* All these files include <stdlib.h>, so do not need to castderaadt2015-08-209-19/+19
| | | | malloc/calloc/realloc* returns.
* swap calloc() arguments for clarityderaadt2015-05-181-2/+2
|
* Use fcntl() to set non-blocking-mode, rather ioctl(). This has a betterderaadt2015-05-171-4/+20
| | | | | chance of working in systrace restricted environments. ok guenther
* Use the size of the buffer not the pointer in a call to mem_free().jsg2015-05-041-2/+2
| | | | ok miod@ and guenther@ who both pointed out this argument is unused.
* Cut the aliases part of /etc/rpc lines before feeding them to strtonum(), formiod2015-04-251-6/+7
| | | | it will fail otherwise; ok deraadt@ millert@
* Convert many atoi() calls to strtonum(), adding range checks and failurederaadt2015-04-181-2/+6
| | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
* Move to the <limits.h> universe.deraadt2015-01-164-11/+7
| | | | review by millert, binary checking process with doug, concept with guenther
* Merge from NetBSD from 1999-03-25:"guenther2014-11-117-29/+26
| | | | | | | | | | | | * don't close the socket unless it was opened by the function * note (in the comments) that the client is responsible for closing the socket if they opened it, or they didn't use CLNT_DESTROY() fixes a couple of unnecessary closing of already-closed sockets. noted by: Matthias Drochner <M.Drochner@fz-juelich.de>" tested by many in snaps ok schwarze@
* missing pfd = newp, diagnosed by deraadt@sthen2014-11-051-1/+2
|
* Fix memory leak on reallocarray() failure introduced by conversionmillert2014-11-041-4/+6
| | | | from calloc().
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
| | | | ok millert@
* We prefer to use call reallocarray() with nmemb first and size second.millert2014-10-221-2/+2
| | | | Requested by guenther@
* Use reallocarray() instead of calloc() (originally was realloc).millert2014-10-221-3/+2
| | | | OK deraadt@
* obvious conversion of realloc() to reallocarray(). Luckily this isderaadt2014-10-081-2/+2
| | | | | using pollfd, because if this was fd_set... it would not be obvious (or easy)
* When fopen()ing internal to libc (the API doesn't support the useguenther2014-09-151-3/+3
| | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@
* Switch from <sys/endian.h> or <machine/endian.h> to the new,guenther2014-07-211-2/+2
| | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@
* lint is dead (long live the lint!), so stop using it as a cpp conditionalguenther2014-03-161-7/+1
| | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-3/+3
|
* 1 << 31 cleanup. Eitan Adler pointed out that there has been aderaadt2013-11-261-2/+2
| | | | | resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
* bring in protoderaadt2013-11-131-1/+2
|
* insert the proper arguments into a prototypederaadt2013-11-121-2/+2
|
* pull in missing includes (math.h, unistd.h, stdlib.h) needed forderaadt2013-11-121-1/+2
| | | | prototypes
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-056-20/+20
|
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-171-1/+2
| | | | silence some warnings.
* Replace a realloc() + memcpy() with calloc() + memcpy().millert2013-04-161-6/+5
| | | | | We don't need to zero pfd but using calloc() gets us overflow protection for free. OK chl@ deraadt@
* Back out r1.17 and its subsequent conversion to poll. Otherwisemillert2013-04-151-27/+6
| | | | | | | we can get into a svc_getreq_poll() -> readtcp() -> svc_getreq_poll() loop until we run out of stack. If we want to avoid blocking on the new fd in readtcp() we need to poll() in svc_getreq_poll(), which will require a more elaborate change. OK tedu@
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+3
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* last stage of rfc changes, using consistent Rs/Re blocks, and moving thejmc2012-09-273-30/+30
| | | | references into a STANDARDS section;
* Drop the rpcauth(3) MLINK, there is no function of that name.schwarze2012-03-043-14/+14
| | | | Joint work with and OK haesbaert@ jmc@
* Fix several manpage titles, from Lawrence Teo.haesbaert2012-02-261-3/+3
| | | | ok dcoppa@ jmc@ schwarze@.
* At some point we've switched to the VFP floating-point--unlike FPAmartynas2011-07-261-3/+3
| | | | | | | | | it actually stores floats in natural-endian--therefore the existing checks became wrong. Take into account __VFP_FP__, effectively bringing back the old behavior. This way it will work now, and in the future when some of our platforms are switched to FPA, where it's much faster.
* Assumptions about floating-point word order based on BYTE_ORDER aremartynas2011-07-261-3/+3
| | | | | wrong on ARM. A more elegant solution is pending, but this is good for now. OK miod@.
* - the nroff workaround is no longer neededjmc2010-10-291-19/+22
| | | | - use some Fn and \*(Gt
* do not use .B, which is man(7), not mdoc(7); and stop .Tn abuseschwarze2010-09-074-357/+142
| | | | feedback and ok jmc@, ok millert@