summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* - Fix a bug that wrote one char behind the end of therobert2002-08-151-6/+3
| | | | | | | | | | | | | | supplied buffer in case the size of it was equal to the number of characters the converted address consumed. The bug occurred when converting an AF_INET address. - Remove the SPRINTF macro and use sprintf instead. - Do not do string formatting using sprintf(3) and a temporary buffer which is copied when the supplied buffer provides enough space. Instead, use snprintf(3) and the real destination buffer, thus avoid the copy. Reported by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> (1) PR: misc/41289
* Put each function argument on its own line to keep lines shorterrobert2002-08-151-1/+6
| | | | than 80 columns.
* Use one line for each function argument to keep the linerobert2002-08-152-2/+11
| | | | | | | width smaller than 80 columns. Thanks to Ruslan for an explanation of multiple ways to achieve this.
* Removed duplicated MLINKS which make(1) recently started warning about.bde2002-08-151-2/+0
|
* Include <stdlib.h> to have abort() and exit() declared.robert2002-08-151-0/+1
|
* - For compliance with IEEE Std 1003.1-2001, add the 'restrict'robert2002-08-155-17/+11
| | | | | | qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page.
* - Introduce the 'restrict' qualifier to function prototypes androbert2002-08-155-8/+8
| | | | | definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages.
* - Add the 'restrict' qualifier to the function prototypes androbert2002-08-1512-41/+17
| | | | | | | | definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages.
* - Add the 'restrict' qualifier to the function definitions androbert2002-08-143-10/+4
| | | | | | | | public prototypes of setbuf(3) and setvbuf(3) using the '__restrict' macro from <sys/cdefs.h> to be compliant with IEEE Std 1003.1-2001. - Replace the K&R with ANSI-C function definitions. - Bring the manual page up-to-date.
* - Add the 'restrict' qualifier to the function definition ofrobert2002-08-142-7/+5
| | | | | | | | | strftime(3) for IEEE Std 1003.1-2001 compliance and remove excessive usage of the 'const' qualifier that was neither present in the prototype in the publice header, nor in the local prototype just above the function definition. - Replace the K&R function definition with a ANSI-C one. - Update the prototype of strftime(3) in its manual page.
* - Add the 'restrict' qualifier to the definitions of the stringrobert2002-08-146-18/+8
| | | | | | | concatenation and copy functions using the '__restrict' macro. This is to satisfy IEEE Std 1003-1.2001. - Use ANSI-C function definitions. - Add the 'restrict' keyword to the manual pages, too.
* - Add the C99 'restrict' qualifier using the '__restrict' macro torobert2002-08-142-2/+3
| | | | | function prototype and definition of strptime(3). - Update the manual page.
* Use "ugidfw.h" rather than <ugidfw.h> so that mkdep can find it.rwatson2002-08-141-1/+1
| | | | Suggested by: mike
* - Add the 'restrict' qualifier to match the IEEE Std 1003.1-2001robert2002-08-142-7/+11
| | | | | | | prototype of the tdelete(3) function. - Remove duplicated space. - Use an ANSI-C function definition for tdelete(3). - Update the manual page.
* - Add the 'restrict' qualifier required by IEEE Std 1003.1-2001robert2002-08-142-5/+2
| | | | | | | to the function definition of strxfrm(3) in form of our '__restrict' macro. - Use an ANSI-C function definition for strxfrm(3). - Change the manual page accordingly.
* -Add the restrict required by IEEE Std 1003.1-2001 in formrobert2002-08-143-25/+9
| | | | | | | of our __restrict macro to the prototypes and function definitions of inet_pton and inet_ntop. - Use ANSI-C function argument lists. - Adjust the prototypes in the manual page.
* Unbreak one of the most confusing breaks of the tree I've seen.phk2002-08-131-1/+2
| | | | The last commit cannot possibly have been tested.
* Reduce BSS size for programs which not load collate by eliminatingache2002-08-132-10/+13
| | | | static buffer.
* Use a union to access the words of a double as this is less likelydwmalone2002-08-131-4/+8
| | | | | | | | | | | | to cause bugs when gcc is more aggressively optimising things. There are still problems with dtoa mentioned in the PR - maybe Dan could suggest a patch. PR: 40209 Submitted by: Dan Lukes <dan@obluda.cz> Approved by: bde MFC after: 2 weeks
* can not -> cannot.ru2002-08-132-2/+2
|
* Tidy up SRCS and MAN assignments.tjr2002-08-131-20/+13
|
* Remove the Bugs section, which is not relevant to FreeBSD: there is notjr2002-08-131-2/+0
| | | | one-character ungetwc(3) buffer limit.
* FreeBSD-ify: use In macro for header files in Synopsis, St C-99 instead oftjr2002-08-134-12/+12
| | | | St C99 in Standards section.
* Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),tjr2002-08-1339-12/+846
| | | | putwc(), fputwc(), putwchar(), ungetwc(), fwide().
* Handle the escaped colon \: in a capability.ru2002-08-122-0/+2
| | | | | | PR: bin/30778 Reviewed by: ache, peter MFC after: 3 days
* Now malloc() is fixed, remove errno hardcoding to ENOMEMache2002-08-121-3/+6
|
* Manual pages for fwide(), getwc(), fgetwc(), getwchar(), putwc(), fputwc(),tjr2002-08-124-0/+417
| | | | | | | putwchar(), ungetwc() from NetBSD and Citrus Project, unmodified except for the addition of $FreeBSD$. Obtained from: NetBSD, Citrus Project
* Now, malloc is fixed, remove ENOMEM hardcodeache2002-08-121-12/+11
|
* Add a missing copyright for Doug. There are other files missing thisdwmalone2002-08-111-0/+28
| | | | | | | copyright in -stable. PR: 41397 Submitted by: dfr
* Initialise disk->d_ufs so that in sblock.c it's always initialisedjmallett2002-08-111-0/+1
| | | | | | | (unless someone tries to use libufs support functions without using _fillout or _ctor to construct a uufsd.) Obtained from: jmallett_libufs Perforce branch.
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-112-7/+7
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* Whitespace cleanup--it's not style(9), but it is consistent. Preprwatson2002-08-111-3/+3
| | | | | | | for MAC-related commits to the login infrastructure. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Auto size available kernel virtual address space based on phsyical memoryjake2002-08-101-4/+11
| | | | | | | size. This avoids blowing out kva in kmeminit() on large memory machines (4 gigs or more). Reviewed by: tmm
* - Introduce a new struct xvfsconf, the userland version of struct vfsconf.mux2002-08-103-55/+43
| | | | | | | | | | | | | | | | | | | | | | | - Make getvfsbyname() take a struct xvfsconf *. - Convert several consumers of getvfsbyname() to use struct xvfsconf. - Correct the getvfsbyname.3 manpage. - Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the kernel, and rewrite getvfsbyname() to use this instead of the weird existing API. - Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist sysctl. - Convert a vfsload() call in nfsiod.c to kldload() and remove the useless vfsisloadable() and endvfsent() calls. - Add a warning printf() in vfs_sysctl() to tell people they are using an old userland. After these changes, it's possible to modify struct vfsconf without breaking the binary compatibility. Please note that these changes don't break this compatibility either. When bp will have updated mount_smbfs(8) with the patch I sent him, there will be no more consumers of the {set,get,end}vfsent(), vfsisloadable() and vfsload() API, and I will promptly delete it.
* Update with new error return code.phk2002-08-091-0/+4
| | | | Reminded by: rwatson
* mdoc(7) police: spelling.ru2002-08-091-1/+1
|
* mdoc(7) police: tidy up the formatting.ru2002-08-091-81/+115
|
* mdoc(7) police: punctuation.ru2002-08-091-1/+1
|
* mdoc(7) police: sort xrefs.ru2002-08-091-2/+2
|
* mdoc(7) police: punctuation.ru2002-08-091-1/+1
|
* mdoc(7) police: whitespace nits.ru2002-08-091-2/+4
|
* mdoc(7) police: laundry.ru2002-08-091-22/+37
|
* mdoc(7) police: laundry.ru2002-08-091-9/+14
|
* Make sure we set errno sensibly in case of failure.phk2002-08-091-0/+7
| | | | Spotted by: ache
* Introduce a new error return code:phk2002-08-091-0/+3
| | | | | | #define EDOFUS 88 /* Programming error */ This can be used to signal error situations which indicate that the program logic or assumptions is deficient.
* Add safeguards to never use errno == 0 as setrunelocale() error return codeache2002-08-093-7/+5
|
* Update TE policy and MAC text conversion routines to support partialrwatson2002-08-092-10/+71
| | | | | | | | | | label updates. Biba and MLS already supported this. This permits the userland library to submit relative updates on MAC labels, rather than submitting an entire label to replace the current label. This also requires changes to the MAC modules, which are forthcoming. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* X-ref mac.3.rwatson2002-08-091-0/+1
|
* Use '_end' symbol instead of 'end' to initialize minbrk and curbrkkan2002-08-082-6/+6
| | | | | | | | | | | | | variables. Both symbols are set to the same value by the linker, and _end symbol has less chances to clash with application defined global symbols. alpha, ia64 and sparc64 ports already use _end, i386 is now consistent with them. Reviewed by: bde Approved by: obrien Reported by: pirzyk
* Rewrite locale loading procedures, so any load failure will not affectache2002-08-0811-192/+259
| | | | | | | | currently cached data. It allows a number of nice things, like: removing fallback code from single locale loading, remove memory leak when LC_CTYPE data loaded again and again, efficient cache use, not only for setlocale(locale1); setlocale(locale1), but for setlocale(locale1); setlocale("C"); setlocale(locale1) too (i.e. data file loaded only once).
OpenPOWER on IntegriCloud