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

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

Issue 5656048: code review 5656048: runtime, syscall, os/signal: fix windows build (Closed)
Left Patch Set: Created 13 years, 1 month ago
Right Patch Set: diff -r 15d7c8abf2ba https://go.googlecode.com/hg/ Created 13 years, 1 month 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/syscall_windows.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 20 matching lines...) Expand all
31 O_TRUNC = 0x00200 31 O_TRUNC = 0x00200
32 O_NONBLOCK = 0x00800 32 O_NONBLOCK = 0x00800
33 O_APPEND = 0x00400 33 O_APPEND = 0x00400
34 O_SYNC = 0x01000 34 O_SYNC = 0x01000
35 O_ASYNC = 0x02000 35 O_ASYNC = 0x02000
36 O_CLOEXEC = 0x80000 36 O_CLOEXEC = 0x80000
37 ) 37 )
38 38
39 const ( 39 const (
40 // More invented values for signals 40 // More invented values for signals
41 » SIGHUP = 0x1 41 » SIGHUP = Signal(0x1)
42 » SIGINT = 0x2 42 » SIGINT = Signal(0x2)
43 » SIGQUIT = 0x3 43 » SIGQUIT = Signal(0x3)
44 » SIGILL = 0x4 44 » SIGILL = Signal(0x4)
45 » SIGTRAP = 0x5 45 » SIGTRAP = Signal(0x5)
46 » SIGABRT = 0x6 46 » SIGABRT = Signal(0x6)
47 » SIGBUS = 0x7 47 » SIGBUS = Signal(0x7)
48 » SIGFPE = 0x8 48 » SIGFPE = Signal(0x8)
49 » SIGKILL = 0x9 49 » SIGKILL = Signal(0x9)
50 » SIGSEGV = 0xb 50 » SIGSEGV = Signal(0xb)
51 » SIGPIPE = 0xd 51 » SIGPIPE = Signal(0xd)
52 » SIGALRM = 0xe 52 » SIGALRM = Signal(0xe)
53 » SIGTERM = 0xf 53 » SIGTERM = Signal(0xf)
54 ) 54 )
55
56 var signals = [...]string{
57 » 1: "hangup",
58 » 2: "interrupt",
59 » 3: "quit",
60 » 4: "illegal instruction",
61 » 5: "trace/breakpoint trap",
62 » 6: "aborted",
63 » 7: "bus error",
64 » 8: "floating point exception",
65 » 9: "killed",
66 » 10: "user defined signal 1",
67 » 11: "segmentation fault",
68 » 12: "user defined signal 2",
69 » 13: "broken pipe",
70 » 14: "alarm clock",
71 » 15: "terminated",
72 }
55 73
56 const ( 74 const (
57 GENERIC_READ = 0x80000000 75 GENERIC_READ = 0x80000000
58 GENERIC_WRITE = 0x40000000 76 GENERIC_WRITE = 0x40000000
59 GENERIC_EXECUTE = 0x20000000 77 GENERIC_EXECUTE = 0x20000000
60 GENERIC_ALL = 0x10000000 78 GENERIC_ALL = 0x10000000
61 79
62 FILE_LIST_DIRECTORY = 0x00000001 80 FILE_LIST_DIRECTORY = 0x00000001
63 FILE_APPEND_DATA = 0x00000004 81 FILE_APPEND_DATA = 0x00000004
64 FILE_WRITE_ATTRIBUTES = 0x00000100 82 FILE_WRITE_ATTRIBUTES = 0x00000100
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 REG_DWORD_BIG_ENDIAN 731 REG_DWORD_BIG_ENDIAN
714 REG_LINK 732 REG_LINK
715 REG_MULTI_SZ 733 REG_MULTI_SZ
716 REG_RESOURCE_LIST 734 REG_RESOURCE_LIST
717 REG_FULL_RESOURCE_DESCRIPTOR 735 REG_FULL_RESOURCE_DESCRIPTOR
718 REG_RESOURCE_REQUIREMENTS_LIST 736 REG_RESOURCE_REQUIREMENTS_LIST
719 REG_QWORD_LITTLE_ENDIAN 737 REG_QWORD_LITTLE_ENDIAN
720 REG_DWORD = REG_DWORD_LITTLE_ENDIAN 738 REG_DWORD = REG_DWORD_LITTLE_ENDIAN
721 REG_QWORD = REG_QWORD_LITTLE_ENDIAN 739 REG_QWORD = REG_QWORD_LITTLE_ENDIAN
722 ) 740 )
LEFTRIGHT

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