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

Delta Between Two Patch Sets: windows/syscall_windows.go

Issue 126960043: code review 126960043: go.sys: copy files from syscall package to go.sys/{plan... (Closed)
Left Patch Set: Created 10 years, 7 months ago
Right Patch Set: diff -r 89b705e036f489a14b4d11c6e025ea61a53bb735 https://code.google.com/p/go.sys Created 10 years, 7 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 | « windows/syscall_test.go ('k') | windows/syscall_windows_386.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 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 // Windows system calls. 5 // Windows system calls.
6 6
7 package syscall 7 package syscall
8 8
9 import ( 9 import (
10 errorspkg "errors" 10 errorspkg "errors"
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 if uintptr(bytesReturned) < unsafe.Sizeof(*rdb) || 993 if uintptr(bytesReturned) < unsafe.Sizeof(*rdb) ||
994 rdb.ReparseTag != IO_REPARSE_TAG_SYMLINK { 994 rdb.ReparseTag != IO_REPARSE_TAG_SYMLINK {
995 // the path is not a symlink but another type of reparse point 995 // the path is not a symlink but another type of reparse point
996 return -1, ENOENT 996 return -1, ENOENT
997 } 997 }
998 998
999 s := UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(&rdb.PathBuffer[0])) [:rdb.PrintNameLength/2]) 999 s := UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(&rdb.PathBuffer[0])) [:rdb.PrintNameLength/2])
1000 n = copy(buf, []byte(s)) 1000 n = copy(buf, []byte(s))
1001 return n, nil 1001 return n, nil
1002 } 1002 }
LEFTRIGHT

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