cpr_list.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* $MirOS: contrib/hosted/fwcf/cpr_list.c,v 1.4 2006/09/24 03:21:29 tg Exp $ */
  2. /*-
  3. * Copyright (c) 2006
  4. * Thorsten Glaser <tg@mirbsd.de>
  5. *
  6. * Licensee is hereby permitted to deal in this work without restric-
  7. * tion, including unlimited rights to use, publicly perform, modify,
  8. * merge, distribute, sell, give away or sublicence, provided all co-
  9. * pyright notices above, these terms and the disclaimer are retained
  10. * in all redistributions or reproduced in accompanying documentation
  11. * or other materials provided with binary redistributions.
  12. *
  13. * Licensor offers the work "AS IS" and WITHOUT WARRANTY of any kind,
  14. * express, or implied, to the maximum extent permitted by applicable
  15. * law, without malicious intent or gross negligence; in no event may
  16. * licensor, an author or contributor be held liable for any indirect
  17. * or other damage, or direct damage except proven a consequence of a
  18. * direct error of said person and intended use of this work, loss or
  19. * other issues arising in any way out of its use, even if advised of
  20. * the possibility of such damage or existence of a defect.
  21. */
  22. #include <sys/param.h>
  23. #include <stdio.h>
  24. #include "defs.h"
  25. #include "compress.h"
  26. __RCSID("$MirOS: contrib/hosted/fwcf/cpr_list.c,v 1.4 2006/09/24 03:21:29 tg Exp $");
  27. int
  28. compress_list(void)
  29. {
  30. fwcf_compressor *cl;
  31. int i;
  32. if ((cl = compress_enumerate()) == NULL)
  33. return (1);
  34. for (i = 0; i < 256; ++i)
  35. if (cl[i].name != NULL)
  36. printf("%02Xh = %s%s\n", cl[i].code,
  37. (i < 0xE0 ? "" : "PRIVATE "), cl[i].name);
  38. return (0);
  39. }