github.com/primecitizens/pcz/std@v0.2.1/ffi/wasm/wasi/open.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2023 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 //go:build wasip1 9 10 package wasi 11 12 import ( 13 "unsafe" 14 ) 15 16 //go:wasmimport wasi_snapshot_preview1 path_open 17 //go:noescape 18 func Open( 19 dirFD FD, 20 dirflags LookupFlags, 21 path unsafe.Pointer, 22 pathLen Size, 23 oflags OFlags, 24 fsRightsBase Rights, 25 fsRightsInheriting Rights, 26 fsFlags FDflags, 27 fd unsafe.Pointer, 28 ) Errno