summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Some adjustments for the resolver use of poll(). For some reason I thoughtpeter1997-09-161-7/+8
| | | | | | | an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run statically linked code with this wrapper and it does appear to work fine on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail once and the fallback to select() working.
* Put a system call not present checking wrapper around the call topeter1997-09-161-9/+35
| | | | | __getcwd(). I've got this libc code running on one of my machines at the moment without the __getcwd() syscall being present.
* Fix yet a minor stylistic nit from Bruce.wosch1997-09-151-4/+4
| | | | (`cvs diff -ib' print one new char ;-).
* Fix yet a minor stylistic nit from Bruce (Doesn't he have morephk1997-09-151-7/+9
| | | | | | important things to do ?? :-) Prepare for the likely case of a change in kernel algorithm.
* Fix a buglet and a couple of stylistic nits from Bruce.phk1997-09-151-3/+2
|
* Potential bufferflow in getpwent(), getpwnam() and getpwuid()wosch1997-09-141-2/+7
| | | | | PR: bin/4134 Submitted by: nick@foobar.org
* Add __getcwd() syscall, and have getcwd() take a shot at it.phk1997-09-142-2/+13
| | | | | If your kernel doesn't support __getcwd() or if __getcwd() cannot deliver because of cache expiry, it does the canonical thing.
* Call poll(2) from within the resolver but adapt to older kernels without itpeter1997-09-141-26/+68
| | | | | | | | | | | | | if necessary. This removes the need to malloc large fd_set's for selecting on high fd's (larger than FD_SETSIZE at libc compile time). The syscall adaptive stuff only happens on the very first call. SIGSYS is masked, and if the call to poll fails with ENOSYS, then we use select for the life of the program. If poll does not fail with ENOSYS, then we always use poll and skip the once-off signal masking gunk. This may be overkill, but it saved my neck a few times while working on multiple different sets of kernel sources, some with poll, some without.
* A poll(2) manpage.peter1997-09-142-2/+190
| | | | Obtained from: NetBSD
* Generate poll syscall stubpeter1997-09-141-2/+2
|
* Document SA_NOCLDWAIT.joerg1997-09-131-17/+38
| | | | Make all the SA_* flags go into a tagged list, to improve readability.
* Removed superfluous quoting of function args.bde1997-09-074-6/+6
|
* Fixed style bug in pseudocode.bde1997-09-071-1/+1
|
* Upgrade to 2.4 (Fix -PKT_ALIAS_UNREGISTERED_ONLY)brian1997-09-065-4/+17
| | | | | | | Submitted by: Charles Mott <cmott@srv.net> Add __libalias_version so that ppp can derive the correct library name for dlopen()
* When compiling under elf, use correct library naming conventions. Alsopeter1997-09-051-3/+19
| | | | | add the required extra symlink. Set the -soname to libcrypt.so so that the symlink is used at runtime rather than resolved at compile time.
* If building under elf, have libskey.so depend on libmd and libcrypt.peter1997-09-051-0/+5
|
* If not building a.out, still build a pic version of libmd. This allowspeter1997-09-051-1/+3
| | | | | | | | things like libskey.so to be dynamically self contained. Things like md5(1) where speed is critical should still link with libmd.a, but for things like login, where it's a once-off call if skey is used, it's not worth the hassle.
* The parameters to logwtmp should be const char'spst1997-09-042-4/+6
|
* Fixed synopsis. The envp arg for execle() can't be given in the prototype.bde1997-09-031-2/+2
| | | | Fortunately, the man page doesn't refer to "envp" so just deleting it is OK.
* Fix possible coredump on BW displaysache1997-09-021-2/+6
|
* Add "options no_tld_query" to resolv.conf.brian1997-09-012-4/+6
| | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
* Hide the declaration of `struct exception' from C++, since it conflictsbde1997-08-311-1/+5
| | | | | with the standard C++ `class exception'. This makes matherr() difficult to use in C++. Small loss.
* Fixed inclomplete function type in synopsis.bde1997-08-311-1/+1
|
* Remove login_progok()brian1997-08-315-103/+5
| | | | Suggested by: guido
* Restore back issetugid() usage and bump major numberache1997-08-312-4/+4
|
* Another 32bits of 64bits conformance.phk1997-08-311-2/+2
| | | | | Reviewed by: phk Submitted by: jdp
* Initial elf nlist support, mostly stolen from OpenBSD (they use standardpeter1997-08-312-3/+228
| | | | | | | | | | | #defines that are compatable with ours). I made some some minor tweaks to the leading '_' tests. Again, this is off by default for the moment. This probably should be split into seperate files (like some of our other libc files that could do with some splitting). Obtained from: OpenBSD (plus some minor tweaks)
* Added HW_MACHINE_ARCH.kato1997-08-301-0/+3
|
* Merge in the safe chdir changes from Todd Miller's mods to the OpenBSDimp1997-08-292-40/+128
| | | | | | | | | | | tree. Also merge in fix to NetBSD PR #1495. These represent 1.3-1.9 in the OpenBSD tree. Make minor KNF changes to new code (which is in the OpenBSD as 1.10). This avoids the symlink race problems. These patches should go into 2.2.5 before the ship if they don't break anything in -current. Reviewed by: Bruce Evans Obtained from: OpenBSD
* Add a stub version of getpublickey(), in order to eliminate anjdp1997-08-282-1/+47
| | | | | | | | | | undefined symbol referenced from libc. Without the stub, it is impossible to execute any program using the shared library if LD_BIND_NOW=1 is in the environment. The stub always returns failure, but it can be overridden outside the library when necessary. I don't know whether this is the "correct" fix, but it is intolerable to have any undefined symbols referenced from libc.
* Fix inspace handling I broke in rev 1.13ache1997-08-281-3/+3
|
* Add full support for determining if a userbrian1997-08-275-5/+101
| | | | is restricted from running a given program.
* Use getpwnam(getlogin()) before getpwuid(getuid())ache1997-08-271-3/+5
|
* Improvement of type independency for the bitmap.phk1997-08-271-3/+4
| | | | | | | This makes 64bit operation more likely. Reviewed by: phk Submitted by: jdp
* Malloc option H is now default.phk1997-08-272-4/+5
|
* Don't getenv(HOME) when set[ug]od. This can lead to a buffer overflow andimp1997-08-271-3/+4
| | | | | elevated privs. Obtained from: OpenBSD
* Add prog.deny as a list capability forbrian1997-08-261-1/+3
| | | | denying execution of certain programs.
* -I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.bde1997-08-264-4/+4
|
* Temp restore of rev 1.9ache1997-08-261-3/+3
|
* Temporarily comment out issetugid() call until everyone installs libtermcap,ache1997-08-251-2/+2
| | | | major number bumping will follows then
* Fix saving/restoring tty modes, allow initscr be called twice,ache1997-08-255-29/+66
| | | | from ncurses 4.1
* Make the MD* header files C++-aware. Also, string arguments are supposedjoerg1997-08-255-10/+20
| | | | | | | to be of type `const char *'. PR: 3291 Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
* Bump minor number due to issetugid()ache1997-08-241-1/+1
|
* Add winnstr family and fake resizeterm from ncurses 4.1 for compatibilityache1997-08-245-6/+73
| | | | | with recent applications. Bump minor number.
* Cosmetic: distinguish in diag message between rebuilding and updatingjoerg1997-08-241-1/+2
| | | | | | | the database. PR: 3397 Submitted by: taob@risc.org (Brian Tao)
* Get rid of integer overflow warning.steve1997-08-232-2/+2
| | | | | PR: misc/3575 Submitted by: Bruce Evans <bde@zeta.org.au>
* Remove extra definition of vwprintw.steve1997-08-231-1/+1
| | | | | PR: bin/3623 Submitted by: Stephen J. Roznowski <sjr1@flash.net>
* Reference the correct version of BSD at the bottom of thesteve1997-08-231-1/+1
| | | | | | manpage. PR: docs/3735
* Activate libvglsos1997-08-221-1/+1
|
* Replace uids comparison by issetugid() callache1997-08-221-2/+2
|
OpenPOWER on IntegriCloud