summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix ptsname(3) by converting it to use devname(3) to obtain the name ofmarcus2005-07-071-3/+4
| | | | | | | | | | | | a tty device instead of the legacy minor number approach. This is known to fix gnome-vfs' sftp module as well as kio_sftp and kdesu on -CURRENT. Thanks to scottl for the snprintf() approach idea. Reviewed by: phk Tested by: pav mich Approved by: re (scottl)
* Minor grammar fixdelphij2005-07-031-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan at freebsd czest pl] Approved by: re (hrs)
* Use 'manual page' instead of 'man page' for consistency.hmp2005-06-302-2/+2
| | | | Approved by: re (hrs)
* Clean out the leftovers from the i386_set_gsbase() TLS conversion.peter2005-06-291-18/+1
| | | | | | | | Like on libthr, there is an i386_set_gsbase() stub implementation here to avoid libc.so.5 issues. This should likely be a weak symbol and I expect this will be fixed soon. Approved by: re
* Add the functions _Qp_cmp() and _Qp_cmpe() as described in the Sparcstefanf2005-06-211-8/+11
| | | | | | | | Compliance Definition. On sparc64, GCC emits _Qp_cmp() calls for its __builtin_isfoo() functions which are used for C99's isfoo() macros. Approved by: re(dwhite) PR: 73782
* Markup fixes.ru2005-06-161-7/+10
| | | | Approved by: re
* Assorted markup fixes.ru2005-06-158-34/+59
| | | | Approved by: re
* When IPC_NOWAIT is set and there is no message, msgrcv() failsru2005-06-141-3/+3
| | | | | | | | with errno set to ENOMSG. PR: docs/82217 Submitted by: delphij Approved by: re (blanket)
* Remove rexecd(8), a server that implements a particularly insecurenectar2005-06-101-2/+0
| | | | | | | method of executing commands remotely. There are no rexec clients in the FreeBSD tree, and the client function rexec(3) is present only in libcompat. It has been documented as "obsolete" since 4.3BSD, and its use has been discouraged in the man page for over 10 years.
* Fix the wording in this man page so that itrodrigc2005-06-101-2/+4
| | | | | | | | | | reflects the actual behavior of the API for listing extended attributes. PR: docs/79261 Submitted by: rodrigc Reviewed by: rwatson, kan Approved by: das (mentor)
* Update .Dd value.alc2005-06-041-1/+1
|
* Eliminate the original method of requesting notification of aio_read(2) andalc2005-06-041-9/+0
| | | | | | | | | | | | | | | | | aio_write(2) completion through kevent(2). This method does not work on 64-bit architectures. It was deprecated in FreeBSD 4.4. See revisions 1.87 and 1.70.2.7. Change aio_physwakeup() to call psignal(9) directly rather than indirectly through a timeout(9). Discussed with: bde Correct a bug introduced in revision 1.65 that could result in premature delivery of a signal if an lio_listio(2) consisted of a mixture of direct/raw and queued I/O operations. Observed by: tegge Eliminate a field from struct kaioinfo that is now unused. Reviewed by: tegge
* Missed rwatson's redundancyimp2005-06-031-2/+0
|
* reflect type change of n_net and getnetbyaddr(3).ume2005-06-031-2/+2
|
* - Remove padding for ABI compatibility of n_net member from structume2005-06-034-17/+1
| | | | | | | | | | | | | netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001. These changes break ABI compatibility on 64 bit arch. There is similar padding issue for ai_addrlen of struct addrinfo. However, it is leaved as is for now. Discussed on: arch@, standards@ and current@ X-MFC after: never
* reduce cast.ume2005-05-271-3/+3
| | | | MFC after: 1 week
* Fix long (and long long) to long double, unsigned to long double and unsignedstefanf2005-05-272-10/+24
| | | | | | | | | | | | | | | long (and unsigned long long) to long double conversions. - Add a parameter that specifies the position of the sign bit to the _QP_TTOQ macro, previously it always looked at bit 31. Pass a negative number to disable sign inspection for unsigned types. This fixes _Qp_xtoq(), _Qp_uitoq() and _Qp_uxtoq(). - In the functions __fpu_itof() and __fpu_xtof(), look at the sign bit to decide whether we're doing a conversion from an unsigned type. If so, don't negate the mantissa if the integer exceeds the biggest signed number. PR: 55773 Patch by: Stephen Paskaluk (based upon) MFC after: 2 weeks
* reduce strlen() call.ume2005-05-201-4/+6
|
* use reentrant.h and simplify.ume2005-05-201-29/+20
|
* check return value of ttyname_r().ume2005-05-201-1/+2
|
OpenPOWER on IntegriCloud