summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* List help.h a a dependancy for editline.cmsmith1997-07-271-2/+2
| | | | | | | | Use 'beforedepend' instead of '.depend' to hang automatically-generated headers off. XXX the latter is bogus without a 'beforeall' target and explicit ordering of dependancy generation for targets.
* Fix a minor typo. It only affects the sparc version.jdp1997-07-261-2/+2
|
* Added bounds checking to the example after chasing down someone'spds1997-07-261-1/+2
| | | | | broken code where they'd copied the example basically verbatim and blew an array. (engage brain before typing 'make')
* Tada!, tcl is now at 8.0b2 I belive.phk1997-07-252-68/+166
|
* Reorder decomposition of the filename argument for the '-h' flag tomsmith1997-07-231-2/+3
| | | | | | | avoid misprocessing in the case where the filename argument contains more than one period. Submitted by: micke@dynas.se (Mikael Hybsch)
* = -> ==, strcpy -> strncpy from OpenBSD.charnier1997-07-222-8/+8
| | | | | update man page. Add usage(). Obtained from: OpenBSD
* Add to CLEANFILES instead of setting it absolutely. Cleaning of *.S andbde1997-07-211-1/+1
| | | | tags was broken.
* sleep() after sending 'nologin' file to ensure output is drained beforedavidn1997-07-191-1/+2
| | | | disconnect.
* Make sleep() and usleep() "eat" any stray SIGALRM signals during thepeter1997-07-182-49/+29
| | | | | | | | lifetime of the call, just like the old implementation did. Previously, we were only eating them if the application did not call sleep()/usleep() with SIGALRM masked. Submitted by: ache
* Add appropriate ${DESTDIR} in front of absolute paths.asami1997-07-183-3/+3
|
* Add ${DESTDIR} in front of absolute path.asami1997-07-181-1/+1
|
* realpath() should break on looped symlinks.phk1997-07-161-0/+5
| | | | | | PR: 3911 Reviewed by: phk Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net>
* Kill this file really dead. The default branch was cleared, evenjdp1997-07-151-52/+0
| | | | | | though the file was still on the vendor branch. I don't know why. It doesn't look like the cvs-add-on-a-branch bug that we already know about.
* Fix vi-mode searching broken with the NetBSD changes update.msmith1997-07-141-4/+2
| | | | | PR: bin/4064 Submitted by: Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
* Fixed minor bugs related to the addition of gammaf.bde1997-07-131-3/+3
| | | | | The major bug, that gamma is documented as really being gamma, is still unfixed.
* kill the undeadpeter1997-07-13216-43716/+0
|
* Fixed quoting of backslash.bde1997-07-131-1/+1
|
* Add a quick description of sysctlbyname() and link sysctl.3 topeter1997-07-122-2/+13
| | | | sysctlbyname.3
* Have sysctlbyname() take a const first arg (the ascii string)peter1997-07-121-3/+5
|
* execve of interpreter filesadam1997-07-081-2/+2
| | | | reword for grammar/clarity
* Rework previous commit.. I was confused by the number of diffs in the PRpeter1997-07-061-8/+29
| | | | | | | | | | | | | | | | | and forgot what I was trying to do originally and accidently zapped a feature. :-] The problem is that we are converting a counted buffer in a malloc pool into a null terminated C-style string. I was calling realloc originally to shrink the buffer to the desired size. If realloc failed, we still returned the valid buffer - the only thing wrong was it was a tad too large. The previous commit disabled this. This commit now handles the three cases.. 1: the buffer is exactly right for the null byte to terminate the string (we don't call realloc). 2: it's got h.left = 0, so we must expand it to make room. If realloc fails here, it's fatal. 3: if there's too much room, we realloc to shrink it - a failed realloc is not fatal, we use the original buffer which is still valid.
* Fix off-by-one errorpeter1997-07-061-4/+6
| | | | | PR: 3451 Submitted by: Tim Vanderhoek <ac199@hwcn.org>
* Kill histedit.h again. Importing Lite2 brought it back for some reasonbde1997-07-031-172/+0
| | | | (although it hasn't changed).
* This commit was generated by cvs2svn to compensate for changes in r27180,bde1997-07-03220-7/+43945
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,bde1997-07-03268-358/+44454
| | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
* | Have another go at the malloc-sysv initialization.phk1997-07-021-12/+11
| | | | | | | | | | PR: 4002 Pointed out by: bde
* | malloc_sysv used before initialized, reported in PR4002 byphk1997-07-014-40/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Various cleanup from Keith Bostic Reinstate calloc() as a separate funtion, in its own source/object file. leave the manpage integrated with malloc.3 and friends. Too many things were broken in this respect. PR: 4002 Reviewed by: phk Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Submitted by: Keith Bostic <bostic@bostic.com>
* | Add 64 bit int support to scanf()jkh1997-07-012-14/+32
| | | | | | | | | | PR: 2080 Submitted by: David Dawes <dawes@rf900.physics.usyd.edu.au>
* | _err() -> err().jkh1997-06-291-3/+3
| |
* | replace the OpenBSD fd_set sizing code with something more efficient.peter1997-06-281-9/+16
| | | | | | | | | | | | | | Only call malloc() if the fd is too big for the compiled in fd_set size, and don't use calloc either. This should reduce the impact of conflicts with private malloc implementations etc. When using the fd_set on the stack, only zero what is needed rather than all 1024 bits like FD_ZERO did.
* | Dynamically size fd_set in select rather than fail if too many filespeter1997-06-271-8/+9
| | | | | | | | | | are open. Obtained from: OpenBSD; by deraadt and dm
* | ctype: portability, sign extension and cleanup fixesache1997-06-275-17/+16
| |
* | Move editrc.5 from MAN3 to MAN5ache1997-06-271-1/+2
| |
* | compensate for res_send <-> __res_send changespeter1997-06-271-2/+4
| |
* | Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-2710-69/+97
| | | | | | | | overflow problem differently.
* | Fill in parent process id when reading process information from ategge1997-06-251-0/+12
| | | | | | | | memory dump. This fixes one of the problems noted in PR kern/3581.
* | Pull histedit.h out, it lives in /usr/src/include, not here.msmith1997-06-251-5/+0
| |
* | Add extra test functionality.msmith1997-06-251-21/+49
| | | | | | | | Obtained from: NetBSD
* | Update libedit with changes from NetBSD. Includes history load/save,msmith1997-06-2517-112/+1053
| | | | | | | | | | | | | | some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD
* | Add stringlist functions from NetBSD. (required for the new ftp(1)msmith1997-06-253-5/+246
| | | | | | | | Obtained from: NetBSD
* | Add tickadj to struct clockinfo, like NetBSD and OpenBSD.jhay1997-06-241-1/+1
| |
* | Show the real revision date and not the date that thissteve1997-06-2323-24/+24
| | | | | | | | manpage is being viewed.
* | Integrate calloc with the rest of the gang.phk1997-06-225-478/+390
| | | | | | | | | | | | | | | | | | | | | | Various portability and stylistic cleanups. Kill MALLOC_STATS & the 'D' option. Fix the 'V' option. Major overhaul of the man-page. You milage should not vary. Reviewed by: Keith Bostic <bostic@bostic.com> Submitted by: Keith Bostic <bostic@bostic.com>
* | Hm... wonder how long this has been here.wpaul1997-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logic in get_myaddress() is broken: it always returns the loopback address due to the following rule: if ((ifreq.ifr_flags & IFF_UP) && ifr->ifr_addr.sa_family == AF_INET && (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) { The idea is that we want to select the interface address only if it's up and it's in the AF_INET family. If it turns uout we don't have such an interface available, we make a second pass through the loop, this time settling for the loopback interface. But the logic inadvertently locks out all cases when loopback == 0, so nothing is ever selected until the second pass (when loopback == 1). This is changed to: if (((ifreq.ifr_flags & IFF_UP) && ifr->ifr_addr.sa_family == AF_INET) || (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) { which I think does the right thing. This is yet another bogon I discovered during NIS+ testing; I need get_myaddress() to work correctly so that the callback code in the client library will work.
* | Typo.charnier1997-06-181-2/+3
| |
* | Fix infinite loop.davidn1997-06-161-2/+2
| | | | | | | | | | PR: 3878 Submitted by: roman@rpd.univ.kiev.ua
* | Remember to zero sockaddr_in struct before calling uaddr_to_sockaddr() towpaul1997-06-151-0/+1
| | | | | | | | | | populate it. Not doing this can result in a garbage sockaddr_in, which will cause connect() to block inside clnttcp_create().
* | srandomdev: use stack junk value in the fallback code tooache1997-06-151-2/+3
| |
* | Change u_char which require special include to unsigned charache1997-06-141-1/+1
| |
* | Add arc4random() functions from OpenBSD. They are almost same as ourache1997-06-143-5/+261
| | | | | | | | | | | | | | srandomdev(), but can be used inside libraries. random() can't be used inside libraries because it breaks its possible predictable sequence. arc4random() is true random as designed, so its usage is library-safe. Obtained from: OpenBSD
OpenPOWER on IntegriCloud