summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* mdoc(7) police: sort xrefs.ru2001-11-201-2/+2
|
* mdoc(7) police: consistently use the .Ux macro.ru2001-11-201-4/+4
|
* mdoc(7) police: remove whitespace at EOL.ru2001-11-201-1/+1
|
* Actually build new files.jake2001-11-191-1/+2
| | | | Forgotten by: jake
* Need .type and .size here too.jake2001-11-187-4/+15
|
* Add more libc stuff.jake2001-11-1811-0/+843
| | | | Obtained from: netbsd
* Catch up to jmpbuf changes. Define offsets used from assmebly languagejake2001-11-182-24/+39
| | | | | in another file so that it is easy to see what they are and keep them in sync with the headers (grafted from the kernel generated assym.s).
* Remove fork and vfork wrappers. The kernel does the right thing.jake2001-11-183-127/+1
|
* Add .type and .size pseudo-ops to system call macros so that dynamic binariesjake2001-11-181-7/+15
| | | | will link. They must be used for weak symbols as well as strong ones.
* Remove a sentence from the BUGS section that claims non page-alignediedowse2001-11-181-3/+1
| | | | | | | | offsets don't work. It should really be documented that the returned pointer can be in the middle of a fully-valid page when the offset is not page-aligned, but I couldn't come up with suitable wording. PR: kern/22754
* If 'VX' is given, realloc(foo,0) will bail, it shouldn't.phk2001-11-171-2/+5
| | | | | PR: 29376 Submitted by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
* Correctly call THREAD_UNLOCK() if the recursive call trap is sprung.phk2001-11-161-0/+2
| | | | Pointed out by: knu
OpenPOWER on IntegriCloud