Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2702)

Delta Between Two Patch Sets: src/pkg/syscall/ztypes_windows.go

Issue 102320044: code review 102320044: syscall: implement syscall.Getppid() on Windows
Left Patch Set: diff -r d9c3411f6146 https://code.google.com/p/go Created 9 years, 9 months ago
Right Patch Set: diff -r d9c3411f6146 https://code.google.com/p/go Created 9 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/syscall/zsyscall_windows_amd64.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package syscall 5 package syscall
6 6
7 const ( 7 const (
8 // Windows errors. 8 // Windows errors.
9 ERROR_FILE_NOT_FOUND Errno = 2 9 ERROR_FILE_NOT_FOUND Errno = 2
10 ERROR_PATH_NOT_FOUND Errno = 3 10 ERROR_PATH_NOT_FOUND Errno = 3
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 FILE_MAP_WRITE = 0x02 170 FILE_MAP_WRITE = 0x02
171 FILE_MAP_READ = 0x04 171 FILE_MAP_READ = 0x04
172 FILE_MAP_EXECUTE = 0x20 172 FILE_MAP_EXECUTE = 0x20
173 173
174 CTRL_C_EVENT = 0 174 CTRL_C_EVENT = 0
175 CTRL_BREAK_EVENT = 1 175 CTRL_BREAK_EVENT = 1
176 ) 176 )
177 177
178 const ( 178 const (
179 // flags for CreateToolhelp32Snapshot 179 // flags for CreateToolhelp32Snapshot
180 » CS_SNAPHEAPLIST = 0x01 180 » TH32CS_SNAPHEAPLIST = 0x01
brainman 2014/06/13 00:43:50 s/CS_SNAPHEAPLIST/TH32CS_SNAPHEAPLIST/ Lets not i
181 » CS_SNAPPROCESS = 0x02 181 » TH32CS_SNAPPROCESS = 0x02
182 » CS_SNAPTHREAD = 0x04 182 » TH32CS_SNAPTHREAD = 0x04
183 » CS_SNAPMODULE = 0x08 183 » TH32CS_SNAPMODULE = 0x08
184 » CS_SNAPMODULE32 = 0x10 184 » TH32CS_SNAPMODULE32 = 0x10
185 » CS_SNAPALL = CS_SNAPHEAPLIST | CS_SNAPMODULE | CS_SNAPPROCESS | CS_ SNAPTHREAD 185 » TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_S NAPPROCESS | TH32CS_SNAPTHREAD
186 » CS_INHERIT = 0x80000000 186 » TH32CS_INHERIT = 0x80000000
187 ) 187 )
188 188
189 const ( 189 const (
190 // do not reorder 190 // do not reorder
191 FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota 191 FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota
192 FILE_NOTIFY_CHANGE_DIR_NAME 192 FILE_NOTIFY_CHANGE_DIR_NAME
193 FILE_NOTIFY_CHANGE_ATTRIBUTES 193 FILE_NOTIFY_CHANGE_ATTRIBUTES
194 FILE_NOTIFY_CHANGE_SIZE 194 FILE_NOTIFY_CHANGE_SIZE
195 FILE_NOTIFY_CHANGE_LAST_WRITE 195 FILE_NOTIFY_CHANGE_LAST_WRITE
196 FILE_NOTIFY_CHANGE_LAST_ACCESS 196 FILE_NOTIFY_CHANGE_LAST_ACCESS
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 type ProcessInformation struct { 469 type ProcessInformation struct {
470 Process Handle 470 Process Handle
471 Thread Handle 471 Thread Handle
472 ProcessId uint32 472 ProcessId uint32
473 ThreadId uint32 473 ThreadId uint32
474 } 474 }
475 475
476 type ProcessEntry32 struct { 476 type ProcessEntry32 struct {
477 Size uint32 477 Size uint32
478 » UsageCount uint32 478 » Usage uint32
brainman 2014/06/13 00:43:50 s/UsageCount/Usage/ Keep it with original name.
479 ProcessID uint32 479 ProcessID uint32
480 DefaultHeapID uintptr 480 DefaultHeapID uintptr
481 ModuleID uint32 481 ModuleID uint32
482 » ThreadCount uint32 482 » Threads uint32
brainman 2014/06/13 00:43:50 s/ThreadCount/Threads/
483 ParentProcessID uint32 483 ParentProcessID uint32
484 PriClassBase int32 484 PriClassBase int32
485 Flags uint32 485 Flags uint32
486 ExeFile [MAX_PATH]uint16 486 ExeFile [MAX_PATH]uint16
487 } 487 }
488 488
489 type Systemtime struct { 489 type Systemtime struct {
490 Year uint16 490 Year uint16
491 Month uint16 491 Month uint16
492 DayOfWeek uint16 492 DayOfWeek uint16
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 type WSAProtocolChain struct { 1059 type WSAProtocolChain struct {
1060 ChainLen int32 1060 ChainLen int32
1061 ChainEntries [MAX_PROTOCOL_CHAIN]uint32 1061 ChainEntries [MAX_PROTOCOL_CHAIN]uint32
1062 } 1062 }
1063 1063
1064 type TCPKeepalive struct { 1064 type TCPKeepalive struct {
1065 OnOff uint32 1065 OnOff uint32
1066 Time uint32 1066 Time uint32
1067 Interval uint32 1067 Interval uint32
1068 } 1068 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b