1 /* Generated by ./xlat/gen.sh from ./xlat/scmvals.in; do not edit. */ 2 #if !(defined(SCM_RIGHTS) || (defined(HAVE_DECL_SCM_RIGHTS) && HAVE_DECL_SCM_RIGHTS)) 3 # define SCM_RIGHTS 1 4 #endif 5 #if !(defined(SCM_CREDENTIALS) || (defined(HAVE_DECL_SCM_CREDENTIALS) && HAVE_DECL_SCM_CREDENTIALS)) 6 # define SCM_CREDENTIALS 2 7 #endif 8 #if !(defined(SCM_SECURITY) || (defined(HAVE_DECL_SCM_SECURITY) && HAVE_DECL_SCM_SECURITY)) 9 # define SCM_SECURITY 3 10 #endif 11 #ifndef SCM_TIMESTAMP 12 # if defined HPPA 13 # define SCM_TIMESTAMP 0x4012 14 # elif defined SPARC || defined SPARC64 15 # define SCM_TIMESTAMP 0x001d 16 # else 17 # define SCM_TIMESTAMP 29 18 # endif 19 #endif 20 #ifndef SCM_TIMESTAMPNS 21 # if defined HPPA 22 # define SCM_TIMESTAMPNS 0x4013 23 # elif defined SPARC || defined SPARC64 24 # define SCM_TIMESTAMPNS 0x0021 25 # else 26 # define SCM_TIMESTAMPNS 35 27 # endif 28 #endif 29 #ifndef SCM_TIMESTAMPING 30 # if defined HPPA 31 # define SCM_TIMESTAMPING 0x4020 32 # elif defined SPARC || defined SPARC64 33 # define SCM_TIMESTAMPING 0x0023 34 # else 35 # define SCM_TIMESTAMPING 37 36 # endif 37 #endif 38 #ifndef SCM_WIFI_STATUS 39 # if defined HPPA 40 # define SCM_WIFI_STATUS 0x4022 41 # elif defined SPARC || defined SPARC64 42 # define SCM_WIFI_STATUS 0x0025 43 # else 44 # define SCM_WIFI_STATUS 41 45 # endif 46 #endif 47 #ifndef SCM_TIMESTAMPING_OPT_STATS 48 # if defined HPPA 49 # define SCM_TIMESTAMPING_OPT_STATS 0x402f 50 # elif defined SPARC || defined SPARC64 51 # define SCM_TIMESTAMPING_OPT_STATS 0x0038 52 # else 53 # define SCM_TIMESTAMPING_OPT_STATS 54 54 # endif 55 #endif 56 #ifndef SCM_TIMESTAMPING_PKTINFO 57 # if defined HPPA 58 # define SCM_TIMESTAMPING_PKTINFO 0x4033 59 # elif defined SPARC || defined SPARC64 60 # define SCM_TIMESTAMPING_PKTINFO 0x003c 61 # else 62 # define SCM_TIMESTAMPING_PKTINFO 58 63 # endif 64 #endif 65 66 #ifdef IN_MPERS 67 68 # error static const struct xlat scmvals in mpers mode 69 70 #else 71 72 static 73 const struct xlat scmvals[] = { 74 XLAT(SCM_RIGHTS), 75 XLAT(SCM_CREDENTIALS), 76 XLAT(SCM_SECURITY), 77 78 #ifndef SCM_TIMESTAMP 79 # if defined HPPA 80 # define SCM_TIMESTAMP 0x4012 81 # elif defined SPARC || defined SPARC64 82 # define SCM_TIMESTAMP 0x001d 83 # else 84 # define SCM_TIMESTAMP 29 85 # endif 86 #endif 87 #if defined(SCM_TIMESTAMP) || (defined(HAVE_DECL_SCM_TIMESTAMP) && HAVE_DECL_SCM_TIMESTAMP) 88 XLAT(SCM_TIMESTAMP), 89 #endif 90 91 #ifndef SCM_TIMESTAMPNS 92 # if defined HPPA 93 # define SCM_TIMESTAMPNS 0x4013 94 # elif defined SPARC || defined SPARC64 95 # define SCM_TIMESTAMPNS 0x0021 96 # else 97 # define SCM_TIMESTAMPNS 35 98 # endif 99 #endif 100 #if defined(SCM_TIMESTAMPNS) || (defined(HAVE_DECL_SCM_TIMESTAMPNS) && HAVE_DECL_SCM_TIMESTAMPNS) 101 XLAT(SCM_TIMESTAMPNS), 102 #endif 103 104 #ifndef SCM_TIMESTAMPING 105 # if defined HPPA 106 # define SCM_TIMESTAMPING 0x4020 107 # elif defined SPARC || defined SPARC64 108 # define SCM_TIMESTAMPING 0x0023 109 # else 110 # define SCM_TIMESTAMPING 37 111 # endif 112 #endif 113 #if defined(SCM_TIMESTAMPING) || (defined(HAVE_DECL_SCM_TIMESTAMPING) && HAVE_DECL_SCM_TIMESTAMPING) 114 XLAT(SCM_TIMESTAMPING), 115 #endif 116 117 #ifndef SCM_WIFI_STATUS 118 # if defined HPPA 119 # define SCM_WIFI_STATUS 0x4022 120 # elif defined SPARC || defined SPARC64 121 # define SCM_WIFI_STATUS 0x0025 122 # else 123 # define SCM_WIFI_STATUS 41 124 # endif 125 #endif 126 #if defined(SCM_WIFI_STATUS) || (defined(HAVE_DECL_SCM_WIFI_STATUS) && HAVE_DECL_SCM_WIFI_STATUS) 127 XLAT(SCM_WIFI_STATUS), 128 #endif 129 130 #ifndef SCM_TIMESTAMPING_OPT_STATS 131 # if defined HPPA 132 # define SCM_TIMESTAMPING_OPT_STATS 0x402f 133 # elif defined SPARC || defined SPARC64 134 # define SCM_TIMESTAMPING_OPT_STATS 0x0038 135 # else 136 # define SCM_TIMESTAMPING_OPT_STATS 54 137 # endif 138 #endif 139 #if defined(SCM_TIMESTAMPING_OPT_STATS) || (defined(HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) && HAVE_DECL_SCM_TIMESTAMPING_OPT_STATS) 140 XLAT(SCM_TIMESTAMPING_OPT_STATS), 141 #endif 142 143 #ifndef SCM_TIMESTAMPING_PKTINFO 144 # if defined HPPA 145 # define SCM_TIMESTAMPING_PKTINFO 0x4033 146 # elif defined SPARC || defined SPARC64 147 # define SCM_TIMESTAMPING_PKTINFO 0x003c 148 # else 149 # define SCM_TIMESTAMPING_PKTINFO 58 150 # endif 151 #endif 152 #if defined(SCM_TIMESTAMPING_PKTINFO) || (defined(HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) && HAVE_DECL_SCM_TIMESTAMPING_PKTINFO) 153 XLAT(SCM_TIMESTAMPING_PKTINFO), 154 #endif 155 XLAT_END 156 }; 157 158 #endif /* !IN_MPERS */ 159