~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/syscall/ztypes_windows.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý, Ondřej Surý, Michael Stapelberg
  • Date: 2012-06-28 12:14:15 UTC
  • mfrom: (14.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20120628121415-rujz1ij5jcwhrhpe
Tags: 2:1.0.2-1
[ Ondřej Surý ]
* Imported Upstream version 1.0.2
* Update Vcs fields to reflect new git repository location
* Kill get-orig-source, since 1.0.0, the tarballs can be downloaded
  from webpage

[ Michael Stapelberg ]
* golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
* Add manpages (Closes: #632964)
* Use updated pt.po from Pedro Ribeiro (Closes: #674958)

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
        AlternateFileName [13]uint16
348
348
}
349
349
 
 
350
// This is the actual system call structure.
 
351
// Win32finddata is what we committed to in Go 1.
 
352
type win32finddata1 struct {
 
353
        FileAttributes    uint32
 
354
        CreationTime      Filetime
 
355
        LastAccessTime    Filetime
 
356
        LastWriteTime     Filetime
 
357
        FileSizeHigh      uint32
 
358
        FileSizeLow       uint32
 
359
        Reserved0         uint32
 
360
        Reserved1         uint32
 
361
        FileName          [MAX_PATH]uint16
 
362
        AlternateFileName [14]uint16
 
363
}
 
364
 
 
365
func copyFindData(dst *Win32finddata, src *win32finddata1) {
 
366
        dst.FileAttributes = src.FileAttributes
 
367
        dst.CreationTime = src.CreationTime
 
368
        dst.LastAccessTime = src.LastAccessTime
 
369
        dst.LastWriteTime = src.LastWriteTime
 
370
        dst.FileSizeHigh = src.FileSizeHigh
 
371
        dst.FileSizeLow = src.FileSizeLow
 
372
        dst.Reserved0 = src.Reserved0
 
373
        dst.Reserved1 = src.Reserved1
 
374
 
 
375
        // The src is 1 element shorter than dst. Zero that last one.
 
376
        copy(dst.FileName[:], src.FileName[:])
 
377
        dst.FileName[len(dst.FileName)-1] = 0
 
378
        copy(dst.AlternateFileName[:], src.AlternateFileName[:])
 
379
        src.AlternateFileName[len(dst.AlternateFileName)-1] = 0
 
380
}
 
381
 
350
382
type ByHandleFileInformation struct {
351
383
        FileAttributes     uint32
352
384
        CreationTime       Filetime