Lines Matching refs:program
5 simpler WebAssembly program written using the WebAssembly text format, and executing
19 Let's start with a simple C program which performs a file copy, which will
79 compile our program like so:
115 Now, let's port the C program defined in [From C](#from-c) section to Rust:
139 let program = args[0].clone();
142 eprintln!("usage: {} <from> <to>", program);
180 Ok, this program needs some command-line arguments. So let's give it some:
188 Aha, now we're seeing the sandboxing in action. This program is attempting to
200 Now our program runs as expected!
203 to *preopen* a directory, and make it available to the program as a capability
204 which can be used to open files inside that directory. Now when the program
212 As a brief aside, note that we used the path `.` above to grant the program
215 WebAssembly program, and we don't expose the actual current working
216 directory to the WebAssembly program. So providing a full path doesn't work:
248 This maps the name `/tmp` within the WebAssembly program to `/var/tmp` in the
249 host filesystem. So the WebAssembly program itself never sees the `/var/tmp` path,