aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move just committed version of wcswidth.c here (from "locale"),Andrey A. Chernov2002-08-202-25/+31
| | | | | | | a bit optimized now. Notes: svn path=/head/; revision=102159
* Remove wcswidth.c from here (and move it to "string")Andrey A. Chernov2002-08-202-65/+1
| | | | Notes: svn path=/head/; revision=102158
* Remove space at the end of continuation line in prev. commitAndrey A. Chernov2002-08-201-1/+1
| | | | Notes: svn path=/head/; revision=102157
* xdr.3 is added to MAN in ../xdr/Makefile.inc where it belongs, so don'tBruce Evans2002-08-191-1/+1
| | | | | | | add it here. Notes: svn path=/head/; revision=102147
* Implement wcswidth()Andrey A. Chernov2002-08-192-2/+66
| | | | Notes: svn path=/head/; revision=102139
* Use modern-style arguments declarationAndrey A. Chernov2002-08-191-2/+1
| | | | Notes: svn path=/head/; revision=102137
* Write null wide-character as L'\0' like in other placesAndrey A. Chernov2002-08-191-1/+1
| | | | Notes: svn path=/head/; revision=102134
* According to SUSv2, always return 0 for null wide-character codeAndrey A. Chernov2002-08-191-1/+6
| | | | Notes: svn path=/head/; revision=102124
* s/trailing NULL/trailing NUL/Juli Mallett2002-08-192-2/+2
| | | | Notes: svn path=/head/; revision=102117
* Move internal defines from ctype.h hereAndrey A. Chernov2002-08-191-0/+4
| | | | Notes: svn path=/head/; revision=102096
* Leave room for a trailing NUL not a NULL, that's not an ASCII character.Juli Mallett2002-08-192-2/+2
| | | | Notes: svn path=/head/; revision=102085
* Implement the ISO C90 Amd.1 restartable wide and multibyte characterTim J. Robbins2002-08-1813-4/+1020
| | | | | | | | manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(), wcrtomb(), wcsrtombs(). Notes: svn path=/head/; revision=102050
* Move wcwidth() to separate file, it doesn't belong to iswctype.c at allAndrey A. Chernov2002-08-173-11/+58
| | | | Notes: svn path=/head/; revision=102033
* According to SUSv2, wcwidth() should return -1 for non-printing charactersAndrey A. Chernov2002-08-171-1/+1
| | | | Notes: svn path=/head/; revision=102031
* Cosmetic - remove unneded brackets and #undefAndrey A. Chernov2002-08-172-41/+40
| | | | Notes: svn path=/head/; revision=102030
* wcwidth: fix espression to work correctly with SWIDTH0Andrey A. Chernov2002-08-171-2/+4
| | | | Notes: svn path=/head/; revision=102008
* Fix libc build breakage by defining FSTYPENAMES before includingBosko Milekic2002-08-161-0/+1
| | | | | | | | | | disklabel.h; broken originally by 1.87 of sys/disklabel.h, which made the split between DKTYPENAMES and FSTYPENAMES. Someone who knows disklabel.c: do we still need DKTYPENAMES to be defined here now? Notes: svn path=/head/; revision=101993
* Add iswctype wcwidth function codeMichael C . Wu2002-08-161-0/+10
| | | | | | | | | | Submitted by: clkao@clkao.org Reviewed by: keichii Obtained from: NetBSD MFC after: 1 month Notes: svn path=/head/; revision=101985
* Hide 'struct ucred' behind '#ifdef _KERNEL', this should stop userlandAlfred Perlstein2002-08-161-0/+3
| | | | | | | | | | from attempting to use it for good. There is a catch, kvm_proc.c needs to '#define _KERNEL' to get at the ucred. Requested by: rwatson Notes: svn path=/head/; revision=101968
* Add LOGIN_SETMAC, which will indicate to the user context management codeRobert Watson2002-08-161-1/+2
| | | | | | | | | | | that it should also set the user's default MAC label, if available and permitted. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=101959
* - Fix a bug that wrote one char behind the end of theRobert Drehmel2002-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 Notes: svn path=/head/; revision=101943
* Put each function argument on its own line to keep lines shorterRobert Drehmel2002-08-151-1/+6
| | | | | | | than 80 columns. Notes: svn path=/head/; revision=101939
* Use one line for each function argument to keep the lineRobert Drehmel2002-08-152-2/+11
| | | | | | | | | | width smaller than 80 columns. Thanks to Ruslan for an explanation of multiple ways to achieve this. Notes: svn path=/head/; revision=101936
* Removed duplicated MLINKS which make(1) recently started warning about.Bruce Evans2002-08-151-2/+0
| | | | Notes: svn path=/head/; revision=101916
* Include <stdlib.h> to have abort() and exit() declared.Robert Drehmel2002-08-151-0/+1
| | | | Notes: svn path=/head/; revision=101915
* - For compliance with IEEE Std 1003.1-2001, add the 'restrict'Robert Drehmel2002-08-155-17/+11
| | | | | | | | | qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page. Notes: svn path=/head/; revision=101914
* - Introduce the 'restrict' qualifier to function prototypes andRobert Drehmel2002-08-155-8/+8
| | | | | | | | definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages. Notes: svn path=/head/; revision=101913
* - Add the 'restrict' qualifier to the function prototypes andRobert Drehmel2002-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. Notes: svn path=/head/; revision=101912
* - Add the 'restrict' qualifier to the function definitions andRobert Drehmel2002-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. Notes: svn path=/head/; revision=101889
* - Add the 'restrict' qualifier to the function definition ofRobert Drehmel2002-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. Notes: svn path=/head/; revision=101888
* - Add the 'restrict' qualifier to the definitions of the stringRobert Drehmel2002-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. Notes: svn path=/head/; revision=101887
* - Add the C99 'restrict' qualifier using the '__restrict' macro toRobert Drehmel2002-08-142-2/+3
| | | | | | | | function prototype and definition of strptime(3). - Update the manual page. Notes: svn path=/head/; revision=101886
* Use "ugidfw.h" rather than <ugidfw.h> so that mkdep can find it.Robert Watson2002-08-141-1/+1
| | | | | | | Suggested by: mike Notes: svn path=/head/; revision=101885
* - Add the 'restrict' qualifier to match the IEEE Std 1003.1-2001Robert Drehmel2002-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. Notes: svn path=/head/; revision=101882
* - Add the 'restrict' qualifier required by IEEE Std 1003.1-2001Robert Drehmel2002-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. Notes: svn path=/head/; revision=101881
* -Add the restrict required by IEEE Std 1003.1-2001 in formRobert Drehmel2002-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. Notes: svn path=/head/; revision=101880
* Unbreak one of the most confusing breaks of the tree I've seen.Poul-Henning Kamp2002-08-131-1/+2
| | | | | | | The last commit cannot possibly have been tested. Notes: svn path=/head/; revision=101841
* Reduce BSS size for programs which not load collate by eliminatingAndrey A. Chernov2002-08-132-10/+13
| | | | | | | static buffer. Notes: svn path=/head/; revision=101820
* Use a union to access the words of a double as this is less likelyDavid Malone2002-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 Notes: svn path=/head/; revision=101812
* can not -> cannot.Ruslan Ermilov2002-08-132-2/+2
| | | | Notes: svn path=/head/; revision=101810
* Tidy up SRCS and MAN assignments.Tim J. Robbins2002-08-131-20/+13
| | | | Notes: svn path=/head/; revision=101793
* Remove the Bugs section, which is not relevant to FreeBSD: there is noTim J. Robbins2002-08-131-2/+0
| | | | | | | one-character ungetwc(3) buffer limit. Notes: svn path=/head/; revision=101782
* FreeBSD-ify: use In macro for header files in Synopsis, St C-99 instead ofTim J. Robbins2002-08-134-12/+12
| | | | | | | St C99 in Standards section. Notes: svn path=/head/; revision=101781
* Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),Tim J. Robbins2002-08-1339-12/+846
| | | | | | | putwc(), fputwc(), putwchar(), ungetwc(), fwide(). Notes: svn path=/head/; revision=101776
* Handle the escaped colon \: in a capability.Ruslan Ermilov2002-08-122-0/+2
| | | | | | | | | PR: bin/30778 Reviewed by: ache, peter MFC after: 3 days Notes: svn path=/head/; revision=101752
* Now malloc() is fixed, remove errno hardcoding to ENOMEMAndrey A. Chernov2002-08-121-3/+6
| | | | Notes: svn path=/head/; revision=101747
* Manual pages for fwide(), getwc(), fgetwc(), getwchar(), putwc(), fputwc(),Tim J. Robbins2002-08-124-0/+417
| | | | | | | | | | putwchar(), ungetwc() from NetBSD and Citrus Project, unmodified except for the addition of $FreeBSD$. Obtained from: NetBSD, Citrus Project Notes: svn path=/head/; revision=101732
* Now, malloc is fixed, remove ENOMEM hardcodeAndrey A. Chernov2002-08-121-12/+11
| | | | Notes: svn path=/head/; revision=101727
* Add a missing copyright for Doug. There are other files missing thisDavid Malone2002-08-111-0/+28
| | | | | | | | | | copyright in -stable. PR: 41397 Submitted by: dfr Notes: svn path=/head/; revision=101695
* Initialise disk->d_ufs so that in sblock.c it's always initialisedJuli Mallett2002-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. Notes: svn path=/head/; revision=101687