OLD | NEW |
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 // +build linux | 5 // +build linux |
6 // +build power64 power64le | 6 // +build ppc64 ppc64le |
7 | 7 |
8 package syscall | 8 package syscall |
9 | 9 |
10 //sys Chown(path string, uid int, gid int) (err error) | 10 //sys Chown(path string, uid int, gid int) (err error) |
11 //sys Fchown(fd int, uid int, gid int) (err error) | 11 //sys Fchown(fd int, uid int, gid int) (err error) |
12 //sys Fstat(fd int, stat *Stat_t) (err error) | 12 //sys Fstat(fd int, stat *Stat_t) (err error) |
13 //sys Fstatfs(fd int, buf *Statfs_t) (err error) | 13 //sys Fstatfs(fd int, buf *Statfs_t) (err error) |
14 //sys Ftruncate(fd int, length int64) (err error) | 14 //sys Ftruncate(fd int, length int64) (err error) |
15 //sysnb Getegid() (egid int) | 15 //sysnb Getegid() (egid int) |
16 //sysnb Geteuid() (euid int) | 16 //sysnb Geteuid() (euid int) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 iov.Len = uint64(length) | 88 iov.Len = uint64(length) |
89 } | 89 } |
90 | 90 |
91 func (msghdr *Msghdr) SetControllen(length int) { | 91 func (msghdr *Msghdr) SetControllen(length int) { |
92 msghdr.Controllen = uint64(length) | 92 msghdr.Controllen = uint64(length) |
93 } | 93 } |
94 | 94 |
95 func (cmsg *Cmsghdr) SetLen(length int) { | 95 func (cmsg *Cmsghdr) SetLen(length int) { |
96 cmsg.Len = uint64(length) | 96 cmsg.Len = uint64(length) |
97 } | 97 } |
OLD | NEW |