summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* mdoc(7) police: fixed the weird construct.Ruslan Ermilov2001-02-091-3/+1
| | | | Notes: svn path=/head/; revision=72205
* Hardcode c_fmt in a different way since used in nl_langinfo nowAndrey A. Chernov2001-02-084-7/+8
| | | | Notes: svn path=/head/; revision=72183
* Protect freelists managed by Balloc/Bfree with a spinlock.Tor Egge2001-02-083-40/+63
| | | | | | | | | | Change __dtoa to not free the string it allocated the previous time it was called. The caller now frees the string after usage if appropiate. PR: 15070 Notes: svn path=/head/; revision=72179
* add lmonetary.?, lnumeric.?, ldpart.?, lmessages.?, nl_langinfo.cAlexey Zelkin2001-02-081-1/+2
| | | | | | | remove lconv.c Notes: svn path=/head/; revision=72170
* Add SUSv2 compatible nl_langinfo() function. It still need some work, butAlexey Zelkin2001-02-081-0/+130
| | | | | | | this is already usable one. Notes: svn path=/head/; revision=72169
* Catch up to latest chanage in timelocal structures exporting.Alexey Zelkin2001-02-082-34/+36
| | | | Notes: svn path=/head/; revision=72168
* Export internal data structures in same manner as numeric/monetary/messagesAlexey Zelkin2001-02-082-8/+14
| | | | | | | | structures exported. Protect timelocal.h from multiple inclusions. Notes: svn path=/head/; revision=72167
* Make localeconv() actual function. Now it will use LC_MONETARY/LC_NUMERICAlexey Zelkin2001-02-082-79/+65
| | | | | | | information to fill return structure. Remove unused anymore stub. Notes: svn path=/head/; revision=72166
* Make FreeBSD locale support complete: add support for rest locale categoriesAlexey Zelkin2001-02-089-54/+637
| | | | | | | | | | LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they don't need anymore. Reviewed by: silence on -i18n Notes: svn path=/head/; revision=72165
* Document the cases in which setreuid changes the saved-user-ID.Jacques Vidrine2001-02-081-0/+5
| | | | Notes: svn path=/head/; revision=72160
* mdoc(7) police: print #ifdef/#endif literally,Ruslan Ermilov2001-02-081-3/+3
| | | | | | | and as list items (to get the correct offset). Notes: svn path=/head/; revision=72157
* mdoc(7) police: C types should be declared with either .Ft or .Vt.Ruslan Ermilov2001-02-081-1/+3
| | | | Notes: svn path=/head/; revision=72156
* Fix a f^Hdamn typo, which prevented to fopen() more that 17 files at once.Maxim Sobolev2001-02-071-1/+1
| | | | | | | Tested by: knu, sobomax and other #bsdcode'rs Notes: svn path=/head/; revision=72128
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-02-075-6/+6
| | | | | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins. Notes: svn path=/head/; revision=72126
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-062-2/+5
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* Fixed C error(s) in synopsis.Bruce Evans2001-02-063-2/+3
| | | | Notes: svn path=/head/; revision=72064
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-0/+4
| | | | Notes: svn path=/head/; revision=72048
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72047
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-5/+30
| | | | Notes: svn path=/head/; revision=72046
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72045
* Don't install links for crypt.3 here. There is no crypt.3 here...Bruce Evans2001-02-051-2/+0
| | | | | | | | Forgotten in: rev.1.58, which was not Submitted by: bde (I requested untangling parts of the crypto mess). Notes: svn path=/head/; revision=72044
* Remove a sizeof(void *) == sizeof(int) assumption.Poul-Henning Kamp2001-02-041-7/+7
| | | | | | | Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com> Notes: svn path=/head/; revision=71987
* Spelling.Stephen McKay2001-02-041-1/+1
| | | | Notes: svn path=/head/; revision=71978
* strcpy -> strlcpy paranoiaJacques Vidrine2001-02-021-1/+4
| | | | | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit Notes: svn path=/head/; revision=71929
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-0152-174/+177
| | | | Notes: svn path=/head/; revision=71895
* Clean up syscall generation in libc by removing HIDDEN_SYSCALLSDaniel Eischen2001-01-2924-254/+79
| | | | | | | | | | | | | | | | | and treating (almost) all system calls the same way: __sys_foo - actual syscall foo, _foo - weak definitions to __sys_foo Change PSEUDO syscalls (currently only _exit and _getlogin) to be __sys_foo (T) and _foo (W). Add $FreeBSD$ to a few files to satisfy commitprep. Suggested by: bde Notes: svn path=/head/; revision=71770
* s/err1/errx/.Hajimu UMEMOTO2001-01-261-2/+2
| | | | | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME Notes: svn path=/head/; revision=71678
* Comment only change; s/_thread_sys_/__sys_/Daniel Eischen2001-01-264-8/+8
| | | | Notes: svn path=/head/; revision=71663
* Comment change only; s/_thread_sys_/__sys_/Daniel Eischen2001-01-261-1/+1
| | | | Notes: svn path=/head/; revision=71662
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-24190-997/+1582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch Notes: svn path=/head/; revision=71579
* I made a last-minute change before the last commit which brokeGarrett Wollman2001-01-231-3/+1
| | | | | | | the errno semantics. Get it (closer to) right this time. Notes: svn path=/head/; revision=71438
* mdoc(7) police: replaced empty line with .Pp, updated document date.Ruslan Ermilov2001-01-231-2/+2
| | | | Notes: svn path=/head/; revision=71416
* Add a couple of new library interfaces (will be activated when theGarrett Wollman2001-01-232-0/+88
| | | | | | | relavant header file changes are committed) for POSIX support. Notes: svn path=/head/; revision=71414
* Add the function sysctlnametomib to libc. Details on the semanticsKirk McKusick2001-01-233-3/+111
| | | | | | | and use of this function have been added to the sysctl.3 manual page. Notes: svn path=/head/; revision=71409
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-181-583/+475
| | | | Notes: svn path=/head/; revision=71216
* Document EHOSTDOWN error.Ben Smithurst2001-01-171-0/+2
| | | | | | | | PR: 24410 Submitted by: Martin Horcicka <horcicka@vol.cz> Notes: svn path=/head/; revision=71193
* Clarify comments referring to strlcat() usageChris D. Faulhaber2001-01-171-1/+22
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=71192
* - Reverse the order of two loop invariant to ensure strlcat() does notChris D. Faulhaber2001-01-171-3/+6
| | | | | | | | | | | | | attempt to read memory when siz is 0 - Clarify comments referring to strlcat() usage PR: 24278, 24295 Submitted by: Tony Finch <dot@dotat.at> Richard Kettlewell <rjk@greenend.org.uk> Reviewed by: -audit Notes: svn path=/head/; revision=71191
* Merge the documentation for sigsetmask() and sigblock() into aBen Smithurst2001-01-173-99/+31
| | | | | | | | | | | single manual page, appropriately linked, since this removes the decision of which page the (previously non-existent) sigmask.2 MLINK should point at. Submitted by: will Notes: svn path=/head/; revision=71177
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-175-1416/+1143
| | | | Notes: svn path=/head/; revision=71175
* rstat(1) and rstat_svc(8) are the early versions ofRuslan Ermilov2001-01-173-88/+0
| | | | | | | the rup(1) and rpc.rstatd(8) manpages respectively. Notes: svn path=/head/; revision=71159
* o When returning NULL, return (NULL) instead of return (0).Robert Watson2001-01-174-12/+12
| | | | | | | | Submitted by: jedgar Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=71142
* SIGABRT is *not* the same as calling abort(), so don't claim that it is.Ben Smithurst2001-01-161-2/+2
| | | | | | | | | | (abort() flushes all open stdio streams for one thing.) PR: 24249 Submitted by: Edwin Groothuis <mavetju@chello.nl> Notes: svn path=/head/; revision=71129
* The bit about sigpending not detecting any errors is a lie, it can returnBen Smithurst2001-01-161-2/+7
| | | | | | | | | | EFAULT. PR: 24360 Submitted by: Kenneth Ingham <ingham@i-pi.com> Notes: svn path=/head/; revision=71124
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-167-9/+9
| | | | Notes: svn path=/head/; revision=71097
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-127-13/+13
| | | | Notes: svn path=/head/; revision=70974