Commit 04f3226
committed
Add errno handling to shmdt() and shmctl() on Windows
Set errno for error conditions in shmdt() and shmctl():
- EINVAL for invalid segment address/key
- Windows error mapping for UnmapViewOfFile failures
- EINVAL for unknown shmctl commands
This completes errno handling for all shmop system calls on Windows.1 parent 516e543 commit 04f3226
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| 783 | + | |
783 | 784 | | |
784 | 785 | | |
785 | 786 | | |
| |||
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
792 | | - | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
793 | 797 | | |
794 | 798 | | |
795 | 799 | | |
| |||
800 | 804 | | |
801 | 805 | | |
802 | 806 | | |
| 807 | + | |
803 | 808 | | |
804 | 809 | | |
805 | 810 | | |
| |||
822 | 827 | | |
823 | 828 | | |
824 | 829 | | |
| 830 | + | |
825 | 831 | | |
826 | 832 | | |
827 | 833 | | |
| |||
0 commit comments