summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Correct 2nd argument of getnameinfo(3) to socklen_t.Hajimu UMEMOTO2001-02-151-1/+1
| | | | | | | Reviewed by: itojun Notes: svn path=/head/; revision=72510
* List the SA_RESTART flag rather than burying it in another paragraph.Peter Wemm2001-02-141-0/+2
| | | | Notes: svn path=/head/; revision=72496
* Add include <sys/time.h> because kevent uses struct timespecGuido van Rooij2001-02-141-0/+1
| | | | Notes: svn path=/head/; revision=72475
* Commit a libc fix going by the current state of the version numberingPeter Wemm2001-02-142-10/+11
| | | | | | | | | | | | | | | | | | | bikeshed in -arch. It isn't quite over, but it has been well established that this can be adjusted or refined. But we do seem to have consensis on a major bump of some sort. After this, it should reasonably safe to build world again. This change is to get rid of __sF[] and use seperate __stdin/out/err handles. This means we can pad on extra bits onto the end of FILE at will without going through this all over again. __sF[] was evil because it compiled the sizeof(FILE) into every stdio using program. Asbestos suit on: check! Peril sensitive sunglasses on: check! *gulp!* Notes: svn path=/head/; revision=72472
* Return {YES,NO}STR from localeAndrey A. Chernov2001-02-131-2/+2
| | | | | | | Approved by: phantom Notes: svn path=/head/; revision=72469
* catch up to __part_load_locale() interface changeAlexey Zelkin2001-02-134-19/+14
| | | | Notes: svn path=/head/; revision=72443
* add additional function parameter: bufsize_min. it's possibleAlexey Zelkin2001-02-132-4/+7
| | | | | | | | | to check two sizes per one function invocation now. Suggested by: ache Notes: svn path=/head/; revision=72442
* mdoc(7) cleanup.Ruslan Ermilov2001-02-121-90/+86
| | | | Notes: svn path=/head/; revision=72414
* Sort PROT_* and MAP_* lists, logically and alphabetically respectively.Ruslan Ermilov2001-02-121-44/+68
| | | | | | | | | Suggested by: bde General mdoc(7) cleanup. Notes: svn path=/head/; revision=72409
* Make comparsions more clear (per style(9))Alexey Zelkin2001-02-123-4/+4
| | | | Notes: svn path=/head/; revision=72408
* Assume that "" passed as parameter also means "no grouping"Alexey Zelkin2001-02-121-3/+4
| | | | | | | Make comparsions more clear (per style(9)) Notes: svn path=/head/; revision=72407
* Rewrite __time_load_locale() using ldpart.c::__part_load_locale()Alexey Zelkin2001-02-122-153/+15
| | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=72406
* Use .Rv macro instead of hardcoded messageAlexey Zelkin2001-02-121-6/+1
| | | | Notes: svn path=/head/; revision=72404
* "Cross references in the SEE ALSO section should be sorted by sectionRuslan Ermilov2001-02-121-2/+2
| | | | | | | | number, and then placed in alphabetical order and comma separated.", mdoc.samples(7) said. Notes: svn path=/head/; revision=72401
* mmap(3) -> mmap(2).Ruslan Ermilov2001-02-121-2/+2
| | | | Notes: svn path=/head/; revision=72400
* It sounded like a good idea at the time. The previous change breaksPeter Wemm2001-02-121-4/+0
| | | | | | | | FILE *buffer = stdout; so back it out for now. Notes: svn path=/head/; revision=72394
* Take advantage of the current libc sizeof(FILE) breakage (__sF[]) andPeter Wemm2001-02-121-0/+4
| | | | | | | | | | | | | try a hopefully more robust stdin/stdout/stderr. This costs an indirect pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff is there to not pollute application name space if the application does not use <stdio.h> and also in case something depended on the current behavior where stdin etc was a #define. Reviewed by: eischen, dillon Notes: svn path=/head/; revision=72391
* o Fix build of libc broken in revision 1.2. offsetof() requires theRobert Watson2001-02-121-0/+2
| | | | | | | | | inclusion of stddef.h. Reviewed by: peter Notes: svn path=/head/; revision=72390
* libc MT-safety, part 2.Daniel Eischen2001-02-1122-104/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a lock to FILE. flockfile and friends are now implemented (for the most part) in libc. flockfile_debug is implemented in libc_r; I suppose it's about time to kill it but will do it in a future commit. Fix a potential deadlock in _fwalk in a threaded environment. A file flag (__SIGN) was added to stdio.h that, when set, tells _fwalk to ignore it in its walk. This seemed to be needed in refill.c because each file needs to be locked when flushing. Add a stub for pthread_self in libc. This is needed by flockfile which is allowed by POSIX to be recursive. Make fgetpos() error return value (-1) match man page. Remove recursive calls to locked functions (stdio); I think I've got them all, but I may have missed a couple. A few K&R -> ANSI conversions along with removal of a few instances of "register". $Id$ -> $FreeBSD$ in libc/stdio/rget.c Not objected to: -arch, a few months ago Notes: svn path=/head/; revision=72373
* Mention PROT_NONE in the list of possible protections.Nik Clayton2001-02-111-0/+2
| | | | | | | Pointed out by: kris Notes: svn path=/head/; revision=72370
* Include mmap(2) in the list of memory allocation functions.Nik Clayton2001-02-111-2/+10
| | | | | | | Reviewed by: hackers Notes: svn path=/head/; revision=72369
* .Xr to mmap.Nik Clayton2001-02-111-1/+2
| | | | Notes: svn path=/head/; revision=72368
* Note that mmap(2) can allocate memory, as well as mapping existing files,Nik Clayton2001-02-111-1/+1
| | | | | | | | | in the .Nd. Reviewed by: hackers Notes: svn path=/head/; revision=72367
* Add a man page for the dbm_* functions, and update the Makefile to linkNik Clayton2001-02-112-1/+211
| | | | | | | | | | | | | it in. Some review from -hackers (some time ago), and I think the best way to get this improved (if it needs improving) or updating, is to bring it in. PR: docs/12557 Submitted by: Tim Singletary <tsingle@triana.gsfc.nasa.gov> Notes: svn path=/head/; revision=72365
* Don't use hardcoded struct size, use offsetof() instead (make size calculationsAlexey Zelkin2001-02-111-5/+7
| | | | | | | dynamic) Notes: svn path=/head/; revision=72360
* Don't try to convert grouping strings in case if C or POSIX localeAlexey Zelkin2001-02-112-2/+2
| | | | | | | | | was explicitly specified. Submitted by: ache Notes: svn path=/head/; revision=72359
* make it possible to specify grouping number from range 0..CHAR_MAX,Alexey Zelkin2001-02-101-3/+9
| | | | | | | not only one-digit number Notes: svn path=/head/; revision=72333
* Use "namespace.h" and "un-namespace.h"Alexey Zelkin2001-02-101-0/+2
| | | | | | | Requested by: deischen Notes: svn path=/head/; revision=72331
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,Alexey Zelkin2001-02-105-15/+84
| | | | | | | | | LC_NUMERIC::grouping) values. . Always set __XXX_changed flags then loading numeric & monetary locale categories to allow localeconv() to use C locale also. Notes: svn path=/head/; revision=72321
* mdoc(7) police: polishing.Ruslan Ermilov2001-02-101-32/+43
| | | | Notes: svn path=/head/; revision=72314
* mdoc(7) police: mark LC_NUMERIC with .Dv.Ruslan Ermilov2001-02-104-5/+9
| | | | Notes: svn path=/head/; revision=72313
* Improve language and code examples.Nik Clayton2001-02-101-31/+41
| | | | | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=72311
* Note that decimal point taken from localeAndrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72301
* Note that decimal point taken from locale (SUSv2)Andrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72297
* Take decimal point from locale instead of hardcoded '.' (SUSv2)Andrey A. Chernov2001-02-101-9/+10
| | | | Notes: svn path=/head/; revision=72291
* Note that decimal point character taken from locale (SUSv2)Andrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72290
* Use decimal point from localeconv() instead of hardcoded '.' (SUSv2)Andrey A. Chernov2001-02-101-6/+14
| | | | Notes: svn path=/head/; revision=72289
* Note the fact that decimal point taken from locale (according to SUSv2)Andrey A. Chernov2001-02-101-0/+2
| | | | Notes: svn path=/head/; revision=72288
* Use decimap_point from localeconv() instead of hardcoded '.'Andrey A. Chernov2001-02-101-1/+4
| | | | | | | Obtained from: inspired by NetBSD strtod Notes: svn path=/head/; revision=72287
* As temporary workaround for missing *grouping fields parser always return "noAndrey A. Chernov2001-02-101-2/+10
| | | | | | | | grouping" (CHAR_MAX, '\0'). Fixme: grouping parser needs to be implemented. Notes: svn path=/head/; revision=72284
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outAndrey A. Chernov2001-02-103-7/+7
| | | | | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv() Notes: svn path=/head/; revision=72283
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)Andrey A. Chernov2001-02-103-3/+7
| | | | Notes: svn path=/head/; revision=72273
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,Andrey A. Chernov2001-02-102-4/+2
| | | | | | | | | | | | | | | LC_NUMERIC fields, but only for *grouping fields - other fields are converted to a chars in localeconv(), so final change is: "-1" -> "127" 127 here is because CHAR_MAX supposed, which is _positive_ (SUSv2 requirement), not negative as 255. It is still a bit of hack. To find real CHAR_MAX will be better to sprintf() it once somewhere in static buffer. *grouping parsing still broken and missing and needs to be implemented. Notes: svn path=/head/; revision=72272
* NOTE: according to SUSV2 and other implementations, numeric elements inAndrey A. Chernov2001-02-102-4/+8
| | | | | | | | | | | | | | LC_MONETARY, LC_NUMERIC are byte-arrays, not ASCII strings! Fix "C" locale, change "-1" to {CHAR_MAX, '\0'} according to standards. This is only partial fix - locale loading procedure remains broken as before and load too big values for all locales. All numeric strings there should be converted with something like atoi() and placed into bytes. Maybe I do it later, if someone will not fix it faster. Notes: svn path=/head/; revision=72271
* Implement CODESETAndrey A. Chernov2001-02-091-3/+12
| | | | Notes: svn path=/head/; revision=72263
* Backout previous commit. Use of spinlocks was not approved.Tor Egge2001-02-093-61/+40
| | | | | | | PR: 15070 Notes: svn path=/head/; revision=72254
* Describe the arguments to gethostbyaddr.Nik Clayton2001-02-091-1/+46
| | | | | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben Notes: svn path=/head/; revision=72251
* Back out attempt to implement CRNCYSTR - require additional prefixes accordingAndrey A. Chernov2001-02-091-1/+4
| | | | | | | to SUSV2. Add comment explaining it instead. Notes: svn path=/head/; revision=72245
* Explicitly mark deprecated entries.Andrey A. Chernov2001-02-091-12/+9
| | | | | | | | | | Return currency_symbol for CRNCYSTR Return "%r" for T_FMT_AMPM Remove obsoleted comment about c_fmt Return "" for {YES,NO}STR Notes: svn path=/head/; revision=72243
* mdoc(7) police: prevent generation of the extraRuslan Ermilov2001-02-091-6/+3
| | | | | | | whitespace after ``i.e.'', use .Rv, update .Dd. Notes: svn path=/head/; revision=72214