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

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: 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:
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
(no file at all)
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 PAGE_EXECUTE_READWRITE = 0x40 166 PAGE_EXECUTE_READWRITE = 0x40
167 PAGE_EXECUTE_WRITECOPY = 0x80 167 PAGE_EXECUTE_WRITECOPY = 0x80
168 168
169 FILE_MAP_COPY = 0x01 169 FILE_MAP_COPY = 0x01
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 )
177
178 const (
179 // flags for CreateToolhelp32Snapshot
180 TH32CS_SNAPHEAPLIST = 0x01
181 TH32CS_SNAPPROCESS = 0x02
182 TH32CS_SNAPTHREAD = 0x04
183 TH32CS_SNAPMODULE = 0x08
184 TH32CS_SNAPMODULE32 = 0x10
185 TH32CS_SNAPALL = TH32CS_SNAPHEAPLIST | TH32CS_SNAPMODULE | TH32CS_S NAPPROCESS | TH32CS_SNAPTHREAD
186 TH32CS_INHERIT = 0x80000000
176 ) 187 )
177 188
178 const ( 189 const (
179 // do not reorder 190 // do not reorder
180 FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota 191 FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota
181 FILE_NOTIFY_CHANGE_DIR_NAME 192 FILE_NOTIFY_CHANGE_DIR_NAME
182 FILE_NOTIFY_CHANGE_ATTRIBUTES 193 FILE_NOTIFY_CHANGE_ATTRIBUTES
183 FILE_NOTIFY_CHANGE_SIZE 194 FILE_NOTIFY_CHANGE_SIZE
184 FILE_NOTIFY_CHANGE_LAST_WRITE 195 FILE_NOTIFY_CHANGE_LAST_WRITE
185 FILE_NOTIFY_CHANGE_LAST_ACCESS 196 FILE_NOTIFY_CHANGE_LAST_ACCESS
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 StdInput Handle 464 StdInput Handle
454 StdOutput Handle 465 StdOutput Handle
455 StdErr Handle 466 StdErr Handle
456 } 467 }
457 468
458 type ProcessInformation struct { 469 type ProcessInformation struct {
459 Process Handle 470 Process Handle
460 Thread Handle 471 Thread Handle
461 ProcessId uint32 472 ProcessId uint32
462 ThreadId uint32 473 ThreadId uint32
474 }
475
476 type ProcessEntry32 struct {
477 Size uint32
478 Usage uint32
479 ProcessID uint32
480 DefaultHeapID uintptr
481 ModuleID uint32
482 Threads uint32
483 ParentProcessID uint32
484 PriClassBase int32
485 Flags uint32
486 ExeFile [MAX_PATH]uint16
463 } 487 }
464 488
465 type Systemtime struct { 489 type Systemtime struct {
466 Year uint16 490 Year uint16
467 Month uint16 491 Month uint16
468 DayOfWeek uint16 492 DayOfWeek uint16
469 Day uint16 493 Day uint16
470 Hour uint16 494 Hour uint16
471 Minute uint16 495 Minute uint16
472 Second uint16 496 Second uint16
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 type WSAProtocolChain struct { 1059 type WSAProtocolChain struct {
1036 ChainLen int32 1060 ChainLen int32
1037 ChainEntries [MAX_PROTOCOL_CHAIN]uint32 1061 ChainEntries [MAX_PROTOCOL_CHAIN]uint32
1038 } 1062 }
1039 1063
1040 type TCPKeepalive struct { 1064 type TCPKeepalive struct {
1041 OnOff uint32 1065 OnOff uint32
1042 Time uint32 1066 Time uint32
1043 Interval uint32 1067 Interval uint32
1044 } 1068 }
LEFTRIGHT

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