summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak memmove(). Return the dst argument. While here, fix the ENDMarcel Moolenaar2004-09-041-7/+6
| | | | | | | macro to actually reference memmove, not memcpy. Notes: svn path=/head/; revision=134743
* Unbreak memcpy(). memcpy() is defined to return the dst argument.Marcel Moolenaar2004-09-041-6/+5
| | | | | | | | | By using r8 instead of r14 to do the swap, we put the dst argument in the return register. Since bcopy() doesn't clobber r8, we don't have to do anything else. This fixes ports/textproc/aspell. Notes: svn path=/head/; revision=134739
* Add a BUGS section and copy the wording from mmap(2)'s MAP_NOSYNC,Peter Pentchev2004-09-031-0/+9
| | | | | | | | | | | | documenting the obsoleteness of the msync(2) syscall and its single remaining purpose. PR: 70916 Submitted by: Radim Kolar <hsn@netmag.cz> MFC after: 3 days Notes: svn path=/head/; revision=134682
* Septepber -> SeptemberTim J. Robbins2004-09-011-1/+1
| | | | | | | Noticed by: ru Notes: svn path=/head/; revision=134620
* Back out the previous change. glob() still does use strcmp() to orderTim J. Robbins2004-09-011-4/+4
| | | | | | | pathnames. Notes: svn path=/head/; revision=134600
* Add cross-reference to ftw(3).Tim J. Robbins2004-08-291-0/+1
| | | | Notes: svn path=/head/; revision=134473
* Remove the misleading description of the 'key' argument toPeter Pentchev2004-08-271-17/+1
| | | | | | | | | | | | mpool_open(3) - it is *not* really used for synchronization; in fact, it is not used at all. PR: 70929 Submitted by: Martin Kammerhofer <dada@sbox.tugraz.at> MFC after: 3 days Notes: svn path=/head/; revision=134381
* Don't forget to va_end() the va_list we get from va_copy().Dag-Erling Smørgrav2004-08-262-0/+2
| | | | | | | | Submitted by: Sean McNeil <sean@mcneil.com> MFC after: 3 days Notes: svn path=/head/; revision=134332
* Make profiling actually work. The gcc compiler emits a call to theMarcel Moolenaar2004-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. Notes: svn path=/head/; revision=134287
* note that it is the caller's responsibility to free any buffer passedAlfred Perlstein2004-08-241-0/+5
| | | | | | | to setvbuf(3) and friends. Notes: svn path=/head/; revision=134277
* Replace the current implementations of ftw() and nftw() with the OpenBSDTim J. Robbins2004-08-243-193/+208
| | | | | | | | implementations written by Todd C. Miller. These are cleaner, less buggy and actively maintained. Notes: svn path=/head/; revision=134244
* struct tm.tm_year is listed as 'years since 1900', and is signed. OnPeter Wemm2004-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) Notes: svn path=/head/; revision=134231
* Make sure we allocate at least enough space for the TCB for variant I TLS.Doug Rabson2004-08-231-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=134212
* Update documentation to match reality: glob() sorts its result accordingTim J. Robbins2004-08-231-4/+4
| | | | | | | | | | to the current LC_COLLATE setting, not in "ASCII order". PR: 54391 MFC after: 1 week Notes: svn path=/head/; revision=134208
* Re-word warning about the UTF2 encoding, taking care to use the wordTim J. Robbins2004-08-211-3/+3
| | | | | | | "obsolete" instead of "deprecated". Notes: svn path=/head/; revision=134108
* Bump document date for previous.Tim J. Robbins2004-08-212-2/+2
| | | | Notes: svn path=/head/; revision=134107
* Re-word warning about the rune interface, taking care to use the wordTim J. Robbins2004-08-212-12/+10
| | | | | | | "obsolete" instead of "deprecated". Notes: svn path=/head/; revision=134106
* Change "deprecated" in link-time warnings about various rune functionsTim J. Robbins2004-08-214-8/+8
| | | | | | | to "obsolete". Notes: svn path=/head/; revision=134104
* Re-word compatibility section, taking care to use the word "obsolete" toTim J. Robbins2004-08-2114-54/+64
| | | | | | | | describe the 4.4BSD extension of accepting characters (runes) outside of the range of unsigned char. Notes: svn path=/head/; revision=134103
* Reword recent addition about memory moving.Alfred Perlstein2004-08-191-5/+4
| | | | | | | | | | | Requested by: keramida Bump .Dd Requested by: ru Notes: svn path=/head/; revision=134020
* Clarify that realloc and reallocf may move the memory allocation.Alfred Perlstein2004-08-181-3/+7
| | | | Notes: svn path=/head/; revision=133985
* Always allocate a TLS area even if its empty - libpthread relies onDoug Rabson2004-08-181-7/+4
| | | | | | | | | having a valid %gs when it initialises. MFC after: 2 days Notes: svn path=/head/; revision=133949
* /me kicks cvs updateTom Rhodes2004-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) Notes: svn path=/head/; revision=133915
* Fix incorrect code in an example. The previous example would produceTom Rhodes2004-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) Notes: svn path=/head/; revision=133914
* Fix alpha build and add __FBSDID.Doug Rabson2004-08-161-1/+4
| | | | | | | PR: 70518 Notes: svn path=/head/; revision=133821
* Add support for TLS in statically linked programs.Doug Rabson2004-08-1514-8/+473
| | | | Notes: svn path=/head/; revision=133754
* Avoid using void pointers in additive expressions.Stefan Farfeleder2004-08-141-1/+1
| | | | | | | PR: 56653 Notes: svn path=/head/; revision=133723
* Avoid using void pointers in additive expressions.Stefan Farfeleder2004-08-132-2/+2
| | | | | | | | PR: 56653 (libc/rpc bits) Approved by: alfred Notes: svn path=/head/; revision=133693
* Document the MNT_SNAPSHOT mount flag with a cross-referencePeter Pentchev2004-08-131-1/+7
| | | | | | | | | | to mksnap_ffs(8). PR: 70402 Submitted by: James Raftery <james@now.ie> Notes: svn path=/head/; revision=133654
* Fix example.Tim J. Robbins2004-08-121-4/+5
| | | | Notes: svn path=/head/; revision=133566
* Implement wcwidth() as an inline function.Tim J. Robbins2004-08-121-11/+2
| | | | Notes: svn path=/head/; revision=133564
* Update "documentation date" fields.Brian Feldman2004-08-101-1/+1
| | | | Notes: svn path=/head/; revision=133439
* Update mlock(2) manpage to cross-reference m{,un}lockall(2), removeBrian Feldman2004-08-101-1/+5
| | | | | | | | a case where ENOMEM could be returned by munlock(2), and add possible system deadlock to the BUGS section. Notes: svn path=/head/; revision=133437
* Fix an off-by-one bug that caused the first character of the buffer toTim J. Robbins2004-08-061-2/+1
| | | | | | | be uninitialized. Notes: svn path=/head/; revision=133223
* Bump the document date, since the content changed today.Peter Pentchev2004-08-063-3/+3
| | | | | | | Discussed with: ru Notes: svn path=/head/; revision=133218
* Fix a case of _SC_CLK_TCK being misspelled as _SC_CLOCK_TCK.Peter Pentchev2004-08-061-1/+1
| | | | | | | | | PR: 69428 Submitted by: Sascha Schneider <suntsu@suntsu.org> MFC after: 2 weeks Notes: svn path=/head/; revision=133216
* Cross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) andPeter Pentchev2004-08-063-0/+4
| | | | | | | | | | | getipnodebyaddr(3). PR: 54229 Submitted by: Samuel Tardieu <sam@inf.enst.fr> MFC after: 2 weeks Notes: svn path=/head/; revision=133209
* Add stubs for TLS functions. These will be replaced at runtime by theDoug Rabson2004-08-032-3/+73
| | | | | | | functional versions in rtld. Notes: svn path=/head/; revision=133064
* Remove an implicit int parameter by using prototypes.Stefan Farfeleder2004-08-021-9/+3
| | | | Notes: svn path=/head/; revision=133004
* Don't pass function pointers via a void * parameter.Stefan Farfeleder2004-08-021-4/+4
| | | | Notes: svn path=/head/; revision=133003
* 1. Use correct alignment mask, -15 != ~15David Xu2004-07-311-2/+2
| | | | | | | 2. Make end of frames Notes: svn path=/head/; revision=132912
* Use #include <unistd.h> rather than the explicit externs in theWarner Losh2004-07-311-2/+1
| | | | | | | | | example. The externs haven't been needed in about 10 years, so there's no reason to have them other than for hysterical raisins. And the California Rasins haven't been around for a long time... Notes: svn path=/head/; revision=132910
* Re-word the COMPATIBILITY section, taking care to use the word "deprecated"Tim J. Robbins2004-07-2912-98/+74
| | | | | | | | | to describe the 4.4BSD extension of accepting arguments outside the range of unsigned char. This gives us freedom to remove this extension when we remove the <rune.h> interface in FreeBSD 6. Notes: svn path=/head/; revision=132859
* Use newly added __used attribute to keep static function symbols from beingAlexander Kabaev2004-07-291-8/+8
| | | | | | | eliminated by compiler optimizer. Notes: svn path=/head/; revision=132849
* Remove unnecessary #include directives.Tim J. Robbins2004-07-293-8/+0
| | | | Notes: svn path=/head/; revision=132821
* Prefer <runetype.h> to <rune.h>, since the latter is going away soon.Tim J. Robbins2004-07-295-5/+5
| | | | Notes: svn path=/head/; revision=132820
* Remove useless checks for characters longer than INT_MAX bytes.Tim J. Robbins2004-07-293-12/+0
| | | | Notes: svn path=/head/; revision=132819
* Add support for multibyte characters.Tim J. Robbins2004-07-291-30/+84
| | | | Notes: svn path=/head/; revision=132817
* Add a paragraph break in the STANDARDS section to improve readability.Tim J. Robbins2004-07-291-0/+1
| | | | Notes: svn path=/head/; revision=132816
* Add support for multibyte characters.Tim J. Robbins2004-07-291-49/+112
| | | | Notes: svn path=/head/; revision=132812