blob: 40a907b072a4addbeeeca6c977f4bb8f32f5dc3b [file] [log] [blame]
Erik Andersene49d5ec2000-02-08 19:58:47 +00001/* vi: set sw=4 ts=4: */
Erik Andersen1c5b2581999-12-16 20:59:36 +00002/*
3 * Mini fbset implementation for busybox
4 *
5 * Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 * This is a from-scratch implementation of fbset; but the de facto fbset
22 * implementation was a good reference. fbset (original) is released under
23 * the GPL, and is (c) 1995-1999 by:
24 * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
25 */
26
Eric Andersen3570a342000-09-25 21:45:58 +000027#include "busybox.h"
Erik Andersen1c5b2581999-12-16 20:59:36 +000028#include <stdio.h>
29#include <stdlib.h>
30#include <unistd.h>
31#include <fcntl.h>
32#include <errno.h>
33#include <ctype.h>
34#include <sys/ioctl.h>
Erik Andersen1c5b2581999-12-16 20:59:36 +000035
Erik Andersen1c5b2581999-12-16 20:59:36 +000036#define DEFAULTFBDEV "/dev/fb0"
37#define DEFAULTFBMODE "/etc/fb.modes"
38
39#define OPT_CHANGE 1
40#define OPT_INFO (1 << 1)
41#define OPT_READMODE (1 << 2)
42
43#define CMD_HELP 0
Erik Andersene49d5ec2000-02-08 19:58:47 +000044#define CMD_FB 1
Erik Andersen1c5b2581999-12-16 20:59:36 +000045#define CMD_DB 2
46#define CMD_GEOMETRY 3
47#define CMD_TIMING 4
48#define CMD_ACCEL 5
49#define CMD_HSYNC 6
50#define CMD_VSYNC 7
51#define CMD_LACED 8
52#define CMD_DOUBLE 9
53/* #define CMD_XCOMPAT 10 */
54#define CMD_ALL 11
55#define CMD_INFO 12
Eric Andersenc8c10c52000-07-06 17:23:23 +000056#define CMD_CHANGE 13
Erik Andersen1c5b2581999-12-16 20:59:36 +000057
Erik Andersen298854f2000-03-23 01:09:18 +000058#ifdef BB_FEATURE_FBSET_FANCY
Eric Andersenc8c10c52000-07-06 17:23:23 +000059#define CMD_XRES 100
60#define CMD_YRES 101
61#define CMD_VXRES 102
62#define CMD_VYRES 103
63#define CMD_DEPTH 104
64#define CMD_MATCH 105
65#define CMD_PIXCLOCK 106
66#define CMD_LEFT 107
67#define CMD_RIGHT 108
68#define CMD_UPPER 109
69#define CMD_LOWER 110
70#define CMD_HSLEN 111
71#define CMD_VSLEN 112
72#define CMD_CSYNC 113
73#define CMD_GSYNC 114
74#define CMD_EXTSYNC 115
75#define CMD_BCAST 116
76#define CMD_RGBA 117
77#define CMD_STEP 118
78#define CMD_MOVE 119
Erik Andersen1c5b2581999-12-16 20:59:36 +000079#endif
80
81static unsigned int g_options = 0;
82
Eric Andersenc873d612000-09-21 04:09:58 +000083/* Stuff stolen from the kernel's fb.h */
84#define FBIOGET_VSCREENINFO 0x4600
85#define FBIOPUT_VSCREENINFO 0x4601
86#define __u32 unsigned int
87struct fb_bitfield {
88 __u32 offset; /* beginning of bitfield */
89 __u32 length; /* length of bitfield */
90 __u32 msb_right; /* != 0 : Most significant bit is */
91 /* right */
92};
93struct fb_var_screeninfo {
94 __u32 xres; /* visible resolution */
95 __u32 yres;
96 __u32 xres_virtual; /* virtual resolution */
97 __u32 yres_virtual;
98 __u32 xoffset; /* offset from virtual to visible */
99 __u32 yoffset; /* resolution */
100
101 __u32 bits_per_pixel; /* guess what */
102 __u32 grayscale; /* != 0 Graylevels instead of colors */
103
104 struct fb_bitfield red; /* bitfield in fb mem if true color, */
105 struct fb_bitfield green; /* else only length is significant */
106 struct fb_bitfield blue;
107 struct fb_bitfield transp; /* transparency */
108
109 __u32 nonstd; /* != 0 Non standard pixel format */
110
111 __u32 activate; /* see FB_ACTIVATE_* */
112
113 __u32 height; /* height of picture in mm */
114 __u32 width; /* width of picture in mm */
115
116 __u32 accel_flags; /* acceleration flags (hints) */
117
118 /* Timing: All values in pixclocks, except pixclock (of course) */
119 __u32 pixclock; /* pixel clock in ps (pico seconds) */
120 __u32 left_margin; /* time from sync to picture */
121 __u32 right_margin; /* time from picture to sync */
122 __u32 upper_margin; /* time from sync to picture */
123 __u32 lower_margin;
124 __u32 hsync_len; /* length of horizontal sync */
125 __u32 vsync_len; /* length of vertical sync */
126 __u32 sync; /* see FB_SYNC_* */
127 __u32 vmode; /* see FB_VMODE_* */
128 __u32 reserved[6]; /* Reserved for future compatibility */
129};
130
131
Erik Andersen1c5b2581999-12-16 20:59:36 +0000132struct cmdoptions_t {
Erik Andersene49d5ec2000-02-08 19:58:47 +0000133 char *name;
134 unsigned char param_count;
135 unsigned char code;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000136} g_cmdoptions[] = {
Erik Andersene49d5ec2000-02-08 19:58:47 +0000137 {
138 "-h", 0, CMD_HELP}, {
139 "-fb", 1, CMD_FB}, {
140 "-db", 1, CMD_DB}, {
141 "-a", 0, CMD_ALL}, {
142 "-i", 0, CMD_INFO}, {
143 "-g", 5, CMD_GEOMETRY}, {
144 "-t", 7, CMD_TIMING}, {
145 "-accel", 1, CMD_ACCEL}, {
146 "-hsync", 1, CMD_HSYNC}, {
147 "-vsync", 1, CMD_VSYNC}, {
148 "-laced", 1, CMD_LACED}, {
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000149 "-double", 1, CMD_DOUBLE}, {
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000150 "-help", 0, CMD_HELP}, {
Eric Andersenc8c10c52000-07-06 17:23:23 +0000151 "-n", 0, CMD_CHANGE}, {
Erik Andersen298854f2000-03-23 01:09:18 +0000152#ifdef BB_FEATURE_FBSET_FANCY
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000153 "-help", 0, CMD_HELP}, {
Erik Andersene49d5ec2000-02-08 19:58:47 +0000154 "-all", 0, CMD_ALL}, {
155 "-xres", 1, CMD_XRES}, {
156 "-yres", 1, CMD_YRES}, {
157 "-vxres", 1, CMD_VXRES}, {
158 "-vyres", 1, CMD_VYRES}, {
159 "-depth", 1, CMD_DEPTH}, {
160 "-match", 0, CMD_MATCH}, {
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000161 "-geometry", 5, CMD_GEOMETRY}, {
Erik Andersene49d5ec2000-02-08 19:58:47 +0000162 "-pixclock", 1, CMD_PIXCLOCK}, {
163 "-left", 1, CMD_LEFT}, {
164 "-right", 1, CMD_RIGHT}, {
165 "-upper", 1, CMD_UPPER}, {
166 "-lower", 1, CMD_LOWER}, {
167 "-hslen", 1, CMD_HSLEN}, {
168 "-vslen", 1, CMD_VSLEN}, {
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000169 "-timings", 7, CMD_TIMING}, {
Erik Andersene49d5ec2000-02-08 19:58:47 +0000170 "-csync", 1, CMD_CSYNC}, {
171 "-gsync", 1, CMD_GSYNC}, {
172 "-extsync", 1, CMD_EXTSYNC}, {
173 "-bcast", 1, CMD_BCAST}, {
174 "-rgba", 1, CMD_RGBA}, {
175 "-step", 1, CMD_STEP}, {
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000176 "-move", 1, CMD_MOVE}, {
Erik Andersen1c5b2581999-12-16 20:59:36 +0000177#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000178 0, 0, 0}
Erik Andersen1c5b2581999-12-16 20:59:36 +0000179};
180
Matt Kraai269e07c2000-10-28 16:56:32 +0000181#ifdef BB_FEATURE_FBSET_READMODE
182/* taken from linux/fb.h */
183#define FB_VMODE_INTERLACED 1 /* interlaced */
184#define FB_VMODE_DOUBLE 2 /* double scan */
185#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */
186#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */
187#define FB_SYNC_EXT 4 /* external sync */
188#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */
189#endif
Erik Andersen1c5b2581999-12-16 20:59:36 +0000190static int readmode(struct fb_var_screeninfo *base, const char *fn,
Erik Andersene49d5ec2000-02-08 19:58:47 +0000191 const char *mode)
Erik Andersen1c5b2581999-12-16 20:59:36 +0000192{
Eric Andersen03f4c272000-07-06 23:10:29 +0000193#ifdef BB_FEATURE_FBSET_READMODE
Erik Andersene49d5ec2000-02-08 19:58:47 +0000194 FILE *f;
195 char buf[256];
196 char *p = buf;
197
198 if ((f = fopen(fn, "r")) == NULL)
Matt Kraaia9819b22000-12-22 01:48:07 +0000199 perror_msg_and_die("readmode(fopen)");
Erik Andersene49d5ec2000-02-08 19:58:47 +0000200 while (!feof(f)) {
201 fgets(buf, sizeof(buf), f);
202 if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) {
203 p += 5;
204 if ((p = strstr(buf, mode))) {
205 p += strlen(mode);
206 if (!isspace(*p) && (*p != 0) && (*p != '"')
207 && (*p != '\r') && (*p != '\n'))
208 continue; /* almost, but not quite */
209 while (!feof(f)) {
210 fgets(buf, sizeof(buf), f);
Eric Andersen6f96e672000-07-12 23:01:04 +0000211
212 if ((p = strstr(buf, "geometry "))) {
213 p += 9;
214
215 sscanf(p, "%d %d %d %d %d",
216 &(base->xres), &(base->yres),
217 &(base->xres_virtual), &(base->yres_virtual),
218 &(base->bits_per_pixel));
219 } else if ((p = strstr(buf, "timings "))) {
220 p += 8;
221
222 sscanf(p, "%d %d %d %d %d %d %d",
223 &(base->pixclock),
224 &(base->left_margin), &(base->right_margin),
225 &(base->upper_margin), &(base->lower_margin),
226 &(base->hsync_len), &(base->vsync_len));
227 } else if ((p = strstr(buf, "laced "))) {
228 p += 6;
229
230 if (strstr(buf, "false")) {
231 base->vmode &= ~FB_VMODE_INTERLACED;
232 } else {
233 base->vmode |= FB_VMODE_INTERLACED;
234 }
235 } else if ((p = strstr(buf, "double "))) {
236 p += 7;
237
238 if (strstr(buf, "false")) {
239 base->vmode &= ~FB_VMODE_DOUBLE;
240 } else {
241 base->vmode |= FB_VMODE_DOUBLE;
242 }
243 } else if ((p = strstr(buf, "vsync "))) {
244 p += 6;
245
246 if (strstr(buf, "low")) {
247 base->sync &= ~FB_SYNC_VERT_HIGH_ACT;
248 } else {
249 base->sync |= FB_SYNC_VERT_HIGH_ACT;
250 }
251 } else if ((p = strstr(buf, "hsync "))) {
252 p += 6;
253
254 if (strstr(buf, "low")) {
255 base->sync &= ~FB_SYNC_HOR_HIGH_ACT;
256 } else {
257 base->sync |= FB_SYNC_HOR_HIGH_ACT;
258 }
259 } else if ((p = strstr(buf, "csync "))) {
260 p += 6;
261
262 if (strstr(buf, "low")) {
263 base->sync &= ~FB_SYNC_COMP_HIGH_ACT;
264 } else {
265 base->sync |= FB_SYNC_COMP_HIGH_ACT;
266 }
267 } else if ((p = strstr(buf, "extsync "))) {
268 p += 8;
269
270 if (strstr(buf, "false")) {
271 base->sync &= ~FB_SYNC_EXT;
272 } else {
273 base->sync |= FB_SYNC_EXT;
274 }
275 }
276
277 if (strstr(buf, "endmode"))
Erik Andersene49d5ec2000-02-08 19:58:47 +0000278 return 1;
279 }
280 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000281 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000282 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000283#else
Mark Whitleyf57c9442000-12-07 19:56:48 +0000284 error_msg( "mode reading not compiled in\n");
Erik Andersen1c5b2581999-12-16 20:59:36 +0000285#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000286 return 0;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000287}
288
Erik Andersene49d5ec2000-02-08 19:58:47 +0000289static void setmode(struct fb_var_screeninfo *base,
290 struct fb_var_screeninfo *set)
Erik Andersen1c5b2581999-12-16 20:59:36 +0000291{
Erik Andersene49d5ec2000-02-08 19:58:47 +0000292 if ((int) set->xres > 0)
293 base->xres = set->xres;
294 if ((int) set->yres > 0)
295 base->yres = set->yres;
296 if ((int) set->xres_virtual > 0)
297 base->xres_virtual = set->xres_virtual;
298 if ((int) set->yres_virtual > 0)
299 base->yres_virtual = set->yres_virtual;
300 if ((int) set->bits_per_pixel > 0)
301 base->bits_per_pixel = set->bits_per_pixel;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000302}
303
304static void showmode(struct fb_var_screeninfo *v)
305{
Erik Andersene49d5ec2000-02-08 19:58:47 +0000306 double drate = 0, hrate = 0, vrate = 0;
307
308 if (v->pixclock) {
309 drate = 1e12 / v->pixclock;
310 hrate =
311 drate / (v->left_margin + v->xres + v->right_margin +
312 v->hsync_len);
313 vrate =
314 hrate / (v->upper_margin + v->yres + v->lower_margin +
315 v->vsync_len);
316 }
317 printf("\nmode \"%ux%u-%u\"\n", v->xres, v->yres, (int) (vrate + 0.5));
Erik Andersen298854f2000-03-23 01:09:18 +0000318#ifdef BB_FEATURE_FBSET_FANCY
Erik Andersene49d5ec2000-02-08 19:58:47 +0000319 printf("\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n", drate / 1e6,
320 hrate / 1e3, vrate);
Erik Andersen1c5b2581999-12-16 20:59:36 +0000321#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000322 printf("\tgeometry %u %u %u %u %u\n", v->xres, v->yres,
323 v->xres_virtual, v->yres_virtual, v->bits_per_pixel);
Erik Andersene49d5ec2000-02-08 19:58:47 +0000324 printf("\ttimings %u %u %u %u %u %u %u\n", v->pixclock, v->left_margin,
325 v->right_margin, v->upper_margin, v->lower_margin, v->hsync_len,
326 v->vsync_len);
327 printf("\taccel %s\n", (v->accel_flags > 0 ? "true" : "false"));
Erik Andersene49d5ec2000-02-08 19:58:47 +0000328 printf("\trgba %u/%u,%u/%u,%u/%u,%u/%u\n", v->red.length,
329 v->red.offset, v->green.length, v->green.offset, v->blue.length,
330 v->blue.offset, v->transp.length, v->transp.offset);
Erik Andersen9cf3bfa2000-04-13 18:49:43 +0000331 printf("endmode\n\n");
Erik Andersen1c5b2581999-12-16 20:59:36 +0000332}
333
334static void fbset_usage(void)
335{
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000336#ifndef BB_FEATURE_TRIVIAL_HELP
Erik Andersene49d5ec2000-02-08 19:58:47 +0000337 int i;
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000338#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000339
Erik Andersen1c5b2581999-12-16 20:59:36 +0000340#ifndef STANDALONE
Erik Andersene49d5ec2000-02-08 19:58:47 +0000341 fprintf(stderr, "BusyBox v%s (%s) multi-call binary -- GPL2\n\n",
342 BB_VER, BB_BT);
Erik Andersen1c5b2581999-12-16 20:59:36 +0000343#endif
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000344 fprintf(stderr, "Usage: fbset [options] [mode]\n");
345#ifndef BB_FEATURE_TRIVIAL_HELP
346 fprintf(stderr, "\nShows and modifies frame buffer device settings\n\n");
Erik Andersen61677fe2000-04-13 01:18:56 +0000347 fprintf(stderr, "The following options are recognized:\n");
Erik Andersene49d5ec2000-02-08 19:58:47 +0000348 for (i = 0; g_cmdoptions[i].name; i++)
Erik Andersen61677fe2000-04-13 01:18:56 +0000349 fprintf(stderr, "\t%s\n", g_cmdoptions[i].name);
Erik Andersen7ab9c7e2000-05-12 19:41:47 +0000350#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000351 exit(-1);
Erik Andersen1c5b2581999-12-16 20:59:36 +0000352}
353
354#ifdef STANDALONE
355int main(int argc, char **argv)
Erik Andersene49d5ec2000-02-08 19:58:47 +0000356#else
Erik Andersen1c5b2581999-12-16 20:59:36 +0000357extern int fbset_main(int argc, char **argv)
358#endif
359{
Erik Andersene49d5ec2000-02-08 19:58:47 +0000360 struct fb_var_screeninfo var, varset;
361 int fh, i;
362 char *fbdev = DEFAULTFBDEV;
363 char *modefile = DEFAULTFBMODE;
364 char *thisarg, *mode = NULL;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000365
Erik Andersene49d5ec2000-02-08 19:58:47 +0000366 memset(&varset, 0xFF, sizeof(varset));
367
368 /* parse cmd args.... why do they have to make things so difficult? */
369 argv++;
370 argc--;
371 for (; argc > 0 && (thisarg = *argv); argc--, argv++) {
372 for (i = 0; g_cmdoptions[i].name; i++) {
373 if (!strcmp(thisarg, g_cmdoptions[i].name)) {
374 if (argc - 1 < g_cmdoptions[i].param_count)
375 fbset_usage();
376 switch (g_cmdoptions[i].code) {
377 case CMD_HELP:
378 fbset_usage();
379 case CMD_FB:
380 fbdev = argv[1];
381 break;
382 case CMD_DB:
383 modefile = argv[1];
384 break;
385 case CMD_GEOMETRY:
386 varset.xres = strtoul(argv[1], 0, 0);
387 varset.yres = strtoul(argv[2], 0, 0);
388 varset.xres_virtual = strtoul(argv[3], 0, 0);
389 varset.yres_virtual = strtoul(argv[4], 0, 0);
390 varset.bits_per_pixel = strtoul(argv[5], 0, 0);
391 break;
392 case CMD_TIMING:
393 varset.pixclock = strtoul(argv[1], 0, 0);
394 varset.left_margin = strtoul(argv[2], 0, 0);
395 varset.right_margin = strtoul(argv[3], 0, 0);
396 varset.upper_margin = strtoul(argv[4], 0, 0);
397 varset.lower_margin = strtoul(argv[5], 0, 0);
398 varset.hsync_len = strtoul(argv[6], 0, 0);
399 varset.vsync_len = strtoul(argv[7], 0, 0);
400 break;
Eric Andersenc8c10c52000-07-06 17:23:23 +0000401 case CMD_CHANGE:
402 g_options |= OPT_CHANGE;
403 break;
Erik Andersen298854f2000-03-23 01:09:18 +0000404#ifdef BB_FEATURE_FBSET_FANCY
Erik Andersene49d5ec2000-02-08 19:58:47 +0000405 case CMD_XRES:
406 varset.xres = strtoul(argv[1], 0, 0);
407 break;
408 case CMD_YRES:
409 varset.yres = strtoul(argv[1], 0, 0);
410 break;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000411#endif
Erik Andersene49d5ec2000-02-08 19:58:47 +0000412 }
413 argc -= g_cmdoptions[i].param_count;
414 argv += g_cmdoptions[i].param_count;
415 break;
416 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000417 }
Erik Andersene49d5ec2000-02-08 19:58:47 +0000418 if (!g_cmdoptions[i].name) {
419 if (argc == 1) {
420 mode = *argv;
421 g_options |= OPT_READMODE;
422 } else {
423 fbset_usage();
424 }
425 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000426 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000427
Erik Andersene49d5ec2000-02-08 19:58:47 +0000428 if ((fh = open(fbdev, O_RDONLY)) < 0)
Matt Kraaia9819b22000-12-22 01:48:07 +0000429 perror_msg_and_die("fbset(open)");
Erik Andersene49d5ec2000-02-08 19:58:47 +0000430 if (ioctl(fh, FBIOGET_VSCREENINFO, &var))
Matt Kraaia9819b22000-12-22 01:48:07 +0000431 perror_msg_and_die("fbset(ioctl)");
Erik Andersene49d5ec2000-02-08 19:58:47 +0000432 if (g_options & OPT_READMODE) {
433 if (!readmode(&var, modefile, mode)) {
Mark Whitleyf57c9442000-12-07 19:56:48 +0000434 error_msg("Unknown video mode `%s'\n", mode);
Matt Kraai3e856ce2000-12-01 02:55:13 +0000435 return EXIT_FAILURE;
Erik Andersene49d5ec2000-02-08 19:58:47 +0000436 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000437 }
Erik Andersen1c5b2581999-12-16 20:59:36 +0000438
Erik Andersene49d5ec2000-02-08 19:58:47 +0000439 setmode(&var, &varset);
440 if (g_options & OPT_CHANGE)
441 if (ioctl(fh, FBIOPUT_VSCREENINFO, &var))
Matt Kraaia9819b22000-12-22 01:48:07 +0000442 perror_msg_and_die("fbset(ioctl)");
Erik Andersene49d5ec2000-02-08 19:58:47 +0000443 showmode(&var);
Erik Andersen298854f2000-03-23 01:09:18 +0000444 /* Don't close the file, as exiting will take care of that */
445 /* close(fh); */
Erik Andersene49d5ec2000-02-08 19:58:47 +0000446
Matt Kraai3e856ce2000-12-01 02:55:13 +0000447 return EXIT_SUCCESS;
Erik Andersen1c5b2581999-12-16 20:59:36 +0000448}