summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Correct a denial-of-service vulnerability in zlib.nectar2004-08-262-0/+6
| | | | | | | For reference, this bug was first reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=252253 Submitted by: "Dmitry V. Levin" <ldv@altlinux.org>
* Don't forget to va_end() the va_list we get from va_copy().des2004-08-262-0/+2
| | | | | Submitted by: Sean McNeil <sean@mcneil.com> MFC after: 3 days
* Don't edit permissions of pre-existing directories during extract.kientzle2004-08-261-1/+1
| | | | | | | | This closes a security hole. Otherwise, libarchive will happily extract into directories to which it lacks write permissions by resetting the permissions during the extract. Thanks to: Kris Kennaway
* It is not legal to re-use a va_list variable. This causedkientzle2004-08-261-1/+4
| | | | | | a crash on amd64, in particular. Thanks to: Sean McNeil
* Add missing brackets. It was committed from wrong tree.davidxu2004-08-262-2/+2
|
* gcc -O2 cleanup. tested for a long time.davidxu2004-08-254-8/+8
| | | | Reviewed by: deischen
* Make profiling actually work. The gcc compiler emits a call to themarcel2004-08-252-4/+79
| | | | | | | | | | | | | _mcount() stub when profiling is enabled. Emit this code sequence for assembly routines as welli (MCOUNT definition in <machine/asm.h>. We do not pass the GOT entry however as the 4th argument, because it's not used. The _mcount() stub calls __mcount(), which does the actual work. Define _MCOUNT_DECL to define __mcount. We do not have an implementation of mcount(), so we define MCOUNT as empty, but have a weak alias to _mcount() in _mcount.S. Note that the _mcount() stub in the kernel is slightly different from the stub in userland. This is because we do not have to worry about nested routines in the kernel.
* note that it is the caller's responsibility to free any buffer passedalfred2004-08-241-0/+5
| | | | to setvbuf(3) and friends.
* Replace the current implementations of ftw() and nftw() with the OpenBSDtjr2004-08-243-193/+208
| | | | | implementations written by Todd C. Miller. These are cleaner, less buggy and actively maintained.
* struct tm.tm_year is listed as 'years since 1900', and is signed. Onpeter2004-08-241-0/+3
| | | | | | | | | | | | | | | | | | | | | 64 bit systems, years roughly -2^31 through 2^31 can be represented in time_t without any trouble. 32 bit time_t systems only range from roughly 1902 through 2038. As a consequence, none of the date munging code for all the various calendar tweaks before then is present. There are other problems including the fact that there was no 'year zero' and so on. So rather than get excited about trying to figure out when the calendar jumped by two weeks etc, simply disallow negative (ie: prior to 1900) years. This happens to have an important side effect. If you bzero a 'struct tm', it corresponds to 'Jan 0, 1900, 00:00 GMT'. This happens to be representable (after canonification) in 64 bit time_t space. Zero tm structs are generally an error and mktime normally returns -1 for them. Interestingly, it tries to canonify the 'jan 0' to 'dec 31, 1899', ie: year -1. This conveniently trips the negative year test above, which means we can trivially detect the null 'tm' struct. This actually tripped up code at work. :-/ (Don't ask)
* Make sure we allocate at least enough space for the TCB for variant I TLS.dfr2004-08-231-0/+2
| | | | MFC after: 3 days
* Update documentation to match reality: glob() sorts its result accordingtjr2004-08-231-4/+4
| | | | | | | to the current LC_COLLATE setting, not in "ASCII order". PR: 54391 MFC after: 1 week
* Pull debug symbols in for statically linked binary.davidxu2004-08-212-0/+8
| | | | Reviewed by: desichen
* Back out the call to _init_tls() - something is broken there and itdfr2004-08-211-2/+0
| | | | prevents all static binaries from running.
* Re-word warning about the UTF2 encoding, taking care to use the wordtjr2004-08-211-3/+3
| | | | "obsolete" instead of "deprecated".
* Bump document date for previous.tjr2004-08-212-2/+2
|
* Re-word warning about the rune interface, taking care to use the wordtjr2004-08-212-12/+10
| | | | "obsolete" instead of "deprecated".
* Change "deprecated" in link-time warnings about various rune functionstjr2004-08-214-8/+8
| | | | to "obsolete".
* Re-word compatibility section, taking care to use the word "obsolete" totjr2004-08-2114-54/+64
| | | | | describe the 4.4BSD extension of accepting characters (runes) outside of the range of unsigned char.
* Document when this function came into FreeBSD.obrien2004-08-211-1/+3
|
* build libthr on amd64.davidxu2004-08-191-2/+1
|
* Adjust code to support AMD64, on AMD64, thread needs to set fsbase bydavidxu2004-08-193-7/+31
| | | | | itself before it can execute any other code, so new thread should be created with all signals are masked until after fsbase is set.
* Add AMD64 support code.davidxu2004-08-192-0/+106
|
* Reword recent addition about memory moving.alfred2004-08-191-5/+4
| | | | | | | | Requested by: keramida Bump .Dd Requested by: ru
* Bring ia64 back from the dead. After a call one needs to restore themarcel2004-08-181-1/+1
| | | | | | | | | GP register, because it's clobbered for calls across load modules. The previous commit inserted the call to _init_tls() between the call to atexit() and the restoration of the GP register clobbered by it. Fix: restore GP before we call _init_tls(). Pointy hat: dfr@
* Clarify that realloc and reallocf may move the memory allocation.alfred2004-08-181-3/+7
|
* Always allocate a TLS area even if its empty - libpthread relies ondfr2004-08-181-7/+4
| | | | | | having a valid %gs when it initialises. MFC after: 2 days
* /me kicks cvs updatetrhodes2004-08-171-7/+1
| | | | | | | Revert previous commit, tjr already fixed it and I was too stupid to notice this fact. Approved by: re (to avoid failing cvs ci)
* Fix incorrect code in an example. The previous example would producetrhodes2004-08-171-2/+8
| | | | | | | | | | 19 column positions wide in the first line and 20 in the rest of the lines. This fixes the example to provide the correct output. PR: 53454 Noticed by: Kuang-che Wu <kcwu@kcwu.homeip.net> Submitted by: Marc Silver <marcs@draenor.org> Approved by: re (scottl)
* Fix compile, s/tp_dtv/tp_tdv/g.davidxu2004-08-167-7/+7
|
* Fix alpha build and add __FBSDID.dfr2004-08-161-1/+4
| | | | PR: 70518
* Bring PPC up to date with latest TLS changes.grehan2004-08-164-6/+6
|
* Plug a memory leak in error case.davidxu2004-08-161-1/+3
|
* 1. Use libpthread's exported symbols to calcuate offset in data structuredavidxu2004-08-163-130/+130
| | | | 2. Enable TLS debugger support.
* 1. Add macro DTV_OFFSET to calculate dtv offset in tcb.davidxu2004-08-1618-3/+40
| | | | 2. Export symbols needed by debugger.
* Add a file to collection all symbols will be needed by debugger.davidxu2004-08-162-0/+120
|
* Add rtld-elf to the include path for the rtld to pthread TLS interface.dfr2004-08-151-0/+1
|
* Add TLS support for i386 and amd64.dfr2004-08-1520-66/+84
|
* Add TLS support for libthr on i386.dfr2004-08-152-74/+29
|
* Add support for TLS in statically linked programs.dfr2004-08-1521-8/+490
|
* Avoid using void pointers in additive expressions.stefanf2004-08-143-3/+6
| | | | PR: 56653
* Fix outgoing ICMP on global instance.phk2004-08-141-5/+5
|
* Eliminate reliance on non-portable <err.h> by implementing a verykientzle2004-08-1411-39/+104
| | | | | | | simple errx() function. Improve behavior when bzlib/zlib are missing by detecting and issuing an error message on attempts to read gzip/bzip2 compressed archives.
* We don't need <paths.h>, so don't bother including it.kientzle2004-08-142-2/+1
|
* Avoid using void pointers in additive expressions.stefanf2004-08-132-2/+2
| | | | | PR: 56653 (libc/rpc bits) Approved by: alfred
* Document the MNT_SNAPSHOT mount flag with a cross-referenceroam2004-08-131-1/+7
| | | | | | | to mksnap_ffs(8). PR: 70402 Submitted by: James Raftery <james@now.ie>
* 1. Add missing functions: libthr_dbresume,libthr_dbsuspend.davidxu2004-08-131-20/+77
| | | | | | 2. Implement functions: libthr_db_thr_setfpregs, libthr_db_thr_setregs, libthr_db_ta_map_id2thr. 3. simplify libthr_db_thr_getfpregs, libthr_db_thr_getgregs.
* Fix example.tjr2004-08-121-4/+5
|
* Implement wcwidth() as an inline function.tjr2004-08-121-11/+2
|
* As long as we have a knob to force system scope threads, why not havedeischen2004-08-128-16/+26
| | | | | | | | | | | | | a knob to force process scope threads. If the environment variable LIBPTHREAD_PROCESS_SCOPE is set, force all threads to be process scope threads regardless of how the application creates them. If LIBPTHREAD_SYSTEM_SCOPE is set (forcing system scope threads), it overrides LIBPTHREAD_PROCESS_SCOPE. $ # To force system scope threads $ LIBPTHREAD_SYSTEM_SCOPE=anything threaded_app $ # To force process scope threads $ LIBPTHREAD_PROCESS_SCOPE=anything threaded_app
OpenPOWER on IntegriCloud