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

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

Issue 1578041: code review 1578041: add Windows ForkExec, Syscall12 (Closed)
Left Patch Set: code review 1578041: add Windows ForkExec, Syscall12 Created 13 years, 9 months ago
Right Patch Set: code review 1578041: add Windows ForkExec, Syscall12 Created 13 years, 8 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_386.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 // godefs -gsyscall -f-m32 types_linux.c 1 // godefs -gsyscall -f-m32 types_linux.c
2 2
3 // MACHINE GENERATED - DO NOT EDIT. 3 // MACHINE GENERATED - DO NOT EDIT.
4 4
5 package syscall 5 package syscall
6 6
7 // TODO(brainman): autogenerate types in ztypes_windows_386.go 7 // TODO(brainman): autogenerate types in ztypes_windows_386.go
8 8
9 //import "unsafe" 9 //import "unsafe"
10 10
11 // Constants 11 // Constants
12 const ( 12 const (
13 » sizeofPtr = 0x4 13 » sizeofPtr = 0x4
14 » sizeofShort = 0x2 14 » sizeofShort = 0x2
15 » sizeofInt = 0x4 15 » sizeofInt = 0x4
16 » sizeofLong = 0x4 16 » sizeofLong = 0x4
17 » sizeofLongLong = 0x8 17 » sizeofLongLong = 0x8
18 » PathMax = 0x1000 18 » PathMax = 0x1000
19 » SizeofSockaddrInet4 = 0x10 19 » SizeofLinger = 0x8
20 » SizeofSockaddrInet6 = 0x1c 20 » SizeofMsghdr = 0x1c
21 » SizeofSockaddrAny = 0x70 21 » SizeofCmsghdr = 0xc
22 » SizeofSockaddrUnix = 0x6e
23 » SizeofLinger = 0x8
24 » SizeofMsghdr = 0x1c
25 » SizeofCmsghdr = 0xc
26 ) 22 )
27 23
28 const ( 24 const (
29 // Invented values to support what package os expects. 25 // Invented values to support what package os expects.
30 O_RDONLY = 0x00000 26 O_RDONLY = 0x00000
31 O_WRONLY = 0x00001 27 O_WRONLY = 0x00001
32 O_RDWR = 0x00002 28 O_RDWR = 0x00002
33 O_CREAT = 0x00040 29 O_CREAT = 0x00040
34 O_EXCL = 0x00080 30 O_EXCL = 0x00080
35 O_NOCTTY = 0x00100 31 O_NOCTTY = 0x00100
(...skipping 20 matching lines...) Expand all
56 FILE_ATTRIBUTE_DIRECTORY = 0x00000010 52 FILE_ATTRIBUTE_DIRECTORY = 0x00000010
57 FILE_ATTRIBUTE_ARCHIVE = 0x00000020 53 FILE_ATTRIBUTE_ARCHIVE = 0x00000020
58 FILE_ATTRIBUTE_NORMAL = 0x00000080 54 FILE_ATTRIBUTE_NORMAL = 0x00000080
59 55
60 CREATE_NEW = 1 56 CREATE_NEW = 1
61 CREATE_ALWAYS = 2 57 CREATE_ALWAYS = 2
62 OPEN_EXISTING = 3 58 OPEN_EXISTING = 3
63 OPEN_ALWAYS = 4 59 OPEN_ALWAYS = 4
64 TRUNCATE_EXISTING = 5 60 TRUNCATE_EXISTING = 5
65 61
62 STARTF_USESTDHANDLES = 0x00000100
63 DUPLICATE_CLOSE_SOURCE = 0x00000001
64 DUPLICATE_SAME_ACCESS = 0x00000002
65
66 STD_INPUT_HANDLE = -10 66 STD_INPUT_HANDLE = -10
67 STD_OUTPUT_HANDLE = -11 67 STD_OUTPUT_HANDLE = -11
68 STD_ERROR_HANDLE = -12 68 STD_ERROR_HANDLE = -12
69 69
70 FILE_BEGIN = 0 70 FILE_BEGIN = 0
71 FILE_CURRENT = 1 71 FILE_CURRENT = 1
72 FILE_END = 2 72 FILE_END = 2
73 73
74 FORMAT_MESSAGE_ALLOCATE_BUFFER = 256 74 FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
75 FORMAT_MESSAGE_IGNORE_INSERTS = 512 75 FORMAT_MESSAGE_IGNORE_INSERTS = 512
76 FORMAT_MESSAGE_FROM_STRING = 1024 76 FORMAT_MESSAGE_FROM_STRING = 1024
77 FORMAT_MESSAGE_FROM_HMODULE = 2048 77 FORMAT_MESSAGE_FROM_HMODULE = 2048
78 FORMAT_MESSAGE_FROM_SYSTEM = 4096 78 FORMAT_MESSAGE_FROM_SYSTEM = 4096
79 FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192 79 FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192
80 FORMAT_MESSAGE_MAX_WIDTH_MASK = 255 80 FORMAT_MESSAGE_MAX_WIDTH_MASK = 255
81 81
82 MAX_PATH = 260 82 MAX_PATH = 260
83 MAX_LONG_PATH = 32768 83 MAX_LONG_PATH = 32768
84 84
85 MAX_COMPUTERNAME_LENGTH = 15 85 MAX_COMPUTERNAME_LENGTH = 15
86
87 TIME_ZONE_ID_UNKNOWN = 0
88 TIME_ZONE_ID_STANDARD = 1
89
90 TIME_ZONE_ID_DAYLIGHT = 2
91 IGNORE = 0
92 INFINITE = 0xffffffff
93
94 WAIT_TIMEOUT = 258
95
96 CREATE_UNICODE_ENVIRONMENT = 0x00000400
97 )
98
99 const (
100 // wincrypt.h
101 PROV_RSA_FULL = 1
102 PROV_RSA_SIG = 2
103 PROV_DSS = 3
104 PROV_FORTEZZA = 4
105 PROV_MS_EXCHANGE = 5
106 PROV_SSL = 6
107 PROV_RSA_SCHANNEL = 12
108 PROV_DSS_DH = 13
109 PROV_EC_ECDSA_SIG = 14
110 PROV_EC_ECNRA_SIG = 15
111 PROV_EC_ECDSA_FULL = 16
112 PROV_EC_ECNRA_FULL = 17
113 PROV_DH_SCHANNEL = 18
114 PROV_SPYRUS_LYNKS = 20
115 PROV_RNG = 21
116 PROV_INTEL_SEC = 22
117 PROV_REPLACE_OWF = 23
118 PROV_RSA_AES = 24
119 CRYPT_VERIFYCONTEXT = 0xF0000000
120 CRYPT_NEWKEYSET = 0x00000008
121 CRYPT_DELETEKEYSET = 0x00000010
122 CRYPT_MACHINE_KEYSET = 0x00000020
123 CRYPT_SILENT = 0x00000040
124 CRYPT_DEFAULT_CONTAINER_OPTIONAL = 0x00000080
86 ) 125 )
87 126
88 // Types 127 // Types
89 128
90 type _C_short int16 129 type _C_short int16
91 130
92 type _C_int int32 131 type _C_int int32
93 132
94 type _C_long int32 133 type _C_long int32
95 134
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 CreationTime Filetime 181 CreationTime Filetime
143 LastAccessTime Filetime 182 LastAccessTime Filetime
144 LastWriteTime Filetime 183 LastWriteTime Filetime
145 VolumeSerialNumber uint32 184 VolumeSerialNumber uint32
146 FileSizeHigh uint32 185 FileSizeHigh uint32
147 FileSizeLow uint32 186 FileSizeLow uint32
148 NumberOfLinks uint32 187 NumberOfLinks uint32
149 FileIndexHigh uint32 188 FileIndexHigh uint32
150 FileIndexLow uint32 189 FileIndexLow uint32
151 } 190 }
152
153 const (
154 IGNORE = 0
155 INFINITE = 0xFFFFFFFF
156
157 CREATE_UNICODE_ENVIRONMENT = 0x00000400
158 )
159 191
160 type StartupInfo struct { 192 type StartupInfo struct {
161 Cb uint32 193 Cb uint32
162 _ *uint16 194 _ *uint16
163 Desktop *uint16 195 Desktop *uint16
164 Title *uint16 196 Title *uint16
165 X uint32 197 X uint32
166 Y uint32 198 Y uint32
167 XSize uint32 199 XSize uint32
168 YSize uint32 200 YSize uint32
(...skipping 13 matching lines...) Expand all
182 Process int32 214 Process int32
183 Thread int32 215 Thread int32
184 ProcessId uint32 216 ProcessId uint32
185 ThreadId uint32 217 ThreadId uint32
186 } 218 }
187 219
188 // Invented values to support what package os expects. 220 // Invented values to support what package os expects.
189 type Stat_t struct { 221 type Stat_t struct {
190 Windata Win32finddata 222 Windata Win32finddata
191 Mode uint32 223 Mode uint32
224 }
225
226 type Systemtime struct {
227 Year uint16
228 Month uint16
229 DayOfWeek uint16
230 Day uint16
231 Hour uint16
232 Minute uint16
233 Second uint16
234 Milliseconds uint16
235 }
236
237 type Timezoneinformation struct {
238 Bias int32
239 StandardName [32]uint16
240 StandardDate Systemtime
241 StandardBias int32
242 DaylightName [32]uint16
243 DaylightDate Systemtime
244 DaylightBias int32
245 }
246
247 // Socket related.
248
249 const (
250 AF_UNIX = 1
251 AF_INET = 2
252 AF_INET6 = 23
253
254 SOCK_STREAM = 1
255 SOCK_DGRAM = 2
256 SOCK_RAW = 3
257
258 IPPROTO_IP = 0
259 IPPROTO_TCP = 6
260 IPPROTO_UDP = 17
261
262 SOL_SOCKET = 0xffff
263 SO_REUSEADDR = 4
264 SO_KEEPALIVE = 8
265 SO_DONTROUTE = 16
266 SO_BROADCAST = 32
267 SO_LINGER = 128
268 SO_RCVBUF = 0x1002
269 SO_SNDBUF = 0x1001
270 SO_UPDATE_ACCEPT_CONTEXT = 0x700b
271
272 SOMAXCONN = 5
273
274 TCP_NODELAY = 1
275
276 SHUT_RD = 0
277 SHUT_WR = 1
278 SHUT_RDWR = 2
279
280 WSADESCRIPTION_LEN = 256
281 WSASYS_STATUS_LEN = 128
282 )
283
284 type WSAData struct {
285 Version uint16
286 HighVersion uint16
287 Description [WSADESCRIPTION_LEN + 1]byte
288 SystemStatus [WSASYS_STATUS_LEN + 1]byte
289 MaxSockets uint16
290 MaxUdpDg uint16
291 VendorInfo *byte
292 }
293
294 type WSABuf struct {
295 Len uint32
296 Buf *byte
192 } 297 }
193 298
194 // TODO(brainman): fix all needed for os 299 // TODO(brainman): fix all needed for os
195 300
196 const ( 301 const (
197 PROT_READ = 0x1 302 PROT_READ = 0x1
198 PROT_WRITE = 0x2 303 PROT_WRITE = 0x2
199 MAP_SHARED = 0x1 304 MAP_SHARED = 0x1
200 SYS_FORK = 0 305 SYS_FORK = 0
201 SYS_PTRACE = 0 306 SYS_PTRACE = 0
(...skipping 14 matching lines...) Expand all
216 S_IFREG = 0x8000 321 S_IFREG = 0x8000
217 S_IFLNK = 0xa000 322 S_IFLNK = 0xa000
218 S_IFSOCK = 0xc000 323 S_IFSOCK = 0xc000
219 S_ISUID = 0x800 324 S_ISUID = 0x800
220 S_ISGID = 0x400 325 S_ISGID = 0x400
221 S_ISVTX = 0x200 326 S_ISVTX = 0x200
222 S_IRUSR = 0x100 327 S_IRUSR = 0x100
223 S_IWUSR = 0x80 328 S_IWUSR = 0x80
224 S_IXUSR = 0x40 329 S_IXUSR = 0x40
225 ) 330 )
LEFTRIGHT

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