summaryrefslogtreecommitdiff
path: root/lib/libc/rpc
AgeCommit message (Collapse)Author
2013-04-17add some prototypes, casts, includes, parenthesis, and whatnot toTed Unangst
silence some warnings.
2013-04-16Replace a realloc() + memcpy() with calloc() + memcpy().Todd C. Miller
We don't need to zero pfd but using calloc() gets us overflow protection for free. OK chl@ deraadt@
2013-04-15Back out r1.17 and its subsequent conversion to poll. OtherwiseTodd C. Miller
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@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2012-09-27last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-03-04Drop the rpcauth(3) MLINK, there is no function of that name.Ingo Schwarze
Joint work with and OK haesbaert@ jmc@
2012-02-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2011-07-26At some point we've switched to the VFP floating-point--unlike FPAMartynas Venckus
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.
2011-07-26Assumptions about floating-point word order based on BYTE_ORDER areMartynas Venckus
wrong on ARM. A more elegant solution is pending, but this is good for now. OK miod@.
2010-10-29- the nroff workaround is no longer neededJason McIntyre
- use some Fn and \*(Gt
2010-09-07do not use .B, which is man(7), not mdoc(7); and stop .Tn abuseIngo Schwarze
feedback and ok jmc@, ok millert@
2010-09-01Oracle has re-licensed sunrpc under a three-clause BSD license.Todd C. Miller
Update our sources appropriately. OK deraadt@ jsg@
2010-07-17Correct the #includes to avoid warnings in <rpc/svc.h>Philip Guenthe
ok miod@
2009-12-14Keep all bits of __svc_fdset up to date, not just those beyond FD_SETSIZE.Ingo Schwarze
Bug found while auditing the same complaint by parfait, see the previous commit; still not shutting parfait up. "wow, that's nasty" deraadt@
2009-12-11__svc_fdsetsize is counted in bits, not in array elementsIngo Schwarze
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@
2009-06-07Modify the uc_entries allocation check such that the lhs is a constant.Todd C. Miller
OK deraadt@
2009-06-06correct error codes after malloc(3) failure, as 0 means RPC_SUCCESS;Ingo Schwarze
noticed by and OK deraadt@, ok millert@
2009-06-06use calloc() and realloc() more; ok schwarzeTheo de Raadt
2009-06-05use calloc() to provide size * nitems safetyTheo de Raadt
2009-06-05use calloc() to provide size * nitems safety; ok millertTheo de Raadt
2009-06-04Proper error handling in clntraw_create:Ingo Schwarze
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@.
2009-06-03State that clnt{raw,udp}_create can fail.Ingo Schwarze
"no objection" millert@
2009-06-03Don't postpone memory allocation for the error message to the error handler:Ingo Schwarze
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@
2009-06-02When authnone_create fails, do not leave behind a NULL cl_auth attribute,Ingo Schwarze
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@
2009-06-02make the documentation of {svc,clnt}*create complete and correctIngo Schwarze
ok millert@ jmc@
2009-06-01When an RPC client program encounters ENOMEM while trying to printIngo Schwarze
an error message, rather skip the error message than dereferencing a NULL pointer. debugging help and ok kjell@
2008-12-09Commit requested by marco:Otto Moerbeek
Add nonblock support for xdrrecs ok millert blambert & otto; from NetBSD. libc bump to follow soon.
2008-09-07Fix param list for xdrrec_eof. Found during coding some stuff that usesMarco Peereboom
xdr goo.
2008-06-25Change a very long selective list of all architectures which do IEEE intoTheo de Raadt
just handling the vax different (just vax for now, 'cause tahoe might even be too legacy for Miod) ok miod
2008-06-13document xdr_{u_}int64_t() functionsTheo de Raadt
2008-06-13implement xdr_int64_t, xdr_u_int64_tNikolay Sturm
from NetBSD
2007-09-17Fix comment typos; ok ray@, jmc@Bret Lambert
2007-09-12Remove wrong snprintf(3) truncation checks, which can't beMoritz Jodeit
triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-03-25eliminate call to abort(), which is very bad in libs. I forgat howOtto Moerbeek
this diff came into my tree, apologies for not naming the contributor. ok tedu@ deraadt@
2007-02-20Change hard coded numbers to sizeof(buf). Also change someRay Lai
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@.
2006-11-10add void set_rpc_maxgrouplist(int), to be able to make mount_nfs -gAlexander von Gernler
working again. help from millert@, ok deraadt@ pedro@
2006-10-10Teach'em about cpus in spandexMiod Vallat
2006-09-22Check return value of authunix_create_default(); from bret lambertOtto Moerbeek
with some guidance by me; ok jaredy@
2006-09-17dont put two '\n' at the end of the string returnd by clnt_sperror()Thordur I. Bjornsson
ok deraadt@
2006-04-02be more careful checking for (off_t)-1 as the failure condition fromTheo de Raadt
lseek(), not just any old -1; ok millert
2006-04-02sprinkle a socklen_tTheo de Raadt
2006-03-31sprinkle a bit of ARGSUSEDTheo de Raadt
2006-03-31internal API newgetbroadcastnets() does not need a sockTheo de Raadt
2006-01-17Include param.h for MAXHOSTNAMELENTodd C. Miller
2005-12-21Userland programs should include <errno.h> not <sys/errno.h>Todd C. Miller
OK deraadt@
2005-10-30Make xdrstdio_getlong() and xdrstdio_putlong() work on 64-bit big-endianMark Kettenis
systems. From NetBSD and FreeBSD. ok deraadt@, otto@, "looks correct to me" fgsch@
2005-10-10Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.Marc Espie
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.