summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
Commit message (Collapse)AuthorAgeFilesLines
* Make this part identical with NetBSD: Use recvlen instead of inlen.mbr2003-10-291-1/+1
| | | | | | No functionality change. Obtained from: NetBSD
* Don't compare NULL against a character.mbr2003-10-291-3/+3
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a char.mbr2003-10-291-2/+2
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a character.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* Get rid of duplicates.ru2003-09-141-1/+1
|
* mdoc(7): Use the new feature of the .In macro.ru2003-09-083-4/+4
|
* Clarify texteivind2003-08-261-1/+1
|
* Kill prototype for __msgwrite too. It is not needed anymore.mbr2003-06-151-1/+0
|
* Replace the old SCM_CREDS cred procedures. They can now bembr2003-06-151-122/+21
| | | | | | | | | replaced just fine with getpeereid() and the whole code gets a lot simpler. We don't break the ABI, since all server programms use __rpc_get_local_uid(), and we just change library internals. Reviewed by: des
* Don't return -1 and abort if msg.msg_controllen is 0. Formbr2003-05-291-2/+1
| | | | | | | | some strange reason recvmsg() never sets errno to EAGAIN on a non-blocking socket and just returns 0. Reviewed by: jhb Approved by: re
* Fix a problem introduced in the last commit. sa and cmmbr2003-05-291-2/+2
| | | | | | | | | are not initialized at this place. Move the initializing before the non-blocking check. Submitted by: Marius Strobl <marius@alchemy.franken.de> Reviewed by: jhb Approved by: re
* If AF_LOCAL is used, we need to use __msgread_withcred() instead ofmbr2003-05-281-1/+6
| | | | | | | | | just read() in non-blocking mode too. The reason is obvious. NetBSD uses a complete different way to get the credentials so this patch only applies to FreeBSD. Reviewed by: rwatson Approved by: re
* Fix a simple bug that prevents svc_tli_create to bind to the addressmbr2003-05-181-1/+1
| | | | | | | | | | specified by caller. NetBSD rev. 1.6 Reviewed by: rwatson Approved by: rwatson (re) Obtained from: NetBSD
* Back out the `hiding' of strlcpy and strlcat. Several peoplenectar2003-05-011-1/+1
| | | | vocally objected to this safety belt.
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referencenectar2003-04-291-1/+1
| | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy
* Clean up some signed/unsigned issues in the XDR code.nectar2003-03-071-1/+1
| | | | Obtained from: OpenBSD
* Eliminate 19 warnings in libc (at level WARNS=2) of thenectar2003-02-274-1/+8
| | | | `implicit declaration of function' variety.
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-163-0/+3
| | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
* The .Fn functioncharnier2003-02-061-1/+2
|
* Fix signed/unsigned comparison warnings.mbr2003-01-271-3/+3
| | | | | Reviewed by: phk Obtained from: NetBSD
* Fix signed/unsigned comparison warnings. Fix spelling error inmbr2003-01-271-4/+5
| | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD
* Make this work in the !INET6 case -- if we mismatch the AF, don't return ambr2003-01-271-9/+10
| | | | | | | | | | bogus (uninitialized) structure. Also, ignore v4 ifa's with no broadcast address (rather than core dumping). NetBSD Rev 1.8 Reviewed by: phk Obtained from: NetBSD
* Check pmap_flag before sendto.mbr2003-01-271-1/+2
| | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD
* Make sure we don't look before the beginning of the string.mbr2003-01-271-2/+2
| | | | | | | NetBSD Rev 1.5 Reviewed by: phk Obtained from: NetBSD
* Add missing __rpc_fixup_addr. This is needed to makembr2003-01-271-0/+3
| | | | | | | | | mount_nfs -T work for scoped addresses. NetBSD Rev 1.11 Reviewed by: phk Obtained from: NetBSD
* Free the correct buffer in error handling.mbr2003-01-271-1/+3
| | | | | | | | | Handle that malloc may return NULL. NetBSD Rev. 1.8 Reviewed by: phk Obtained from: NetBSD
* Fix namespace pollution introduced in previous commit.mbr2003-01-262-5/+5
| | | | Reviewed by: phk
* Fix memleak.mbr2003-01-161-2/+8
| | | | | Reviewed by: rwatson MFC after: 2 weeks
* Implement non-blocking tcp-connections.mbr2003-01-164-49/+259
| | | | | | Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-013-507/+507
| | | | especially in troff files.
* english(4) police.schweikh2002-12-271-1/+1
|
* mdoc(7) police: "The .Fa argument.".ru2002-12-1914-74/+160
|
* mdoc(7) police: "The .Fn function".ru2002-12-1815-12/+144
|
* Change the name for the local unix-socket based protocolmbr2002-12-162-5/+26
| | | | | | | | | from "unix" back to "local". Add some compat stuff so both ways work for some time. Reviewed by: phk Approved by: imp (UPDATING) Requested by: iedowse, lukem@netbsd.org
* Uniformly refer to a file system as "file system".ru2002-12-121-1/+1
| | | | Approved by: re
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-1/+1
|
* Cosmetics.ru2002-10-291-1/+1
|
* bsd.doc.mk changes:ru2002-10-296-6/+0
| | | | | | | | | | | | | | | Don't gratuitously pipe thru a cat(1) if NODOCCOMPRESS. Only create _stamp.extra when necessary. Get rid of SOELIMPP and OBJS. Use Groff version of soelim(1); we need its -I option for the following to work. Don't needlessly chdir to SRCDIR. Only a few documents need CD_HACK, and those that need it either use refer(1) or .PSPIC macro which internally uses the .psbb call.
* Use kqueue(2) instead of poll(2) to wait for replies and timeoutsiedowse2002-10-151-158/+90
| | | | | | | in the UDP RPC client code. As a side-effect, this fixes some bugs that might prevent the RPC call from ever timing out for example if the server keeps responding with the wrong xid. This could probably be simplified further by using the EVFILT_TIMER filter.
* Fix documentation of clnt_control()'s CL{GET|SET}_{VERS|XID} tofenner2002-09-161-4/+4
| | | | | reflect that they actually require a u_int32_t *, which is not necessarily the same as an unsigned long *.
* xdr.3 is added to MAN in ../xdr/Makefile.inc where it belongs, so don'tbde2002-08-191-1/+1
| | | | add it here.
* mdoc(7) police: whitespace nits.ru2002-08-091-2/+4
|
* Revert part of revision 1.10, as it broke portmap lookups for IPv4iedowse2002-07-261-9/+3
| | | | | | | | | | | | | TCP clients. The problem was that a struct netconfig returned by getnetconfigent() was being treated as a handle for __rpc_getconf(), which certainly isn't right. The tirpc-99 code uses __rpc_setconf("udp")/__rpc_getconf() to find the IPv4 udp netconfig, but our implementation of these functions seem happy to return IPv6 entries, so we can't use them. By reverting to the old version, we are hard-coding the name of the udp4 netid. Tracked down by: Bakul Shah <bakul@bitblocks.com>
* Fix "rpcinfo -m" when talking to other implementations of rpcbind.alfred2002-07-141-0/+3
| | | | Submitted by: mbr (NetBSD PR#15802)
* clnt_vc_create() has const scalar arguments that wind up being modified,alfred2002-07-142-3/+3
| | | | | | fix it (make them non-const) and update the associated documentation. Submitted by: mbr
* Cast function args to silence warning.alfred2002-07-141-1/+2
| | | | Submitted by: mbr
* Add a prototype for __rpcb_findaddr_timed to silence a warning.alfred2002-07-141-0/+4
|
* Silence several warnings due to functions that needed to take a void *alfred2002-07-143-32/+32
| | | | | having a char * as an argument instead. clnt_dg_control(), clnt_raw_control(), clnt_vc_control().
* Update manpages to reference 'timed' rpc functionsalfred2002-07-111-0/+8
|
* Add functions allowing for the user to specify a timeout for rpc functions.alfred2002-07-115-96/+670
| | | | | | Update copyrights to reflect where this code was lifted from. (tirpc '99) Submitted by: mbr
OpenPOWER on IntegriCloud