| 190 | namespace /*Unique*/ |
| 191 | { |
| 192 | void tss_dispatch_iconvopen_error() |
| 193 | { |
| 194 | cDebug d("tss_dispatch_iconvopen_error"); |
| 195 | |
| 196 | switch (errno) |
| 197 | { |
| 198 | case EMFILE: |
| 199 | d.TraceDebug("EMFILE: {OPEN_MAX} files descriptors are currently open in the calling process..\n"); |
| 200 | break; |
| 201 | case ENFILE: |
| 202 | d.TraceDebug("ENFILE: Too many files are currently open in the system.\n"); |
| 203 | break; |
| 204 | case ENOMEM: |
| 205 | d.TraceDebug("ENOMEM: Insufficient storage space is available.\n"); |
| 206 | break; |
| 207 | case EINVAL: |
| 208 | d.TraceDebug("EINVAL: The conversion specified by fromcode and tocode is not supported by the " |
| 209 | "implementation.\n"); |
| 210 | break; |
| 211 | default: |
| 212 | d.TraceDebug("UNKNOWN: Unknown error.\n"); |
| 213 | break; |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | int tss_dispatch_errno(cDebug& d) |
| 218 | { |