// Copyright 2012-2017 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !tinygo && !plan9
// +build !tinygo,!plan9

package main

import "golang.org/x/sys/unix"

func Sethostname(n string) error {
	return unix.Sethostname([]byte(n))
}
