summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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@
* Oracle has re-licensed sunrpc under a three-clause BSD license.millert2010-09-0144-1268/+1283
| | | | Update our sources appropriately. OK deraadt@ jsg@
* Correct the #includes to avoid warnings in <rpc/svc.h>guenther2010-07-171-2/+3
| | | | ok miod@
* Keep all bits of __svc_fdset up to date, not just those beyond FD_SETSIZE.schwarze2009-12-141-3/+3
| | | | | | | Bug found while auditing the same complaint by parfait, see the previous commit; still not shutting parfait up. "wow, that's nasty" deraadt@
* __svc_fdsetsize is counted in bits, not in array elementsschwarze2009-12-111-2/+2
| | | | | | | | | | When exceeding fd 1024, this bug cleared flag bits for all file descriptors except those <= 64. Found while auditing a (false positive) complaint by parfait. This bugfix does not shut parfait up, though. OK millert@ deraadt@
* Modify the uc_entries allocation check such that the lhs is a constant.millert2009-06-071-2/+2
| | | | OK deraadt@
* correct error codes after malloc(3) failure, as 0 means RPC_SUCCESS;schwarze2009-06-061-3/+3
| | | | noticed by and OK deraadt@, ok millert@
* use calloc() and realloc() more; ok schwarzederaadt2009-06-062-21/+13
|
* use calloc() to provide size * nitems safetyderaadt2009-06-051-3/+2
|
* use calloc() to provide size * nitems safety; ok millertderaadt2009-06-051-3/+2
|
* Proper error handling in clntraw_create:schwarze2009-06-041-6/+15
| | | | | | Bail out and clean up after all errors, and report in libc/rpc style. Among others, this fixes a NULL pointer dereference in clntraw_call. Feedback and ok kjell@ and millert@.
* State that clnt{raw,udp}_create can fail.schwarze2009-06-031-2/+8
| | | | "no objection" millert@
* Don't postpone memory allocation for the error message to the error handler:schwarze2009-06-031-33/+14
| | | | | | | That way, memory exhaustion simply cannot be reported because it would require to... allocate memory. Instead, really use a statical buffer as it is advertised in the manual. "looks good" millert@
* When authnone_create fails, do not leave behind a NULL cl_auth attribute,schwarze2009-06-022-3/+13
| | | | | | because that one will typically derefenced later without any checking. Instead, flag the error condition and bail out cleanly. useful feedback from kjell@ and ok millert@
* make the documentation of {svc,clnt}*create complete and correctschwarze2009-06-022-10/+21
| | | | ok millert@ jmc@
* When an RPC client program encounters ENOMEM while trying to printschwarze2009-06-011-2/+4
| | | | | | an error message, rather skip the error message than dereferencing a NULL pointer. debugging help and ok kjell@
* Commit requested by marco:otto2008-12-093-26/+206
| | | | | Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
* Fix param list for xdrrec_eof. Found during coding some stuff that usesmarco2008-09-071-3/+3
| | | | xdr goo.
* Change a very long selective list of all architectures which do IEEE intoderaadt2008-06-251-10/+6
| | | | | | just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod
* document xdr_{u_}int64_t() functionsderaadt2008-06-132-3/+23
|
* implement xdr_int64_t, xdr_u_int64_tsturm2008-06-131-1/+55
| | | | from NetBSD
* Fix comment typos; ok ray@, jmc@blambert2007-09-171-4/+4
|
* Remove wrong snprintf(3) truncation checks, which can't bemoritz2007-09-121-15/+25
| | | | | | | triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@
* Proper use of fseek/fseeko macros.tobias2007-09-101-2/+2
| | | | OK joris@, otto@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* convert to new .Dd format;jmc2007-05-316-12/+12
|
* eliminate call to abort(), which is very bad in libs. I forgat howotto2007-03-251-6/+9
| | | | | this diff came into my tree, apologies for not naming the contributor. ok tedu@ deraadt@
* Change hard coded numbers to sizeof(buf). Also change someray2007-02-201-2/+2
| | | | | | | | sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@.
* add void set_rpc_maxgrouplist(int), to be able to make mount_nfs -ggrunk2006-11-103-3/+32
| | | | | | working again. help from millert@, ok deraadt@ pedro@
* Teach'em about cpus in spandexmiod2006-10-101-2/+2
|
* Check return value of authunix_create_default(); from bret lambertotto2006-09-221-3/+9
| | | | with some guidance by me; ok jaredy@
* dont put two '\n' at the end of the string returnd by clnt_sperror()thib2006-09-171-7/+7
| | | | ok deraadt@
* be more careful checking for (off_t)-1 as the failure condition fromderaadt2006-04-021-4/+4
| | | | lseek(), not just any old -1; ok millert
* sprinkle a socklen_tderaadt2006-04-021-2/+3
|
* sprinkle a bit of ARGSUSEDderaadt2006-03-315-5/+16
|