summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't fail if _ftp_stat() reports a protocol error, since that most likelydes2000-07-271-0/+1
| | | | | | | means that the server doesn't understand SIZE or MDTM, which should not be a hard failure. Submitted by: ume
* Fix temp. singnals blocking. Only one signal was blocked due to typo pastedache2000-07-261-3/+5
| | | | many times.
* Add address translation support for RTSP/RTP used by RealPlayer andarchie2000-07-268-3/+819
| | | | | | | | Quicktime streaming media applications. Add a BUGS section to the man page. Submitted by: Erik Salander <erik@whistle.com>
* MFC 1.11.2.3 from -stable to -currentdillon2000-07-251-6/+21
|
* If the server reports the size as 0, treat it as unknown. This works arounddes2000-07-251-3/+2
| | | | | | | | | a bug in some ftp servers (most notably ftp.vmunix.com) which report the size of a file correctly in ascii mode, but report it as 0 in binary mode. Reported by: asmodai Also remove an unneeded initialization.
* Centralize the default port finding code.des2000-07-253-33/+43
| | | | | Work around YA Apache bug: don't send port in Host: header if it's the default port.
* Clean up some nits, with the permission of the author:sheldonh2000-07-241-7/+14
| | | | | | * Grammar fixes. * Mark up rfork and vnode as cross-references. * Clarify the use of the RFFDG flag to rfork(2).
* Remove the reference to KERN_UPDATEINTERVAL and syncer(4), sincesheldonh2000-07-221-6/+0
| | | | | | | KERN_UPDATEINTERVAL can't be used to control sched_sync(). In fact, there's no easy way to control the syncer with sysctls. Reported by: bde
* Ignore environment variables that are set but empty.des2000-07-211-40/+81
| | | | | | | | | | | | Sort out the size / length confusion. Always try to report the *real* file size in the url_stat structure, no matter how much of it is actually being sent, and try to detect inconsistencies between sizes. Rearrange the request loop to avoid having to add meaningless code just to silence compiler warnings. Switch to a more sensible and consistent interface for the _http_parse*() functions.
* Document the proxy support better.des2000-07-211-2/+15
|
* The decision to use an HTTP proxy for FTP documents belongs in the FTP codedes2000-07-212-13/+24
|
* Don't send port number to proxy unless it's not the standard FTP portdes2000-07-211-2/+6
|
* Call _thread_init() from pthread_once() if it has not already been called.dfr2000-07-213-0/+6
| | | | | | | This fixes a segfault in some C++ programs which use exceptions before main() has been called (i.e. from global constructors). Reviewed by: deischen
* Use _close() instead of close() in addrconfig() to keep it from becoming ajasone2000-07-211-3/+3
| | | | potential cancellation point in libc_r.
* Fix problem where original author thought `unsigned long' was the bestobrien2000-07-201-2/+4
| | | | | | | | 32-bit type (rather than define his own type based on the type of box being compiled on). Submitted by: Mark Abene <phiber@radicalmedia.com> (however I applied a slightly different fix)
* Copy canonname for *ahost, into static buffer.ume2000-07-201-10/+10
| | | | Obtained from: KAME Project
* use .Pp instead of faking it with an extra newlinealfred2000-07-201-1/+1
| | | | Pointed out by: sheldonh
* document get/set sockopt usage with accept_filter(9)alfred2000-07-201-2/+35
|
* Alocate rcmd{,_af}()'s *ahost argument using malloc() (wellbrian2000-07-202-3/+14
| | | | | | | | | | | strdup()) rather than pointing it at something that's free()d (via freeaddrinfo(res)) before the function returns. I appreciate that this is an API change, but it's the only way (AFAIK) of doing this without breaking existing code that uses rcmd{,_af}(). Pointed out by: phkmalloc
* Fix the case where the file name is preceded by a lone slash.des2000-07-201-1/+1
|
* Don't try to skip to the requested offset if the server returns more datades2000-07-191-8/+10
| | | | | | than requested. Instead, inform the caller of the real offset by modifying the offset field in the original struct url, and let him decide how to handle the situation.
* pthread_once --> pthread_once_t.jasone2000-07-192-2/+2
|
* Update stale references to update(4) with references to the newsheldonh2000-07-193-4/+4
| | | | syncer(4) manual page.
* To define A RR to root (.) is valid in DNS. So, h_name = "" shouldn'tume2000-07-191-2/+2
| | | | | | | | be treated as NULL. PR: bin/19816 Submitted by: Bill Fenner <fenner@research.att.com> Reviewed by: Atsushi Onoe <onoe@sm.sony.co.jp>
* Const'ify parameters to ethers(3) routines as appropriate.archie2000-07-182-10/+10
|
* Simplify kqueue API slightly.jlemon2000-07-181-2/+2
| | | | Discussed on: -arch
* Substitute UT_NAMESIZE for 8 when truncating long usernames.sheldonh2000-07-181-1/+3
| | | | | PR: 19886 Reported by: Gregory Bond <gnb@itga.com.au>
* Fix header inclusions in preparation for a fix for PR 19886.sheldonh2000-07-181-4/+3
| | | | The CVS Id tag FreeBSD was added to satisfy commit_prep.pl.
* Drop the references to index(3) and rindex(3), which are non-standardalex2000-07-189-18/+0
| | | | | | and people shouldn't be encouraged to use them. Asked by: sheldonh
* Don't take a failure to stat a file to mean that it doesn't exist, as it maydes2000-07-181-1/+5
| | | | | be a dynamically created file, e.g. a tarball on servers that support sending tarballs of directories.
* Change my email address in the copyright notices for the sake of consistencyjasone2000-07-1865-65/+65
| | | | (jasone@canonware.com --> jasone@freebsd.org).
* Deal correctly with statically initialized condition variables injasone2000-07-173-54/+51
| | | | | | | | | pthread_cond_signal(), pthread_cond_broadcast(), and pthread_cond_timedwait(). Do not dump core in pthread_cond_timedwait() (due to a NULL pointer dereference) if attempting to wait on an uninitialized condition variable. PR: bin/18099
* Reshuffle the SEE ALSO section.jasone2000-07-179-21/+21
| | | | Prompted by: sheldonh
* Introduce fetchXGet*(), which combine the functionalities of fetchGet*() anddes2000-07-176-113/+236
| | | | | | fetchStat*(). In most cases, either fetchGet*() or fetchXGet*() is a wrapper around the other; in all cases, calling fetchGet*() is identical to calling fetchXGet*() with the second argument set to NULL.
* Don't forget to set file descriptor to -1 after closing it, since the codedes2000-07-171-1/+1
| | | | | | | outside the loop inspects it to determine whether or not we succeeded in retrieving the requested document. This fixes a bug where fetchGetHTTP() would return a FILE with an invalid file descriptor if it hit the redirect limit without locating the requested document.
* Use a symbolic constant instead of hardcoding 999des2000-07-171-10/+11
|
* Don't forget to declare fetchRestartCalls.des2000-07-171-0/+1
|
* Introduce the (undocumented) variable fetchRestartCalls, which controls whetherdes2000-07-172-2/+3
| | | | | | | or not interrupted system calls will be restarted. This fixes a bug where fetch(1) would hang (potentially forever) if a server stopped responding, because the signal handler would absorb the user's efforts to interrupt the transfer.
* Remove fetchContentType(), which disappeared in the HTTP rewrite.des2000-07-171-1/+0
|
* Add SEE ALSO section, as with the other string functions.alex2000-07-171-0/+11
| | | | Submitted by: dcs
* #ifdef DEBUG -> #ifndef NDEBUGdes2000-07-161-2/+2
| | | | Pointed out by: ache
* Reinsert the MIT copyright, which applies to the base64 code and wasdes2000-07-161-0/+32
| | | | left out by accident during the rewrite.
* Make the NAME section a bit less confusing.ben2000-07-152-2/+2
| | | | | | PR: 19262 Submitted by: NOKUBI Hirotaka <nokubi@ff.iij4u.or.jp> Reviewed by: sheldonh
* Sshd writes connected host into utmp directly. If the connection isume2000-07-141-7/+14
| | | | | | via IPv6, the hostname is trimed due to the length of IPv6 address. This change saves it as possible. I have a grudge against the shortage of UT_HOSTSIZE.
* Add IPv6 scoped address support.ume2000-07-141-1/+0
| | | | | | | | It enables us to control link-local connections by interface like this: ALL : [fe80::%ed0]/10 : allow ALL : [fe80::]/10 : deny
* Make sbsize a size instead of a number. This allows the usual suffixessheldonh2000-07-142-2/+2
| | | | | | | | | to be applied to the value given. This does not break installed /etc/login.conf files, since un-suffixed numbers are interpreted as they were before. PR: 19750 Submitted by: Paul Herman <pherman@frenchfries.net>
* Fix typo, teh -> the.asmodai2000-07-142-2/+2
|
* Fix a bug (misplaced continue) that caused redirects to fail. Lots of codedes2000-07-131-16/+29
| | | | | | | | moved around, but the acutal functional changes are small. Add support for site-internal redirects (where the Location: header gives a path instead of an absolute URI) Pointed out by: kuriyama
* - Allow support for MBR boot loaders that are longer than one sector. Asjhb2000-07-126-62/+16
| | | | | | with fdisk, ensure that they are a multiple of the sector size in length. - Axe all the 1024 cylinder checks as they are no longer relevant with the fixed bootstrap.
* Fully document the HTTP authorization feature.des2000-07-121-12/+18
| | | | Update the BUGS section to reflect the HTTP rewrite.
OpenPOWER on IntegriCloud