github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/cpio/mknod_unix.go (about)

     1  // Copyright 2013-2019 the u-root 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  //go:build !freebsd && !plan9
     6  // +build !freebsd,!plan9
     7  
     8  package cpio
     9  
    10  import (
    11  	"syscall"
    12  )
    13  
    14  func mknod(path string, mode uint32, dev int) (err error) {
    15  	return syscall.Mknod(path, mode, dev)
    16  }