2013-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgo / go / syscall / consistency_unix_test.go
blob73630bc61499fd59457bde13e2cac6d7924af8db
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.
5 // +build freebsd dragonfly darwin linux netbsd openbsd
7 // This file tests that some basic syscalls are consistent across
8 // all Unixes.
10 package syscall_test
12 import "syscall"
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
20 const (
21 _ int = syscall.PRIO_USER
22 _ int = syscall.PRIO_PROCESS
23 _ int = syscall.PRIO_PGRP
27 // termios functions and constants
28 func _() {
29 const (
30 _ int = syscall.TCIFLUSH
31 _ int = syscall.TCIOFLUSH
32 _ int = syscall.TCOFLUSH