summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Extensive rewrite of the HTTP code. The new code is significantly cleaner anddes2000-07-121-446/+685
| | | | | | | | more robust, and somewhat more efficient. It also handles authorization and redirects properly, and supports timeouts like the FTP code. Many thanks to Umemoto-san for his assistance with IPv6 support, both here and in other parts of libfetch.
* Don't call warn() without a format string.kris2000-07-121-1/+1
|
* Use fetch_putln()des2000-07-111-11/+5
|
* Add _fetch_putln()des2000-07-112-6/+30
|
* Don't call printf without a format string.kris2000-07-111-1/+1
|
* Document that basic authorization now kinda works.des2000-07-111-16/+20
|
* Rework the authorization code.des2000-07-111-78/+83
| | | | | | Only send absolute URI if connected to a proxy, since Apache doesn't always understand absolute URIs. Clean up some of the debugging output.
* Clean up the debugging outputdes2000-07-112-12/+3
|
* Fix typo; sa_siginfo -> sa_sigactionben2000-07-111-1/+1
| | | | | PR: 19602 Submitted by: Tony Finch <dot@dotat.at>
* Try and fix the worst of some highly bogus malloc/free resourcepeter2000-07-111-1/+1
| | | | | | | | | | | management involving rcmd_af(), getaddrinfo(), freeaddrinfo(), etc. We set *ahost to point to ai->canonname; and later free the ai-> stuff and still leave the old pointers in *ahost to the freed data. Perhaps the best way to deal with this is a static buffer or a static strdup() that is freed on the next iteration or something. This gives me headaches just thinking about this. The new 'AJ' default for malloc() tripped this up.
* Free chunks obtained by getaddrinfo(3).ume2000-07-101-0/+1
| | | | Approved by: des
* Separate parsing code of 229 replies from the code for 227 and 228.ume2000-07-101-6/+13
| | | | Don't assume 227 and 228 replies enclose remote address with parentheses.
* Make EPSV work again. Separate parsing code of 229 replies fromume2000-07-101-7/+14
| | | | | | the code for 227 and 228. Submitted by: des
* Actually make it so this Makefile can build grot.green2000-07-101-1/+8
|
* Add a test case for one of the bugs found on the new additions todcs2000-07-091-0/+1
| | | | regex(3).
* Spencer's regex(3) test code.dcs2000-07-098-0/+1727
| | | | Obtained from: BSD/OS
* altoffset() always returned whenever it recursed, because at the enddcs2000-07-091-0/+4
| | | | | | | | | | | | | | of the processing of the recursion, "scan" would be pointing to O_CH (or O_QUEST), which would then be interpreted as being the end character for altoffset(). We avoid this by properly increasing scan before leaving the switch. Without this, something like (a?b?)?cc would result in a g->moffset of 1 instead of 2. I added a case to the soon-to-be-imported regex(3) test code to catch this error.
* Since g->moffset points to the _maximum_ offset at which the mustdcs2000-07-091-1/+1
| | | | | | | | | | | | | string may be found (from the beginning of the pattern), the point at which must is found minus that offset may actually point to some place before the start of the text. In that case, make start = start. Alternatively, this could be tested for in the preceding if, but it did not occur to me. :-) Caught by: regex(3) test code
* Add some casts here and there.dcs2000-07-091-3/+3
|
* Turn malloc options "AJ" on by default.phk2000-07-091-2/+2
| | | | | | | | These will be turned off again as we approach 5.0-RELEASE. If you benchmark things, make sure to ln -sf j /etc/malloc.conf to see "true" performance.
* reject empty scopeid. use strtoul() for checking all-numericness ofitojun2000-07-091-8/+15
| | | | | portname. explicitly reject empty numeric portname. sync with kame. based on comments from itohy@netbsd.org
* First appeared in 2.9BSD, not 3.0.dannyboy2000-07-081-1/+1
| | | | | | PR: 19263 Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp> Obtained from: Open|NetBSD
* Since we have modified charjump to be CHAR_MIN-based, we have todcs2000-07-081-1/+2
| | | | | | correct the offset when we free it. Caught by: phkmalloc
* Don't assume the remote address in a 227 reply is enclosed in parentheses.des2000-07-081-2/+1
|
* Fix basic authentication, and add proxy authentication.des2000-07-081-19/+45
| | | | Submitted by: se
* Change the dllockinit() interface from "experimental" tojdp2000-07-081-3/+4
| | | | "deprecated" and warn that it will disappear eventually.
* fix commentache2000-07-071-1/+1
|
* Remove DIAGASSERTn_hibma2000-07-076-50/+0
|
* Do not free NULL pointers.dcs2000-07-071-1/+1
|
* Deal with the signed/unsigned chars issue in a more proper manner. Wedcs2000-07-072-21/+17
| | | | | | | | | use a CHAR_MIN-based array, like elsewhere in the code. Remove a number of unused variables (some due to the above change, one that was left after a number of optimizing steps through the source). Brucified by: bde
* remove sys/time.h by instruction from bde.jmg2000-07-061-1/+0
|
* Reduce shlib major that is bumped by my mistake.ume2000-07-061-1/+1
| | | | We don't need bumping it in this time.
* Better fix for .Fx macroache2000-07-061-2/+4
| | | | Submitted by: sheldonh
* cleanup the tsearch import.alfred2000-07-062-53/+4
| | | | | | | | | | | | remove (comment out) functions defined or depricated elsewhere: bsearch, lfind, lsearch, insque, remque change hcreate to take a size_t rather than uint (essentially the same) since hcreate/hdestroy are now in <search.h>, remove private search.h in lib/libc/db/hash/ add $FreeBSD tags to hsearch.c
* I hate signed chars.^W^W^W^W^WCast to unsigned char before using signeddcs2000-07-061-1/+1
| | | | chars as array indices.
* Correct comment to work with test code.dcs2000-07-061-2/+2
| | | | Prevent out of bounds array access in some specific cases.
* Use UCHAR_MAX consistently.dcs2000-07-061-1/+1
|
* Fix .Fx usage (causing error diagnositc)ache2000-07-061-1/+2
|
* IPv6 support.ume2000-07-055-78/+301
| | | | | | This is required for forthcoming IPv6 ready installer. Obtained from: KAME
* Remove DEBUG_FLAGS=-g3, which never should have been committed.jasone2000-07-053-6/+0
|
* sync with more recent kame tree.itojun2000-07-052-45/+254
| | | | | - correct scoped notation separator (s/@/%/) - include example and more references
* sync with latest kame.itojun2000-07-051-70/+208
| | | | | | | | - permit numeric scopeid, be more careful about buffer size TODO: 2nd arg type should be socklen_t for RFC2553 conformance, but due to include file dependency it is not a easy thing to do (netdb.h does not have socklen_t)
* sync with kame.itojun2000-07-051-29/+50
| | | | | - better return code. from enami@netbsd - do not use "class" as variable name. C++ guy had trouble with it.
* o Enable building of libposix1e capability state utility functions andrwatson2000-07-052-16/+24
| | | | | | capability-related syscall wrappers. Obtained from: TrustedBSD Project
* o Introduce cap_{get,set}_{file,fd}() syscall wrappers, associated withrwatson2000-07-058-0/+392
| | | | | | | soon to be committed syscall stubs. These calls will be used to get and set capability state associated with executables. Obtained from: TrustedBSD Project
* o When calling the syscall, use &cap instead of cap. Apparently thisrwatson2000-07-052-2/+2
| | | | | | | error was introduced during the merge; fixing it corrects a (correct) warning about types. Obtained from: TrustedBSD Project
* o Comment out <sys/audit.h> and <sys/mac.h> since they are not yetrwatson2000-07-052-4/+4
| | | | | | committed Obtained from: TrustedBSD Project
* add getifaddrs(3) from bsdi. this is a magic function which lets you grabitojun2000-07-053-2/+545
| | | | | | interface addresses in a portable manner, without headache of SIOCGIFCONF or sysctl. it is in bsdi/openbsd/netbsd already. from kame tree (actually, mandatory for latest kame tree).
* synchronize with latest kame tree.itojun2000-07-0413-598/+1149
| | | | | behavior change: policy syntax was changed. you may need to update your setkey(8) configuration files.
* Describe agrument range correctly, according to multibyte(3)ache2000-07-032-23/+21
| | | | Remove unneded comment
OpenPOWER on IntegriCloud