Home | History | Annotate | Download | only in syscall

Lines Matching refs:syscall

19 	"syscall"
29 _ func(int, int, int) error = syscall.Setpriority
30 _ func(int, int) (int, error) = syscall.Getpriority
33 _ int = syscall.PRIO_USER
34 _ int = syscall.PRIO_PROCESS
35 _ int = syscall.PRIO_PGRP
40 _ int = syscall.TCIFLUSH
41 _ int = syscall.TCIOFLUSH
42 _ int = syscall.TCOFLUSH
47 _ = syscall.Flock_t{
56 _ = syscall.F_GETLK
57 _ = syscall.F_SETLK
58 _ = syscall.F_SETLKW
66 // expects just before the actual fcntl syscall. As Go uses raw
74 flock := syscall.Flock_t{
75 Type: syscall.F_WRLCK,
81 fd, err := syscall.Open(name, syscall.O_CREAT|syscall.O_RDWR|syscall.O_CLOEXEC, 0)
85 defer syscall.Unlink(name)
86 defer syscall.Close(fd)
87 if err := syscall.Ftruncate(fd, 1<<20); err != nil {
90 if err := syscall.FcntlFlock(uintptr(fd), syscall.F_SETLK, &flock); err != nil {
106 if err := syscall.FcntlFlock(3, syscall.F_GETLK, &got); err != nil {
109 flock.Pid = int32(syscall.Getppid())
149 fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
153 defer syscall.Close(fds[0])
154 defer syscall.Close(fds[1])
189 scms, err := syscall.ParseSocketControlMessage(oob[:oobn])
197 gotFds, err := syscall.ParseUnixRights(&scm)
199 t.Fatalf("syscall.ParseUnixRights: %v", err)
249 rights := syscall.UnixRights(int(f.Fd()))
277 n = len(b) + syscall.CmsgLen(4*len(fds))
278 b = append(b, syscall.UnixRights(fds...)...)
283 scms, err := syscall.ParseSocketControlMessage(b)
291 gotFds, err := syscall.ParseUnixRights(&scm)
309 var rlimit, zero syscall.Rlimit
310 err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlimit)
319 err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &set)
323 var get syscall.Rlimit
324 err = syscall.Getrlimit(syscall.RLIMIT_NOFILE, &get)
340 err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rlimit)
347 _, err := syscall.Seek(-1, 0, 0)