summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Preallocate a small structure, so we can sbrk(2) further back.phk1995-12-181-2/+8
| | | | | Reviewed by: phk Submitted by: Kaleb Keithly <kaleb@x.org>
* Cosmetic cleanup and documentation of kvm_argv.. Hopefully the flow ofpeter1995-12-161-6/+65
| | | | the routine can be much more easily understood now... :-)
* Clean up a few things left dangling after the last commit. The newwpaul1995-12-151-22/+10
| | | | | | XDR routines auto-generated by rpcgen don't quite match the format of the original ones even though tey have the same names (that was one of the things wrong with the old XDR routines).
* Now that rpcgen is squared away, arrange to have all the NIS XDR routineswpaul1995-12-143-448/+93
| | | | | | | | | | | | | | | rpcgen-erated on the fly (just like librpcsvc). Makefile: Add rule for generating yp_xdr.c and yp.h. xdryp.c: gut everything except the special ypresp_all XDR function needed to to handle yp_all() (this one can't be created on the fly), and xdr_datum(), which isn't used internally by libc, but which as documented as being there in yp_prot.h, so what the hell. We now get everything else from yp_xdr.c. yplib.c: change a few structure member names to match those found in yp.h instead of those declared in yp_prot.h.
* Change phkmalloc so that the page directory is now floating and allocatedpeter1995-12-111-29/+47
| | | | | | | | | | | | | | | | | | | | | via mmap() up around the shared library area. Previously the directory was allocated from space from it's own memory pool. Because of the way it was being extended on processes with large malloced data segments (ie: inn) once the page directory was extended for some reason, it was not possible to lower the heap size any more to return pages to the OS. (If my understanding is correct, page directory expansion occurs at 4MB, 12MB, 20MB, 28MB, etc.) I was seeing INN allocate a large amount of short term memory, pushing it over the 28MB mark, and once it's transient demands hit 28MB, it never freed it's pages and swap space again.) I've been running this in my libc for about a month... Also, seperate MALLOC_STATS from EXTRA_SANITY.. I found it useful to call malloc_dump() from within INN from a ctlinnd command to see where the hell all the memory was going.. :-) I've left MALLOC_STATS enabled, as it has no run-time or data storage cost. Reviewed by: phk
* Add a structure definition to the MD* Contexts, so that cvs can usepeter1995-12-113-3/+3
| | | | the standard libmd version of MD5 instead of it's own seperate copy..
* Fix minor annoyance: have clnt_perror(), clnt_perrno() andwpaul1995-12-101-4/+4
| | | | | clnt_pcreateerror() emit strings with newlines appended like other platforms do.
* phkmalloc strikes again! :-) Another use of un-cleared returns frompeter1995-12-091-0/+3
| | | | malloc squashed...
* Updates to read the extra indirection in ps_strings. Note that anypeter1995-12-092-35/+53
| | | | | | | static executables that depend on this will need to be relinked (ie: do this before 'ps'), but the dynamic linked stuff should be OK (ie: 'w') Obtained from: NetBSD (not much point reinventing the wheel.. :-)
* Include sys/time.h, not sys/user.h.dg1995-12-081-1/+1
| | | | Submitted by: "Marc G. Fournier" <scrappy@hub.org>
* Fixed type mismatches.bde1995-12-074-12/+12
|
* Update the -current sources from the 2.1 branch.peter1995-12-075-234/+311
| | | | Approved (in spirit) by: jkh
* Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.wpaul1995-12-021-1/+2
|
* Fix PR#858, /bin/sh corruption caused by non-zeroed malloc() in libeditpeter1995-12-021-0/+1
| | | | | | | in particular circumstances. (malloc() does not zero memory, but usually does by coincidenct that sbrk() returns zeroed pages) Submitted-by: John Hood <cgull@smoke.marlboro.vt.us>
* Restored [u]cmpdi2.c which are needed for switching on [unsigned] longbde1995-12-011-1/+1
| | | | long values.
* Add cfree.3ache1995-11-291-1/+1
|
* Removed cmpdi2.c from ${SRCS}. I think it is no more needed than ucmpdi2.bde1995-11-291-2/+1
| | | | Restored order in ${SRCS}.
* Add a short man page for cfree(3), in order to hint people about its life in ↵joerg1995-11-241-0/+49
| | | | libcompat.
* Removed reference to missing libmp in a comment. We have GNU MP now.markm1995-11-121-1/+1
|
* - Make _do_ypbind() check for /var/run/ypbind.lock and attempt to flock()wpaul1995-11-051-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | it before before trying to establish a binding. If /var/run/ypbind.lock doesn't exist, or if it exists and isn't locked, then ypbind isn't running, which means NIS is either turned off or hosed. - Have _yp_check() call yp_unbind() after it sucessfully calls yp_bind() to make sure it frees resources correctly. (I don't think there's really a memory leak here, but it seems somehow wrong to call yp_bind() without making a corresponding call to yp_unbind() afterwards.) This makes the NIS code behave a little better in cases where libc makes calls to NIS, but it isn't running correctly (i.e. there's no ypbind). This cleans up some strange libc behavior that manifests itself if you have the system domain name set, but aren't actually running NIS. In this event, the getrpcent(3) code could try to call into NIS and cause several inexplicable "clnttcp_create error: RPC program not registered" messages to appear. This happens because _yp_check() checks if the system domain name is set and, if it is, proceeds to call yp_bind() to attempt to establish a binding. Since there is no binding file (remember: ypbind isn't running, so /var/yp/binding will be empty), _yp_dobind() will attempt to contact ypbind to prod it into binding the domain. And because ypbind isn't running, the code generates the 'clnttcp_create' error. Ultimately the _yp_check() fails and the getrpcent(3) code rolls over to the /etc/rpc file, but the error messages are annoying, and the code should be smart enough to forgo the binding attempt when NIS is turned off.
* Add NIS support to getservent(3) functions (getservbyport() and getservbyname()wpaul1995-11-041-0/+68
| | | | | | | | both call getservent() to do most of the work, so we only need to modify this file to take care of everybody). Note that there is only one NIS services map (services.byname) even though there are getservbyname() and getservbyport() library functions.
* Document recent changes in socket buffers and listen(2).wollman1995-11-032-12/+38
|
* Add more stuff moved out from XPG3ache1995-11-031-1/+2
|
* Move more stuff out to XPG4ache1995-11-034-0/+32
| | | | Handle negative chars inside runetype/tolower/toupper
* Remove my locale hack. Sigh.ache1995-11-022-14/+3
|
* Clean up and make code (more) readable.phk1995-10-292-111/+96
|
* Add #include <sys/user.h>.phk1995-10-281-0/+1
|
* misc typosadam1995-10-273-7/+7
|
* Remove unneded ctype.hache1995-10-261-1/+0
|
* Reviewed by: julian and jhay@mikom.csir.co.zajulian1995-10-265-1/+462
| | | | | | | | | | | | | | | | | | | | | Submitted by: Mike Mitchell, supervisor@alb.asctmd.com This is a bulk mport of Mike's IPX/SPX protocol stacks and all the related gunf that goes with it.. it is not guaranteed to work 100% correctly at this time but as we had several people trying to work on it I figured it would be better to get it checked in so they could all get teh same thing to work on.. Mikes been using it for a year or so but on 2.0 more changes and stuff will be merged in from other developers now that this is in. Mike Mitchell, Network Engineer AMTECH Systems Corporation, Technology and Manufacturing 8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000 supervisor@alb.asctmd.com
* Fix it for chars with 8bit setache1995-10-231-1/+1
|
* Treat empty encoding as "C" encodingache1995-10-231-1/+1
|
* Optimize PathLocale handling.ache1995-10-231-7/+15
| | | | | Handle C/POSIX/"" properly. Don't reset collate to C when it is unnecessary
* Don't reset LC_TIME to C when it isn't neccessaryache1995-10-231-13/+17
|
* Use fake (empty) startup_setlocale for XPG4ache1995-10-231-3/+3
|
* Reduce static binaries bloat by splitting out normally unusedache1995-10-233-8/+45
| | | | setinvalidrune()
* libxpg4 addedache1995-10-231-1/+1
|
* This commit was generated by cvs2svn to compensate for changes in r11696,ache1995-10-231-0/+8
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * XPG4 hookache1995-10-231-0/+8
|
* Migrate from XPG4 to XPG3 (libxpg4 will be added soon)ache1995-10-239-56/+444
| | | | | Remove big part of my startup_setlocale hack. Add missing manpage links.
* Undo the the changes in the previous revision (MANSRC now works right again).bde1995-10-221-7/+8
| | | | Use ${INSTALL} instead of install.
* Update to 4.4lite2 (clean up includes; initialize the name of the masterbde1995-10-221-9/+10
| | | | | | pty correctly (it was broken for calls to openpty() after the first successful one)). Obtained from: 4.4lite2
* Removed unnecessary include of <sys/tty.h>. tty.h apparently once hadbde1995-10-221-1/+0
| | | | some user interfaces in it. It no longer does.
* Update to 4.4lite2 (initialize arrow key data completely).bde1995-10-221-1/+5
|
* Fixed lint from cc -Wall.bde1995-10-221-5/+6
| | | | Cleaned up includes.
* Fixed dependencies for scrt0.o.bde1995-10-221-7/+14
| | | | | | Build a static gcrt0.o (sgcrt0.o) too. Currently only the dynamic gcrt0.o is used, although -pg forces -static. Sorted the .o targets.
* Fixed use of too many args for `.Em'.bde1995-10-221-10/+12
| | | | | | | | Fixed description of domain of y*(). Fixed description of error domain. (This description is still half redundant and half wrong, as in many other math man pages. fdlibm doesn't support the VAX or Tahoe.) Fixed capitalization of `Bessel'.
* minor cleanup, #includes.phk1995-10-225-6/+11
|
* Mino cleanup, #includes & unused vars.phk1995-10-222-2/+6
|
* Minor cleanup, #include's and unused vars.phk1995-10-223-1/+5
| | | | Added compile-time warning to an old funky function.
OpenPOWER on IntegriCloud