systable.c (532877c46d04a2d0b254f9b5797720078adcea07) systable.c (48011479cce51f5534141868012dcb9828a0fd63)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 705 unchanged lines hidden (view full) ---

714{"openat", 5, DEC, NOV, HID, ATC, STG, OPN, OCT}, /* 0 */
715{"openat64", 5, DEC, NOV, HID, ATC, STG, OPN, OCT}, /* 1 */
716{"fstatat64", 5, DEC, NOV, HID, ATC, STG, HEX, HEX}, /* 2 */
717{"fstatat", 5, DEC, NOV, HID, ATC, STG, HEX, HEX}, /* 3 */
718{"fchownat", 6, DEC, NOV, HID, ATC, STG, HEX, HEX, HEX}, /* 4 */
719{"unlinkat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 5 */
720{"futimesat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 6 */
721{"renameat", 5, DEC, NOV, HID, ATC, STG, DEC, STG}, /* 7 */
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 705 unchanged lines hidden (view full) ---

714{"openat", 5, DEC, NOV, HID, ATC, STG, OPN, OCT}, /* 0 */
715{"openat64", 5, DEC, NOV, HID, ATC, STG, OPN, OCT}, /* 1 */
716{"fstatat64", 5, DEC, NOV, HID, ATC, STG, HEX, HEX}, /* 2 */
717{"fstatat", 5, DEC, NOV, HID, ATC, STG, HEX, HEX}, /* 3 */
718{"fchownat", 6, DEC, NOV, HID, ATC, STG, HEX, HEX, HEX}, /* 4 */
719{"unlinkat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 5 */
720{"futimesat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 6 */
721{"renameat", 5, DEC, NOV, HID, ATC, STG, DEC, STG}, /* 7 */
722{"openat", 4, DEC, NOV, HID, ATC, STG, OPN}, /* 8 */
723{"openat64", 4, DEC, NOV, HID, ATC, STG, OPN}, /* 9 */
722{"__accessat", 5, DEC, NOV, HID, ATC, STG, ACC}, /* 8 */
723{"openat", 4, DEC, NOV, HID, ATC, STG, OPN}, /* N - 2 */
724{"openat64", 4, DEC, NOV, HID, ATC, STG, OPN}, /* N - 1 */
724};
725#define NFSATSYSCODE (sizeof (fsatsystable) / sizeof (struct systable))
726
727static const struct systable lwpparktable[] = {
728{"lwp_park", 3, DEC, NOV, HID, HEX, DEC}, /* 0 */
729{"lwp_unpark", 2, DEC, NOV, HID, DEC}, /* 1 */
730{"lwp_unpark_all", 3, DEC, NOV, HID, HEX, DEC}, /* 2 */
731};

--- 207 unchanged lines hidden (view full) ---

939 { "openat", SYS_fsat },
940 { "openat64", SYS_fsat },
941 { "fstatat64", SYS_fsat },
942 { "fstatat", SYS_fsat },
943 { "fchownat", SYS_fsat },
944 { "unlinkat", SYS_fsat },
945 { "futimesat", SYS_fsat },
946 { "renameat", SYS_fsat },
725};
726#define NFSATSYSCODE (sizeof (fsatsystable) / sizeof (struct systable))
727
728static const struct systable lwpparktable[] = {
729{"lwp_park", 3, DEC, NOV, HID, HEX, DEC}, /* 0 */
730{"lwp_unpark", 2, DEC, NOV, HID, DEC}, /* 1 */
731{"lwp_unpark_all", 3, DEC, NOV, HID, HEX, DEC}, /* 2 */
732};

--- 207 unchanged lines hidden (view full) ---

940 { "openat", SYS_fsat },
941 { "openat64", SYS_fsat },
942 { "fstatat64", SYS_fsat },
943 { "fstatat", SYS_fsat },
944 { "fchownat", SYS_fsat },
945 { "unlinkat", SYS_fsat },
946 { "futimesat", SYS_fsat },
947 { "renameat", SYS_fsat },
948 { "__accessat", SYS_fsat },
947 { "lgrpsys", SYS_lgrpsys },
948 { "getrusage", SYS_rusagesys },
949 { "getrusage_chld", SYS_rusagesys },
950 { "getrusage_lwp", SYS_rusagesys },
951 { "getvmusage", SYS_rusagesys },
952 { "getpeerucred", SYS_ucredsys },
953 { "ucred_get", SYS_ucredsys },
954 { "port_create", SYS_port },

--- 257 unchanged lines hidden (view full) ---

1212 subcode = (Lsp->pr_sysarg[1] & O_CREAT)? 1 : 0;
1213 break;
1214 case SYS_fsat:
1215 switch (arg0) {
1216 case 0: /* openat */
1217 if (nsysarg > 3)
1218 subcode =
1219 (Lsp->pr_sysarg[3] & O_CREAT) ?
949 { "lgrpsys", SYS_lgrpsys },
950 { "getrusage", SYS_rusagesys },
951 { "getrusage_chld", SYS_rusagesys },
952 { "getrusage_lwp", SYS_rusagesys },
953 { "getvmusage", SYS_rusagesys },
954 { "getpeerucred", SYS_ucredsys },
955 { "ucred_get", SYS_ucredsys },
956 { "port_create", SYS_port },

--- 257 unchanged lines hidden (view full) ---

1214 subcode = (Lsp->pr_sysarg[1] & O_CREAT)? 1 : 0;
1215 break;
1216 case SYS_fsat:
1217 switch (arg0) {
1218 case 0: /* openat */
1219 if (nsysarg > 3)
1220 subcode =
1221 (Lsp->pr_sysarg[3] & O_CREAT) ?
1220 0 : 8;
1222 0 : NFSATSYSCODE - 2;
1221 break;
1222 case 1: /* openat64 */
1223 if (nsysarg > 3)
1224 subcode =
1225 (Lsp->pr_sysarg[3] & O_CREAT) ?
1223 break;
1224 case 1: /* openat64 */
1225 if (nsysarg > 3)
1226 subcode =
1227 (Lsp->pr_sysarg[3] & O_CREAT) ?
1226 1 : 9;
1228 1 : NFSATSYSCODE - 1;
1227 break;
1228 case 2:
1229 case 3:
1230 case 4:
1231 case 5:
1232 case 6:
1233 case 7:
1229 break;
1230 case 2:
1231 case 3:
1232 case 4:
1233 case 5:
1234 case 6:
1235 case 7:
1236 case 8:
1234 subcode = arg0;
1235 }
1236 break;
1237 case SYS_signal: /* signal() + sigset() family */
1238 switch (arg0 & ~SIGNO_MASK) {
1239 default: subcode = 0; break;
1240 case SIGDEFER: subcode = 1; break;
1241 case SIGHOLD: subcode = 2; break;

--- 241 unchanged lines hidden ---
1237 subcode = arg0;
1238 }
1239 break;
1240 case SYS_signal: /* signal() + sigset() family */
1241 switch (arg0 & ~SIGNO_MASK) {
1242 default: subcode = 0; break;
1243 case SIGDEFER: subcode = 1; break;
1244 case SIGHOLD: subcode = 2; break;

--- 241 unchanged lines hidden ---