summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add an asm version of strlen() for arm (how useful).cognet2005-10-032-1/+78
|
* Just by allocating size*2 bytes we can't be sure that new size will be enough,ache2005-09-181-2/+2
| | | | | | | | | | | so change two if (size not enough) { reallocf(size*2); } into while (size not enough) { reallocf(size*2); }
* Use the correct function name as .Nm argument.brueffer2005-09-181-1/+1
| | | | | | PR: 86169 Submitted by: Toby Peterson <toby@apple.com> MFC after: 3 days
* Cosmetic fixes to prev. commit.ache2005-09-151-4/+4
| | | | | | | | Change first MAXPATHLEN to more standard PATH_MAX Change second MAXPATHLEN to 1024 (it is temp buffer not related) Change comment to reflect that. Suggested by: bde
* Remove any hardcoded assumptions about malloc's way of allocating,ache2005-09-141-4/+4
| | | | | | | | | just use MAXPATHLEN. It prevents potential buffer overflow with other malloc implementations. (this change based on submitted patch) PR: 86135 Submitted by: Trevor Blackwell <tlb@tlb.org>
* Don't reuse *pl to skip [], it is already used for {} parts in the loop aboveache2005-09-141-3/+3
| | | | | | | (submitted patch slightly modified) PR: 86038 Submitted by: Gerd Rausch <gerd@juniper.net>
* Include a couple of headers to ensure consistency between the prototype andstefanf2005-09-1216-0/+22
| | | | the function definition.
* - Add prototypes for __cmpdi2() and __ucmpdi2().stefanf2005-09-121-10/+2
| | | | - Remove GCC 1 stuff.
* Use prototypes for CHIN1() and CHIN().stefanf2005-09-121-6/+2
|
* Move the declaration of __cleanup to libc_private.h as it is used in bothstefanf2005-09-125-4/+12
| | | | stdio/ and stdlib/. Don't define __cleanup twice.
* Add a couple of missing MLINKS.stefanf2005-09-111-0/+17
|
* The arguments for time2posix() and posix2time() are time_t values, notstefanf2005-09-111-3/+3
| | | | pointers.
* Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it'srwatson2005-09-101-0/+1
| | | | | | mentioned in the description. MFC after: 2 days
* Add an MLINK for devname_r().stefanf2005-09-101-0/+1
|
* The header and the man page say that sethostid() returns void, so make thestefanf2005-09-101-4/+4
| | | | definition match. Include <unistd.h>.
* Fix parameter types of close and get members in DB.stefanf2005-09-101-2/+2
|
* Remove references to nonexistent "FreeBSD Security Architecture" document.tjr2005-09-055-25/+0
|
* Added a sentence to explain what "span" means.garys2005-08-292-1/+15
| | | | | | | PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida
* - Document the fact that the real length of listen queue is 1.5 moreglebius2005-08-291-1/+16
| | | | | | | | | | than the value of backlog argument. - Document the fact that a subsequent listen(2) calls on the listening socket change the backlog argument. - Note that current listen queue lengths can be queried using netstat(1). Submitted by: Igor Sysoev <is rambler-co.ru> Wording by: gnn
* Add the function memmem(3) as found in glibc and others.andre2005-08-256-5/+159
| | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
* Include <sys/types.h> and <limits.h> ourselves, don't assume they are includedstefanf2005-08-205-0/+5
| | | | | | | | | | through <pthread.h>. gen/sem.c: Prerequisite for <_semaphore.h> net/getprotoent.c: USHRT_MAX net/getservent.c: USHRT_MAX stdio/ungetwc.c: MB_LEN_MAX stdio/vfwscanf.c: MB_LEN_MAX
* Fix a boundary condition error in slow() and fast() in multibyte locales:tjr2005-08-171-6/+7
| | | | | we must allow the character beginning at "p" to be converted to a wide character for the purposes of EOL processing and word-boundary matching.
* Document the fact that word-boundary matching does not worktjr2005-08-171-1/+3
| | | | properly in multibyte locales.
* Add an implementation of the semi-standard wcsdup() function, as foundtjr2005-08-133-4/+53
| | | | on Microsoft and GNU systems.
* Change OUT from -2 to CHAR_MIN-1, making it impossible for it totjr2005-08-131-1/+1
| | | | | | | | | inadvertently match a negative char in the RE being compiled. This fixes compilation of "\376" (as an ERE) and "\376\376" (as a BRE). PR: 84740 MFC after: 1 week
* Add missing links from getgrent_r.3, getgrnam_r.3, and getgrgid_r.3 tosimon2005-08-121-1/+2
| | | | | | | getgrent.3. Submitted by: Ulf Lilleengen <lulf@kerneled.org> MFC after: 3 days
* Respect the YES_HESIOD build variable.phk2005-08-062-3/+9
|
* Make syslog() use the internal (non-cancellation point) _usleep().deischen2005-08-031-1/+1
| | | | | Prior to this it was calling the cancellable usleep() while holding a lock.
* Make usleep() overridable by the thread libraries so they can providedeischen2005-08-031-1/+4
| | | | | | cancellation points. Noticed by: phk
* Add namespace #defines for usleep.deischen2005-08-032-0/+2
|
* Fix all the spelling mistakes I could find in the man pages for wordskeramida2005-07-317-9/+9
| | | | | | | | that have at least 3 characters. MFC after: 1 week Thanks to: Music band ``Chingon'' for keeping me company while searching for these.
* Document the ECONNRESET errno value.dds2005-07-292-0/+7
|
* don't accept invalid form of an address like 1:2:3:4:5:6:7::8.ume2005-07-271-0/+4
| | | | | | PR: bin/84106 Obtained from: BIND9 MFC after: 2 days
* Move initialization above point of first possible reference tomdodd2005-07-251-3/+4
| | | | | | | avoid overwriting ty_status values set from the 'type' field. Previously TTY_DIALUP and TTY_NETWORK flags did not match specified type.
* Speed up __wcsconv() (and hence the printf() %ls format):tjr2005-07-241-34/+30
| | | | | - use wcsrtombs() instead of a wcrtomb() loop where possible. - avoid wcrtomb() loop when output precision is small.
* Better translation.pjd2005-07-231-1/+1
|
* fix innetgr() returning false positives and negatives when reverse netgroupjon2005-07-221-54/+63
| | | | | | | matching is used. PR: 35506 MFC after: 3 days
* Remove padding for ABI compatibility of ai_addrlen memberume2005-07-221-3/+0
| | | | | from struct addrinfo. This change break ABI compatibility on 64 bit arch.
* Add HISTORY section.tjr2005-07-211-1/+6
|
* Add cross-reference to nextwctype(3).tjr2005-07-211-1/+2
|
* Add COMPATIBILITY and HISTORY sections. Fix typo.tjr2005-07-211-2/+13
|
* refer RFC 3542 rather than RFC 2292bis.ume2005-07-193-4/+4
| | | | | Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
* fixed the validation code of routing header length in inet6_rth_getaddr().ume2005-07-191-4/+3
| | | | | | | reported by Delia Kecskemeti <delia.kecskemeti__at__windriver.com> Submitted by: Keiichi SHIMA <keiichi__at__iijlab.net> Obtained from: KAME
* remove the supposed max of 2^31, it hasn't been this small in a veryjmg2005-07-181-4/+1
| | | | | | | | long time... i.e. since this file was imported... (ufs1 supports much larger files then this)... Submitted by: Ivan Voras MFC after: 1 week
* Remove confusing "single C char locales" phrase; arguments to thesetjr2005-07-1712-106/+44
| | | | | functions and must now be either an unsigned char or EOF, regardless of locale.
* Remove confusing "single C char locales" phrase; arguments to tolower()tjr2005-07-172-18/+6
| | | | | and toupper() must now be either an unsigned char or EOF, regardless of locale.
* Use better Korean translation for `trap'jkim2005-07-162-6/+6
| | | | | | Requested by: many Korean users from bsdforum.or.kr Submitted by: perky Approved by: anholt (mentor)
* Document the fact that if MAP_FIXED request has been successful itsobomax2005-07-151-0/+7
| | | | | | replaces any previous mapping to the same address. Obtained from: IEEE Std 1003.1, 2004 Edition
* Cross-reference sem_getvalue(3) from several other semaphore-relatedrwatson2005-07-133-0/+3
| | | | | | functions. MFC after: 3 days
* - Add two new system calls: preadv() and pwritev() which are like readv()jhb2005-07-073-16/+48
| | | | | | | | | | | | | | | | | and writev() except that they take an additional offset argument and do not change the current file position. In SAT speak: preadv:readv::pread:read and pwritev:writev::pwrite:write. - Try to reduce code duplication some by merging most of the old kern_foov() and dofilefoo() functions into new dofilefoo() functions that are called by kern_foov() and kern_pfoov(). The non-v functions now all generate a simple uio on the stack from the passed in arguments and then call kern_foov(). For example, read() now just builds a uio and calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev(). PR: kern/80362 Submitted by: Marc Olzheim marcolz at stack dot nl (1) Approved by: re (scottl) MFC after: 1 week
OpenPOWER on IntegriCloud