scoop:scoop.asyncio:0.1.0
platform/unix/temporary.scoop
Selected production source · platform/unix/temporary.scoop
1
package scoop.asyncio3
import scoop.platform.fs.Path5
@Unsafe6
internal fun startTemporaryFile(loop: Ptr<Unit>, id: Long, base: Path, pattern: Path): Int {7
return pattern.withIoPath {8
name -> @Unsafe9
{10
return@withIoPath nativeTemporaryFile(loop, id, name)11
}12
}13
}15
@Extern(name = "scoop_io_file_temporary")16
private fun nativeTemporaryFile(loop: Ptr<Unit>, id: Long, pattern: Ptr<Byte>): Int