Commit graph

37 commits

Author SHA1 Message Date
joerg
6dff822714 libfetch-2.9:
Add fetch_extract_filename to extract the unquoted filename of a URL.
2008-04-21 17:15:31 +00:00
joerg
e3a9871309 libfetch-2.8:
Fix a number of small bugs introduced in the last version.
2008-04-21 13:09:57 +00:00
joerg
70e1a5075b libfetch-2.7:
Add fetchCopyURL.
2008-04-20 15:29:26 +00:00
joerg
b4415d1d0b libfetch-2.6:
Change fetchList API to always return lists of full URLs.
2008-04-19 14:49:23 +00:00
joerg
b05cf0700b libfetch-2.5:
Add basic index parsing support for HTTP based on the ftpio.c code in
pkg_install. Permission to use the 3-clause BSD license from Thomas
Klausner in private mail.
2008-04-18 21:13:10 +00:00
joerg
1a88f0800b Claim copyright on the files I modified a lot. 2008-04-17 19:04:12 +00:00
joerg
c35c56dfb2 Avoid using %ju as it is not implemented on all platforms. 2008-04-17 08:35:20 +00:00
joerg
4ec3d2c430 Don't use inline. 2008-04-16 15:10:18 +00:00
joerg
1326c4fa04 Use nbcompat. 2008-04-16 01:01:50 +00:00
joerg
e3fc6a6999 Force depend target to run, bootstrap-mk-files doesn't have the
necessary logic for explicit dependencies as the NetBSD rules have.
Should fix build on Solaris and Darwin.
2008-04-08 11:45:49 +00:00
joerg
dfc4ab8bef Be a bit nicer to users that want to play with the fire. 2008-04-07 19:39:24 +00:00
joerg
a41011ddfb Actually return the list, not print it. 2008-04-05 02:51:14 +00:00
joerg
d3b6313e66 libfetch-2.4: FTP directory listenings. 2008-04-05 02:42:53 +00:00
joerg
70a1c0da87 Add somewhat ugly, but working directory listening code for FTP.
Note that using glob patterns that match directories can result in
recursive expansion, e.g. with tnftpd.
2008-04-05 02:42:13 +00:00
joerg
bebce94037 Regen. 2008-04-05 00:40:17 +00:00
joerg
472cf496e0 On second thought, don't filter out files with . Bump to 2.3. 2008-04-04 23:19:16 +00:00
joerg
5f8b22911d libfetch-2.2:
Add interface to glob a directory.
2008-04-04 22:37:28 +00:00
joerg
f8bafbe7e8 Use inttypes.h, it is more portable and all that is needed here. 2008-04-04 15:17:51 +00:00
joerg
586f71a7c1 libfetch-2.1:
- remove most of the debug junk
- fix a buffer overflow in the config parser
- replace stdio usage with a simple abstract IO framework. currently
without explicit buffering, but that might be added later
2008-04-02 15:33:14 +00:00
tnn
4c718bd4e0 No sin_len on IRIX. 2008-02-21 14:40:43 +00:00
joerg
f39ec90913 The libfetch version is good enough as user-agent. 2008-02-07 18:02:01 +00:00
joerg
b5978b75bb Conditionally declare arg on the existance of the socket options. 2008-02-07 17:57:28 +00:00
joerg
62b3753060 Don't use warnx, fprintf(stderr, ...) is good enough. Rename logname to
login_name to avoid shadowing a global variable.
2008-02-07 17:47:12 +00:00
joerg
ae18f14e95 Conditionally use IP_PORTRANGE sockopt and avoid using ss_len when other
operations already provided the value.
2008-02-07 17:42:14 +00:00
joerg
c893ace4e9 Kill more __unused. 2008-02-07 17:27:40 +00:00
joerg
3e2c8c39a9 Expand __func__. 2008-02-07 17:23:37 +00:00
joerg
48690f3324 Conditionalize sin_len assignment. 2008-02-07 17:20:50 +00:00
joerg
986863ab93 Replace u_char, u_short, u_long, u_int32_t with the unabbrivated version
or the POSIX type.
2008-02-07 17:19:50 +00:00
joerg
52d90533d8 Always compile for large file support. 2008-02-07 17:16:05 +00:00
joerg
7bc6b51917 Don't use __unused. 2008-02-07 17:12:12 +00:00
joerg
182d2d8055 Include sys/types.h to get time_t. 2008-02-07 17:10:35 +00:00
joerg
ed6c2007e4 Don't use __BEGIN_DECL/__END_DECL, just inline them. Ensure that
the external variables are covered as well. Directly include stdio.h.
2008-02-07 16:34:52 +00:00
joerg
208c8a0cb6 Don't shadow wait(2). 2008-02-07 16:30:49 +00:00
joerg
037ab467ac EAUTH and ENEEDAUTH might not exist, so use them conditionally.
To flag HTTP authentication errors, fallback to EPERM.
2008-02-07 16:24:01 +00:00
joerg
d85b9063b3 bcopy -> memcpy 2008-02-07 16:14:44 +00:00
joerg
eac8e6ef8c MAXNAMELEN -> PATH_MAX to match fetch.h. 2008-02-07 16:14:32 +00:00
joerg
9cf9dd43d1 Import libfetch-2.0, based on the FreeBSD version of today with a number
of smaller changes to not depend on sys/param.h. This library is
intended to replace the tnftp dependency in pkg_install.
2008-02-07 01:48:22 +00:00