summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* internal API newgetbroadcastnets() does not need a sockderaadt2006-03-311-5/+3
|
* Include param.h for MAXHOSTNAMELENmillert2006-01-171-4/+5
|
* Userland programs should include <errno.h> not <sys/errno.h>millert2005-12-214-8/+8
| | | | OK deraadt@
* Make xdrstdio_getlong() and xdrstdio_putlong() work on 64-bit big-endiankettenis2005-10-301-7/+6
| | | | | systems. From NetBSD and FreeBSD. ok deraadt@, otto@, "looks correct to me" fgsch@
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-101-2/+1
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* some fixes to the .Nm list:jmc2005-10-021-2/+4
| | | | | - remove duplicate entry for clntudp_create - add missing entries for svc_{destroy,fds,run}
* Use realloc() instead of malloc().brad2005-09-101-5/+6
| | | | | | From: Alexander dot Farber at gmail dot com ok deraadt@
* zap remaining rcsid.espie2005-08-0837-149/+37
| | | | | | Kill old files that are no longer compiled. okay theo
* impelmentation -> implementationespie2005-08-053-6/+6
| | | | yes, new typo for an old friend.
* kernal->kernel;jmc2005-08-012-4/+4
| | | | | from netbsd pr #30872 (anonymous post); ok deraadt@ krw@
* - sync prototypes and header excerpts to realityjaredy2005-07-221-2/+2
| | | | | | | - punctuation, rewording, typos/spelling, macro, and layout fixes - add crossrefs where relevant ok jmc
* Do not define 'pl' globally. From Bjorn Sandell" <biorn at dce dot chalmersotto2005-04-251-3/+3
| | | | dot se>. ok deraadt@
* more snprintf return value sloppiness; ok ottoderaadt2005-04-111-3/+7
|
* ansify. ok deraadt@ jaredy@otto2005-04-0138-692/+326
|
* - correct include file (from david leonard, pr 4147)jmc2005-03-151-4/+4
| | | | | | | - r_number is type int, not long - lessen display indent to avoid line split ok deraadt@ millert@
* alyte spelling-in-comment fixesjolan2005-02-171-2/+2
|
* Bit of KNF - replace (<type> *)0 and (<type> *)NULL with NULL. Pointedkrw2005-01-0812-49/+48
| | | | | | out by mickey@, seconded by millert@. ok deraadt@.
* Ensure that 'addrs' is always initialized before use (from Yamamotokrw2004-12-171-11/+8
| | | | | | | | | | | Takashi). If no broadcast networks are found then just return RPC_CANTSEND. Eliminate perror() calls (suggested by Yamamoto Takashi and seconded by deraadt@, otto@ and millert@) and just let return values speak. ok millert@
* De-reference pointer *after* checking if it is NULL.krw2004-12-161-5/+9
| | | | ok millert@.
* spacingderaadt2004-09-141-3/+1
|