summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Make sure xdr_ypresp_all_seq() always returns a sane 'status' value.wpaul1996-02-041-1/+3
| | | | (There were cases where it was leaving the status uninitialized.)
* Add some missing manual page links.mpp1996-02-022-1/+3
|
* Submitted by: bruce, davidg, dysonwosch1996-02-026-1/+29
| | | | | add a BUG section for mmap with current limitation section SYNOPSIS completed
* Another round of spelling fixes.mpp1996-01-302-4/+4
|
* Fix even more spelling errors in some more man pages.mpp1996-01-3022-44/+44
|
* Getpwent() and getservent() can wind up calling free() withmpp1996-01-292-2/+0
| | | | | an invalid pointer if a call to yp_first() fails. Closes PR # 964, and possibly # 952.
* Bring in the man page additions for PT_ATTACH/DETACH|GET/SET_REGS thatnate1996-01-241-3/+90
| | | | | were deleted out after the initial import now that Peter's code has implemented them in -current.
* note in bugs section: madvise not yet implementedwosch1996-01-231-1/+6
|
* Changed the description of SIGSYS to better reflect whatmpp1996-01-223-3/+3
| | | | it means when that signal is received. Closes PR# 686.
* Obtained from: uthreads packagejulian1996-01-221-0/+37
|
* Reviewed by: julian and (hsu?)julian1996-01-2284-107/+1625
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* - FreeBSD'ized the ptrace manpage by removing non-FreeBSD specific portions.nate1996-01-202-214/+16
| | | | - install ptrace.2
* This commit was generated by cvs2svn to compensate for changes in r13519,nate1996-01-201-0/+395
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * ptrace(2) manpagenate1996-01-201-0/+395
|
* Fix a variety of minor typos and cross references in a bunch ofmpp1996-01-201-1/+1
| | | | | | | | man pages. Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp> Giles Lean <giles@nemeton.com.au> <soda@sra.co.jp>
* Return pointer to new hash node when search inserts it (e.g. therejkh1996-01-131-1/+5
| | | | was some datum given).
* The last of the bind-4.9.3-REL resolver merges.peter1996-01-138-249/+280
|
* Correct the strspn() man page so that it no longer referencesmpp1996-01-101-1/+1
| | | | | | itself as strcspn(). Obtained from: NetBSD-bugs mailing list (PR# 1905)
* Merge the 4.9.3-rel code into the res_* parts. The gethostXXXbyYYYpeter1996-01-077-183/+161
| | | | parts are not quite so simple..
* This commit was generated by cvs2svn to compensate for changes in r13304,peter1996-01-071-0/+114
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Part of bind-4.9.3-rel.. This is for my convenience and reference.peter1996-01-077-760/+1851
| | | | | | | | This import to the vendor branch changes no files...
* | Fix a fencepost error.phk1996-01-051-4/+4
| | | | | | | | Found by: Lars Fredriksen <fredriks@mcs.com>
* | Document the change that I made to pipe(2)peter1996-01-011-4/+12
| |
* | Bump libutil revision after recent addition of setproctitle().peter1996-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.
* | Finally complete my fix for the behaviour of getpass(3) upon receiptjoerg1995-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. :-)
* | This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-3047-6169/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | recording cvs-1.6 file deathpeter1995-12-309-604/+0
| |
* | Added $Id$.bde1995-12-301-0/+4
| |
* | Implemented non-statistical kernel profiling. This is based onbde1995-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.
* | Oops. I seem to have over-corrected with my last commit. It should begpalmer1995-12-291-2/+2
| | | | | | | | right this time
* | Correct what seem to me to be some mistakes in the references andgpalmer1995-12-282-6/+6
| | | | | | | | standards sections. Also add a missing `,' to each file.
* | Don't block SIGINT in getpass(3); this doesn't make sense.joerg1995-12-271-1/+1
| |
* | Be smarter about handling overlapped copies and only go backwards if itdg1995-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.
* | Bring in an initial version of setproctitle().. This is intended topeter1995-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.
* | Added prototypes.bde1995-12-262-4/+14
| |
* | 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>
* | 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
* | Fix minor annoyance: have clnt_perror(), clnt_perrno() andwpaul1995-12-101-4/+4
| | | | | | | | | | clnt_pcreateerror() emit strings with newlines appended like other platforms do.
* | 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
| |
* | Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.wpaul1995-12-021-1/+2
| |
* | Restored [u]cmpdi2.c which are needed for switching on [unsigned] longbde1995-12-011-1/+1
| | | | | | | | long values.
* | Removed cmpdi2.c from ${SRCS}. I think it is no more needed than ucmpdi2.bde1995-11-291-2/+1
| | | | | | | | Restored order in ${SRCS}.
* | - 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
| |
* | Move more stuff out to XPG4ache1995-11-034-0/+32
| | | | | | | | Handle negative chars inside runetype/tolower/toupper
* | Add #include <sys/user.h>.phk1995-10-281-0/+1
| |
OpenPOWER on IntegriCloud