Lines Matching defs:off
932 int off;
939 off = get4l(attr,16);
940 if (off) {
941 cnt = get2l(attr,off+4);
944 if (attr[off + x + 1] & 3)
946 x += get2l(attr,off + x + 2);
957 static void showsid(const char *attr, int off, const char *prefix, int level)
972 cnt = attr[off+1] & 255;
973 auth = get6h(attr,off+2);
976 if ((attr[off] == 1) /* revision */
979 first = get4l(attr,off+8);
1056 second = get4l(attr,off+12);
1080 second = get4l(attr,off+12);
1081 last = get4l(attr,off+4+4*cnt);
1113 printf("%*c%shex S-%x-",-level,marker,prefix,attr[off] & 255);
1116 printf("-%lx",get4l(attr,off+8+4*i));
1118 printf("%*c%sdec S-%u-",-level,marker,prefix,attr[off] & 255);
1121 printf("-%lu",get4l(attr,off+8+4*i));
1127 int off;
1137 off = get4l(attr,4);
1138 showsid(attr,off,"O:",level+4);
1143 int off;
1153 off = get4l(attr,8);
1154 showsid(attr,off,"G:",level+4);
1171 int off;
1177 off = get4l(attr,4);
1178 sid = &attr[off];
1183 off = get4l(attr,8);
1184 sid = &attr[off];
1190 off = get4l(attr,4);
1194 (const SID*)&attr[off]))
1279 static void showace(const char *attr, int off, int isdir, int level)
1289 printf("%*ctype %d\n",-level,marker,attr[off]);
1290 switch (attr[off]) {
1304 flags = attr[off+1] & 255;
1321 printf("%*cSize 0x%x\n",-level,marker,get2l(attr,off+2));
1323 rights = get4l(attr,off+4);
1387 printf("%*cSID at 0x%x\n",-level,marker,off+8);
1388 showsid(attr,off+8,"",level+4);
1390 if (attr[off] == 0)
1392 if (attr[off] == 1)
1410 sz = attr[off+9]*4 + 8;
1411 if (!memcmp(&attr[off+8],&attr[get4l(attr,4)],sz))
1413 if (!memcmp(&attr[off+8],&attr[get4l(attr,8)],sz))
1420 static void showacl(const char *attr, int off, int isdir, int level)
1432 size = get2l(attr,off+2);
1433 printf("%*crevision %d\n",-level,marker,attr[off]);
1435 cnt = get2l(attr,off+4);
1439 printf("%*cACE %d at 0x%x\n",-level,marker,i + 1,off+x);
1440 showace(attr,off + x,isdir,level+4);
1441 x += get2l(attr,off + x + 2);
1447 int off;
1454 off = get4l(attr,16);
1455 if (off) {
1459 showacl(attr,off,isdir,level+4);
1469 int off;
1476 off = get4l(attr,12);
1477 if (off) {
1481 showacl(attr,off,isdir,level+4);
2083 unsigned int off;
2091 off = 0;
2109 if (isdump) off = getmsbhex(&line[first]);
2112 acceptable = ((!isdump || !off)
2154 if (isdump && !off)
2155 pos = off;
2158 if (isdump && (off == pos)) {
2287 unsigned int off;
2298 off = 0;
2323 if (isdump) off = getmsbhex(&line[first]);
2326 if ((!isdump || !off) && pos && ntfs_valid_descr((char*)attr,pos)) {
2345 if (isdump && !off)
2346 pos = off;
2349 if (isdump && (off == pos)) {