summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Start using .St macro for POSIX.1-2001.Ruslan Ermilov2001-12-082-4/+3
| | | | Notes: svn path=/head/; revision=87533
* Get rid of unused anymore file! Alpha works fine with our strtod() now.Alexey Zelkin2001-12-071-2496/+0
| | | | Notes: svn path=/head/; revision=87501
* Return 'c' back to signed due to potential comparison problemsAndrey A. Chernov2001-12-076-60/+72
| | | | | | | | | Use simpler test for valid ranges Submitted by: bde Notes: svn path=/head/; revision=87494
* Fix a typo.Ruslan Ermilov2001-12-071-1/+1
| | | | | | | Submitted by: "Alexey V. Neyman" <alex.neyman@auriga.ru> Notes: svn path=/head/; revision=87492
* * localeconv() usage is not FLOATING_POINT specific anymore (due to "'" flagAlexey Zelkin2001-12-071-3/+3
| | | | | | | | addition) so move locale.h inclusion out of FLOATING_POINT ifdef's. * add more comments Notes: svn path=/head/; revision=87490
* Make strerror and strerror_r use sys_errlist[0] for errnum = 0. BeWes Peters2001-12-072-6/+32
| | | | | | | | | | | | | | more careful about reporting truncation with ERANGE in strerror_r. Set errno to EINVAL for "unknown" errnum in strerror as required by P1003.1-200x Draft June 14, 2001. More carefully document the handling of strerrbuf when errors (ERANGE, EINVAL) are encountered in strerror_r. Reviewed by: bde (ongoing discussion) Notes: svn path=/head/; revision=87480
* Remove blank line.Bill Fenner2001-12-071-1/+0
| | | | Notes: svn path=/head/; revision=87478
* New, improved, more Posix-compliant strerror_r implementation,Wes Peters2001-12-062-72/+78
| | | | | | | | | | complete with documentation. Reviewed by: mike@ gad@ MFC after: 1 week Notes: svn path=/head/; revision=87434
* Clarify ' ' space issueAndrey A. Chernov2001-12-052-2/+3
| | | | Notes: svn path=/head/; revision=87406
* mdoc(7) police: markup the previous delta.Ruslan Ermilov2001-12-041-1/+3
| | | | Notes: svn path=/head/; revision=87359
* Correct some egregious style bugs.Dag-Erling Smørgrav2001-12-041-13/+21
| | | | Notes: svn path=/head/; revision=87348
* Add a missing error check. This fixes a bug that would cause pwd_mkdb toDag-Erling Smørgrav2001-12-041-1/+2
| | | | | | | | | | | | dump core if invoked with an input file that looks like a password file but isn't (e.g. /etc/group). PR: 32378 Submitted by: Maxim Konovalov <maxim@macomnet.ru> MFC after: 1 week Notes: svn path=/head/; revision=87347
* Fix typos getpeerid -> getpeereid.Anton Berezin2001-12-021-2/+2
| | | | | | | | PR: docs/32442 Reviewed by: dd Notes: svn path=/head/; revision=87245
* Use the merged strtod.c everywhere. This has been tested on alpha andPeter Wemm2001-12-021-10/+1
| | | | | | | ia64. Notes: svn path=/head/; revision=87225
* Remove specific reference to ASCII space (' '), it is true for localizedAndrey A. Chernov2001-12-021-1/+1
| | | | | | | spaces too Notes: svn path=/head/; revision=87209
* Make it works for non ASCII compatible encodings too.Andrey A. Chernov2001-12-026-42/+42
| | | | | | | The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous Notes: svn path=/head/; revision=87196
* Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).Joseph Koshy2001-12-012-0/+12
| | | | | | | | | | | This API is supported in SVR4.0MP, Solaris, Linux, AIX and Tru64 Unix. PR: bin/27489 Submitted by: Arun Sharma <arun@sharma-home.net> Reviewed by: bde (prior version) Notes: svn path=/head/; revision=87161
* o Stop abusing MD headers with non-MD types.Mike Barcroft2001-12-012-9/+14
| | | | | | | | | | | | | | | | | | o Hide nonstandard functions and types in <netinet/in.h> when _POSIX_SOURCE is defined. o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>. o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new __FBSDID() macro. o Fix some miscellaneous issues in <arpa/inet.h>. o Correct final argument for the inet_ntop() function (POSIX.1-200x). o Get rid of the namespace pollution from <sys/types.h> in <arpa/inet.h>. Reviewed by: fenner Partially submitted by: bde Notes: svn path=/head/; revision=87158
* Merge NetBSD's changes from netbsd_strtod.c in preparation ofAlexey Zelkin2001-11-301-47/+54
| | | | | | | | | | | | removing it from our source tree in order to have one version of strtod() for all arches. netbsd_strtod.c still left in source tree until alpha folks make sure that our native strtod() works as well as NetBSD's one. Reviewed by: peter, bde (some time ago) Notes: svn path=/head/; revision=87123
* Implement several of the c99 updates to printf(3):Bill Fenner2001-11-302-211/+458
| | | | | | | | | | | | | | | | | | | - New length modifiers: hh, j, t, z. - New flag: '. Note that %'f is not yet implemented. - Use "inf"/"nan" for efg formats, "INF"/"NAN" for EFG formats. - Implemented %q in terms of %ll; if "quad_t" is not "long long" %q will break. Still to do: - %C, %S, %lc, %ls (wide character support) - %'f (thousands in integer portion of %f) - %a/%A (exact hex representation of floating-point numbers) Garrett Wollman wrote the first version of the vfprintf.c update; Mike Barcroft wrote the first version of the printf.3 changes. Notes: svn path=/head/; revision=87113
* Clarify isblank rangeAndrey A. Chernov2001-11-301-0/+14
| | | | Notes: svn path=/head/; revision=87110
* Clarify valid isspace() rangeAndrey A. Chernov2001-11-301-8/+10
| | | | Notes: svn path=/head/; revision=87107
* Clarify that is[x]digit() class is the same in any localeAndrey A. Chernov2001-11-292-17/+18
| | | | Notes: svn path=/head/; revision=87091
* Duh. Back out most of my previous commit. It was mostly covered in theCrist J. Clark2001-11-291-9/+1
| | | | | | | | | | | | STANDARDS section of the page. Add one remark there about inet_pton(3) only understanding decimal values (in contrast to inet_aton(3) and friends who are happy with 0ac.020.25 for 172.16.0.25). Caught by: ru MFC after: 2 days Notes: svn path=/head/; revision=87089
* Bump p1003.1-90 to p1003.1-96.Brian Feldman2001-11-291-1/+1
| | | | Notes: svn path=/head/; revision=87082
* rename() can't guarantee "to" always exists if it didn't exist in the firstGregory Neil Shapiro2001-11-291-1/+3
| | | | | | | | | | | place -- for example, rename("existing", "newfile"); on a read-only file system. Reviewed by: green MFC after: 3 days Notes: svn path=/head/; revision=87080
* Back out national digits support, POSIX explicetely disallows it:Andrey A. Chernov2001-11-298-83/+85
| | | | | | | | | | | | | | The definition of character class digit requires that only ten characters -the ones defining digits- can be specified; alternate digits (for example, Hindi or Kanji) cannot be specified here. However, the encoding may vary if an implementation supports more than one encoding. The definition of character class xdigit requires that the characters included in character class digit are included here also and allows for different symbols for the hexadecimal digits 10 through 15. Notes: svn path=/head/; revision=87078
* After the long explanaition of how the inet_* functions interpretCrist J. Clark2001-11-291-0/+8
| | | | | | | | | | Internet addresses, point out that inet_pton(3) only understands dotted quads with decimal values. MFC after: 2 days Notes: svn path=/head/; revision=87077
* Do not write warning messages on stderr - a caller is expected to checkAnton Berezin2001-11-282-10/+8
| | | | | | | | | | | | | | | | the return code and errno instead. Those warnings did not do any good for daemonized users of initgroups(3), and confused cvs clients that communicated with non-root cvs pserver. The committed fix differs from the one suggested in the PR, and was submitted by ru. PR: 15421 Approved by: markm Discussed on: -stable, -current at various times Notes: svn path=/head/; revision=87054
* Don't ever assume that isdigit() is always subset of isxdigit()Andrey A. Chernov2001-11-287-7/+7
| | | | Notes: svn path=/head/; revision=87042
* Fix typoAndrey A. Chernov2001-11-281-1/+1
| | | | Notes: svn path=/head/; revision=87040
* Use stricter tests to disallow national digits > 9Andrey A. Chernov2001-11-281-14/+14
| | | | | | | Optimize national digits code a bit Notes: svn path=/head/; revision=87038
* Allow national (non-ASCII) digitsAndrey A. Chernov2001-11-281-55/+53
| | | | Notes: svn path=/head/; revision=87037
* Allow national (non-ASCII) digitsAndrey A. Chernov2001-11-281-23/+23
| | | | Notes: svn path=/head/; revision=87029
* Implement strtoimax() and strtoumax()Bill Fenner2001-11-285-42/+337
| | | | Notes: svn path=/head/; revision=87027
* Also mention "long long" in synopsis.Bill Fenner2001-11-281-1/+1
| | | | Notes: svn path=/head/; revision=87026
* Return a more meaningful errno when the length of the interpreterJohn W. De Boskey2001-11-281-0/+3
| | | | | | | | | | | | | | | | exceeds MAXSHELLCMDLEN to avoid secondary /bin/sh execution. Update execve man page to reflect change. Increase MAXSHELLCMDLEN to a slightly more meaningful value. PR: kern/32106 Submitted by: b@etek.chalmers.se Reviewed by: bsd MFC after: 2 weeks Notes: svn path=/head/; revision=87025
* Base 36 is allowed.Bill Fenner2001-11-284-4/+4
| | | | Notes: svn path=/head/; revision=87023
* Put back base > 35 check. If someone dislike it, plese discuss it withAndrey A. Chernov2001-11-284-4/+4
| | | | | | | standards group first. Notes: svn path=/head/; revision=87020
* Add atoll(3) to conform POSIX and C99Andrey A. Chernov2001-11-283-2/+69
| | | | Notes: svn path=/head/; revision=87017
* Understand national (non-ASCII) digits nowAndrey A. Chernov2001-11-286-56/+42
| | | | | | | | Allow bases >=36 again Misc cleanup Notes: svn path=/head/; revision=87016
* Use 'mov' instead of 'lea' for setting the syscall number in %eax as thatJohn Baldwin2001-11-2713-21/+21
| | | | | | | | | is clearer about what we are actually doing. Requested by: bde Notes: svn path=/head/; revision=87006
* Must link strerror manpage to strerror_r.Wes Peters2001-11-271-0/+1
| | | | | | | | | Thanks for the review, Mike. Submitted by: Mike Barcroft <mike@FreeBSD.org> Notes: svn path=/head/; revision=86945
* Add strerror_r function per Posix prototype.Wes Peters2001-11-272-23/+107
| | | | | | | | Reviewed by: Mike Barcroft <mike@FreeBSD.org> MFC after: 2 weeks Notes: svn path=/head/; revision=86944
* Be more explicit about the fact that realloc() might return aGiorgos Keramidas2001-11-241-0/+4
| | | | | | | | | | different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=86845
* mdoc(7) police: markup cleanup.Ruslan Ermilov2001-11-221-15/+26
| | | | Notes: svn path=/head/; revision=86771
* mdoc(7) police: add missing comma.Ruslan Ermilov2001-11-221-1/+1
| | | | Notes: svn path=/head/; revision=86768
* fix compilation (include -> #include)Max Khon2001-11-211-1/+1
| | | | Notes: svn path=/head/; revision=86750
* mdoc(7) police: fixed typos and minor markup nits.Ruslan Ermilov2001-11-214-17/+21
| | | | Notes: svn path=/head/; revision=86737
* mdoc(7) police: general cleanup.Ruslan Ermilov2001-11-211-40/+55
| | | | Notes: svn path=/head/; revision=86734