summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add rcsid[]ache1996-11-271-13/+19
| | | | | | Since locale reading code not resistent against stack overflowing or similar intruder attacks, don't allow PATH_LOCALE env variable action for s-bit programs (non-standard locale path setting)
* Add Idache1996-11-261-35/+43
| | | | Optimize/improve recently added locale restoration on failure
* Move PATH_LOCALE handling to setlocale.c, simplify locale path building,ache1996-11-261-10/+9
| | | | don't treat empty encoding as C encoding
* PATH_LOCALE: use this non-standard env variable first time only, i.e.ache1996-11-263-72/+98
| | | | | | | | | | | | | | | | strdup() it to prevent unsetenv() or setenv() effects. Check its length to not allow user to overflow internal locale buffer. Move PATH_LOCALE handling code into one place. POSIX: make better stub for LC_MONETARY & LC_NUMERIC, now it check locale directory existance instead of refusing all non-C non-POSIX locales. POSIX treats empty locale env variable as unset variable while our old code treats it as "C" locale, fix it. Implement previous locale restoring, if locale setting fails. Old code assumes success if some of LC_ALL subset is successed even other fails, POSIX treats it as failure with previous locale restoring, fix it. Remove unneccessary length checking in currentlocale()
* get_myaddress() wasn't following the interface array properlypst1996-11-221-12/+9
| | | | Cannidate for: 2.2
* Fixed execvp() of an empty pathname to fail POSIXly. Previously itbde1996-11-181-0/+6
| | | | | | | attempted to exec the components of $PATH and it usually set errno to the wrong value. Found by: NIST PCTS
* Fixed uninitialized variables for the '/'-in-pathname case in execvp().bde1996-11-181-1/+2
| | | | | | | | Garbage in `eacces' caused the wrong errno to be set for non-EACCES errors. Garbage in `etxtbsy' caused a semi-random retry strategy for ETXTBSY errors. Found by: NIST-PCTS. gcc -Wall reported the problem, but -Wall is not enabled for libc.
* Slight rewording of the BUGS section.alex1996-11-131-4/+4
|
* Parameters for localtime_r() and gmtime_r() definitions changed.hsu1996-11-111-8/+8
| | | | | Parameters for pthread_getspecific() call changed. pthread_keycreate() renamed to pthread_key_create().
* Parameters pthread_getspecific() changed.hsu1996-11-111-1/+1
|
* Merge from the 2.2 branch: describe MNT_FORCE for mount(2).joerg1996-11-101-0/+3
|
* Added to MNT_FORCE option description after seeing Bruce's commit messageobrien1996-11-101-3/+24
| | | | | | | | | dealing w/the fixit floppy. Also added the MNT_RELOAD, MNT_WANTRDWR, MNT_ASYNC, MNT_NOATIME, MOUNT_UNION flags. Someone might want to check my description of MNT_RELOAD. 2.2-R candidate. Not a 2.1.6-R candidate -- some current flags aren't in 2.1.5-R's version.
* - Avoid possible SEGVs: never call clnt_destroy() without checkingwpaul1996-11-081-8/+36
| | | | | | | | | | | | for NULL RPC client handles. This should hopefully fix the problems Satoshi reported on -current. - Add socket descriptor sanity checks to _yp_unbind(). - Fix yp_order() so that it handles the RPC_PROCUNAVAIL error gracefully. NIS+ in YP compat mode doesn't support the YPPROC_ORDER procedure. This is a 2.2 candidate with bells on.
* Document that the `old' count is returned for the ENOMEM case.bde1996-11-041-1/+2
|
* Doc updates and cleanups made with the bind-4.9.4 update some time ago.peter1996-11-014-24/+102
| | | | I thought I had committed these, but it seems not.
* Add an "officially undocumented" tweak for squid so that it can see thepeter1996-11-011-2/+7
| | | | | | TTL of DNS records that it looks up for it's resolver cache. Obtained from: Endre Balint Nagy <bne@CareNet.hu>, via squid-1.1.x source.
* Correct a "spelling" error in a comment.dyson1996-10-312-4/+4
|
* collate_range_cmp -> __collate_range_cmpache1996-10-311-4/+5
|
* collate_range_cmp -> __collate_range_cmpache1996-10-312-6/+8
|
* Rename collate_range_cmp to __collate_range_cmp for internal usageache1996-10-312-5/+14
| | | | | | | inside libc. Add collate_range_cmp as alias to __collate_range_cmp for temp. backward compatibility. collate_range_cmp will be replaced with direct code for each external program for compatibility with the rest of world
* If you run with option Z and malloc fails, memset gets calledphk1996-10-291-4/+6
| | | | | | | with a NULL pointer (archie) Explain that minsize is also the smallest alignment. Submitted by: Archie Cobbs <archie@whistle.com>
* Fix an off-by-one error in getvfsent().joerg1996-10-261-1/+1
| | | | Detected by: phkmalloc :)
* Note that streams are now flushed on abort.alex1996-10-261-2/+2
| | | | Change standards section to reflect POSIX 1003.1-1990 conformance.
* Various cosmeticsphk1996-10-261-48/+28
| | | | | | Improve chances of troublefree 64bit operation. [imp] Noticed by: Warner Losh <imp@village.org>
* POSIX requires stdio buffers be flushed on abort.alex1996-10-261-0/+8
| | | | Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG>
* GNU-style changes:ache1996-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
* Simplify debug outputache1996-10-232-5/+14
| | | | Simplify collate_range_cmp for ASCII-compatible collate we have now
* Fix a potential memory leak i've introduced with my recent patch.joerg1996-10-211-2/+2
| | | | Reviewed by: bde
* add flag FNM_ICASE for case insensitve searchwosch1996-10-202-1/+25
| | | | Reviewed by: ache
* malloc_pages should be static.phk1996-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.
* Remove the arbitrary limit for the line length in /etc/ttys, and makejoerg1996-10-191-11/+33
| | | | | | the buffer dynamic. Closes PR # misc/1838: getttyent() arbitrary 100...
* Back out most of the last backout. :-) Guido removed the 1.1.1.1->1.1.1.2peter1996-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.
* Backout bzero patch.guido1996-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...
* When freeing buffers in the db routines, also zeroize themguido1996-10-171-1/+3
| | | | | | This should solve the bug where a coredumping ftpd reveals encrypted passwords. Obtained from: OpenBSD
* Corrently null-terminate the path being passed to the opendir() calls,peter1996-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
* Bring back ns_* routines; we need them for ifconfig and route.jkh1996-10-161-2/+1
|
* Save half of space in LC_COLLATE and remove unneded code.ache1996-10-152-35/+10
| | | | | | This change is not compatible with previous variant, however proper error code returned in both cases. Colldef changes will follows.
* Require that a timezone specified via the TZ envariable be a regularwollman1996-10-091-1/+7
| | | | | file (and not a directory or a device which might also be readable). Closes PR#1740.
* Improve seeding, the random sequence did not vary matchache1996-10-092-14/+75
| | | | with the seed. Old variant will be available via libcompat soon.
* Fix an error in the description of "h_errno". Add "const" to a fewjdp1996-10-081-4/+4
| | | | declarations to make them agree with the actual prototypes in <netdb.h>.
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-056-7/+13
|
* Skip results that have unexpected lengthspst1996-10-011-7/+6
|
* perror () does not prepend ": " for the non-NULL argument "". close PR 1492wosch1996-09-301-1/+1
| | | | | | | Submitted by: Kent Vander Velden <graphix@iastate.edu> Reviewed by: Submitted by: Obtained from:
* Made this about as (in)complete as sysctl.8.bde1996-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).
* Updated the descriptions of the limits related to EAGAIN.bde1996-09-292-9/+37
| | | | Changed the error name width for rfork to match fork.
* .Os NetBSD -> .Os FreeBSD.wosch1996-09-284-4/+4
| | | | The pages are not NetBSD specific and FreeBSD is not a child of NetBSD.
* .DV -> .Dv (SOCK_STREAM was invisible).bde1996-09-281-1/+1
|
* .DV -> .Dv (FOPEN_MAX was invisible).bde1996-09-281-1/+1
|
* Don't use malloc, pessimize to use sbrk.phk1996-09-272-2/+3
| | | | fix sbrk manpage while we're at it.
* Fix a typo.sos1996-09-251-2/+2
| | | | Reviewed by: phk
OpenPOWER on IntegriCloud