OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Go Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style |
| 3 // license that can be found in the LICENSE file. |
| 4 |
| 5 // +build freebsd darwin linux netbsd openbsd |
| 6 |
| 7 // This file tests that some basic syscalls are consistent across |
| 8 // all Unixes. |
| 9 |
| 10 package syscall_test |
| 11 |
| 12 import "syscall" |
| 13 |
| 14 // {Set,Get}priority and needed constants for them |
| 15 func _() { |
| 16 var ( |
| 17 _ func(int, int, int) error = syscall.Setpriority |
| 18 _ func(int, int) (int, error) = syscall.Getpriority |
| 19 ) |
| 20 const ( |
| 21 _ int = syscall.PRIO_USER |
| 22 _ int = syscall.PRIO_PROCESS |
| 23 _ int = syscall.PRIO_PGRP |
| 24 ) |
| 25 } |
OLD | NEW |