aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* - FreeBSD'ized the ptrace manpage by removing non-FreeBSD specific portions.Nate Williams1996-01-202-214/+16
| | | | | | | - install ptrace.2 Notes: svn path=/head/; revision=13522
* This commit was generated by cvs2svn to compensate for changes in r13519,Nate Williams1996-01-201-0/+395
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13520
| * ptrace(2) manpageNate Williams1996-01-201-0/+395
| | | | Notes: svn path=/vendor/NetBSD/dist/; revision=13519
* Fix a variety of minor typos and cross references in a bunch ofMike Pritchard1996-01-201-1/+1
| | | | | | | | | | | man pages. Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp> Giles Lean <giles@nemeton.com.au> <soda@sra.co.jp> Notes: svn path=/head/; revision=13511
* Return pointer to new hash node when search inserts it (e.g. thereJordan K. Hubbard1996-01-131-1/+5
| | | | | | | was some datum given). Notes: svn path=/head/; revision=13413
* The last of the bind-4.9.3-REL resolver merges.Peter Wemm1996-01-138-249/+280
| | | | Notes: svn path=/head/; revision=13408
* Correct the strspn() man page so that it no longer referencesMike Pritchard1996-01-101-1/+1
| | | | | | | | | itself as strcspn(). Obtained from: NetBSD-bugs mailing list (PR# 1905) Notes: svn path=/head/; revision=13372
* Merge the 4.9.3-rel code into the res_* parts. The gethostXXXbyYYYPeter Wemm1996-01-077-183/+161
| | | | | | | parts are not quite so simple.. Notes: svn path=/head/; revision=13308
* This commit was generated by cvs2svn to compensate for changes in r13304,Peter Wemm1996-01-071-0/+114
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13305
| * Part of bind-4.9.3-rel.. This is for my convenience and reference.Peter Wemm1996-01-077-0/+3409
| | | | | | | This import to the vendor branch changes no files... Notes: svn path=/vendor/bind4/dist/; revision=13304
* Fix a fencepost error.Poul-Henning Kamp1996-01-051-4/+4
| | | | | | | Found by: Lars Fredriksen <fredriks@mcs.com> Notes: svn path=/head/; revision=13268
* Document the change that I made to pipe(2)Peter Wemm1996-01-011-4/+12
| | | | Notes: svn path=/head/; revision=13151
* Bump libutil revision after recent addition of setproctitle().Peter Wemm1996-01-011-1/+9
| | | | | | | | | | | Install (optional) libutil.h with prototypes for the functions and document this in the man page. minor cleanups to the various routines, include the prototype file, declare return codes etc. Notes: svn path=/head/; revision=13137
* Finally complete my fix for the behaviour of getpass(3) upon receiptJoerg Wunsch1995-12-312-18/+56
| | | | | | | | | | | | | | | of signals. Signals are now properly caught, tty state is being restored, and the previous sigaction triggered. Upon receipt of a sigcont, echo is turned off again. SIGTSTP causes a buffer flush, the man page mentions this. (Although i rather think of it as a feature than a bug.) This is likely to be my last FreeBSD action for 1995, xearth shows me that our .au guys must already write 1996. :-) Notes: svn path=/head/; revision=13131
* This commit was generated by cvs2svn to compensate for changes in r13122,Peter Wemm1995-12-3047-6169/+0
| | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=13123
* recording cvs-1.6 file deathPeter Wemm1995-12-309-604/+0
| | | | Notes: svn path=/cvs2svn/branches/ATT/; revision=13122
* Added $Id$.Bruce Evans1995-12-301-0/+4
| | | | Notes: svn path=/head/; revision=13115
* Implemented non-statistical kernel profiling. This is based onBruce Evans1995-12-291-8/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured. Notes: svn path=/head/; revision=13107
* Oops. I seem to have over-corrected with my last commit. It should beGary Palmer1995-12-291-2/+2
| | | | | | | right this time Notes: svn path=/head/; revision=13100
* Correct what seem to me to be some mistakes in the references andGary Palmer1995-12-282-6/+6
| | | | | | | standards sections. Also add a missing `,' to each file. Notes: svn path=/head/; revision=13082
* Don't block SIGINT in getpass(3); this doesn't make sense.Joerg Wunsch1995-12-271-1/+1
| | | | Notes: svn path=/head/; revision=13067
* Be smarter about handling overlapped copies and only go backwards if itDavid Greenman1995-12-272-12/+16
| | | | | | | | | is really necessary. Going backwards on a P6 is much slower than forwards and it's a little slower on a P5. Also moved the count mask and 'std' down a few lines - it's a couple percent faster this way on a P5. Notes: svn path=/head/; revision=13064
* Bring in an initial version of setproctitle().. This is intended toPeter Wemm1995-12-262-0/+222
| | | | | | | | | | | | replace the dozen other various hacks in the code that do all sorts of crude things including spamming the envrionment strings with the new argv string. This version is mainly inspired by the sendmail version, with a couple of ideas taken from the NetBSD implementation as well. Notes: svn path=/head/; revision=13039
* Added prototypes.Bruce Evans1995-12-262-4/+14
| | | | Notes: svn path=/head/; revision=13030
* Preallocate a small structure, so we can sbrk(2) further back.Poul-Henning Kamp1995-12-181-2/+8
| | | | | | | | Reviewed by: phk Submitted by: Kaleb Keithly <kaleb@x.org> Notes: svn path=/head/; revision=12918
* Clean up a few things left dangling after the last commit. The newBill Paul1995-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). Notes: svn path=/head/; revision=12859
* Now that rpcgen is squared away, arrange to have all the NIS XDR routinesBill Paul1995-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. Notes: svn path=/head/; revision=12816
* Change phkmalloc so that the page directory is now floating and allocatedPeter Wemm1995-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 Notes: svn path=/head/; revision=12776
* Fix minor annoyance: have clnt_perror(), clnt_perrno() andBill Paul1995-12-101-4/+4
| | | | | | | | clnt_pcreateerror() emit strings with newlines appended like other platforms do. Notes: svn path=/head/; revision=12732
* Include sys/time.h, not sys/user.h.David Greenman1995-12-081-1/+1
| | | | | | | Submitted by: "Marc G. Fournier" <scrappy@hub.org> Notes: svn path=/head/; revision=12674
* Fixed type mismatches.Bruce Evans1995-12-074-12/+12
| | | | Notes: svn path=/head/; revision=12663
* Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.Bill Paul1995-12-021-1/+2
| | | | Notes: svn path=/head/; revision=12585
* Restored [u]cmpdi2.c which are needed for switching on [unsigned] longBruce Evans1995-12-011-1/+1
| | | | | | | long values. Notes: svn path=/head/; revision=12555
* Removed cmpdi2.c from ${SRCS}. I think it is no more needed than ucmpdi2.Bruce Evans1995-11-291-2/+1
| | | | | | | Restored order in ${SRCS}. Notes: svn path=/head/; revision=12524
* - Make _do_ypbind() check for /var/run/ypbind.lock and attempt to flock()Bill Paul1995-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. Notes: svn path=/head/; revision=12095
* Add NIS support to getservent(3) functions (getservbyport() and getservbyname()Bill Paul1995-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. Notes: svn path=/head/; revision=12082
* Document recent changes in socket buffers and listen(2).Garrett Wollman1995-11-032-12/+38
| | | | Notes: svn path=/head/; revision=12042
* Move more stuff out to XPG4Andrey A. Chernov1995-11-034-0/+32
| | | | | | | Handle negative chars inside runetype/tolower/toupper Notes: svn path=/head/; revision=12022
* Add #include <sys/user.h>.Poul-Henning Kamp1995-10-281-0/+1
| | | | Notes: svn path=/head/; revision=11874
* misc typosAdam David1995-10-273-7/+7
| | | | Notes: svn path=/head/; revision=11845
* Remove unneded ctype.hAndrey A. Chernov1995-10-261-1/+0
| | | | Notes: svn path=/head/; revision=11825
* Fix it for chars with 8bit setAndrey A. Chernov1995-10-231-1/+1
| | | | Notes: svn path=/head/; revision=11742
* Treat empty encoding as "C" encodingAndrey A. Chernov1995-10-231-1/+1
| | | | Notes: svn path=/head/; revision=11737
* Optimize PathLocale handling.Andrey A. Chernov1995-10-231-7/+15
| | | | | | | | Handle C/POSIX/"" properly. Don't reset collate to C when it is unnecessary Notes: svn path=/head/; revision=11736
* Don't reset LC_TIME to C when it isn't neccessaryAndrey A. Chernov1995-10-231-13/+17
| | | | Notes: svn path=/head/; revision=11735
* Use fake (empty) startup_setlocale for XPG4Andrey A. Chernov1995-10-231-3/+3
| | | | Notes: svn path=/head/; revision=11702
* Reduce static binaries bloat by splitting out normally unusedAndrey A. Chernov1995-10-233-8/+45
| | | | | | | setinvalidrune() Notes: svn path=/head/; revision=11700
* Migrate from XPG4 to XPG3 (libxpg4 will be added soon)Andrey A. Chernov1995-10-239-56/+444
| | | | | | | | Remove big part of my startup_setlocale hack. Add missing manpage links. Notes: svn path=/head/; revision=11695
* Fixed lint from cc -Wall.Bruce Evans1995-10-221-5/+6
| | | | | | | Cleaned up includes. Notes: svn path=/head/; revision=11677
* minor cleanup, #includes.Poul-Henning Kamp1995-10-225-6/+11
| | | | Notes: svn path=/head/; revision=11669