summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* * localeconv() usage is not FLOATING_POINT specific anymore (due to "'" flagphantom2001-12-071-3/+3
| | | | | addition) so move locale.h inclusion out of FLOATING_POINT ifdef's. * add more comments
* Make strerror and strerror_r use sys_errlist[0] for errnum = 0. Bewes2001-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)
* Remove blank line.fenner2001-12-071-1/+0
|
* New, improved, more Posix-compliant strerror_r implementation,wes2001-12-062-72/+78
| | | | | | | complete with documentation. Reviewed by: mike@ gad@ MFC after: 1 week
* Clarify ' ' space issueache2001-12-052-2/+3
|
* mdoc(7) police: markup the previous delta.ru2001-12-041-1/+3
|
* Correct some egregious style bugs.des2001-12-041-13/+21
|
* Add a missing error check. This fixes a bug that would cause pwd_mkdb todes2001-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
* Fix typos getpeerid -> getpeereid.tobez2001-12-021-2/+2
| | | | | PR: docs/32442 Reviewed by: dd
* Use the merged strtod.c everywhere. This has been tested on alpha andpeter2001-12-021-10/+1
| | | | ia64.
* Remove specific reference to ASCII space (' '), it is true for localizedache2001-12-021-1/+1
| | | | spaces too
* Make it works for non ASCII compatible encodings too.ache2001-12-026-42/+42
| | | | The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
* Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).jkoshy2001-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)
* o Stop abusing MD headers with non-MD types.mike2001-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
* Merge NetBSD's changes from netbsd_strtod.c in preparation ofphantom2001-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)
* Implement several of the c99 updates to printf(3):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.
* Clarify isblank rangeache2001-11-301-0/+14
|
* Clarify valid isspace() rangeache2001-11-301-8/+10
|
* Clarify that is[x]digit() class is the same in any localeache2001-11-292-17/+18
|
* Duh. Back out most of my previous commit. It was mostly covered in thecjc2001-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
* Bump p1003.1-90 to p1003.1-96.green2001-11-291-1/+1
|
* rename() can't guarantee "to" always exists if it didn't exist in the firstgshapiro2001-11-291-1/+3
| | | | | | | | place -- for example, rename("existing", "newfile"); on a read-only file system. Reviewed by: green MFC after: 3 days
* Back out national digits support, POSIX explicetely disallows it:ache2001-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.
* After the long explanaition of how the inet_* functions interpretcjc2001-11-291-0/+8
| | | | | | | Internet addresses, point out that inet_pton(3) only understands dotted quads with decimal values. MFC after: 2 days
* Do not write warning messages on stderr - a caller is expected to checktobez2001-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
* Don't ever assume that isdigit() is always subset of isxdigit()ache2001-11-287-7/+7
|
* Fix typoache2001-11-281-1/+1
|
* Use stricter tests to disallow national digits > 9ache2001-11-281-14/+14
| | | | Optimize national digits code a bit
* Allow national (non-ASCII) digitsache2001-11-281-55/+53
|
* Allow national (non-ASCII) digitsache2001-11-281-23/+23
|
* Implement strtoimax() and strtoumax()fenner2001-11-285-42/+337
|
* Also mention "long long" in synopsis.fenner2001-11-281-1/+1
|
* Return a more meaningful errno when the length of the interpreterjwd2001-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
* Base 36 is allowed.fenner2001-11-284-4/+4
|
* Put back base > 35 check. If someone dislike it, plese discuss it withache2001-11-284-4/+4
| | | | standards group first.
* Add atoll(3) to conform POSIX and C99ache2001-11-283-2/+69
|
* Understand national (non-ASCII) digits nowache2001-11-286-56/+42
| | | | | Allow bases >=36 again Misc cleanup
* Use 'mov' instead of 'lea' for setting the syscall number in %eax as thatjhb2001-11-2713-21/+21
| | | | | | is clearer about what we are actually doing. Requested by: bde
* Must link strerror manpage to strerror_r.wes2001-11-271-0/+1
| | | | | | Thanks for the review, Mike. Submitted by: Mike Barcroft <mike@FreeBSD.org>
* Add strerror_r function per Posix prototype.wes2001-11-272-23/+107
| | | | | Reviewed by: Mike Barcroft <mike@FreeBSD.org> MFC after: 2 weeks
* Be more explicit about the fact that realloc() might return akeramida2001-11-241-0/+4
| | | | | | | different pointer than the one passed to it. PR: docs/31925 Submitted by: Andrew <andrew@ugh.net.au>
* mdoc(7) police: markup cleanup.ru2001-11-221-15/+26
|
* mdoc(7) police: add missing comma.ru2001-11-221-1/+1
|
* fix compilation (include -> #include)fjoe2001-11-211-1/+1
|
* mdoc(7) police: fixed typos and minor markup nits.ru2001-11-214-17/+21
|
* mdoc(7) police: general cleanup.ru2001-11-211-40/+55
|
* Should also include namespace.hgreen2001-11-211-1/+3
| | | | Submitted by: ru
* Change certain syscalls from x to _x.green2001-11-211-7/+7
| | | | Prodded by: bde
* Introduce readpassphrase(3), a superset of getpass(3). Thisgreen2001-11-205-101/+256
| | | | | | comes originally from Todd Miller. Obtained from: OpenBSD
* mdoc(7) police: minor markup and spelling fixes.ru2001-11-201-4/+7
|
OpenPOWER on IntegriCloud