summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/cd9660_util.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
committerdyson <dyson@FreeBSD.org>1997-02-10 02:22:35 +0000
commit10f666af84d48e89e4e2960415c9b616fce4077f (patch)
tree88a944de263165091f0a18abeedbaaccec532407 /sys/isofs/cd9660/cd9660_util.c
parent0960d7e91af3428ffba89b42228d82d8afaa0389 (diff)
downloadFreeBSD-src-10f666af84d48e89e4e2960415c9b616fce4077f.zip
FreeBSD-src-10f666af84d48e89e4e2960415c9b616fce4077f.tar.gz
This is the kernel Lite/2 commit. There are some requisite userland
changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
Diffstat (limited to 'sys/isofs/cd9660/cd9660_util.c')
-rw-r--r--sys/isofs/cd9660/cd9660_util.c107
1 files changed, 10 insertions, 97 deletions
diff --git a/sys/isofs/cd9660/cd9660_util.c b/sys/isofs/cd9660/cd9660_util.c
index 786d4fd..151d1c3 100644
--- a/sys/isofs/cd9660/cd9660_util.c
+++ b/sys/isofs/cd9660/cd9660_util.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)cd9660_util.c 8.1 (Berkeley) 1/21/94
+ * @(#)cd9660_util.c 8.3 (Berkeley) 12/5/94
* $FreeBSD$
*/
@@ -58,104 +58,14 @@
#include <isofs/cd9660/iso.h>
-#ifdef __notanymore__
-int
-isonum_711 (p)
-unsigned char *p;
-{
- return (*p);
-}
-
-int
-isonum_712 (p)
-signed char *p;
-{
- return (*p);
-}
-
-int
-isonum_721 (p)
-unsigned char *p;
-{
- /* little endian short */
-#if BYTE_ORDER != LITTLE_ENDIAN
- printf ("isonum_721 called on non little-endian machine!\n");
-#endif
-
- return *(short *)p;
-}
-
-int
-isonum_722 (p)
-unsigned char *p;
-{
- /* big endian short */
-#if BYTE_ORDER != BIG_ENDIAN
- printf ("isonum_722 called on non big-endian machine!\n");
-#endif
-
- return *(short *)p;
-}
-
-int
-isonum_723 (p)
-unsigned char *p;
-{
-#if BYTE_ORDER == BIG_ENDIAN
- return isonum_722 (p + 2);
-#elif BYTE_ORDER == LITTLE_ENDIAN
- return isonum_721 (p);
-#else
- printf ("isonum_723 unsupported byte order!\n");
- return 0;
-#endif
-}
-
-int
-isonum_731 (p)
-unsigned char *p;
-{
- /* little endian long */
-#if BYTE_ORDER != LITTLE_ENDIAN
- printf ("isonum_731 called on non little-endian machine!\n");
-#endif
-
- return *(long *)p;
-}
-
-int
-isonum_732 (p)
-unsigned char *p;
-{
- /* big endian long */
-#if BYTE_ORDER != BIG_ENDIAN
- printf ("isonum_732 called on non big-endian machine!\n");
-#endif
-
- return *(long *)p;
-}
-
-int
-isonum_733 (p)
-unsigned char *p;
-{
-#if BYTE_ORDER == BIG_ENDIAN
- return isonum_732 (p + 4);
-#elif BYTE_ORDER == LITTLE_ENDIAN
- return isonum_731 (p);
-#else
- printf ("isonum_733 unsupported byte order!\n");
- return 0;
-#endif
-}
-#endif /* __notanymore__ */
-
/*
* translate and compare a filename
* Note: Version number plus ';' may be omitted.
*/
int
-isofncmp(unsigned char *fn,int fnlen,unsigned char *isofn,int isolen)
+isofncmp(fn, fnlen, isofn, isolen)
+ u_char *fn, *isofn;
+ int fnlen, isolen;
{
int i, j;
unsigned char c;
@@ -211,9 +121,12 @@ isofncmp(unsigned char *fn,int fnlen,unsigned char *isofn,int isolen)
* translate a filename
*/
void
-isofntrans(unsigned char *infn,int infnlen,
- unsigned char *outfn,unsigned short *outfnlen,
- int original,int assoc)
+isofntrans(infn, infnlen, outfn, outfnlen, original, assoc)
+ u_char *infn, *outfn;
+ int infnlen;
+ u_short *outfnlen;
+ int original;
+ int assoc;
{
int fnidx = 0;
OpenPOWER on IntegriCloud