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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-11-18 15:12:26 UTC
  • mfrom: (14.2.12 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141118151226-zug7vn93mn3dtiz3
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - Support co-installability with gccgo-go tool:
    - d/rules,golang-go.install: Rename bin/go -> bin/golang-go
    - d/golang-go.{postinst,prerm}: Install/remove /usr/bin/go using
      alternatives.
  - d/copyright: Amendments for full compiliance with copyright format.
  - d/control: Demote golang-go.tools to Suggests to support Ubuntu MIR.
  - dropped patches (now upstream):
    - d/p/issue27650045_40001_50001.diff
    - d/p/issue28050043_60001_70001.diff
    - d/p/issue54790044_100001_110001.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        return extpwrite(fd, p, 0, offset)
102
102
}
103
103
 
 
104
func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
 
105
        var _p0 unsafe.Pointer
 
106
        var bufsize uintptr
 
107
        if len(buf) > 0 {
 
108
                _p0 = unsafe.Pointer(&buf[0])
 
109
                bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
 
110
        }
 
111
        r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
 
112
        n = int(r0)
 
113
        if e1 != 0 {
 
114
                err = e1
 
115
        }
 
116
        return
 
117
}
 
118
 
104
119
/*
105
120
 * Exposed directly
106
121
 */
129
144
//sys   Getdtablesize() (size int)
130
145
//sysnb Getegid() (egid int)
131
146
//sysnb Geteuid() (uid int)
132
 
//sys   Getfsstat(buf []Statfs_t, flags int) (n int, err error)
133
147
//sysnb Getgid() (gid int)
134
148
//sysnb Getpgid(pid int) (pgid int, err error)
135
149
//sysnb Getpgrp() (pgrp int)