aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Correct spelling : ascii -> ASCIIAlexey Zelkin1999-09-201-1/+1
| | | | | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp Notes: svn path=/head/; revision=51457
* Fix for new Kerberos4. Make a fist cut at PAM-ising while I'm here.Mark Murray1999-09-198-326/+388
| | | | Notes: svn path=/head/; revision=51433
* When a STAT command is sent to ftpd as an out-of-band transmission duringMichael Haro1999-09-121-0/+1
| | | | | | | | | | | a file transfer, the command was mishandled on every other receipt of the command. PR: 13261 Submitted by: Ian Lepore <ian@plutotech.com> Notes: svn path=/head/; revision=51192
* Fix more Common Error brokenness.Mark Murray1999-09-062-4/+4
| | | | Notes: svn path=/head/; revision=51036
* Add common error lib for the Kerberos case.Mark Murray1999-09-061-2/+2
| | | | Notes: svn path=/head/; revision=50990
* Make jdk-1.1.8 work again. It turns out that some code insideJohn Polstra1999-09-051-5/+9
| | | | | | | | | | | | | | | | | | libjava peeks into the dynamic linker's private Obj_Entry structures. My recent changes introduced some new members near the front of the structures, causing libjava to get the wrong fields. This commit moves the new members toward the end of the structure so that the layout of the portion that is relevant to JDK remains the same as before. I will work with the JDK porting team to see if we can come up with a less fragile way for them to do what they need to do. I understand the current approach was necessary in order to work around some limitations of the dynamic linker. Maybe it's not necessary any more. Notes: svn path=/head/; revision=50977
* Enable -Wformat checking for debug_printf().John Polstra1999-09-041-1/+3
| | | | Notes: svn path=/head/; revision=50930
* Change the warning about unrecognized entries in the dynamic tableJohn Polstra1999-09-041-2/+2
| | | | | | | | | | to a debug message which is disabled in production builds of the dynamic linker. The condition warned about is normally harmless. PR: bin/12849 Notes: svn path=/head/; revision=50928
* When looking up symbols, search the objects loaded at program startJohn Polstra1999-09-041-8/+8
| | | | | | | | | | up first -- before the dlopened DAGs containing the referencing object. This makes dynamically loaded perl modules work properly again. Notes: svn path=/head/; revision=50873
* Get the actual pathname of the dynamic linker from the executable'sJohn Polstra1999-08-303-12/+31
| | | | | | | | | | PT_INTERP program header entry, to ensure that gdb always finds the right dynamic linker. Use obj->relocbase to simplify a few calculations where appropriate. Notes: svn path=/head/; revision=50610
* When checking to see if a shared object is already loaded, look forJohn Polstra1999-08-303-7/+38
| | | | | | | a device/inode match if no pathname match is found. Notes: svn path=/head/; revision=50609
* Revamp the symbol lookup algorithm to cope better with objectsJohn Polstra1999-08-304-82/+245
| | | | | | | | | | | | | | | | | | | | | | | | | loaded separately by dlopen that have global symbols with identical names. Viewing each dlopened object as a DAG which is linked by its DT_NEEDED entries in the dynamic table, the search order is as follows: * If the referencing object was linked with -Bsymbolic, search it internally. * Search all dlopened DAGs containing the referencing object. * Search all objects loaded at program start up. * Search all objects which were dlopened() using the RTLD_GLOBAL flag (which is now supported too). The search terminates as soon as a strong definition is found. Lacking that, the first weak definition is used. These rules match those of Solaris, as best I could determine them from its vague manual pages and the results of experiments I performed. PR: misc/12438 Notes: svn path=/head/; revision=50608
* When honoring -Bsymbolic, still keep searching if only a weakJohn Polstra1999-08-301-4/+8
| | | | | | | definition was found in the referencing object. Notes: svn path=/head/; revision=50607
* Simplify the logic in find_symdef().John Polstra1999-08-301-45/+41
| | | | Notes: svn path=/head/; revision=50606
* Add $FreeBSD$ lines to man pages that are missing them to make itMike Pritchard1999-08-285-0/+7
| | | | | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net> Notes: svn path=/head/; revision=50533
* $Id$ -> $FreeBSD$Peter Wemm1999-08-28191-191/+191
| | | | Notes: svn path=/head/; revision=50476
* unifdef -DINTERNAL_LS - it's too useful to be off by default. If anyonePeter Wemm1999-08-265-32/+7
| | | | | | | | really dislikes this, we could add a switch to disable it at runtime and check in popen.c. Notes: svn path=/head/; revision=50380
* Ufff. cflags -> chflags. I could have sworn this change has been inWarner Losh1999-08-211-3/+3
| | | | | | | | | my last three successful make buildworlds... Noticed by: phk Notes: svn path=/head/; revision=50132
* Remove all flags from devices before we try to assert ownership andWarner Losh1999-08-211-1/+3
| | | | | | | | | | set permissions. Bug not fixed: We silently ignore failures of chflags, chmod and chown. Notes: svn path=/head/; revision=50123
* Add a NULL pointer check whose absence could cause segmentationJohn Polstra1999-08-201-6/+6
| | | | | | | | | | violations in certain obscure cases involving failed dlopens. Many thanks to Archie Cobbs for providing me with a good test case. Eliminate a block that existed only to localize a declaration. Notes: svn path=/head/; revision=50096
* Back out previous commit - it's not necessary now that tty.h properly includesJordan K. Hubbard1999-08-091-2/+1
| | | | | | | the queue macros. Notes: svn path=/head/; revision=49557
* Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)Brian Feldman1999-08-091-1/+2
| | | | Notes: svn path=/head/; revision=49554
* Correction to previous commit.Gene Stark1999-08-081-9/+5
| | | | Notes: svn path=/head/; revision=49507
* Corrected mistake that was causing daemon to loop without servingGene Stark1999-08-081-2/+2
| | | | | | | | user requests. Note that nothing can be said about the value of 'user' unless User != NULL. Notes: svn path=/head/; revision=49505
* Change many asserts into normal errors. They were all for conditionsJohn Polstra1999-07-183-39/+65
| | | | | | | | | caused by invalid shared objects rather than by internal errors. Enable format string mismatch checking for _rtld_error(). Notes: svn path=/head/; revision=48871
* Change the symbol used to find the end of an object's address spaceJohn Polstra1999-07-141-2/+2
| | | | | | | | from "end" to "_end". The former does not exist in most shared libraries. This fixes problems in dladdr() and dlsym(RTLD_NEXT, ...). Notes: svn path=/head/; revision=48805
* Fix a couple of typos.Mike Pritchard1999-07-121-3/+3
| | | | | | | | PR: 12610 Submitted by: Seth <seth@freebie.dp.ny.frb.org> Notes: svn path=/head/; revision=48786
* Add code to 'handle' R_ALPHA_NONE relocations by ignoring them.Doug Rabson1999-07-121-1/+4
| | | | Notes: svn path=/head/; revision=48771
* Add a MAINTAINER line naming myself. We control the vertical. WeJohn Polstra1999-07-091-1/+2
| | | | | | | control the horizontal. Notes: svn path=/head/; revision=48709
* Fix bug: if a dlopen() failed (e.g., because of undefined symbols),John Polstra1999-07-091-38/+44
| | | | | | | | | | | | | the dynamic linker didn't clean up properly. A subsequent dlopen() of the same object would appear to succeed. Another excellent fix from Max Khon. PR: bin/12471 Submitted by: Max Khon <fjoe@iclub.nsu.ru> Notes: svn path=/head/; revision=48708
* Shake hands with GDB a little bit earlier so that it is possible toJohn Polstra1999-07-031-3/+3
| | | | | | | | | debug the init functions. Submitted by: dfr Notes: svn path=/head/; revision=48543
* Update the SYNOPSIS to reflect that the -l option can be specifiedMike Pritchard1999-06-281-2/+3
| | | | | | | | | more than once. Pointed-out-by: sheldonh Notes: svn path=/head/; revision=48313
* Fix a reference counting problem when using dlopen(NULL, ...).John Polstra1999-06-251-3/+4
| | | | | | | PR: bin/12129 Notes: svn path=/head/; revision=48208
* Fix a serious performance bug for large programs on the Alpha,John Polstra1999-06-257-103/+231
| | | | | | | | | | | | | | | | | | discovered by Hidetoshi Shimokawa. Large programs need multiple GOTs. The lazy binding stub in the PLT can be reached from any of these GOTs, but the dynamic linker only has enough information to fix up the first GOT entry. Thus calls through the other GOTs went through the time-consuming lazy binding process on every call. This fix rewrites the PLT entries themselves to bypass the lazy binding. Tested by Hidetoshi Shimokawa and Steve Price. Reviewed by: Doug Rabson <dfr@freebsd.org> Notes: svn path=/head/; revision=48205
* Identify illegal switches, don't print them as '?' in the error..Peter Wemm1999-05-181-2/+2
| | | | Notes: svn path=/head/; revision=47291
* Fix ypxfr so that it can be run from cron.Bill Paul1999-05-101-4/+4
| | | | | | | Patch submitted by: Dan Nelson <dnelson@emsphone.com> Notes: svn path=/head/; revision=46929
* Add missing -A option to SYNOPSIS.Guy Helmer1999-05-041-1/+2
| | | | | | | PR: docs/10771 Notes: svn path=/head/; revision=46439
* More egcs warning fixes:Warner Losh1999-04-257-14/+19
| | | | | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). Reviewed by: obrien and chuckr Notes: svn path=/head/; revision=46078
* Back out my change from 6 April PDT that added a new dlversion()John Polstra1999-04-221-16/+1
| | | | | | | | | | function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it. Notes: svn path=/head/; revision=45929
* After relocating the main program, but before calling any of theJohn Polstra1999-04-211-7/+33
| | | | | | | | | _init() functions, initialize the global variables "__progname" and "environ". This makes it possible for the _init() functions to call things like getenv() and err(). Notes: svn path=/head/; revision=45890
* The ELF specification says that the RPATH in the executable orJohn Polstra1999-04-091-4/+4
| | | | | | | | shared object takes precedence over LD_LIBRARY_PATH. Make the dynamic linker do it that way. Notes: svn path=/head/; revision=45510
* Eliminate all machine-dependent code from the main source body andJohn Polstra1999-04-0914-88/+488
| | | | | | | | | | | | | | | | | | the Makefile, and move it down into the architecture-specific subdirectories. Eliminate an asm() statement for the i386. Make the dynamic linker work if it is built as an executable instead of as a shared library. See i386/Makefile.inc to find out how to do it. Note, this change is not enabled and it might never be enabled. But it might be useful in the future. Building the dynamic linker as an executable should make it start up faster, because it won't have any relocations. But in practice I suspect the difference is negligible. Notes: svn path=/head/; revision=45501
* Determine the host name using an array size ofBrian Somers1999-04-081-2/+3
| | | | | | | | | | | | MAXHOSTNAMELEN and call trimdomain() before implementing the -u option. This allows local hosts of a lan with a long domain name to appear properly in utmp by base host name (w/o domain) rather than by IP number. Notes: svn path=/head/; revision=45492
* Really fix -u....Brian Somers1999-04-071-2/+6
| | | | Notes: svn path=/head/; revision=45423
* Ensure that things returned by gethostname() andBrian Somers1999-04-0713-43/+52
| | | | | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde Notes: svn path=/head/; revision=45422
* Fix the size of rhost, don't forget to NUL terminateBrian Somers1999-04-071-2/+3
| | | | | | | | it and use brackets for sizeof. Requested by: bde Notes: svn path=/head/; revision=45418
* Fix a couple of typos in comments.John Polstra1999-04-071-3/+3
| | | | Notes: svn path=/head/; revision=45399
* Add a new function dlversion() which returns the version number ofJohn Polstra1999-04-071-1/+16
| | | | | | | | | the dynamic linker in the same form as __FreeBSD_version. This is mainly intended for checking the dynamic linker version during a make world. Notes: svn path=/head/; revision=45398
* Link with libutilBrian Somers1999-04-062-4/+6
| | | | Notes: svn path=/head/; revision=45396
* Use realhostname() rather than various combinations ofBrian Somers1999-04-069-170/+51
| | | | | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length. Notes: svn path=/head/; revision=45393