summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* If locale not available, fallback to strcasecmp, not to strcmpache1995-04-161-2/+2
|
* Removed the y.tab.h file from the sources. It is automatically generatedats1995-04-151-0/+2
| | | | | | from yacc. Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the makefile, they are all generated and need to be removed on a clean.
* Head off potential core dump in _havemaster() (we don't need to free anywpaul1995-04-151-4/+1
| | | | memory here: the underlying YP routines handle this one for us).
* Better conformance to SunOS behavior: if we can't match a user to onewpaul1995-04-141-2/+8
| | | | | | | | of the plus or minus lists at all, reject him. This lets you create a +@netgroup list of users that you want to admit and reject everybody else. If you end your +@netgroup list with the wildcard line (+:::::::::) then you'll have a +@netgroup list that remaps the specified people but leaves people not in any netgroup unaffected.
* Add err_set_file() and err_set_exit() functions to make it possible forwollman1995-04-132-18/+64
| | | | | programs which use err(3) to work nicely in a wider range of environments (e.g., dialog).
* Add an ethers(3) man page.wpaul1995-04-122-3/+190
|
* The implementation of rexec() missed the function ruserpass(), so thejoerg1995-04-112-3/+252
| | | | | | | | | | | | | | | link stage fell over for any program that attempted to use rexec(). Ruserpass() remains undocumented; i could not find any documentation for it on other systems. Also added a BUGS section to the man page, stating that this function constitutes a potential security hole (as well as the underlying "exec" service). Submitted by: rgrimes Originally submitted by: agc@uts.amdahl.com (Alistair G. Crooks) Obtained from: netbsd-bugs@NetBSD.ORG
* My libcompat cleanup.joerg1995-04-1014-4/+378
| | | | | | | | | | | | | | | o add missing man pages o make all man pages clearly refer to the libcompat thingie o add the information to the vtimes(3) and vlimit(3) man pages that nobody has reimplemented the functions by now o add the missing getpw.c o add code and man pages for cftime(3) and ascftime(3) -- i found them somewhere in old unfinished work
* More of the same: we also need to handle multiple domains properlywpaul1995-04-091-6/+33
| | | | even if /var/yp/binding/DOMAIN.VERS doesn't exist yet.
* Fix behavior of YP library routines in environments with multiple domains,wpaul1995-04-091-6/+24
| | | | | | | | | | | | | | | | | | | | | | | where one or more of the non-default domains are not yet bound. If we make a YP request for a domain other than the default domain, and there is no binding for the new domain yet, _yp_dobind() sees that the /var/yp/binding/DOMAIN.VERS file for the unbound domain is not locked (by ypbind) and from this it concludes that the NIS system is dead, so it gives up. This behavior has been changed: before giving up in this case, we now make a second check to see if the binding file for the *default* domain is also not locked. Only if the default domain binding file is also unlocked to we now assume that ypbind has bought the farm and bail out. (Note: this assumes that the user hasn't changed the default domain while ypbind is running.) With this change, _do_ypbind() is allowed to proceed into the next section of code wherein it prods ypbind into establishing a binding for the new domain. This first call times out after ten seconds, after which it should retry and succeed. From then on, the binding for the second domain should be handled normally.
* Add missing header referenceache1995-04-091-0/+1
|
* Submitted by: J.T. Conklin <jtc@wimsey.com>bde1995-04-076-10/+56
| | | | | | | Second part of update to fdlibm 5.2: speed up argument reduction for trig functions in the case pi/4 < |x| < 3pi/4. Remove unused static constants ("one").
* Submitted by: J.T. Conklin <jtc@wimsey.com>bde1995-04-072-4/+4
| | | | | First part of update to fdlibm 5.2: fix jn(n, x) and jnf(n, x). jn(-1, x) was too large by a factor of 3.
* Reviewed by: ache and wollman (long ago)bde1995-04-072-52/+11
| | | | | | | | | | | | | | | | | | isctype.c: o The tolower() and toupper() functions duplicated too much code and were out of date (surprise). This didn't matter because it was difficult to call them. o Change formatting to be more like that in <ctype.h> (with extra parentheses as in the macros). Perhaps this file should be machine generated or everything should be handled like __tolower() so that no code is repeated. nomacros.c: o Instead of looking at _USE_CTYPE_INLINE_ to see what <ctype.h> has done, set _EXTERNALIZE_CTYPE_INLINES_ to tell <ctype.h> what to do, so that we don't have anything left to do. Note that code is now generated even if inlines are used by default. This allows users to switch to non-inline versions.
* Obtained from: 1.1.5 (originally by jtc)bde1995-04-061-1/+2
| | | | | | | Fix printf("%g", 0.0) - print "0", not "0.". The previous fixes in this area had one non-cosmetic (non-)change that caused this bug. Bruce
* The man page setmode(3) declares `void setmode' when it should bejoerg1995-04-051-1/+1
| | | | | | declared `void *setmode'. Submitted by: kargl@troutmask.apl.washington.edu
* Add "before inclusion of any header which ... "ache1995-04-041-1/+1
| | | | Suggested by: bde
* 'Fix' for esoteric misfeature discovered while searching for another bug:wpaul1995-04-041-1/+16
| | | | | | | | | | | | | | | | | | | | | | select() returns EINVAL if you try to feed it a value of FD_SETSIZE greater that 256. You can apparently adjust this by specifying a larger value of FD_SETSIZE when configuring your kernel. However, if you set the maximum number of open file descriptors per process to some value greater than the FD_SETSIZE value that select() expects, many selects() within the RPC library code will be botched because _rpc_dtablesize() will return invalid numbers. This is to say that it will return the upper descriptor table size limit which can be much higher than 256. Unless select() is prepared to expect this 'unusually' high value, it will fail. (A good example of this can be seen with NIS enabled: if you type 'unlimit' at the shell prompt and then run any command that does NIS calls, you'll be bombarded with errors from clnttcp_create().) A temporary fix for this is to clamp the value returned by _rpc_dtablesize() at FD_SETSIZE (as defined in <sys/types.h> (256)). I suppose the Right Thing would be to provide some mechanism for select() to dynamically adjust itself to handle FD_SETSIZE values larger than 256, but it's a bit late in the game for that. Hopefully 256 file descriptors will be enough to keep RPC happy for now.
* getpwent.c: fix problem with emacs dumping core when NIS is enabled. Alsowpaul1995-04-043-21/+34
| | | | | | | | add #includes for YP headers when compiling with -DYP to avoid some implicit declarations. getgrent.c & getnetgrent.c: add some #includes to avoid implicit declarations of YP functions.
* Properly describe how to expand default limit of handled descriptorsache1995-04-041-1/+6
|
* Submitted by: Sebastian Strollowwpaul1995-04-021-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Casper H. Dik (by vay of Usenet) Small patch to help improve NIS rebinding times (among other things): >From: casper@fwi.uva.nl (Casper H.S. Dik) >Newsgroups: comp.sys.sun.misc,comp.sys.sun.admin >Subject: FIX for slow rebinding of NIS. >Summary: a small change in libc makes life with NIS a lot easier. >Message-ID: <1992Jan17.173905.11727@fwi.uva.nl> >Date: 17 Jan 92 17:39:05 GMT >Sender: news@fwi.uva.nl >Organization: FWI, University of Amsterdam >Lines: 138 >Nntp-Posting-Host: halo.fwi.uva.nl Have you been plagued by long waits when your NIS server is rebooted? READ ON! Sun has a patch, but the README says: ********************* WARNING ****************************** This is a new version of ypbind that never uses the NIS binding file to cache the servers binding. This will have the effect of fixing the current symptom. However, it might degrade the overall performance of the system when the server is available. This is most likely to happen on an overloaded server, which will cause the network to produce a broadcast storm. ************************************************************* Therefor, I have produced another fix. o What goes wrong. When the NIS server is rebooted, ypserv will obtain different ports to listen for RPC requests. All clients will continue to use the old binding they obtained earlier. The NIS server will send ICMP dst unreachable messages for the RPC requests that arrive at the old port. These ICMPs are dropped on the floor and the client code will continue sending the requests until the timer has expired. The small fix at the end of this message will pick up these ICMP messages and deliver them to the RPC layer. o Before and after. I've tested this on some machines and this is the result: (kill and restart ypserv on the server) original% time ypmatch user passwd user:.... 0.040u 0.090s 2:35.64 0.0% 0+126k 0+0io 0pf+0w (155 seconds elapsed time) fixedhost% time ypmatch user passwd user:.... 0.050u 0.050s 0:10.20 0.9% 0+136k 0+0io 0pf+0w (10 seconds elapsed time) Rebinding is almost instantaneous. o Other benefits. RPC calls that use UDP as transport will no longer time out but will abort much sooner. (E.g., the remote host is unreachable or 111/udp is filtered by an intermediate router)
* Fix xdr_ypmap_parms() so that it agrees with xdr_domainname(), xdr_peername()wpaul1995-04-021-4/+4
| | | | and friends.
* Fix manpage ruleache1995-04-021-1/+1
|
* Add ether_addr functions to libc. This seems to be the logical placewpaul1995-04-022-1/+235
| | | | to put them. A man page is in the works.
* Add some missing xdr functions needed for server-side implementations.wpaul1995-04-021-1/+116
| | | | | (This is to help me reduce yppush a bit: it has its own copy of yp_xdr.c right now, but I can get rid of it now that this stuff is here.)
* Add the nls code for XPG3-style message catalogs to libc.jkh1995-03-309-0/+854
| | | | Obtained from: NetBSD
* Add nls include to Makefile.jkh1995-03-301-0/+1
|
* Install the dlopen.3 manpage.phk1995-03-301-2/+2
|
* Clear IGNPAR in cfmakeraw() instead of set it.ache1995-03-291-2/+2
|
* Use __tty_fileno instead of STDERR_FILENO when detecting window sizedfr1995-03-281-1/+1
| | | | | changes Reviewed by: Bob Willcox <bob@obiwan.pmr.com>
* Tweak a few things just to show how form traversal might work fully.jkh1995-03-282-8/+8
| | | | | Fix some spelling errors in the example.c file and make error handling a little more explanatory.
* Include <strhash.h> instead now.jkh1995-03-281-1/+1
|
* Fix a missing _hash() to prevent namespace pollution with the db/hash routines.jkh1995-03-281-5/+7
| | | | | | | Grrr. If the dbhash routines weren't grossly overengineered I wouldn't even need to do this! :-( Also now export the hash_stats routine. Manpage coming RSN - I promise.
* Use yp_order() instead of yp_first() in _havemaster() to check for thewpaul1995-03-271-7/+7
| | | | | presence of the master.passwd.byname map, and remember to free the returned order value before exiting.
* Bump the shared library minor # because of the additions of thenate1995-03-271-0/+2
| | | | strhash() functions.
* Remove duplicates: parm rindex & scroll rightache1995-03-271-1/+1
|
* Fix bug using CSR for partial scrollingache1995-03-271-4/+4
|
* Hash 8bit chars without sign extensionache1995-03-261-3/+8
|
* Update info about LC_COLLATE implementationache1995-03-261-3/+1
|
* change hash.h to strhash.h to match new convention.jkh1995-03-264-5/+4
| | | | Manpage for strhash functions to follow tomorrow.
* Add the strhash family of routines. They provide a number of featuresjkh1995-03-262-2/+416
| | | | | that the db/hash functions don't, and they're much simpler to use for low-overhead string hashing.
* Use a hash table to hold all the bindings info rather than a linked list.paul1995-03-269-146/+321
| | | | | | | | | | Forms now have their own local bindings table so that anything declared within a form is local to that form. This means you can have fields of the same name in different forms. Added inlined attribute setting for strings e.g. "This is \bold bold" Added entry and exit functions for fields.
* Continue of previous fix: eliminate backslashes too.ache1995-03-261-1/+1
|
* Compact entry returned to user:ache1995-03-261-3/+49
| | | | | | | | | 1) Eliminate spaces and double ':'. 2) Remove duplicated capabilities from tc= expansion. It is needed to not overflow historycal 1024 limit. Add range check and return -1 if entry is too big instead of corrupting user memory.
* Updated manual page to indicate flags argument; added return value anddg1995-03-251-6/+24
| | | | errors section.
* scandir(3) didn't transfer d_type, and d_ino is called d_fileno now.phk1995-03-251-1/+2
|
* Add calls to endgrent() and endnetgrent() to the end of _createcaches().wpaul1995-03-251-0/+2
|
* Add more sanity checks. *Lots* of sanity checks. Huge tracts of sanity checks.wpaul1995-03-241-8/+40
| | | | | | | | | | | Make sure all arguments to the yp_*() functions are valid before sending them off to the server. This is somewhat distressing: once again my FreeBSD box brought down my entire network because of NIS bogosities. I *think* the poor argument checking in this module is the cause, but I still haven't been able to reproduce the exact series of events that lead to the ypserv crashes. For now I've resorted to sticking my FreeBSD box in a seprate domain. Hopefully a weekend of heavy testing will uncover the problem.
* Make sanity checks saner: don't let setnetgrent() or innetgr() swallowwpaul1995-03-241-2/+8
| | | | any bogus arguments.
* Get rid of strtok(), it is depricated in libsache1995-03-241-6/+6
|
OpenPOWER on IntegriCloud