summaryrefslogtreecommitdiff
path: root/lib/libc/rpc
Commit message (Collapse)AuthorAgeFilesLines
* Don't return -1 and abort if msg.msg_controllen is 0. ForMartin Blapp2003-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 Notes: svn path=/head/; revision=115394
* Fix a problem introduced in the last commit. sa and cmMartin Blapp2003-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 Notes: svn path=/head/; revision=115385
* If AF_LOCAL is used, we need to use __msgread_withcred() instead ofMartin Blapp2003-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 Notes: svn path=/head/; revision=115364
* Fix a simple bug that prevents svc_tli_create to bind to the addressMartin Blapp2003-05-181-1/+1
| | | | | | | | | | | | | specified by caller. NetBSD rev. 1.6 Reviewed by: rwatson Approved by: rwatson (re) Obtained from: NetBSD Notes: svn path=/head/; revision=115133
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-011-1/+1
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-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 Notes: svn path=/head/; revision=114256
* Clean up some signed/unsigned issues in the XDR code.Jacques Vidrine2003-03-071-1/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=111962
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-274-1/+8
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-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 Notes: svn path=/head/; revision=111010
* The .Fn functionPhilippe Charnier2003-02-061-1/+2
| | | | Notes: svn path=/head/; revision=110440
* Fix signed/unsigned comparison warnings.Martin Blapp2003-01-271-3/+3
| | | | | | | | Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109957
* Fix signed/unsigned comparison warnings. Fix spelling error inMartin Blapp2003-01-271-4/+5
| | | | | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109956
* Make this work in the !INET6 case -- if we mismatch the AF, don't return aMartin Blapp2003-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 Notes: svn path=/head/; revision=109955
* Check pmap_flag before sendto.Martin Blapp2003-01-271-1/+2
| | | | | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109954
* Make sure we don't look before the beginning of the string.Martin Blapp2003-01-271-2/+2
| | | | | | | | | | NetBSD Rev 1.5 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109953
* Add missing __rpc_fixup_addr. This is needed to makeMartin Blapp2003-01-271-0/+3
| | | | | | | | | | | | mount_nfs -T work for scoped addresses. NetBSD Rev 1.11 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109952
* Free the correct buffer in error handling.Martin Blapp2003-01-271-1/+3
| | | | | | | | | | | | Handle that malloc may return NULL. NetBSD Rev. 1.8 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109951
* Fix namespace pollution introduced in previous commit.Martin Blapp2003-01-262-5/+5
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=109904
* Fix memleak.Martin Blapp2003-01-161-2/+8
| | | | | | | | Reviewed by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=109384
* Implement non-blocking tcp-connections.Martin Blapp2003-01-164-49/+259
| | | | | | | | | Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109359
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-013-507/+507
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-1914-74/+160
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-1815-12/+144
| | | | Notes: svn path=/head/; revision=108037
* Change the name for the local unix-socket based protocolMartin Blapp2002-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 Notes: svn path=/head/; revision=107952
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-1/+1
| | | | Notes: svn path=/head/; revision=107052
* Cosmetics.Ruslan Ermilov2002-10-291-1/+1
| | | | Notes: svn path=/head/; revision=106145
* bsd.doc.mk changes:Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=106143
* Use kqueue(2) instead of poll(2) to wait for replies and timeoutsIan Dowse2002-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. Notes: svn path=/head/; revision=105189
* Fix documentation of clnt_control()'s CL{GET|SET}_{VERS|XID} toBill Fenner2002-09-161-4/+4
| | | | | | | | reflect that they actually require a u_int32_t *, which is not necessarily the same as an unsigned long *. Notes: svn path=/head/; revision=103429
* xdr.3 is added to MAN in ../xdr/Makefile.inc where it belongs, so don'tBruce Evans2002-08-191-1/+1
| | | | | | | add it here. Notes: svn path=/head/; revision=102147
* mdoc(7) police: whitespace nits.Ruslan Ermilov2002-08-091-2/+4
| | | | Notes: svn path=/head/; revision=101577
* Revert part of revision 1.10, as it broke portmap lookups for IPv4Ian Dowse2002-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> Notes: svn path=/head/; revision=100701
* Fix "rpcinfo -m" when talking to other implementations of rpcbind.Alfred Perlstein2002-07-141-0/+3
| | | | | | | Submitted by: mbr (NetBSD PR#15802) Notes: svn path=/head/; revision=100002
* clnt_vc_create() has const scalar arguments that wind up being modified,Alfred Perlstein2002-07-142-3/+3
| | | | | | | | | fix it (make them non-const) and update the associated documentation. Submitted by: mbr Notes: svn path=/head/; revision=100001
* Cast function args to silence warning.Alfred Perlstein2002-07-141-1/+2
| | | | | | | Submitted by: mbr Notes: svn path=/head/; revision=99998
* Add a prototype for __rpcb_findaddr_timed to silence a warning.Alfred Perlstein2002-07-141-0/+4
| | | | Notes: svn path=/head/; revision=99997
* Silence several warnings due to functions that needed to take a void *Alfred Perlstein2002-07-143-32/+32
| | | | | | | | having a char * as an argument instead. clnt_dg_control(), clnt_raw_control(), clnt_vc_control(). Notes: svn path=/head/; revision=99996
* Update manpages to reference 'timed' rpc functionsAlfred Perlstein2002-07-111-0/+8
| | | | Notes: svn path=/head/; revision=99832
* Add functions allowing for the user to specify a timeout for rpc functions.Alfred Perlstein2002-07-115-96/+670
| | | | | | | | | Update copyrights to reflect where this code was lifted from. (tirpc '99) Submitted by: mbr Notes: svn path=/head/; revision=99775
* s/demon/daemon/Dima Dorfman2002-05-121-1/+1
| | | | Notes: svn path=/head/; revision=96432
* Spell void * as void * rather than caddr_t. This is complicated by theDag-Erling Smørgrav2002-04-2811-85/+85
| | | | | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95658
* Fix the style of the SCM ID's.David E. O'Brien2002-03-2254-117/+138
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92990
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-1/+2
| | | | | | | I believe have made all of libc .h's as consistent as possible. Notes: svn path=/head/; revision=92989
* Constify the first arg to callrpc(3).Alfred Perlstein2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92968
* Remove multi-line __P() usage.David E. O'Brien2002-03-228-22/+18
| | | | Notes: svn path=/head/; revision=92941
* Remove __P() usage.David E. O'Brien2002-03-2126-112/+112
| | | | Notes: svn path=/head/; revision=92905
* Remove 'register' keyword.David E. O'Brien2002-03-217-35/+35
| | | | Notes: svn path=/head/; revision=92889
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-185-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm Notes: svn path=/head/; revision=90868