Commit 392fe1b
committed
tools/mkwinsyscall: replace deprecated funcs with SyscallN (drops go1.17)
The "syscall.Syscall<number>" functions were deprecated in go1.18 in favor
of the "syscall.SyscallN" function, which does not need the "nargs" argument,
and does not need the list of arguments to be padded with zeros.
https://github.com/golang/go/blob/go1.18/src/syscall/dll_windows.go#L27-L45
Now that go1.17 reached EOL and is no longer maintained, we can update the
code to use the new SyscallN function. This patch updates the mkwinsyscall
utility to generate code using the new SyscallN function, and removes the
utilities that are now redundant.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>1 parent 5748f02 commit 392fe1b
File tree
8 files changed
+66
-98
lines changed- internal/socket
- pkg
- bindfilter
- etw
- process
- security
- tools/mkwinsyscall
- vhd
8 files changed
+66
-98
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
541 | 540 | | |
542 | 541 | | |
543 | 542 | | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | 543 | | |
574 | 544 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 545 | + | |
580 | 546 | | |
581 | 547 | | |
582 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
583 | 551 | | |
584 | | - | |
| 552 | + | |
585 | 553 | | |
586 | 554 | | |
587 | 555 | | |
588 | | - | |
589 | | - | |
| 556 | + | |
| 557 | + | |
590 | 558 | | |
591 | | - | |
| 559 | + | |
592 | 560 | | |
593 | 561 | | |
594 | 562 | | |
| |||
1045 | 1013 | | |
1046 | 1014 | | |
1047 | 1015 | | |
1048 | | - | |
| 1016 | + | |
1049 | 1017 | | |
1050 | 1018 | | |
1051 | 1019 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments