blob: dbc28369881da0720dc4d79f74bf26d76736203b [file] [log] [blame]
Eric Andersen96700832000-09-04 15:15:55 +00001/* vi: set sw=4 ts=4: */
2/*
3 * wget - retrieve a file using HTTP
4 *
Eric Andersen4e573f42000-11-14 23:29:24 +00005 * Chip Rosenthal Covad Communications <chip@laserlink.net>
Eric Andersenb520e082000-10-03 00:21:45 +00006 *
Eric Andersen4e573f42000-11-14 23:29:24 +00007 * Note: According to RFC2616 section 3.6.1, "All HTTP/1.1 applications MUST be
8 * able to receive and decode the "chunked" transfer-coding, and MUST ignore
9 * chunk-extension extensions they do not understand."
Eric Andersenb520e082000-10-03 00:21:45 +000010 *
Eric Andersen4e573f42000-11-14 23:29:24 +000011 * This prevents this particular wget app from completely RFC compliant, and as
12 * such, prevents it from being used as a general purpose web browser... This
13 * is a design decision, since it makes the code smaller.
Eric Andersenb520e082000-10-03 00:21:45 +000014 *
Eric Andersen96700832000-09-04 15:15:55 +000015 */
16
Eric Andersen3570a342000-09-25 21:45:58 +000017#include "busybox.h"
Eric Andersen96700832000-09-04 15:15:55 +000018#include <stdio.h>
19#include <stdlib.h>
20#include <unistd.h>
21#include <ctype.h>
22#include <string.h>
Eric Andersenb520e082000-10-03 00:21:45 +000023#include <unistd.h>
24#include <signal.h>
25#include <sys/ioctl.h>
Eric Andersen96700832000-09-04 15:15:55 +000026
Eric Andersenb520e082000-10-03 00:21:45 +000027#include <sys/time.h>
Eric Andersen96700832000-09-04 15:15:55 +000028#include <sys/types.h>
29#include <sys/stat.h>
30#include <sys/socket.h>
31#include <netinet/in.h>
32#include <arpa/inet.h>
33#include <netdb.h>
34
35
36void parse_url(char *url, char **uri_host, int *uri_port, char **uri_path);
37FILE *open_socket(char *host, int port);
38char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc);
Eric Andersenb520e082000-10-03 00:21:45 +000039void progressmeter(int flag);
Eric Andersen96700832000-09-04 15:15:55 +000040
Eric Andersenb520e082000-10-03 00:21:45 +000041/* Globals (can be accessed from signal handlers */
42static off_t filesize = 0; /* content-length of the file */
43#ifdef BB_FEATURE_STATUSBAR
44static char *curfile; /* Name of current file being transferred. */
45static struct timeval start; /* Time a transfer started. */
46volatile unsigned long statbytes; /* Number of bytes transferred so far. */
47/* For progressmeter() -- number of seconds before xfer considered "stalled" */
48#define STALLTIME 5
49#endif
Eric Andersen96700832000-09-04 15:15:55 +000050
51int wget_main(int argc, char **argv)
52{
Eric Andersen29edd002000-12-09 16:55:35 +000053 int n;
54 char *proxy, *proxy_host;
55 int uri_port, proxy_port;
56 char *s, buf[512];
57 struct stat sbuf;
58
Eric Andersen96700832000-09-04 15:15:55 +000059 FILE *sfp; /* socket to web server */
60 char *uri_host, *uri_path; /* parsed from command line url */
Eric Andersen96700832000-09-04 15:15:55 +000061 char *fname_out = NULL; /* where to direct output (-O) */
62 int do_continue = 0; /* continue a prev transfer (-c) */
63 long beg_range = 0L; /* range at which continue begins */
64 int got_clen = 0; /* got content-length: from server */
Eric Andersen29edd002000-12-09 16:55:35 +000065 FILE *output; /* socket to web server */
66 int quiet_flag = FALSE; /* Be verry, verry quiet... */
67
Eric Andersen96700832000-09-04 15:15:55 +000068 /*
69 * Crack command line.
70 */
Glenn L McGrath1bca5ed2000-12-09 08:12:06 +000071 while ((n = getopt(argc, argv, "cqO:")) != EOF) {
Eric Andersen96700832000-09-04 15:15:55 +000072 switch (n) {
73 case 'c':
74 ++do_continue;
75 break;
Glenn L McGrath1bca5ed2000-12-09 08:12:06 +000076 case 'q':
77 quiet_flag = TRUE;
78 break;
Eric Andersen96700832000-09-04 15:15:55 +000079 case 'O':
Randolph Chung02553a22000-12-07 03:53:47 +000080 /* can't set fname_out to NULL if outputting to stdout, because
81 * this gets interpreted as the auto-gen output filename
82 * case below - tausq@debian.org
83 */
84 fname_out = (strcmp(optarg, "-") == 0 ? (char *)1 : optarg);
Eric Andersen96700832000-09-04 15:15:55 +000085 break;
86 default:
87 usage(wget_usage);
88 }
89 }
Eric Andersen25b669c2000-10-02 23:19:38 +000090
Eric Andersen96700832000-09-04 15:15:55 +000091 if (argc - optind != 1)
92 usage(wget_usage);
Eric Andersen25b669c2000-10-02 23:19:38 +000093
Eric Andersen25b669c2000-10-02 23:19:38 +000094 if (do_continue && !fname_out)
Mark Whitleyf57c9442000-12-07 19:56:48 +000095 error_msg_and_die("cannot specify continue (-c) without a filename (-O)\n");
Eric Andersenf3b2b522000-12-07 22:42:11 +000096
Eric Andersen96700832000-09-04 15:15:55 +000097 /*
Eric Andersenf3b2b522000-12-07 22:42:11 +000098 * Use the proxy if necessary.
Eric Andersen96700832000-09-04 15:15:55 +000099 */
Eric Andersenf3b2b522000-12-07 22:42:11 +0000100 if ((proxy = getenv("http_proxy")) != NULL) {
101 proxy = xstrdup(proxy);
Eric Andersen29edd002000-12-09 16:55:35 +0000102 parse_url(proxy, &proxy_host, &proxy_port, &uri_path);
103 parse_url(argv[optind], &uri_host, &uri_port, &uri_path);
Eric Andersenf3b2b522000-12-07 22:42:11 +0000104 } else {
105 /*
106 * Parse url into components.
107 */
108 parse_url(argv[optind], &uri_host, &uri_port, &uri_path);
Eric Andersen29edd002000-12-09 16:55:35 +0000109 proxy_host=uri_host;
110 proxy_port=uri_port;
Eric Andersenf3b2b522000-12-07 22:42:11 +0000111 }
Eric Andersen29edd002000-12-09 16:55:35 +0000112
113 /* Guess an output filename */
114 if (!fname_out) {
115 fname_out =
116#ifdef BB_FEATURE_STATUSBAR
117 curfile =
118#endif
119 get_last_path_component(uri_path);
120 if (fname_out==NULL || strlen(fname_out)<1) {
121 fname_out =
122#ifdef BB_FEATURE_STATUSBAR
123 curfile =
124#endif
125 "index.html";
126 }
127#ifdef BB_FEATURE_STATUSBAR
128 } else {
129 curfile=argv[optind];
130#endif
131 }
132
Eric Andersen96700832000-09-04 15:15:55 +0000133
134 /*
135 * Open socket to server.
136 */
Eric Andersen29edd002000-12-09 16:55:35 +0000137 sfp = open_socket(proxy_host, proxy_port);
138
139 /* Make the assumption that if the file already exists
140 * on disk that the intention is to continue downloading
141 * a previously aborted download -Erik */
142 if (stat(fname_out, &sbuf) == 0) {
143 ++do_continue;
144 }
Eric Andersen96700832000-09-04 15:15:55 +0000145
146 /*
Eric Andersen29edd002000-12-09 16:55:35 +0000147 * Open the output file stream.
Eric Andersen96700832000-09-04 15:15:55 +0000148 */
Randolph Chung02553a22000-12-07 03:53:47 +0000149 if (fname_out != (char *)1) {
Eric Andersenb520e082000-10-03 00:21:45 +0000150 if ( (output=fopen(fname_out, (do_continue ? "a" : "w")))
151 == NULL)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000152 perror_msg_and_die("fopen(%s)", fname_out);
Randolph Chung02553a22000-12-07 03:53:47 +0000153 } else {
154 output = stdout;
Eric Andersen96700832000-09-04 15:15:55 +0000155 }
156
157 /*
158 * Determine where to start transfer.
159 */
160 if (do_continue) {
Eric Andersenb520e082000-10-03 00:21:45 +0000161 if (fstat(fileno(output), &sbuf) < 0)
Matt Kraai0dab8292000-12-18 03:08:29 +0000162 perror_msg_and_die("fstat()");
Eric Andersen96700832000-09-04 15:15:55 +0000163 if (sbuf.st_size > 0)
164 beg_range = sbuf.st_size;
165 else
166 do_continue = 0;
167 }
168
169 /*
170 * Send HTTP request.
171 */
Eric Andersen29edd002000-12-09 16:55:35 +0000172 fprintf(sfp, "GET http://%s:%d/%s HTTP/1.1\r\n",
173 uri_host, uri_port, uri_path);
174 fprintf(sfp, "Host: %s\r\nUser-Agent: Wget\r\n", uri_host);
Eric Andersen96700832000-09-04 15:15:55 +0000175 if (do_continue)
176 fprintf(sfp, "Range: bytes=%ld-\r\n", beg_range);
Eric Andersen29edd002000-12-09 16:55:35 +0000177 fprintf(sfp,"Connection: close\r\n\r\n");
Eric Andersen96700832000-09-04 15:15:55 +0000178
179 /*
180 * Retrieve HTTP response line and check for "200" status code.
181 */
Eric Andersen29edd002000-12-09 16:55:35 +0000182 if (fgets(buf, sizeof(buf), sfp) == NULL) {
Mark Whitleyf57c9442000-12-07 19:56:48 +0000183 error_msg_and_die("no response from server\n");
Eric Andersen29edd002000-12-09 16:55:35 +0000184 }
Eric Andersen96700832000-09-04 15:15:55 +0000185 for (s = buf ; *s != '\0' && !isspace(*s) ; ++s)
186 ;
187 for ( ; isspace(*s) ; ++s)
188 ;
189 switch (atoi(s)) {
Eric Andersenb520e082000-10-03 00:21:45 +0000190 case 200:
191 if (!do_continue)
192 break;
Mark Whitleyf57c9442000-12-07 19:56:48 +0000193 error_msg_and_die("server does not support ranges\n");
Eric Andersenb520e082000-10-03 00:21:45 +0000194 case 206:
195 if (do_continue)
196 break;
197 /*FALLTHRU*/
198 default:
Mark Whitleyf57c9442000-12-07 19:56:48 +0000199 error_msg_and_die("server returned error: %s", buf);
Eric Andersen96700832000-09-04 15:15:55 +0000200 }
201
202 /*
203 * Retrieve HTTP headers.
204 */
205 while ((s = gethdr(buf, sizeof(buf), sfp, &n)) != NULL) {
206 if (strcmp(buf, "content-length") == 0) {
Eric Andersenb520e082000-10-03 00:21:45 +0000207 filesize = atol(s);
Eric Andersen96700832000-09-04 15:15:55 +0000208 got_clen = 1;
209 continue;
210 }
211 if (strcmp(buf, "transfer-encoding") == 0) {
Mark Whitleyf57c9442000-12-07 19:56:48 +0000212 error_msg_and_die("server wants to do %s transfer encoding\n", s);
Eric Andersen96700832000-09-04 15:15:55 +0000213 continue;
214 }
215 }
216
217 /*
218 * Retrieve HTTP body.
219 */
Eric Andersenb520e082000-10-03 00:21:45 +0000220#ifdef BB_FEATURE_STATUSBAR
221 statbytes=0;
Glenn L McGrath1bca5ed2000-12-09 08:12:06 +0000222 if (quiet_flag==FALSE)
223 progressmeter(-1);
Eric Andersenb520e082000-10-03 00:21:45 +0000224#endif
225 while (filesize > 0 && (n = fread(buf, 1, sizeof(buf), sfp)) > 0) {
226 fwrite(buf, 1, n, output);
227#ifdef BB_FEATURE_STATUSBAR
228 statbytes+=n;
Glenn L McGrath1bca5ed2000-12-09 08:12:06 +0000229 if (quiet_flag==FALSE)
230 progressmeter(1);
Eric Andersenb520e082000-10-03 00:21:45 +0000231#endif
Eric Andersen96700832000-09-04 15:15:55 +0000232 if (got_clen)
Eric Andersenb520e082000-10-03 00:21:45 +0000233 filesize -= n;
Eric Andersen96700832000-09-04 15:15:55 +0000234 }
235 if (n == 0 && ferror(sfp))
Mark Whitleyf57c9442000-12-07 19:56:48 +0000236 perror_msg_and_die("network read error");
Eric Andersen96700832000-09-04 15:15:55 +0000237
238 exit(0);
239}
240
241
242void parse_url(char *url, char **uri_host, int *uri_port, char **uri_path)
243{
244 char *s, *h;
Randolph Chung02553a22000-12-07 03:53:47 +0000245 static char *defaultpath = "/";
Eric Andersen96700832000-09-04 15:15:55 +0000246
247 *uri_port = 80;
248
249 if (strncmp(url, "http://", 7) != 0)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000250 error_msg_and_die("not an http url: %s\n", url);
Eric Andersen96700832000-09-04 15:15:55 +0000251
252 /* pull the host portion to the front of the buffer */
Randolph Chung02553a22000-12-07 03:53:47 +0000253 for (s = url, h = url+7 ; *h != '/' && *h != 0; ++h) {
Eric Andersen96700832000-09-04 15:15:55 +0000254 if (*h == ':') {
255 *uri_port = atoi(h+1);
256 *h = '\0';
257 }
258 *s++ = *h;
259 }
260 *s = '\0';
Randolph Chung02553a22000-12-07 03:53:47 +0000261
262 if (*h == 0) h = defaultpath;
263
Eric Andersen96700832000-09-04 15:15:55 +0000264 *uri_host = url;
265 *uri_path = h;
Eric Andersen29edd002000-12-09 16:55:35 +0000266
267 if (!strcmp( *uri_host, *uri_path))
268 *uri_path = defaultpath;
Eric Andersen96700832000-09-04 15:15:55 +0000269}
270
271
272FILE *open_socket(char *host, int port)
273{
274 struct sockaddr_in sin;
275 struct hostent *hp;
276 int fd;
277 FILE *fp;
278
279 memzero(&sin, sizeof(sin));
280 sin.sin_family = AF_INET;
281 if ((hp = (struct hostent *) gethostbyname(host)) == NULL)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000282 error_msg_and_die("cannot resolve %s\n", host);
Eric Andersen96700832000-09-04 15:15:55 +0000283 memcpy(&sin.sin_addr, hp->h_addr_list[0], hp->h_length);
284 sin.sin_port = htons(port);
285
286 /*
287 * Get the server onto a stdio stream.
288 */
289 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000290 perror_msg_and_die("socket()");
Eric Andersen96700832000-09-04 15:15:55 +0000291 if (connect(fd, (struct sockaddr *) &sin, sizeof(sin)) < 0)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000292 perror_msg_and_die("connect(%s)", host);
Eric Andersen96700832000-09-04 15:15:55 +0000293 if ((fp = fdopen(fd, "r+")) == NULL)
Mark Whitleyf57c9442000-12-07 19:56:48 +0000294 perror_msg_and_die("fdopen()");
Eric Andersen96700832000-09-04 15:15:55 +0000295
296 return fp;
297}
298
299
300char *gethdr(char *buf, size_t bufsiz, FILE *fp, int *istrunc)
301{
302 char *s, *hdrval;
303 int c;
304
305 *istrunc = 0;
306
307 /* retrieve header line */
308 if (fgets(buf, bufsiz, fp) == NULL)
309 return NULL;
310
311 /* see if we are at the end of the headers */
312 for (s = buf ; *s == '\r' ; ++s)
313 ;
314 if (s[0] == '\n')
315 return NULL;
316
317 /* convert the header name to lower case */
318 for (s = buf ; isalnum(*s) || *s == '-' ; ++s)
319 *s = tolower(*s);
320
321 /* verify we are at the end of the header name */
322 if (*s != ':')
Mark Whitleyf57c9442000-12-07 19:56:48 +0000323 error_msg_and_die("bad header line: %s\n", buf);
Eric Andersen96700832000-09-04 15:15:55 +0000324
325 /* locate the start of the header value */
326 for (*s++ = '\0' ; *s == ' ' || *s == '\t' ; ++s)
327 ;
328 hdrval = s;
329
330 /* locate the end of header */
331 while (*s != '\0' && *s != '\r' && *s != '\n')
332 ++s;
333
334 /* end of header found */
335 if (*s != '\0') {
336 *s = '\0';
337 return hdrval;
338 }
339
Eric Andersen5d638842000-09-14 21:46:30 +0000340 /* Rats! The buffer isn't big enough to hold the entire header value. */
Eric Andersen96700832000-09-04 15:15:55 +0000341 while (c = getc(fp), c != EOF && c != '\n')
342 ;
343 *istrunc = 1;
344 return hdrval;
345}
346
Eric Andersenb520e082000-10-03 00:21:45 +0000347#ifdef BB_FEATURE_STATUSBAR
Eric Andersen4e573f42000-11-14 23:29:24 +0000348/* Stuff below is from BSD rcp util.c, as added to openshh.
349 * Original copyright notice is retained at the end of this file.
350 *
351 */
Eric Andersenb520e082000-10-03 00:21:45 +0000352
353
354int
355getttywidth(void)
356{
357 struct winsize winsize;
358
359 if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1)
360 return (winsize.ws_col ? winsize.ws_col : 80);
361 else
362 return (80);
363}
364
365void
366updateprogressmeter(int ignore)
367{
368 int save_errno = errno;
369
370 progressmeter(0);
371 errno = save_errno;
372}
373
374void
375alarmtimer(int wait)
376{
377 struct itimerval itv;
378
379 itv.it_value.tv_sec = wait;
380 itv.it_value.tv_usec = 0;
381 itv.it_interval = itv.it_value;
382 setitimer(ITIMER_REAL, &itv, NULL);
383}
384
385
386void
387progressmeter(int flag)
388{
389 static const char prefixes[] = " KMGTP";
390 static struct timeval lastupdate;
391 static off_t lastsize;
392 struct timeval now, td, wait;
393 off_t cursize, abbrevsize;
394 double elapsed;
395 int ratio, barlength, i, remaining;
396 char buf[256];
397
398 if (flag == -1) {
399 (void) gettimeofday(&start, (struct timezone *) 0);
400 lastupdate = start;
401 lastsize = 0;
402 }
403
404 (void) gettimeofday(&now, (struct timezone *) 0);
405 cursize = statbytes;
406 if (filesize != 0) {
407 ratio = 100.0 * cursize / filesize;
408 ratio = MAX(ratio, 0);
409 ratio = MIN(ratio, 100);
410 } else
411 ratio = 100;
412
413 snprintf(buf, sizeof(buf), "\r%-20.20s %3d%% ", curfile, ratio);
414
415 barlength = getttywidth() - 51;
416 if (barlength > 0) {
417 i = barlength * ratio / 100;
418 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
419 "|%.*s%*s|", i,
420 "*****************************************************************************"
421 "*****************************************************************************",
422 barlength - i, "");
423 }
424 i = 0;
425 abbrevsize = cursize;
426 while (abbrevsize >= 100000 && i < sizeof(prefixes)) {
427 i++;
428 abbrevsize >>= 10;
429 }
430 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), " %5d %c%c ",
431 (int) abbrevsize, prefixes[i], prefixes[i] == ' ' ? ' ' :
432 'B');
433
434 timersub(&now, &lastupdate, &wait);
435 if (cursize > lastsize) {
436 lastupdate = now;
437 lastsize = cursize;
438 if (wait.tv_sec >= STALLTIME) {
439 start.tv_sec += wait.tv_sec;
440 start.tv_usec += wait.tv_usec;
441 }
442 wait.tv_sec = 0;
443 }
444 timersub(&now, &start, &td);
445 elapsed = td.tv_sec + (td.tv_usec / 1000000.0);
446
447 if (statbytes <= 0 || elapsed <= 0.0 || cursize > filesize) {
448 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
449 " --:-- ETA");
450 } else if (wait.tv_sec >= STALLTIME) {
451 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
452 " - stalled -");
453 } else {
454 remaining = (int) (filesize / (statbytes / elapsed) - elapsed);
455 i = remaining / 3600;
456 if (i)
457 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
458 "%2d:", i);
459 else
460 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
461 " ");
462 i = remaining % 3600;
463 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
464 "%02d:%02d ETA", i / 60, i % 60);
465 }
Randolph Chungda7b8292000-12-07 03:55:35 +0000466 write(fileno(stderr), buf, strlen(buf));
Eric Andersenb520e082000-10-03 00:21:45 +0000467
468 if (flag == -1) {
469 struct sigaction sa;
470 sa.sa_handler = updateprogressmeter;
471 sigemptyset(&sa.sa_mask);
472 sa.sa_flags = SA_RESTART;
473 sigaction(SIGALRM, &sa, NULL);
474 alarmtimer(1);
475 } else if (flag == 1) {
476 alarmtimer(0);
477 statbytes = 0;
478 }
479}
480#endif
Eric Andersen4e573f42000-11-14 23:29:24 +0000481
482/* Original copyright notice which applies to the BB_FEATURE_STATUSBAR stuff,
483 * much of which was blatently stolen from openssh. */
484
485/*-
486 * Copyright (c) 1992, 1993
487 * The Regents of the University of California. All rights reserved.
488 *
489 * Redistribution and use in source and binary forms, with or without
490 * modification, are permitted provided that the following conditions
491 * are met:
492 * 1. Redistributions of source code must retain the above copyright
493 * notice, this list of conditions and the following disclaimer.
494 * 2. Redistributions in binary form must reproduce the above copyright
495 * notice, this list of conditions and the following disclaimer in the
496 * documentation and/or other materials provided with the distribution.
497 *
498 * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
499 * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
500 *
501 * 4. Neither the name of the University nor the names of its contributors
502 * may be used to endorse or promote products derived from this software
503 * without specific prior written permission.
504 *
505 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
506 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
507 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
508 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
509 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
510 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
511 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
512 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
513 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
514 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
515 * SUCH DAMAGE.
516 *
Matt Kraai0dab8292000-12-18 03:08:29 +0000517 * $Id: wget.c,v 1.14 2000/12/18 03:08:29 kraai Exp $
Eric Andersen4e573f42000-11-14 23:29:24 +0000518 */
519
520
521
Eric Andersen96700832000-09-04 15:15:55 +0000522/*
523Local Variables:
524c-file-style: "linux"
525c-basic-offset: 4
526tab-width: 4
527End:
528*/
Eric Andersenb520e082000-10-03 00:21:45 +0000529
Eric Andersen4e573f42000-11-14 23:29:24 +0000530
531