Commit 35f293b
committed
compat (errno): Adds cross-platform compatibility for errno values.
Some errno values used in the code are only available on Linux.
Adds compatible handling of errno values not available on all platforms.
- Substitutes good equivalent errno value for unsupported values used
by nvme/util.c when converting status to errno.
- Replaces ENAVAIL usage in nvme.c with a local error code.
It is only used internally within nvme.c to signal that an
"invalid field" error was returned and should be ignored.
Signed-off-by: Broc Going <[email protected]>1 parent d801e1e commit 35f293b
2 files changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7371 | 7371 | | |
7372 | 7372 | | |
7373 | 7373 | | |
| 7374 | + | |
| 7375 | + | |
| 7376 | + | |
| 7377 | + | |
| 7378 | + | |
| 7379 | + | |
7374 | 7380 | | |
7375 | 7381 | | |
7376 | 7382 | | |
| |||
7412 | 7418 | | |
7413 | 7419 | | |
7414 | 7420 | | |
7415 | | - | |
| 7421 | + | |
7416 | 7422 | | |
7417 | 7423 | | |
7418 | 7424 | | |
| |||
7467 | 7473 | | |
7468 | 7474 | | |
7469 | 7475 | | |
7470 | | - | |
| 7476 | + | |
7471 | 7477 | | |
7472 | 7478 | | |
7473 | 7479 | | |
| |||
7583 | 7589 | | |
7584 | 7590 | | |
7585 | 7591 | | |
7586 | | - | |
| 7592 | + | |
7587 | 7593 | | |
7588 | 7594 | | |
7589 | 7595 | | |
| |||
7926 | 7932 | | |
7927 | 7933 | | |
7928 | 7934 | | |
7929 | | - | |
| 7935 | + | |
7930 | 7936 | | |
7931 | 7937 | | |
7932 | 7938 | | |
| |||
8765 | 8771 | | |
8766 | 8772 | | |
8767 | 8773 | | |
8768 | | - | |
| 8774 | + | |
8769 | 8775 | | |
8770 | 8776 | | |
8771 | 8777 | | |
| |||
0 commit comments