summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Improve the Dangerously Dedidcated mode a bit. Not much, but a bit better.phk1996-11-275-65/+57
|
* 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
* Oops, we still want to build/install the static libraries.wollman1996-11-201-2/+1
|
* Copy a slightly modified version of the `libgnumalloc hack' to allowwollman1996-11-201-2/+24
| | | | | us to finally phase out the 8K shared version of liby in favor of the 600-byte static one, as was done years ago for libl/libfl.
* 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.
* Oops, back out previous optimization, don't work as I expectache1996-11-141-4/+12
| | | | (lack of sleep)
* Since ftpPutURL not use hostname cache, optimize it by always closingache1996-11-141-13/+5
| | | | | connection at the end of operation, so it not leave opened file without a reason.
* For functions ftpGetURL, ftpPutURL, ftpLogin it was impossible to knowache1996-11-144-20/+44
| | | | | | | | | | | | | | | | | | | | FTP error return code because 1) They return NULL, it means that ftpErrno can't be used because it takes file pointer 2) They don't have FILE-type argument as f.e. ftpGet/ftpPut to use it for ftpErrno instead. For that functions I add yet one int* type argument to store FTP error return code. It is impossible to add some global variable for that reason, because user can have multiply FTP connections opened at the same time. So, interface changed, major number bumped. Userland changes will follows. Minor bugfixes, the code: Forget to close file in few places, when failure occurse Forget to NULL cached host name, multiply free is possible
* Oops, forget the fact that several ftp connections can be activeache1996-11-142-10/+6
| | | | | | at the same time, so add new con_state to avoid QUIT recursion Still should go to 2.2
* 1) Don't allow endless recursion in ftp_close when it attempts toache1996-11-141-2/+8
| | | | | | | | send QUIT to closed connection. 2) Preserve login failure code, don't overwrite it with ftp_close code Should go to 2.2
* 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
|
* Add pthread_mutexattr_init() and pthread_mutexattr_setkind_np().hsu1996-11-116-0/+366
|
* Add uthread_attr_init.c, uthread_attr_setstacksize.c, uthread_mattr_init.c,hsu1996-11-113-3/+21
| | | | uthread_mattr_kind_np.c, uthread_multi_np.c, and uthread_single_np.c.
* Moved enum pthread_mutextype to pthread.h.hsu1996-11-113-18/+24
| | | | Add pthread_mutexattr_default definition.
* Make pthread_getspecific() compliant with the final IEEE pthreadshsu1996-11-113-27/+27
| | | | specification: return parameter passing changed.
* kvm_malloc:ache1996-11-111-3/+3
| | | | | | | When malloc fails. don't try to memset NULL pointer, it cause core dump Replace malloc+memset with calloc, theoretically it can do some optimization of zeroing process internally Improve error diagnostic
* 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
|
* Compile libtelnet from eBones, not secure.markm1996-11-031-2/+2
| | | | 2.2 candidate.
* 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
|
* Regenerate. This backs out my previous change to TCL_SHLIB_SUFFIX, sincepeter1996-10-312-3/+3
| | | | it has side effects elsewhere.
* Replace collate_range_cmp call with its codeache1996-10-311-1/+18
|
* 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
* Regenerate.peter1996-10-302-4/+4
| | | | | | | No changes other than "instructions" for what other tools that use this .. "interesting" .. system should name their shared libraries. This was broken for some tools (eg: expect-5.21) even for the native tcl build (ie, it would end up using libexpect521.so, not libexpect521.so.1.0)
* 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>
* Regenerated.. Use new minor number for both installed names, not justpeter1996-10-292-5/+5
| | | | one of them.
* Do not make symbolic links from obj directory into source tree,wosch1996-10-261-233/+73
| | | | | | it may break `make reinstall'. Use cp(1). simplify makefile
* 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>
* Moved #include of <sys/types.h> earlier so that this compiles whenbde1996-10-251-7/+8
| | | | | | <stdio.h> doesn't (bogusly) include <sys/types.h>. Cleaned up #includes.
* 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
* Add #include <sys/types>phk1996-10-221-1/+2
|
* close bin/1648 libmd not 64bit safe.phk1996-10-225-12/+15
| | | | | | if something fails to compile now, you need to add #include <sys/types.h> Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>
* Fix a potential memory leak i've introduced with my recent patch.joerg1996-10-211-2/+2
| | | | Reviewed by: bde
OpenPOWER on IntegriCloud