summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc
Commit message (Collapse)AuthorAgeFilesLines
* Make selection logic more strict. Only select AF_INET loopback interfaceswpaul1997-09-211-3/+6
| | | | | that are up on second (loopback only) pass, and only select non-loopback AF_INET interfaces that are up on first pass.
* Add a stub version of getpublickey(), in order to eliminate anjdp1997-08-282-1/+47
| | | | | | | | | | undefined symbol referenced from libc. Without the stub, it is impossible to execute any program using the shared library if LD_BIND_NOW=1 is in the environment. The stub always returns failure, but it can be overridden outside the library when necessary. I don't know whether this is the "correct" fix, but it is intolerable to have any undefined symbols referenced from libc.
* Add to CLEANFILES instead of setting it absolutely. Cleaning of *.S andbde1997-07-211-1/+1
| | | | tags was broken.
* Show the real revision date and not the date that thissteve1997-06-234-4/+4
| | | | manpage is being viewed.
* Hm... wonder how long this has been here.wpaul1997-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic in get_myaddress() is broken: it always returns the loopback address due to the following rule: if ((ifreq.ifr_flags & IFF_UP) && ifr->ifr_addr.sa_family == AF_INET && (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) { The idea is that we want to select the interface address only if it's up and it's in the AF_INET family. If it turns uout we don't have such an interface available, we make a second pass through the loop, this time settling for the loopback interface. But the logic inadvertently locks out all cases when loopback == 0, so nothing is ever selected until the second pass (when loopback == 1). This is changed to: if (((ifreq.ifr_flags & IFF_UP) && ifr->ifr_addr.sa_family == AF_INET) || (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) { which I think does the right thing. This is yet another bogon I discovered during NIS+ testing; I need get_myaddress() to work correctly so that the callback code in the client library will work.
* Remember to zero sockaddr_in struct before calling uaddr_to_sockaddr() towpaul1997-06-151-0/+1
| | | | | populate it. Not doing this can result in a garbage sockaddr_in, which will cause connect() to block inside clnttcp_create().
* getnetid() crashes if no /etc/netid file is present (it tries to fclose()wpaul1997-06-121-1/+2
| | | | a FILE * handle that wasn't really open).
* Fix other small things that got lost in the merge:wpaul1997-05-282-3/+3
| | | | | | | | | | - bde's change to includes section in getrpcent.3 - Lost comment in svc_run.c (the code here was actually the same since I had fixed the 'fds + 1' bug in my stuff at home before mailing Peter about it, but I didn't notce that he'd made a change to the comment right above the changed line). Also pointed out by the ever vigilant: bde
* Resolve conflicts.wpaul1997-05-2833-84/+425
| | | | | | | | | | | This concludes tonight's entertainment. Once I'm sure I haven't destroyed the world with all these changes, I'll import the utilities. Everything should continue to work as before. If it doesn't let me know. Special thanks to Mark Murray for running a test 'make world' for me to shake out the bugs, which, hopefully, I have fixed. (And there was much rejoicing.)
* This commit was generated by cvs2svn to compensate for changes in r26219,wpaul1997-05-2820-0/+4989
| | | | which included commits to RCS files with non-trunk default branches.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+6
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Fixed wrong #include in synopsis.bde1997-04-131-1/+1
|
* Revert $FreeBSD$ to $Id$peter1997-02-2231-31/+31
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1431-31/+31
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Correct logic braino when attempting to exclude loopback addresses onpeter1997-01-091-2/+2
| | | | | | the first pass. Submitted by: Greg Lehey <grog@lemis.de>
* Two minor changes to try and make it more robust in the face of manypeter1997-01-091-2/+4
| | | | | | | | | interfaces, until it's redone to use sysctl(). - bump the SIOCGIFCONF buffer size from 1K to 8K - if we didn't find a suitable address, return a failure. Previously if it didn't find anything it left the return address uninitialised. Perhaps it would be better to return AF_INET/111/127.0.0.1 rather than failing?
* Eliminate unnecessary warning introduced by a missing forward declaration.jkh1997-01-011-1/+3
|
* prototype of shared function now in include filepeter1996-12-311-3/+1
|
* use svc_maxfd + 1 in the select() call.peter1996-12-311-3/+3
| | | | | | | | (There may be a behavior difference between the 2.1 and 2.2/3.0 kernels in this area, it seemed to work for me but I have a horribly hacked select() that might have a bug in the handling of this) Submitted by: wpaul
* Oops! Bad Idea! (TM)peter1996-12-301-3/+13
| | | | | | | | Restore the clamp on the return value from rpc_dtablesize().. Some programs (eg: ypserv) use this as an indication of how large svc_fdset is in their hand-rolled svc_run() loops. The svc_fdset table is maintained by the rpc library explicitly for compatability with such programs. (It uses a different variable-sized bitmap itself internally)
* - make wire protocol 64 bit type safepeter1996-12-301-11/+9
| | | | | | | | - extern prototypes now in include file - fix local prototypes - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototypes now in include filepeter1996-12-301-26/+48
| | | | | | | | - overhaul for unlimited fd's - OpenBSD's ftp port bounce attack fix - fix timeouts Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - canonical function declarationpeter1996-12-301-7/+6
| | | | | | | - prototypes now in common include file - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - overhaul for unlimited file descriptorspeter1996-12-301-15/+24
| | | | | | | | | | - prototypes now in include files Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Note: potential bug here, It looks like there could be a null pointer dereference depending on what has already been called to initialise some shared data.
* - make wire protocol 64 bit type safepeter1996-12-301-4/+4
| | | | | | - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - major overhaul to make this deal with unlimited fd's.peter1996-12-301-56/+68
| | | | | | | | | | | | - kill non-FD_SETSIZE code Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. Note, there was a nasty bug with our old code here. It would trash the stack if a fd > 31 was passed in. It was using a "long" as though it was an "fd_set", ie: it was assuming that a long was 256 bits wide. :-( This has been lurking here for a while, since the FD_SETSIZE #ifdef's were first implemented.
* - make wire protocol 64 bit type safepeter1996-12-301-10/+10
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* Remove our code that clamped the max select() fd number to FD_SETSIZE (256)peter1996-12-301-16/+3
| | | | This function is now unused.
* - kill non-FD_SETSIZE codepeter1996-12-301-5/+2
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - 64 bit type safe on-the-wire protocolpeter1996-12-301-17/+15
| | | | | | | - use standard functions - prototype now in include file Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype now in include file, plus no longer needed anywaypeter1996-12-301-37/+44
| | | | | | | | | | | - fix timeout code - better sequence number generation (for long running daemons) - dont close an unopen socket - use standard functions - 64 bit type safe for wire protocols - unlimited file descriptors Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - dont close an unopen socketpeter1996-12-301-2/+3
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - Don't close an unopened socketpeter1996-12-301-2/+3
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - don't close unopen socketpeter1996-12-301-7/+12
| | | | | | | | - ensure we're not spoofed/confused while trying to talk to the portmapper - handle new get_myaddress failure cases - prototype now in include file Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - missing prototype from include filepeter1996-12-301-5/+5
| | | | | | | - canconical function declaration (ctags safe) - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - OpenBSD's strncpy fixes to ensure NULL terminationpeter1996-12-301-8/+11
| | | | | | - missed endrpcent() in some cases. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototypes now in include filepeter1996-12-301-49/+64
| | | | | | | | | | | - fix timeout code - better "random" initial transaction id for long running daemons - unlimited number of file descriptors to select(). - 64 bit type safe wire protocol Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. - typo (spelling police :-) - dont die on select() that returns time remaining (on my systems)
* - prototypes now in standard include filepeter1996-12-301-23/+43
| | | | | | | | | | - improve initial "random" sequence number, to make it harder to guess in long running daemons. - fix timeout code. - unlimited number of fd's in select. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code. - Protect against select() that returns time remaining (on my systems).
* - update return type of an "internal but documented" functionpeter1996-12-301-2/+10
| | | | | | - warn about FD_SETSIZE in certain internal functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - tags in correct orderpeter1996-12-301-4/+6
| | | | | | | - list missing functions - list missing args Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - canonical function declarationpeter1996-12-301-9/+21
| | | | | | | | - don't exit. It's bad form for libc to exit() or abort() instead of returning an error. - only use loopback addresses after checking the real interfaces. Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - don't close an unopen socketpeter1996-12-301-5/+8
| | | | | | | | - canonical function declaration - use constants from includes, not magic numbers - use standard functions Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype moved to include filepeter1996-12-301-3/+1
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - buffer overflow fix, from OpenBSDpeter1996-12-301-110/+58
| | | | | | - optimise the error number -> string mapping code Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - use standard functionpeter1996-12-301-3/+7
| | | | | | - timeout code repaired elsewhere, remove unneeded workaround Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype now in common include filepeter1996-12-301-4/+2
| | | | | | - standard function name Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - prototype now in include file, not herepeter1996-12-301-3/+1
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* - Man page fix, updates.peter1996-12-302-8/+11
| | | | | | - minor cosmetic tweaks Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* Add manpage links for rpc functionspeter1996-12-301-0/+68
| | | | Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
* Convert to mdoc format.mpp1996-12-214-178/+122
|
OpenPOWER on IntegriCloud