Commit ec3ef17
committed
Fix the definition of sigevent
It was originally defined back before rust could represent C unions. So
instead of defining the union field correctly, it simply defined that
union's most useful field. Define it correctly now.
Include a backwards-compatibility mechanism: Rename sigevent's old
definition and hide it. Implement Deref and DerefMut from sigevent to
the old definition, so consumers will still be able to use the old field
name.1 parent eecb648 commit ec3ef17
3 files changed
+216
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1409 | 1409 | | |
1410 | 1410 | | |
1411 | 1411 | | |
1412 | | - | |
| 1412 | + | |
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| |||
1645 | 1645 | | |
1646 | 1646 | | |
1647 | 1647 | | |
| 1648 | + | |
| 1649 | + | |
1648 | 1650 | | |
1649 | 1651 | | |
1650 | 1652 | | |
| |||
1802 | 1804 | | |
1803 | 1805 | | |
1804 | 1806 | | |
1805 | | - | |
1806 | | - | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
1807 | 1811 | | |
1808 | 1812 | | |
1809 | 1813 | | |
| |||
1980 | 1984 | | |
1981 | 1985 | | |
1982 | 1986 | | |
| 1987 | + | |
| 1988 | + | |
1983 | 1989 | | |
1984 | 1990 | | |
1985 | 1991 | | |
| |||
2270 | 2276 | | |
2271 | 2277 | | |
2272 | 2278 | | |
| 2279 | + | |
2273 | 2280 | | |
2274 | 2281 | | |
2275 | 2282 | | |
| |||
2409 | 2416 | | |
2410 | 2417 | | |
2411 | 2418 | | |
| 2419 | + | |
| 2420 | + | |
2412 | 2421 | | |
2413 | 2422 | | |
2414 | 2423 | | |
| |||
2512 | 2521 | | |
2513 | 2522 | | |
2514 | 2523 | | |
2515 | | - | |
2516 | | - | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
2517 | 2528 | | |
2518 | 2529 | | |
2519 | 2530 | | |
| |||
2863 | 2874 | | |
2864 | 2875 | | |
2865 | 2876 | | |
| 2877 | + | |
| 2878 | + | |
2866 | 2879 | | |
2867 | 2880 | | |
2868 | 2881 | | |
| |||
3286 | 3299 | | |
3287 | 3300 | | |
3288 | 3301 | | |
| 3302 | + | |
3289 | 3303 | | |
3290 | 3304 | | |
3291 | 3305 | | |
| |||
3312 | 3326 | | |
3313 | 3327 | | |
3314 | 3328 | | |
3315 | | - | |
3316 | | - | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
3317 | 3333 | | |
3318 | 3334 | | |
3319 | 3335 | | |
| |||
3810 | 3826 | | |
3811 | 3827 | | |
3812 | 3828 | | |
| 3829 | + | |
3813 | 3830 | | |
3814 | 3831 | | |
3815 | 3832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
874 | 880 | | |
875 | 881 | | |
876 | 882 | | |
| |||
990 | 996 | | |
991 | 997 | | |
992 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
993 | 1014 | | |
994 | 1015 | | |
995 | 1016 | | |
| |||
1040 | 1061 | | |
1041 | 1062 | | |
1042 | 1063 | | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1043 | 1075 | | |
1044 | 1076 | | |
1045 | 1077 | | |
1046 | 1078 | | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
| 1079 | + | |
1053 | 1080 | | |
1054 | 1081 | | |
1055 | 1082 | | |
| |||
1202 | 1229 | | |
1203 | 1230 | | |
1204 | 1231 | | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1205 | 1246 | | |
1206 | 1247 | | |
1207 | 1248 | | |
| |||
1396 | 1437 | | |
1397 | 1438 | | |
1398 | 1439 | | |
1399 | | - | |
1400 | | - | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1401 | 1458 | | |
1402 | 1459 | | |
1403 | 1460 | | |
1404 | 1461 | | |
1405 | 1462 | | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1413 | 1480 | | |
1414 | 1481 | | |
1415 | 1482 | | |
1416 | 1483 | | |
1417 | 1484 | | |
1418 | 1485 | | |
1419 | 1486 | | |
1420 | | - | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
1421 | 1496 | | |
1422 | 1497 | | |
1423 | 1498 | | |
| |||
0 commit comments