summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Small bug fix and improvementsshin1999-12-281-0/+7
| | | | | | | | (1)added error check of if_nameindex() return value at getaddrinfo(). (2)print out more detailed information when getaddrinfo() error value is EAI_SYSTEM.(in this case system error num is kept in errno) (1) is Discovered by: jinmei@kame.net in KAME environment.
* Upgrade to the pam_ssh module, version 1.1..green1999-12-281-12/+173
| | | | | | | | | | (From the author:) Primarily, I have added built-in functions for manipulating the environment, so putenv() is no longer used. XDM and its variants should now work without modification. Note that the new code uses the macros in <sys/queue.h>. Submitted by: Andrew J. Korty <ajk@iu.edu>
* Work around an assert failure in the dynamic linker's default threadjdp1999-12-281-0/+4
| | | | | | | | | | | | | | | | locking functions. If an application loads a shared object with dlopen() and the shared object has an init function which requires lazy binding, then _rtld_bind is called when the thread is already inside the dynamic linker. This leads to a recursive acquisition of the lock, which I was not expecting -- hence the assert failure. This work-around makes the default locking functions handle recursive locking. It is NOT the correct fix -- that should be implemented at the generic locking level rather than in the default locking functions. I will implement the correct fix in a future commit. Since the dllockinit() interface will likely need to change, warn about that in both the man page and the header file.
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-288-4/+3657
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Tidy up some loose ends. nullfs_read/write were returning the wrong value.peter1999-12-273-5/+7
| | | | | | Fix some ctype problems - isascii() caused a warning if fed an unsigned char - it's always > 0 and libstand is compiled with -Wall. Missing prototype/include in printf.c
* Make this compile with -Wall -Werrorpeter1999-12-271-1/+2
|
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingpeter1999-12-2711-129/+60
| | | | | | and is module aware. Yes, this means that kvm_nlist(3) will find symbols in loaded modules. The emulation of the nlist struct is pretty crude but seems to work well enough for all the users in the tree that I found.
* Add a new function dllockinit() for registering thread lockingjdp1999-12-273-1/+124
| | | | | | | | | | | | | | | | | | | functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it.
* Creating weak symbols doesn't work correctly when building an aout libc.jasone1999-12-244-16/+8
| | | | | | | | | | | | Doing the "right thing" here is difficult, so create two ENTRY points for each function (for example, __setjmp and setjmp are equivalent). This isn't pretty, but it works for both aout and ELF. libc symbol naming needs an overhaul in order to properly support function wrapping, specifically in the case of a real libpthread, and these duplicate entry points should be fixed as part of that overhaul. Pointed out by: bde
* Fixed missing #include in synopsis.bde1999-12-232-1/+3
| | | | | Fixed misspelling of VGLPanScreen in its prototype. Fixed missing installation of link to VGLPanScreen.3.
* Fixed a formatting error in the prototype for crypt().bde1999-12-231-2/+2
|
* Fixed bitrot in synopsis. The change from "int *pshared" to "int pshared"bde1999-12-232-2/+2
| | | | hadn't reached here.
* Fixed wrong #include in synopsis.bde1999-12-231-2/+2
|
* Fixed missing `const' in synopsis.bde1999-12-231-1/+1
|
* Fixed missing includes in synopsis.bde1999-12-231-0/+2
|
* Fixed missing installation of a link to ctermid_r.3.bde1999-12-231-0/+1
|
* Fixed wrong prototype and missing include for strsignal(3). strsignal()bde1999-12-231-2/+3
| | | | | | | | | | | | | | takes an int arg and is prototyped in <string.h>. It has the opposite interface botches to psignal(3) which takes a bogus unsigned arg but is prototyped in the right place. This is not the last of the interface problems for strsignal(). We obtained it from NetBSD, but NetBSD has moved its prototype to <unistd.h>. strsignal() should return const char *, but it returns char * for historical reasons. NetBSD declares it as returning __aconst char, where __aconst is normally empty but can be set to `const' to give better error checking. glibc-2.1.1 prototypes strsignal() in <string.h>.
* Fixed missing installation of a link to getlogin_r.3. This is the firstbde1999-12-231-0/+1
| | | | | example of section 2 and section 3 interfaces sharing a man page. It's probably a bad example.
* Fixed missing installation of a link to rand_r.3.bde1999-12-231-1/+1
|
* Fix the fixfsfile() so that it works for both block and character devicespeter1999-12-231-1/+7
| | | | | | as root. This could fix the "filesystem still dirty after fsck" problem. Submitted by: bde
* Just on the off-chance that somebody might use libdisk in a totallyphk1999-12-221-5/+11
| | | | | | | | lobotomized environment, say booted from a floppy with no /etc full of password and group files, give sensible fallbacks for roots uid and operators gid. This might fix sysinstall.
* Document the current behaviour with respect to the handling of errno.sheldonh1999-12-221-1/+8
| | | | Approved by: phk
* Aargh, the $FreeBSD$ check caused an inconsistent commit by rejectingbde1999-12-221-2/+3
| | | | | | | | | | | this makefile update which should have been together with the file removal. Removed vlimit.3 and vtimes.3. Removed vlimit.c and vtimes.c from the "MISSING" list. These were old variants of get/setrlimit() and getrusage(), respectively, and were never implemented in FreeBSD. vlimit.3 referred to <sys/vlimit.h> which was removed recently. vtimes.3 referred to <sys/vtimes.h> which never existed in FreeBSD.
* Removed vlimit.3 and vtimes.3. Removed vlimit.c and vtimes.c frombde1999-12-222-270/+0
| | | | | | | the "MISSING" list. These were old variants of get/setrlimit() and getrusage(), respectively, and were never implemented in FreeBSD. vlimit.3 referred to <sys/vlimit.h> which was removed recently. vtimes.3 referred to <sys/vtimes.h> which never existed in FreeBSD.
* Fix a typo which I cannot believe I missed after rereading this textasmodai1999-12-211-1/+1
| | | | | | about 6-7 times prior to commit. Reported by: sheldonh
* Properly manify this manpage.asmodai1999-12-211-5/+5
| | | | | | | | Fix some spelling mistakes and typo's inspired by Nicholas' initial PR submission. PR: docs/15597 Submitted by: Nicholas Esborn <nick@flatlan.net>
* Fix a bug where a pointer would be one character too far after puttingroberto1999-12-214-4/+4
| | | | | | a '\0' at the end of a string. Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* What was I smoking? Use the proper form of the library names.obrien1999-12-211-5/+3
|
* Manual page style work.julian1999-12-211-16/+37
| | | | | Submitted by: Alexey Zelkin <phantom@FreeBSD.org> thanks!
* Forgot a library.obrien1999-12-201-4/+5
|
* Add needed 3.x libraries from 3.4-RELEASE.obrien1999-12-2011-1/+16534
|
* Make sure curses.h is generated when making build-tools make_keysmarcel1999-12-202-4/+4
| | | | and make_hash depend on it.
* Rewriting of flags_to_string() and string_to_flags() to use an array.roberto1999-12-194-344/+244
| | | | | PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
* This commit was generated by cvs2svn to compensate for changes in r54820,peter1999-12-192-0/+383
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import fparseln(3) from NetBSD. It's used for easily dealing with \peter1999-12-192-0/+383
| | | | | | | | escaped lines etc. (used by mailwrapper)
* | Initialize a var to quiet -Wall.obrien1999-12-181-1/+1
| |
* | Switch over to the OpenBSD fts.c, fixing lots of things.green1999-12-182-142/+250
| | | | | | | | Obtained from: OpenBSD
* | Fix some minor POSIX/SUSv2 compliance nits.jasone1999-12-186-21/+15
| | | | | | | | PR: kern/11982
* | Make a dlopen failure consistant with dlsym(). "Shouldn't happen."peter1999-12-172-2/+6
| |
* | patch glitchpeter1999-12-171-3/+0
| |
* | Remove -lmd. Use dlopen() and dlsym() instead for calls to the MD5* andpeter1999-12-173-5/+91
| | | | | | | | | | SHA* routines so that callers of libcrypt are not exposed to the internal implementation.
* | Back up following macros by functions: ishexnumber, isideogram, isnumber,phantom1999-12-171-7/+58
| | | | | | | | | | | | isphonogram, isrune, isspecial. Fix ordering. Reviewed by: bde
* | Fix typosphantom1999-12-178-10/+16
| | | | | | | | | | PR: docs/14858 Submitted by: OKAZAKI Tetsurou <okazaki@be.to>
* | Change to work with recent signal changes. The signal being handled isdeischen1999-12-171-6/+14
| | | | | | | | | | now added to the signal mask; this test failed because it didn't allow for this.
* | Fix handling of trailing :'s to match what other OSes do (spit outjkh1999-12-171-2/+8
| | | | | | | | | | | | a diagnostis). Submitted by: Guy Harris <gharris@flashcom.net>
* | Fix problems with cancellation while in critical regions.deischen1999-12-1720-40/+95
| | | | | | | | | | | | | | | | | | | | | | o Cancellation flags were not getting properly set/cleared. o Loops waiting for internal locks were not being exited correctly by a cancelled thread. o Minor spelling (cancelation -> cancellation) and formatting corrections (missing tab). Found by: tg Reviewed by: jasone
* | Fixes for signal handling:deischen1999-12-1715-441/+624
| | | | | | | | | | | | | | | | | | | | | | | | | | | | o Don't call signal handlers with the signal handler access lock held. o Remove pending signals before calling signal handlers. If pending signals were not removed prior to handling them, invocation of the handler could cause the handler to be called more than once for the same signal. Found by: JB o When SIGCHLD arrives, wake up all threads in PS_WAIT_WAIT (wait4). PR: bin/15328 Reviewed by: jasone
* | Avoid an infinite loop if the last element of the iov array passed tojasone1999-12-163-3/+39
| | | | | | | | | | | | writev() has an iov_len of 0. PR: bin/8281
* | KAME 4th patchshin1999-12-166-4/+1088
| | | | | | | | | | | | | | | | IPv6 specific library functions addition. (getnameinfo(), getaddrinfo(), and IPv6 transport support is not yet) Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* | Document SA_SIGINFOcracauer1999-12-151-25/+90
| | | | | | | | Reviewed by: Sheldon Hearn <sheldonh@uunet.co.za>
OpenPOWER on IntegriCloud