summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Back out the thread_init code in order to allow -current to bootstrapnate1996-01-301-8/+0
| | | | | | from -stable, until a better solution is found. Submitted by: Consensus of mailing list and the almighty Jordan :)
* 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.
* Build libscrypt in addition to libdescrypt if RELEASEDIR is set.joerg1996-01-241-0/+4
| | | | Releases do need both libraries (they go into different distributions).
* 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
|
* error handling for threaded appsjulian1996-01-221-0/+50
|
* Reviewed by: julianjulian1996-01-22175-0/+21347
| | | | | | | | Submitted by: john birrel One version of the pthreads library another will follow with differnt actions under some cases.. not QUITE complete
* Reviewed by: julian and (hsu?)julian1996-01-2285-108/+1634
| | | | | | 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>
* | Check the count in the first word of __CTOR_LIST__ before executingjdp1996-01-151-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the loop that invokes the static constructors. That makes it safe to link c++rt0.o into any shared library, even one that does not have any static constructors. Formerly, doing that would cause a bus error. If the library has no static constructors, __CTOR_LIST__ comes out as a simple 4-byte COMMON region, and it does not have the usual NULL word that terminates the list of constructors. This caused the old code to "call" a garbage address via the non-existent entry __CTOR_LIST__[1]. The analogous code that invokes the static destructors was already safe. This change is fully backward-compatible. Reviewed by: dfr@render.com (Doug Rabson)
* | 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>
* | | Extract the login name when doing a ps on a dead kernel.peter1996-01-011-0/+2
| | |
* | | Document the change that I made to pipe(2)peter1996-01-011-4/+12
| | |
* | | Bump libutil revision after recent addition of setproctitle().peter1996-01-019-3/+80
| | | | | | | | | | | | | | | | | | | | | | | | 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-30249-55025/+0
| | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
* | | recording cvs-1.6 file deathpeter1995-12-3077-15044/+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-265-1/+446
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | 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>
OpenPOWER on IntegriCloud