summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Take advantage of the current libc sizeof(FILE) breakage (__sF[]) andpeter2001-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
* o Fix build of libc broken in revision 1.2. offsetof() requires therwatson2001-02-121-0/+2
| | | | | | inclusion of stddef.h. Reviewed by: peter
* Catch up to new priority interface.jake2001-02-121-4/+1
|
* Remove (int) file descriptor locking. It should be up to thedeischen2001-02-1111-512/+59
| | | | | | | | | | | | | application to provide locking for I/O operations. This doesn't break any of my tests, but the old behavior can be restored by compiling with _FDLOCKS_ENABLED. This will eventually be removed when it is obvious it does not cause any problems. Remove most of flockfile implementation, with the exception of flockfile_debug. Make error messages more informational (submitted by Mike Heffner <spock@techfour.net>, who's now known as mikeh@FreeBSD.org).
* libc MT-safety, part 2.deischen2001-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
* Mention PROT_NONE in the list of possible protections.nik2001-02-111-0/+2
| | | | Pointed out by: kris
* Include mmap(2) in the list of memory allocation functions.nik2001-02-111-2/+10
| | | | Reviewed by: hackers
* .Xr to mmap.nik2001-02-111-1/+2
|
* Note that mmap(2) can allocate memory, as well as mapping existing files,nik2001-02-111-1/+1
| | | | | | in the .Nd. Reviewed by: hackers
* Add a man page for the dbm_* functions, and update the Makefile to linknik2001-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>
* Don't use hardcoded struct size, use offsetof() instead (make size calculationsphantom2001-02-111-5/+7
| | | | dynamic)
* Don't try to convert grouping strings in case if C or POSIX localephantom2001-02-112-2/+2
| | | | | | was explicitly specified. Submitted by: ache
* make it possible to specify grouping number from range 0..CHAR_MAX,phantom2001-02-101-3/+9
| | | | not only one-digit number
* Use "namespace.h" and "un-namespace.h"phantom2001-02-101-0/+2
| | | | Requested by: deischen
* . Fix semantics of grouping (LC_MONETARY::mon_grouping,phantom2001-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.
* Use ${MACHINE_ARCH} instead of ${MACHINE} to support pc98.nyan2001-02-101-2/+2
|
* mdoc(7) police: polishing.ru2001-02-101-32/+43
|
* mdoc(7) police: mark LC_NUMERIC with .Dv.ru2001-02-104-5/+9
|
* Improve language and code examples.nik2001-02-101-31/+41
| | | | | PR: docs/24961 Submmitted by: Tony Finch <dot@dotat.at>
* There are now compat libs for the Alpha too.obrien2001-02-101-1/+4
|
* The compat[34]x dists need to have their machine arch appended.obrien2001-02-101-2/+2
|
* Add 4x compat libs for Alpha.obrien2001-02-103-0/+14822
| | | | | | These come from the live FS of the BSDi FreeBSD/AXP 4.2 disc set. Forgotten by: non-Alpha person
* Look to the future and make this easier to add libs to.obrien2001-02-101-3/+14
|
* Reformat the lib list.obrien2001-02-101-3/+4
|
* Note that decimal point taken from localeache2001-02-101-0/+3
|
* Add more 3.5.1 libs that don't exist in 5-CURRENT.obrien2001-02-106-4/+7032
| | | | These are: libalias.so.3 libfetch.so.1 libperl.so.3 libss.so.2 libvgl.so.1
* Note that decimal point taken from locale (SUSv2)ache2001-02-101-0/+3
|
* Reformat the lib list.obrien2001-02-101-4/+4
|
* libc_r.so was bumped between 3.4 and 3.5[.1], so we need libc_r.so.4 also.obrien2001-02-102-1/+6116
|
* Update the i386 compat3x dist to the FreeBSD 3.5.1 libs.obrien2001-02-1016-8714/+8745
| | | | | I had moved on to FreeBSD 4.0 before 3.5-R and had forgotten to keep this collection up to date.
* Take decimal point from locale instead of hardcoded '.' (SUSv2)ache2001-02-101-9/+10
|
* Note that decimal point character taken from locale (SUSv2)ache2001-02-101-0/+3
|
* Use decimal point from localeconv() instead of hardcoded '.' (SUSv2)ache2001-02-101-6/+14
|
* Note the fact that decimal point taken from locale (according to SUSv2)ache2001-02-101-0/+2
|
* Use decimap_point from localeconv() instead of hardcoded '.'ache2001-02-101-1/+4
| | | | Obtained from: inspired by NetBSD strtod
* As temporary workaround for missing *grouping fields parser always return "noache2001-02-101-2/+10
| | | | | grouping" (CHAR_MAX, '\0'). Fixme: grouping parser needs to be implemented.
* According to Garrett, POSIX widely use -1 to indicate CHAR_MAX, so back outache2001-02-103-7/+7
| | | | | all my "-1" -> "something" fixes and replace -1 with CHAR_MAX directly in strtol() in cnv()
* Use __XSTRING(CHAR_MAX) instead of "127" and strtol() base 0 to parse it (0x7f)ache2001-02-103-3/+7
|
* Correct myself a bit: situation is broken not for _all_ numeric LC_MONETARY,ache2001-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.
* NOTE: according to SUSV2 and other implementations, numeric elements inache2001-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.
* Implement CODESETache2001-02-091-3/+12
|
* Backout previous commit. Use of spinlocks was not approved.tegge2001-02-093-61/+40
| | | | PR: 15070
* Describe the arguments to gethostbyaddr.nik2001-02-091-1/+46
| | | | | | PR: docs/24225 Submitted by: Joakim Henriksson <jurduth@ludd.luth.se> Patch from: ben
* Add relevant libraries from our ref4 box.murray2001-02-093-0/+11944
| | | | Approved by: jkh
* Add compat4x.i386 directory.murray2001-02-091-0/+3
| | | | Approved by: jkh
* Back out attempt to implement CRNCYSTR - require additional prefixes accordingache2001-02-091-1/+4
| | | | to SUSV2. Add comment explaining it instead.
* Explicitly mark deprecated entries.ache2001-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
* mdoc(7) police: prevent generation of the extraru2001-02-091-6/+3
| | | | whitespace after ``i.e.'', use .Rv, update .Dd.
* mdoc(7) police: fixed the weird construct.ru2001-02-091-3/+1
|
* Hardcode c_fmt in a different way since used in nl_langinfo nowache2001-02-084-7/+8
|
OpenPOWER on IntegriCloud