summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add translation support for section type SHT_SUNW_dof.kaiw2010-08-111-0/+2
| | | | | Submitted by: rpaulo MFC after: 2 weeks
* Several fixes for libproc:rpaulo2010-08-115-9/+25
| | | | | | | | o return the correct status in proc_wstatus() o proc_read takes a void * o correctly allocate the objs structure array Sponsored by: The FreeBSD Foundation
* Small style(9) fix: use tabs instead of spaces.ed2010-08-081-8/+8
|
* Remove unneeded functions from libcompat.ed2010-08-068-439/+4
| | | | | | Erwin fired up a ports build a couple of weeks ago and it seems the following functions are not used by any of the 20k ports we have, which makes me believe they don't have any purpose. Just remove them.
* Fix typos and spelling mistakes.joel2010-08-0613-17/+17
|
* Comment out IEEE Std 1003.1-2001 conformance proclaimed too early,ache2010-08-051-5/+5
| | | | | see problems described in the comment to: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/128933
* Fix typo.joel2010-08-031-1/+1
|
* Spelling fixes.joel2010-08-0313-19/+19
|
* Spelling fixes.joel2010-08-027-9/+9
|
* mdoc policing: use consistent section ordering, fix quotes and trailinguqs2010-08-021-15/+15
| | | | | | whitespace Approved by: rpaulo
* mdoc: remove unbalanced quotesuqs2010-08-022-6/+6
|
* mdoc: make sure to pass at least one argument to quotation macrosuqs2010-08-024-4/+4
|
* Disable all warnings when building gdtoa. This allows building libc withrpaulo2010-08-011-1/+1
| | | | | | | | | | clang. The general idea is that the vendor will not accept our compilation patches and so disabling the warnings is the best way to go as it makes future imports bearable. Submitted by: Dimitry Andric <dimitry at andric.com> Discussed with: das
* Use CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all therpaulo2010-08-011-2/+1
| | | | | | | correct flags are being used (esp. NO_WERROR wrt clang). Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: ru
* Revert SHLIB_MAJOR to 2.rpaulo2010-07-311-1/+1
| | | | | As discussed with kan@, since DTrace is the only consumer of libproc right now, there's no need for a major shlib bump.
* Build librtld_db.rpaulo2010-07-311-0/+2
| | | | Sponsored by: The FreeBSD Foundation
* Bump the shared library major version due to ABI conflicts.rpaulo2010-07-311-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* New version of libproc. Changes are:rpaulo2010-07-3116-76/+1316
| | | | | | | | | | | * breakpoint setup support * register query * symbol to address mapping and vice-versa * more misc utility functions based on their Solaris counterpart Also, I've written some test cases. Sponsored by: The FreeBSD Foundation
* Simplify the Makefile. The i386 and amd64 sections are equal.rpaulo2010-07-311-10/+1
| | | | Sponsored by: The FreeBSD Foundation
* libproc is going to be i386/amd64 only with the next update.rpaulo2010-07-311-1/+3
| | | | Sponsored by: The FreeBSD Foundation
* Import the librtld_db library. This is needed by userland DTrace.rpaulo2010-07-314-0/+581
| | | | | | | This is not yet enabled in the build because I also need to import a new version of libproc. Sponsored by: The FreeBSD Foundation
* Fix a couple of typos.uqs2010-07-301-1/+1
| | | | | | PR: docs/148891 Submitted by: olgeni MFC after: 1 week
* Redo fetch_read() using non-blocking sockets. This is necessary todes2010-07-281-20/+89
| | | | | | | | | avoid a hang in the SSL case if the server sends a close notification before we are done reading. In the non-SSL case, it can provide a minor (but probably not noticeable) performance improvement for small transfers. MFC after: 3 weeks
* Fix a couple of embarrassing mistakes in the previous commit.des2010-07-281-2/+2
| | | | Submitted by: Dimitry Andric <dimitry@andric.com>
* Protect GNUHASH translation functions with #ifdef; unbreak crosskaiw2010-07-281-0/+4
| | | | | | | toolchain build. Reported by: jchandra MFC after: 1 month
* Update mlockall(2) to mention that it's superuser-only syscall, justtrasz2010-07-272-4/+7
| | | | | | | like the mlock(2) manual page says. Update mlock(2) to say that hitting RLIMIT_MEMLOCK results in ENOMEM, not EAGAIN. MFC after: 1 month
* Apply a small grammar fix to {toupper,tolower}(3).bcr2010-07-252-4/+4
| | | | | | PR: docs/140458 Submitted by: Jeremy Huddleston (Jeremyhu at apple dot com) MFC after: 5 days
* Build clang libraries by default with -fno-exceptions and withrpaulo2010-07-224-0/+14
| | | | | | | | | -fno-rtti. The clang libaries that really use exceptions and virtual functions can enable LLVM_REQUIRES_EH and LLVM_REQUIRES_RTTI respectively. This saves space on the resulting binaries and follows what's being done upstream. Submitted by: Dimitry Andric <dimitry at andric.com>
* Verify return value of the sigset manipulation functionskib2010-07-221-22/+14
| | | | | | | | to catch invalid signal numbers [1]. Use consistent style of not assigning the return value to a local variable. Reported by: Garrett Cooper <yanegomi gmail com> [1] MFC after: 1 week
* * Remove a superfluous error description.kaiw2010-07-211-7/+5
| | | | | | | * Document an additional error that may be returned: `ELF_E_ARCHIVE`. Obtained from: elftoolchain MFC after: 1 month
* Add a cross-reference to `elf_rawfile(3)`.kaiw2010-07-211-2/+3
| | | | | Obtained from: elftoolchain MFC after: 1 month
* * Note that ar(1) archives may also be opened using `elf_memory(3)`.kaiw2010-07-212-6/+10
| | | | | | | | * Ignore the passed in value of the `fd` argument for ar(1) archives opened with elf_memory(3). Obtained from: elftoolchain MFC after: 1 month
* Remove a redundant word.kaiw2010-07-211-2/+2
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Move helper functions `_libelf_ar_get_{name,number,string}()` andkaiw2010-07-214-212/+258
| | | | | | | | | `_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c" to break the circular dependency between "elf_memory.o" and "libelf_ar.o". Obtained from: elftoolchain MFC after: 1 month
* Fix a memory leak.kaiw2010-07-211-2/+4
| | | | | Obtained from: elftoolchain MFC after: 1 month
* * Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` inkaiw2010-07-2112-26/+336
| | | | | | | | | | | | favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()` respectively. * Add new manual pages for `elf_getshdrstrndx()`, `elf_getphdrnum()` and `elf_getshdrnum()`. * Add a deprecation warning for `elf_getshstrndx()`, `elf_getphnum()` and `elf_getshnum()`. Obtained from: elftoolchain MFC after: 1 month
* Avoid switching between "unsigned char" and "char" in the C codekaiw2010-07-211-22/+22
| | | | | | | generated from "libelf_convert.m4". Obtained from: elftoolchain MFC after: 1 month
* Add support for translating sections of type ELF_T_GNUHASH.kaiw2010-07-212-2/+208
| | | | | Obtained from: elftoolchain MFC after: 1 month
* - Document that the *fsize() functions return a size of 1 for Elfkaiw2010-07-214-12/+10
| | | | | | | | | | types that don't have a fixed size. - The *fsize() functions should return a size of 1, for variable length types. - Redefine symbol ELF_T_LAST to match the current end of the list. Obtained from: elftoolchain MFC after: 1 month
* Perform additional checks when translating between file and memorykaiw2010-07-217-65/+114
| | | | | | | | | | | | | | | | | | | representations of ELF types. The ELF(3) API allows applications to request a conversion that is `in-place', i.e., with source and destinations data buffers being the same. However, the file and memory sizes of ELF sections that have additional internal structure, such as those of type `Elf_Note', or `Elf_GNU_Hash_Header', can be determined only known after the type-specific headers that comprise the first few words in these sections are read and translated. Pass in the size of destination buffer to type translation routines in "libelf_convert.m4" and have these routines return an error code if the translated data would not fit inside the destination buffer. Obtained from: elftoolchain MFC after: 1 month
* Reduce verbosity.kaiw2010-07-211-2/+2
| | | | | Obtained from: elftoolchain MFC after: 1 month
* - Return zero for file sizes of ELF types that have a variable size.kaiw2010-07-211-6/+9
| | | | | | | - Neaten a few comments. Obtained from: elftoolchain MFC after: 1 month
* Note that the *_fsize() functions are only defined for ELF types thatkaiw2010-07-211-0/+7
| | | | | | | have a fixed size. Obtained from: elftoolchain MFC after: 1 month
* Changes for supporting GNU Hash sections.kaiw2010-07-213-2/+14
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Add a new ELF type denoting GNU style hash tables.kaiw2010-07-211-0/+1
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Allow an application that updates only the ELF Ehdr to work.kaiw2010-07-213-7/+8
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Use <unistd.h> to declare the prototype for ftruncate().kaiw2010-07-211-0/+1
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Bug fix: permit the creation of zero-sized sections.kaiw2010-07-211-5/+7
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Improve compatibility with other implementations of the ELF(3) API:kaiw2010-07-211-2/+2
| | | | | | | | when an output file has no program headers, set the 'e_phentsize' field of the ELF executable header to zero. Obtained from: elftoolchain MFC after: 1 month
* Bug fix: when updating headers using the gelf_update_*() functions,kaiw2010-07-213-6/+6
| | | | | | | | the appropriate `dirty' bit needs to be set for both the Elf32 and Elf64 case. Obtained from: elftoolchain MFC after: 1 month
OpenPOWER on IntegriCloud