projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history]
/
sys
/
isofs
/
isofs_util.c
diff --git
a/sys/isofs/isofs_util.c
b/sys/isofs/isofs_util.c
index
20f747b
..
1b2199a
100644
(file)
--- a/
sys/isofs/isofs_util.c
+++ b/
sys/isofs/isofs_util.c
@@
-1,3
+1,10
@@
+/*
+ * $Id: isofs_util.c,v 1.3 1993/11/25 01:32:28 wollman Exp $
+ */
+
+#include "param.h"
+#include "systm.h"
+
int
isonum_711 (p)
char *p;
int
isonum_711 (p)
char *p;
@@
-7,19
+14,19
@@
char *p;
int
isonum_712 (p)
int
isonum_712 (p)
-char *p;
+
char *p;
{
int val;
val = *p;
if (val & 0x80)
{
int val;
val = *p;
if (val & 0x80)
- val |=
0xffffff00
;
+ val |=
~0xff
;
return (val);
}
int
isonum_721 (p)
return (val);
}
int
isonum_721 (p)
-char *p;
+
char *p;
{
return ((p[0] & 0xff) | ((p[1] & 0xff) << 8));
}
{
return ((p[0] & 0xff) | ((p[1] & 0xff) << 8));
}
@@
-46,7
+53,7
@@
char *p;
int
isonum_731 (p)
int
isonum_731 (p)
-char *p;
+
unsigned
char *p;
{
return ((p[0] & 0xff)
| ((p[1] & 0xff) << 8)
{
return ((p[0] & 0xff)
| ((p[1] & 0xff) << 8)
@@
-56,7
+63,7
@@
char *p;
int
isonum_732 (p)
int
isonum_732 (p)
-char *p;
+
unsigned
char *p;
{
return (((p[0] & 0xff) << 24)
| ((p[1] & 0xff) << 16)
{
return (((p[0] & 0xff) << 24)
| ((p[1] & 0xff) << 16)
@@
-66,7
+73,7
@@
char *p;
int
isonum_733 (p)
int
isonum_733 (p)
-char *p;
+
unsigned
char *p;
{
int i;
{
int i;
@@
-84,6
+91,7
@@
char *p;
/*
* translate and compare a filename
*/
/*
* translate and compare a filename
*/
+int
isofncmp(char *fn, int fnlen, char *isofn, int isolen) {
int fnidx;
isofncmp(char *fn, int fnlen, char *isofn, int isolen) {
int fnidx;