Lines Matching defs:cp
995 char *cp;
1000 for (cp = iobuf, i = 0; i < entries - 1; i++) {
1002 memmove(cp, &protodir[i], protodir[i].d_reclen);
1003 cp += protodir[i].d_reclen;
1007 memmove(cp, &protodir[i], DIRSIZ(0, &protodir[i]));
1109 isblock(struct fs *fs, unsigned char *cp, int h)
1115 return (cp[h] == 0xff);
1118 return ((cp[h >> 1] & mask) == mask);
1121 return ((cp[h >> 2] & mask) == mask);
1124 return ((cp[h >> 3] & mask) == mask);
1135 clrblock(struct fs *fs, unsigned char *cp, int h)
1139 cp[h] = 0;
1142 cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
1145 cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
1148 cp[h >> 3] &= ~(0x01 << (h & 0x7));
1160 setblock(struct fs *fs, unsigned char *cp, int h)
1164 cp[h] = 0xff;
1167 cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
1170 cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
1173 cp[h >> 3] |= (0x01 << (h & 0x7));
1190 char *cp;
1196 if (columns == 0 && (cp = getenv("COLUMNS")))
1197 columns = atoi(cp);