Lines Matching refs:subcode

1085 subsys(int syscall, int subcode)
1089 if (subcode != -1) {
1092 if ((unsigned)subcode < NACCESSCODE)
1093 stp = &faccessattable[subcode];
1096 if ((unsigned)subcode < NCHMODCODE)
1097 stp = &fchmodattable[subcode];
1100 if ((unsigned)subcode < NCHOWNCODE)
1101 stp = &fchownattable[subcode];
1104 if ((unsigned)subcode < NMKDIRCODE)
1105 stp = &mkdiratattable[subcode];
1108 if ((unsigned)subcode < NMKMODCODE)
1109 stp = &mknodatattable[subcode];
1112 if ((unsigned)subcode < NRENAMECODE)
1113 stp = &renameattable[subcode];
1116 if ((unsigned)subcode < NLINKATCODE)
1117 stp = &linkattable[subcode];
1120 if ((unsigned)subcode < NUNLINKCODE)
1121 stp = &unlinkattable[subcode];
1124 if ((unsigned)subcode < NSYMLINKCODE)
1125 stp = &symlinkattable[subcode];
1128 if ((unsigned)subcode < NREADLINKCODE)
1129 stp = &readlinkattable[subcode];
1132 if ((unsigned)subcode < NSTATCODE)
1133 stp = &fstatattable[subcode];
1136 if ((unsigned)subcode < NSTAT64CODE)
1137 stp = &fstatat64table[subcode];
1140 if ((unsigned)subcode < NOPENATCODE)
1141 stp = &openattable[subcode];
1144 if ((unsigned)subcode < NOPENAT64CODE)
1145 stp = &openat64table[subcode];
1148 if ((unsigned)subcode < NOPENCODE)
1149 stp = &opentable[subcode];
1152 if ((unsigned)subcode < NOPEN64CODE)
1153 stp = &open64table[subcode];
1156 if ((unsigned)subcode < NMSGCODE)
1157 stp = &msgtable[subcode];
1160 if ((unsigned)subcode < NSEMCODE)
1161 stp = &semtable[subcode];
1164 if ((unsigned)subcode < NSHMCODE)
1165 stp = &shmtable[subcode];
1168 if ((unsigned)subcode < NPIDCODE)
1169 stp = &pidtable[subcode];
1172 if ((unsigned)subcode < NUTSCODE)
1173 stp = &utstable[subcode];
1176 if ((unsigned)subcode < NSFSCODE)
1177 stp = &sfstable[subcode];
1180 if ((unsigned)subcode < NSGPCODE)
1181 stp = &sgptable[subcode];
1184 if ((unsigned)subcode < NCTXCODE)
1185 stp = &ctxtable[subcode];
1188 if ((unsigned)subcode < NHRTCODE)
1189 stp = &hrttable[subcode];
1192 if ((unsigned)subcode < NCORCODE)
1193 stp = &cortable[subcode];
1196 if ((unsigned)subcode < NAIOCODE)
1197 stp = &aiotable[subcode];
1200 if ((unsigned)subcode < NDOORCODE)
1201 stp = &doortable[subcode];
1204 if ((unsigned)subcode < NPSETCODE)
1205 stp = &psettable[subcode];
1208 if ((unsigned)subcode < NLWPCREATECODE)
1209 stp = &lwpcreatetable[subcode];
1212 if ((unsigned)subcode < NTASKSYSCODE)
1213 stp = &tasksystable[subcode];
1216 if ((unsigned)subcode < NEXACCTSYSCODE)
1217 stp = &exacctsystable[subcode];
1220 if ((unsigned)subcode < NPRIVSYSCODE)
1221 stp = &privsystable[subcode];
1224 if ((unsigned)subcode < NLWPPARKCODE)
1225 stp = &lwpparktable[subcode];
1228 if ((unsigned)subcode < NLWPRWLOCKCODE)
1229 stp = &lwprwlocktable[subcode];
1232 if ((unsigned)subcode < NSENDFILESYSCODE)
1233 stp = &sendfilevsystable[subcode];
1236 if ((unsigned)subcode < NLGRPSYSCODE)
1237 stp = &lgrpsystable[subcode];
1240 if ((unsigned)subcode < NRUSAGESYSCODE)
1241 stp = &rusagesystable[subcode];
1244 if ((unsigned)subcode < NFCNTLCODE)
1245 stp = &fcntltable[subcode];
1248 if ((unsigned)subcode < NUCREDSYSCODE)
1249 stp = &ucredsystable[subcode];
1252 if ((unsigned)subcode < NPORTCODE)
1253 stp = &portfstable[subcode];
1256 if ((unsigned)subcode < NZONECODE)
1257 stp = &zonetable[subcode];
1260 if ((unsigned)subcode < NLABELCODE)
1261 stp = &labeltable[subcode];
1264 if ((unsigned)subcode < NRCTLCODE)
1265 stp = &rctltable[subcode];
1268 if ((unsigned)subcode < NFORKCODE)
1269 stp = &forktable[subcode];
1272 if ((unsigned)subcode < NSIDSYSCODE)
1273 stp = &sidsystable[subcode];
1276 if ((unsigned)subcode < NUTIMESYSCODE)
1277 stp = &utimesystable[subcode];
1280 if ((unsigned)subcode < NSOCKCONFIGCODE)
1281 stp = &sockconfigtable[subcode];
1296 sysname(private_t *pri, int syscall, int subcode)
1298 const struct systable *stp = subsys(syscall, subcode);
1344 * Determine the subcode for this syscall, if any.
1352 int subcode = -1;
1360 subcode = Lsp->pr_sysarg[2];
1364 subcode = ((int)Lsp->pr_sysarg[0] == AT_FDCWD &&
1369 subcode = 3;
1373 subcode = 0;
1377 subcode = (Lsp->pr_sysarg[3] == 0)? 1 :
1383 subcode = 3;
1387 subcode = 0;
1391 subcode = (Lsp->pr_sysarg[4] == 0)? 1 :
1399 subcode = ((int)Lsp->pr_sysarg[0] == AT_FDCWD)?
1404 subcode = ((int)Lsp->pr_sysarg[0] == AT_FDCWD &&
1409 subcode = ((int)Lsp->pr_sysarg[0] == AT_FDCWD &&
1415 subcode =
1422 subcode = ((int)Lsp->pr_sysarg[1] == AT_FDCWD)?
1428 subcode = 3;
1432 subcode = 0;
1436 subcode = (Lsp->pr_sysarg[3] == 0)? 1 :
1443 subcode = ((int)Lsp->pr_sysarg[0] == AT_FDCWD)?
1450 subcode = (Lsp->pr_sysarg[1] & O_CREAT)? 1 : 0;
1453 subcode = arg0 & ~AIO_POLL_BIT;
1457 subcode = Lsp->pr_sysarg[5];
1460 subcode = /* 0 for parent, 1 for child */
1465 subcode = arg0;
1468 subcode += 3;
1495 subcode = arg0;
1500 default: subcode = 0; break;
1503 case F_GETXFL: subcode = 1; break;
1504 case F_SETFL: subcode = 2; break;
1509 subcode = arg0 & PORT_CODE_MASK;
1514 return (subcode);