aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/windows/memory_windows.go
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
committerLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
commit404aeae4545d2426c089a5f8d5e82dae56f5212b (patch)
tree2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/windows/memory_windows.go
parent209d8b0187ed025dec9ac149ebcced3462877bff (diff)
downloadgitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz
gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/windows/memory_windows.go')
-rw-r--r--vendor/golang.org/x/sys/windows/memory_windows.go48
1 files changed, 48 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/windows/memory_windows.go b/vendor/golang.org/x/sys/windows/memory_windows.go
new file mode 100644
index 0000000..6dc0920
--- /dev/null
+++ b/vendor/golang.org/x/sys/windows/memory_windows.go
@@ -0,0 +1,48 @@
1// Copyright 2017 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package windows
6
7const (
8 MEM_COMMIT = 0x00001000
9 MEM_RESERVE = 0x00002000
10 MEM_DECOMMIT = 0x00004000
11 MEM_RELEASE = 0x00008000
12 MEM_RESET = 0x00080000
13 MEM_TOP_DOWN = 0x00100000
14 MEM_WRITE_WATCH = 0x00200000
15 MEM_PHYSICAL = 0x00400000
16 MEM_RESET_UNDO = 0x01000000
17 MEM_LARGE_PAGES = 0x20000000
18
19 PAGE_NOACCESS = 0x00000001
20 PAGE_READONLY = 0x00000002
21 PAGE_READWRITE = 0x00000004
22 PAGE_WRITECOPY = 0x00000008
23 PAGE_EXECUTE = 0x00000010
24 PAGE_EXECUTE_READ = 0x00000020
25 PAGE_EXECUTE_READWRITE = 0x00000040
26 PAGE_EXECUTE_WRITECOPY = 0x00000080
27 PAGE_GUARD = 0x00000100
28 PAGE_NOCACHE = 0x00000200
29 PAGE_WRITECOMBINE = 0x00000400
30 PAGE_TARGETS_INVALID = 0x40000000
31 PAGE_TARGETS_NO_UPDATE = 0x40000000
32
33 QUOTA_LIMITS_HARDWS_MIN_DISABLE = 0x00000002
34 QUOTA_LIMITS_HARDWS_MIN_ENABLE = 0x00000001
35 QUOTA_LIMITS_HARDWS_MAX_DISABLE = 0x00000008
36 QUOTA_LIMITS_HARDWS_MAX_ENABLE = 0x00000004
37)
38
39type MemoryBasicInformation struct {
40 BaseAddress uintptr
41 AllocationBase uintptr
42 AllocationProtect uint32
43 PartitionId uint16
44 RegionSize uintptr
45 State uint32
46 Protect uint32
47 Type uint32
48}