summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix an off-by-one error in getvfsent().Joerg Wunsch1996-10-261-1/+1
| | | | | | | Detected by: phkmalloc :) Notes: svn path=/head/; revision=19199
* Note that streams are now flushed on abort.Alexander Langer1996-10-261-2/+2
| | | | | | | Change standards section to reflect POSIX 1003.1-1990 conformance. Notes: svn path=/head/; revision=19196
* Various cosmeticsPoul-Henning Kamp1996-10-261-48/+28
| | | | | | | | | Improve chances of troublefree 64bit operation. [imp] Noticed by: Warner Losh <imp@village.org> Notes: svn path=/head/; revision=19191
* POSIX requires stdio buffers be flushed on abort.Alexander Langer1996-10-261-0/+8
| | | | | | | Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG> Notes: svn path=/head/; revision=19189
* GNU-style changes:Andrey A. Chernov1996-10-232-11/+21
| | | | | | | | | | 1) Rename FNM_ICASE to FNM_CASEFOLD 2) Add FNM_LEADING_DIR Add proper (unsigned char) casts to tolower(). Use 'char' function argument for proper sign extension Notes: svn path=/head/; revision=19132
* Simplify debug outputAndrey A. Chernov1996-10-232-5/+14
| | | | | | | Simplify collate_range_cmp for ASCII-compatible collate we have now Notes: svn path=/head/; revision=19129
* Fix a potential memory leak i've introduced with my recent patch.Joerg Wunsch1996-10-211-2/+2
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=19082
* add flag FNM_ICASE for case insensitve searchWolfram Schneider1996-10-202-1/+25
| | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=19059
* malloc_pages should be static.Poul-Henning Kamp1996-10-201-187/+103
| | | | | | | | | | | | | | | | | | | Add progname to warning/error message layout. (joerg) Remove inline assembler, no speed impact, not need for the obfuscation (bde) Remove on the fly calculation of parameters, no longer critical. Make D & U flags valid even if we don't support them. Don't call imalloc until we're done initializing. Zap contents on free() if we have "Junk" set. [*] Various nitpicking. [*] As a sideeffect of this change, if you are worried about sensitive data lingering in memory, you can use the 'Junk' option now to make sure phkmalloc zaps memory when it is returned. add char * malloc_options = "J"; to your source. Obviously there is a performance impact. Notes: svn path=/head/; revision=19057
* Remove the arbitrary limit for the line length in /etc/ttys, and makeJoerg Wunsch1996-10-191-11/+33
| | | | | | | | | the buffer dynamic. Closes PR # misc/1838: getttyent() arbitrary 100... Notes: svn path=/head/; revision=19031
* Back out most of the last backout. :-) Guido removed the 1.1.1.1->1.1.1.2Peter Wemm1996-10-191-10/+18
| | | | | | | | | changes from the vendor branch as well, backing the db-1.82 changes. This file should now be the same as it was in rev 1.1.1.2. Notes: svn path=/head/; revision=19029
* Backout bzero patch.Guido van Rooij1996-10-181-21/+11
| | | | | | | | | Somehow, I also managed to get quite some other changes in this file at the same time. All I did was checkout the file and made a single change. If someone has an explanation how these PURIFFY defines got in... Notes: svn path=/head/; revision=19024
* When freeing buffers in the db routines, also zeroize themGuido van Rooij1996-10-171-1/+3
| | | | | | | | | This should solve the bug where a coredumping ftpd reveals encrypted passwords. Obtained from: OpenBSD Notes: svn path=/head/; revision=18997
* Corrently null-terminate the path being passed to the opendir() calls,Peter Wemm1996-10-171-0/+1
| | | | | | | | | | malloc() does is not defined to return a zeroed buffer leading to "strange" problems. Submitted by: Karl Denninger <karl@mcs.com>, PR#1826 Notes: svn path=/head/; revision=18971
* Bring back ns_* routines; we need them for ifconfig and route.Jordan K. Hubbard1996-10-161-2/+1
| | | | Notes: svn path=/head/; revision=18966
* Save half of space in LC_COLLATE and remove unneded code.Andrey A. Chernov1996-10-152-35/+10
| | | | | | | | | This change is not compatible with previous variant, however proper error code returned in both cases. Colldef changes will follows. Notes: svn path=/head/; revision=18949
* Require that a timezone specified via the TZ envariable be a regularGarrett Wollman1996-10-091-1/+7
| | | | | | | | file (and not a directory or a device which might also be readable). Closes PR#1740. Notes: svn path=/head/; revision=18834
* Improve seeding, the random sequence did not vary matchAndrey A. Chernov1996-10-092-14/+75
| | | | | | | with the seed. Old variant will be available via libcompat soon. Notes: svn path=/head/; revision=18832
* Fix an error in the description of "h_errno". Add "const" to a fewJohn Polstra1996-10-081-4/+4
| | | | | | | declarations to make them agree with the actual prototypes in <netdb.h>. Notes: svn path=/head/; revision=18824
* delete doubled words, e.g.: "the the" -> "the"Wolfram Schneider1996-10-056-7/+13
| | | | Notes: svn path=/head/; revision=18718
* Skip results that have unexpected lengthsPaul Traina1996-10-011-7/+6
| | | | Notes: svn path=/head/; revision=18608
* perror () does not prepend ": " for the non-NULL argument "". close PR 1492Wolfram Schneider1996-09-301-1/+1
| | | | | | | | | | Submitted by: Kent Vander Velden <graphix@iastate.edu> Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=18577
* Made this about as (in)complete as sysctl.8.Bruce Evans1996-09-291-35/+42
| | | | | | | | | - removed references to nonexistent pathconf-related variables. - document everything in CTL_MACHDEP(more than in sysctl.8) and 80% of the things in CTL_KERN (same as in sysctl.8). Notes: svn path=/head/; revision=18563
* Updated the descriptions of the limits related to EAGAIN.Bruce Evans1996-09-292-9/+37
| | | | | | | Changed the error name width for rfork to match fork. Notes: svn path=/head/; revision=18562
* .Os NetBSD -> .Os FreeBSD.Wolfram Schneider1996-09-284-4/+4
| | | | | | | The pages are not NetBSD specific and FreeBSD is not a child of NetBSD. Notes: svn path=/head/; revision=18549
* .DV -> .Dv (SOCK_STREAM was invisible).Bruce Evans1996-09-281-1/+1
| | | | Notes: svn path=/head/; revision=18534
* .DV -> .Dv (FOPEN_MAX was invisible).Bruce Evans1996-09-281-1/+1
| | | | Notes: svn path=/head/; revision=18533
* Don't use malloc, pessimize to use sbrk.Poul-Henning Kamp1996-09-272-2/+3
| | | | | | | fix sbrk manpage while we're at it. Notes: svn path=/head/; revision=18516
* Fix a typo.Søren Schmidt1996-09-251-2/+2
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=18495
* A number of minor bogons and portability things from jdp.Poul-Henning Kamp1996-09-251-28/+37
| | | | | | | Submitted by: jdp Notes: svn path=/head/; revision=18493
* add missing comma(s) in .Xr macrosWolfram Schneider1996-09-237-13/+18
| | | | Notes: svn path=/head/; revision=18480
* phkmalloc/3Poul-Henning Kamp1996-09-232-196/+342
| | | | | | | | | | | Various neat features added. More documentation in the manpage. If your machine has very little RAM, I guess that would be < 16M these days :-(, you may want to try this: ln -fs 'H<' /etc/malloc.conf check the manpage. Notes: svn path=/head/; revision=18479
* Fix typo from previous commit (tsvsec --> tv_sec).Alexander Langer1996-09-231-1/+1
| | | | Notes: svn path=/head/; revision=18472
* fix .Xr macroWolfram Schneider1996-09-212-2/+2
| | | | Notes: svn path=/head/; revision=18446
* ".Xr chflags 1," -> ".Xr chflags 1 ,"Peter Wemm1996-09-211-1/+1
| | | | Notes: svn path=/head/; revision=18435
* Add the utrace syscall.Poul-Henning Kamp1996-09-201-3/+4
| | | | Notes: svn path=/head/; revision=18421
* ts_sec -> tv_secNate Williams1996-09-202-5/+5
| | | | | | | ts_nsec -> tv_nsec Notes: svn path=/head/; revision=18414
* Fix a very rare error condition: The code to free VM back to the kernelPoul-Henning Kamp1996-09-171-3/+4
| | | | | | | | | | as done after a quasi-recursive call to free() had modified what we thought we knew about the last chunk of pages. This bug manifested itself when I did a "make obj" from src/usr.sbin/lpr, then make would coredump in the lpd directory. Notes: svn path=/head/; revision=18333
* Add comment explaining what function doesAndrey A. Chernov1996-09-171-3/+11
| | | | | | | Cover strcoll return 0 case too Notes: svn path=/head/; revision=18331
* Don't use __dead or __pure in user code. They were obfuscationsBruce Evans1996-09-142-7/+8
| | | | | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong. Notes: svn path=/head/; revision=18286
* fwopen() argument type mis-describedPaul Traina1996-09-131-1/+1
| | | | | | | Obtained from: NetBSD lib/2751 (der Mouse) Notes: svn path=/head/; revision=18279
* Resync statfs struct with sys/mount.h.Peter Wemm1996-09-071-3/+7
| | | | Notes: svn path=/head/; revision=18126
* Apply patch to fix +group YP overrides and prevent SEGV on badlyBill Paul1996-09-051-8/+47
| | | | | | | formatted groups (foo:*). Notes: svn path=/head/; revision=18046
* Describe POSIX saved IDs behaviour betterAndrey A. Chernov1996-09-031-5/+19
| | | | Notes: svn path=/head/; revision=18012
* Describe current behaviour (_POSIX_SAVED_IDS are ON),Andrey A. Chernov1996-09-011-2/+12
| | | | | | | | | | traditional BSD4.4 behavior (_POSIX_SAVED_IDS are OFF) was described before. Add some hooks to easily change this text when POSIX_SAVED_IDS model will be changed. Notes: svn path=/head/; revision=17995
* Fixed the easy cases of const poisoning in the kernel. Cosmetic.Bruce Evans1996-08-312-2/+3
| | | | Notes: svn path=/head/; revision=17974
* Don't depend in the kernel on the gcc feature of doing arithmetic onBruce Evans1996-08-311-10/+10
| | | | | | | pointers of type `void *'. Warn about this in future. Notes: svn path=/head/; revision=17971
* Sigh, back out the last bright idea I had here about compiling the res_*Peter Wemm1996-08-309-2/+3633
| | | | | | | | | | | routines from contrib/bind directly. There were too many problems, including having to add -DUSE_OPTIONS_H to the entire libc source in order for the contrib code to pick up it's options, and so on. Instead, I've merged the changes, libc is now self contained again. Notes: svn path=/head/; revision=17957
* back out last two changes, this caused the mandoc pages to be replaced byPeter Wemm1996-08-303-504/+529
| | | | | | | man pages. I'll fold in the real changes in a seperate commit. Notes: svn path=/head/; revision=17955
* oops, brain-lapse caused undefined symbolPeter Wemm1996-08-301-3/+3
| | | | Notes: svn path=/head/; revision=17922